:root {
    --theme-default: #3d3e3e;
    --theme-secondary: #4a4b8f;
    --theme-terciary: red;
}

:root .dark-only {
    --theme-default: #868894;
    --theme-secondary: #4a4b8f;
    --theme-terciary: #243064;
}

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 0px;
    background-image: linear-gradient(to right, #4a4b8f7d, transparent);
}

.card h3 {
    padding: 10px 0px;
}

.simplebar-mask {
    top: 100px !important;
}

.bg-info {
    background-color: #124a5b70 !important;
    color: #fff;
}

.close_icon .simplebar-mask {
    top: 140px !important;
}

.panelDashVista {
    min-height: 45px !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;
    text-wrap-mode: nowrap;
}

.table th {
    color: #1f2f3e;
    font-weight: bold;
}

.hidden {
    display: none !important;
}



.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;
}

td.listActions .fa {
    margin-right: 5px !important;
}

.filters .row {
    margin: 0px 5px;
    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-primary.toggle-on {
    background-color: #f0f0f0 !important;
    color: black;
}

label.btn.btn-default.active.toggle-off {
    background-color: #7b7b7b;
    color: white !important;
}

.dark-only label.btn.btn-primary.toggle-on {
    background-color: transparent !important;
    color: black;
}

.panelButtonList {
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    align-items: center;
    width: 100%;
}

.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: #303030 !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;
}

.loading {
    background: no-repeat scroll center 20% #ffffffb8;
    background-size: 45px 45px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: .80;
    z-index: 1029;
    text-align: center;
    align-content: center;
}

.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 #575757 !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;
}

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%;
    margin-top: 10px;
}

.form-control {
    padding: 3px 8px !important;
    height: 30px;
}

span.input-group-append.input-group-text {
    height: 30px;
}

.filters form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    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: url(images/loading.gif) no-repeat scroll center 20% #181818;
}

.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;
    text-align: center;
}

.toggle-sidebar {
    right: 10px;
    top: 10px;
}

.small-box .icon {
    color: rgba(0, 0, 0, .15);
    z-index: 0;
}

.small-box .icon>i {
    font-size: 70px;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: all .3s linear;
    opacity: 0.5;
}

.small-box {
    border-radius: .25rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    display: block;
    margin-bottom: 20px;
    position: relative;
    padding: 12px;
}

.small-box.bg-theme {
    background-color: #cdcdcd;
}

.dark-only .small-box.bg-theme {
    background-color: #313131;
}

.form-grids .card-header {
    display: none;
}

button.btn {
    white-space: nowrap;
}

button.btn.btn-secondary.submitVenta {
    min-height: 70px;
}

.btn-info {
    background-color: #124a5b !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 {
    font-size: 12px;
    padding: 0.3rem 1rem;
}

.sidebar-links .sidebar-title i {
    margin-top: 2px !important;
    margin-left: -4px;
    color: var(--theme-secondary);
}

.table td {
    padding: 0.5rem;
}

.table th {
    /*padding: 1rem;*/
}

thead {
    background-color: #4747471a;
    white-space: nowrap;
    border-left: 1px solid;
    border-right: 1px solid;
}

.dark-only thead {
    background-color: #262639;
    white-space: nowrap;
    border-left: 1px solid;
    border-right: 1px solid;
}

.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;
}

.listActions .responsive_hide {
    display: contents;
}

.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: 200px;
}

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: 0;
        padding-right: 0;
        padding-bottom: 0;
    }


    td.listActions {
        padding-right: 0 !important;
        justify-items: right;
        min-width: auto !important;
        display: flex;
        margin: 0 !important;
        justify-content: right;
    }

    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;
    }

    td.listActions .fab {
        font-size: 6vw !important;
    }

    .filters .row {
        width: 100%;
    }

    .summary-card .summary-progressbar ul li:not(.cc-stat):not(.caja-stat) {
        padding: 10px !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;
    }

}

.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%);
}

.cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat {
    border: 1px solid rgb(18 74 91 / 68%);
    border-left-width: 4px;
    background-color: var(--white, #fff);
    box-shadow: 0 1px 2px rgba(82, 82, 108, 0.06);
}

.cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat-total {
    border-left-color: var(--theme-default, #007a91);
    background: linear-gradient(135deg, rgba(82, 82, 108, 0.06) 0%, var(--white, #fff) 48%);
}

.cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat-cobrado {
    border-left-color: #15803d;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, var(--white, #fff) 55%);
}

.cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat-adeudado {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, var(--white, #fff) 55%);
}

.cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat-sinimputar {
    border-left-color: #d97706;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, var(--white, #fff) 55%);
}

.dark-only .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat {
    background-color: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.dark-only .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat-total {
    background: linear-gradient(135deg, rgba(83, 70, 134, 0.35) 0%, transparent 65%);
}

.dark-only .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat-cobrado {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, transparent 60%);
}

.dark-only .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat-adeudado {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, transparent 60%);
}

.dark-only .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat-sinimputar {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, transparent 60%);
}



.dark-only .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat span {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 991px) {

    .cuenta-cc-summary-banner .summary-progressbar,
    .caja-summary-banner .summary-progressbar {
        padding-top: 16px;
    }

    .cuenta-cc-summary-banner .summary-progressbar ul,
    .caja-summary-banner .summary-progressbar ul {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        width: 100%;
    }

    .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat,
    .caja-summary-banner .summary-progressbar ul li.caja-stat {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat span,
    .caja-summary-banner .summary-progressbar ul li.caja-stat span {
        -webkit-line-clamp: unset !important;
        display: block !important;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }

    .cuenta-cc-summary-banner .summary-progressbar ul li.cc-stat h4,
    .caja-summary-banner .summary-progressbar ul li.caja-stat h4 {
        font-size: clamp(1.15rem, 4.2vw, 1.5rem);
        word-break: break-word;
        line-height: 1.25;
    }
}

/* Resumen banner caja diaria (misma línea que cuenta corriente) */
.caja-summary-banner .summary-progressbar ul li.caja-stat {
    border: 1px solid rgba(82, 82, 108, 0.12);
    border-left-width: 4px;
    background-color: var(--white, #fff);
    box-shadow: 0 1px 2px rgba(82, 82, 108, 0.06);
}

.caja-summary-banner .summary-progressbar ul li.caja-stat-apertura {
    border-left-color: #0e8f59;
    background: linear-gradient(135deg, rgba(14, 143, 89, 0.12) 0%, var(--white, #fff) 55%);
}

.caja-summary-banner .summary-progressbar ul li.caja-stat-contado {
    border-left-color: #ea580c;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, var(--white, #fff) 55%);
}

.caja-summary-banner .summary-progressbar ul li.caja-stat-mercadopago {
    border-left-color: #009ee3;
    background: linear-gradient(135deg, rgba(0, 158, 227, 0.12) 0%, var(--white, #fff) 55%);
}

.caja-summary-banner .summary-progressbar ul li.caja-stat-transferencias {
    border-left-color: #a855c4;
    background: linear-gradient(135deg, rgba(168, 85, 196, 0.14) 0%, var(--white, #fff) 55%);
}

.dark-only .caja-summary-banner .summary-progressbar ul li.caja-stat {
    background-color: var(--theme-default);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.dark-only .caja-summary-banner .summary-progressbar ul li.caja-stat-apertura {
    background: linear-gradient(135deg, rgba(14, 143, 89, 0.28) 0%, transparent 60%);
}

.dark-only .caja-summary-banner .summary-progressbar ul li.caja-stat-contado {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.26) 0%,transparent 60%);
}

.dark-only .caja-summary-banner .summary-progressbar ul li.caja-stat-mercadopago {
    background: linear-gradient(135deg, rgba(0, 158, 227, 0.26) 0%, transparent 60%);
}

.dark-only .caja-summary-banner .summary-progressbar ul li.caja-stat-transferencias {
    background: linear-gradient(135deg, rgba(168, 85, 196, 0.28) 0%, transparent 60%);
}

.dark-only .caja-summary-banner .summary-progressbar ul li.caja-stat h4 {
    color: var(--white, #fff);
}

.dark-only .caja-summary-banner .summary-progressbar ul li.caja-stat span {
    color: rgba(255, 255, 255, 0.82);
}

.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;
}

.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;
}

.contentFinanciacion {
    background-color: #24306412 !important;
}

span#total_financiado {
    color: black;
    font-size: 14px;
}

span#total {
    color: black;
    font-size: 14px;
}

button#addMetodoPago {
    padding: 3px 20px;
}

.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;
}

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: flex !important;
    justify-content: right !important;
    gap: 10px !important;
    padding: 0.5rem !important;
}

@media (max-width: 600px) {
    .actions-responsive {
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 0.5rem !important;
    }

    .actions-responsive .fa {
        font-size: 16px !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: linear-gradient(var(--theme-default), var(--theme-default));
    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 ORDEN 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 ORDEN 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;
}

/* ============================================================
   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: 12px;
    color: #01409f;
}

/* ---- 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: #e8f4fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
}

/* ---- Sección productos ---- */
.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: hidden;
    border: 1px solid #e4e9ef;
    margin-bottom: 0;
}
.table-productos thead th {
    background: #f3f6f9;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7a8d;
    padding: 10px 10px;
    border-bottom: 2px solid #dde3ea;
}
.table-productos tbody td {
    vertical-align: middle;
    padding: 8px 10px;
}
.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, #f0f5ff, #e8f0fe);
    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;
}

/* ---- 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: #1a2640;
    border-color: #2a4880;
    color: #7ab0e8;
}
body.dark-only .aventa-table-wrapper {
    border-color: #363754;
}
body.dark-only .table-productos thead th {
    background: #2a2b3d;
    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;
}

.row.aventa-main-layout .form-control {
    width: -webkit-fill-available;
}

@media only screen and (max-width: 575.98px) {
    .panelButtonList .btn {
        width: 49%;
    }
    .panelDashVista {
        justify-content: center;
    }
    .panelDashVista .rounded-circle {
        display: none !important;
    }
}

.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
 {
    margin-bottom: 0px;
    margin-top: 25px;
    padding: 10px 0 10px 20px;
    background-image: linear-gradient(to right, #4a4b8f7d, transparent);
}

.summary-card .summary-progressbar ul li span {
    display: contents !important;
}

.summary-card .summary-progressbar ul li h4 {
    font-size: 20px;
    font-weight: 600;
}

@media (max-width: 1470px) {
    .signal-table.table-responsive .table tbody tr td:nth-child(n+2) {
        min-width: 0 !important;
    }
}

.summary-card .summary-progressbar ul {
    align-items: center;
    display: contents;
}

.summary-card .summary-progressbar ul li {
    border: 1px solid var(--theme-default);
    padding: 5px 10px;
    width: calc(25% - 10px);
    margin-right: 10px;
    border-radius: 8px;
    text-align: right;
    margin-bottom: 10px;
}


.card-header {
    padding: 0px !important;
    padding-bottom: 10px !important;
}

.btn.btn-secondary.btn-file {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* Foto en formularios de persona/cliente (mismo criterio que recepcionista) */
.form-photo-panel {
    position: relative;
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    margin: 0 auto;
}

.form-photo-preview {
    min-height: 178px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.form-photo-preview .img {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.form-photo-preview .img .div-img {
    width: 100%;
    max-width: 220px;
}

.form-photo-preview .img-child,
.form-photo-preview .img .div-img img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

body.dark-only .form-photo-panel {
    border-color: #39405f;
    background: rgba(37, 42, 61, 0.35);
}

.evento-editor {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.evento-editor-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.evento-editor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.evento-editor-card-header h4,
.evento-editor-card-header h5 {
    margin: 0;
    color: #1f2937;
    font-weight: 700;
}

.evento-editor-card-header p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.evento-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
}

.evento-form-fields {
    display: grid;
    gap: 14px;
}

.evento-field label,
.evento-inline-label {
    display: block;
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.evento-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.evento-check-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: #f8fafc;
}

.evento-check-card input[type="checkbox"] {
    margin-top: 4px;
}

.evento-check-title {
    display: block;
    color: #1f2937;
    font-weight: 700;
    font-size: 14px;
}

.evento-check-help {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.evento-side-stack {
    display: grid;
    gap: 18px;
}

.evento-image-preview {
    min-height: 220px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-image-preview #img_show {
    width: 100%;
}

.evento-image-preview .img {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.evento-image-preview .img .div-img {
    max-width: 100%;
}

.evento-image-preview .img-child {
    max-width: 100%;
    border-radius: 14px;
}

.evento-upload-actions {
    margin-top: 12px;
}

.evento-publica-select-wrap {
    width: 100%;
}

.evento-publica-multiselect {
    min-height: 220px;
    padding: 10px 12px;
}

.evento-publica-inline-help {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
}

.evento-publica-table-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
}

.evento-publica-table {
    margin-bottom: 0;
}

.evento-publica-detail-row td {
    vertical-align: middle;
}

.evento-publica-sector-name {
    font-weight: 700;
    color: #1f2937;
}

.evento-publica-qty-wrap .form-group {
    margin-bottom: 0;
}

.evento-publica-delivered {
    text-align: center;
    font-weight: 600;
}

.evento-publica-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.evento-publica-status-empty {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.evento-publica-empty-row td {
    padding: 24px 16px !important;
    text-align: center;
    color: #6b7280;
}

.evento-publica-note-list {
    margin: 0;
    padding-left: 18px;
    color: #4b5563;
    display: grid;
    gap: 8px;
}

.evento-publica-note-list li {
    line-height: 1.5;
}

.evento-publica-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.evento-publica-stat {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #dbe3f0;
}

.evento-publica-stat-label {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.evento-publica-stat strong {
    color: #1f2937;
    font-size: 24px;
}

.evento-sector-list {
    display: grid;
    gap: 14px;
}

.evento-sector-item {
    border: 1px solid #dbe3f0;
    border-radius: 16px;
    padding: 16px;
    background: #f8fafc;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.evento-sector-item.is-active {
    border-color: #9bb5ef;
    background: #f5f8ff;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.08);
}

.evento-sector-top {
    margin-bottom: 12px;
}

.evento-sector-switch {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
}

.evento-sector-switch input[type="checkbox"] {
    margin-top: 4px;
}

.evento-sector-switch-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.evento-sector-title {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.evento-sector-subtitle {
    color: #6b7280;
    font-size: 12px;
}

.evento-sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.evento-sector-sale-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 180px);
    gap: 12px;
    grid-column: 1 / -1;
}

.evento-sector-sale-fields.is-hidden {
    opacity: .65;
}

.evento-sector-sale-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px dashed #bfd0ea;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
}

.evento-sector-sale-toggle input[type="checkbox"] {
    margin: 0;
}

.evento-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.empresa-col-main {
    min-width: 280px;
}

.empresa-col-config {
    min-width: 620px;
}

.empresa-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.empresa-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--empresa-accent, #94a3b8) 22%, white);
    border: 1px solid color-mix(in srgb, var(--empresa-accent, #94a3b8) 55%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.empresa-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255,255,255,0.65);
}

.empresa-logo-fallback {
    color: #475569;
    font-size: 24px;
}

.empresa-copy {
    min-width: 0;
}

.empresa-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.empresa-name {
    color: #111827;
    font-size: 15px;
}

.empresa-meta {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}

.empresa-color-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.empresa-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.18);
}

.empresa-color-text {
    font-size: 12px;
    color: #475569;
}

.empresa-state-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.empresa-state-badge.is-active {
    background: #dcfce7;
    color: #166534;
}

.empresa-state-badge.is-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.empresa-switch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px 12px;
}

.empresa-switch-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid #dbe3f0;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, opacity .2s ease;
    min-height: 46px;
}

.empresa-switch-chip:hover {
    border-color: #9bb5ef;
    background: #f5f8ff;
}

.empresa-switch-chip input.switch {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.empresa-switch-ui {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    flex-shrink: 0;
    transition: background-color .2s ease;
}

.empresa-switch-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform .2s ease;
}

.empresa-switch-chip input.switch:checked + .empresa-switch-ui {
    background: var(--theme-secondary);
}

.empresa-switch-chip input.switch:checked + .empresa-switch-ui::after {
    transform: translateX(14px);
}

.empresa-switch-label {
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.empresa-switch-chip.is-loading {
    opacity: .65;
}

.empresa-switch-chip.is-loading .empresa-switch-ui::after {
    animation: empresaSwitchPulse .6s ease-in-out infinite alternate;
}

.empresa-col-actions {
    min-width: 92px;
    white-space: nowrap;
}

@keyframes empresaSwitchPulse {
    from { transform: scale(1); }
    to { transform: scale(0.88); }
}

body.dark-only .evento-editor-card {
    background: #1f2333;
    border-color: #353a52;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

body.dark-only .evento-editor-card-header h4,
body.dark-only .evento-editor-card-header h5,
body.dark-only .evento-check-title,
body.dark-only .evento-sector-title {
    color: #eef4ff;
}

body.dark-only .evento-editor-card-header p,
body.dark-only .evento-field label,
body.dark-only .evento-inline-label,
body.dark-only .evento-check-help,
body.dark-only .evento-sector-subtitle {
    color: #9eabca;
}

body.dark-only .evento-check-card,
body.dark-only .evento-sector-item {
    background: #252a3d;
    border-color: #39405f;
}

body.dark-only .evento-publica-stat {
    background: #252a3d;
    border-color: #39405f;
}

body.dark-only .evento-publica-stat strong,
body.dark-only .evento-publica-sector-name {
    color: #eef4ff;
}

body.dark-only .evento-publica-stat-label,
body.dark-only .evento-publica-inline-help,
body.dark-only .evento-publica-empty-row td,
body.dark-only .evento-publica-note-list {
    color: #9eabca;
}

body.dark-only .evento-publica-table-card {
    border-color: #353a52;
}

body.dark-only .evento-publica-status-empty {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

body.dark-only .evento-sector-item.is-active {
    background: #1d2c4d;
    border-color: #5673b3;
}

body.dark-only .evento-image-preview {
    background: #252a3d;
    border-color: #39405f;
}

body.dark-only .evento-sector-sale-toggle {
    background: #1f2333;
    border-color: #4c5d8b;
    color: #d8e4ff;
}

body.dark-only .empresa-name {
    color: #eef4ff;
}

body.dark-only .empresa-meta,
body.dark-only .empresa-color-text,
body.dark-only .empresa-switch-label {
    color: #aab7d3;
}

body.dark-only .empresa-color-row,
body.dark-only .empresa-switch-chip {
    background: #252a3d;
    border-color: #39405f;
}

body.dark-only .empresa-switch-chip:hover {
    background: #1d2c4d;
    border-color: #5874b8;
}

body.dark-only .empresa-logo {
    background: #252a3d;
    border-color: #39405f;
}

body.dark-only .empresa-logo-img {
    background: rgba(15, 23, 42, 0.35);
}

body.dark-only .empresa-logo-fallback {
    color: #d6e0f5;
}

body.dark-only .empresa-state-badge.is-active {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

body.dark-only .empresa-state-badge.is-inactive {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

body.dark-only .empresa-switch-ui {
    background: #55607f;
}

@media (max-width: 991.98px) {
    .evento-form-grid {
        grid-template-columns: 1fr;
    }

    .empresa-switch-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .evento-sector-grid,
    .evento-sector-sale-fields,
    .evento-check-grid {
        grid-template-columns: 1fr;
    }

    .evento-editor-card {
        padding: 14px;
        border-radius: 16px;
        width: calc(100vw - 30px);
    }

    .empresa-switch-grid {
        grid-template-columns: 1fr;
    }

    .empresa-summary {
        align-items: flex-start;
    }
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    margin-top: 26px;
    min-height: calc(100vh - 105px);
}

.tempus-dominus-widget {
    z-index: 9999 !important;
}

.tempus-dominus-widget .toolbar {
    margin: 0 !important;
    padding: 0 !important;
}

.tempus-dominus-widget {
    padding: 9px !important;
    padding-top: 14px !important;
}

.tempus-dominus-widget .toolbar div:hover {
    background: black !important;
}

.tempus-dominus-widget.light .date-container-days div.range-end:not(.no-highlight), .tempus-dominus-widget.light .date-container-days div.range-in:not(.no-highlight), .tempus-dominus-widget.light .date-container-days div.range-start:not(.no-highlight), .tempus-dominus-widget.light .date-container-days div:not(.no-highlight).active, .tempus-dominus-widget.light .date-container-decades div:not(.no-highlight).active, .tempus-dominus-widget.light .date-container-months div:not(.no-highlight).active, .tempus-dominus-widget.light .date-container-years div:not(.no-highlight).active, .tempus-dominus-widget.light .time-container-clock div:not(.no-highlight).active, .tempus-dominus-widget.light .time-container-hour div:not(.no-highlight).active, .tempus-dominus-widget.light .time-container-minute div:not(.no-highlight).active, .tempus-dominus-widget.light .time-container-second div:not(.no-highlight).active {
    background-color: #424888;
}

.lista-acceso-shell,
.lista-acceso-form-shell {
    display: grid;
    gap: 16px;
}

.lista-acceso-toolbar,
.lista-acceso-form-intro {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(74, 75, 143, 0.12), rgba(102, 126, 234, 0.06));
    border: 1px solid rgba(74, 75, 143, 0.16);
}

.lista-acceso-toolbar-copy h2,
.lista-acceso-form-intro h2 {
    margin: 4px 0 8px;
    font-size: 1.75rem;
    color: #20263f;
}

.lista-acceso-toolbar-copy p,
.lista-acceso-form-intro p,
.lista-acceso-filter-head p,
.lista-acceso-field small {
    margin: 0;
    color: #697089;
}

.lista-acceso-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a4b8f;
}

.lista-acceso-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.lista-acceso-summary-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(77, 89, 120, 0.12);
    box-shadow: 0 12px 26px rgba(28, 36, 66, 0.08);
}

.lista-acceso-summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7d859c;
}

.lista-acceso-summary-card strong {
    font-size: 1.5rem;
    color: #20263f;
}

.lista-acceso-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lista-acceso-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(77, 89, 120, 0.12);
    box-shadow: 0 16px 36px rgba(28, 36, 66, 0.08);
    min-height: 220px;
}

.lista-acceso-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.lista-acceso-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, #4a4b8f, #6875f5);
    box-shadow: 0 10px 20px rgba(74, 75, 143, 0.25);
}

.lista-acceso-card-actions {
    display: flex;
    gap: 8px;
}

.lista-acceso-action {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #edf1ff;
    color: #4a4b8f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.lista-acceso-action:hover {
    background: #4a4b8f;
    color: #fff;
}

.lista-acceso-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
}

.lista-acceso-card-title-row,
.lista-acceso-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lista-acceso-card-title {
    margin: 0;
    font-size: 1.25rem;
    color: #20263f;
}

.lista-acceso-pill,
.lista-acceso-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4a4b8f;
    font-size: 0.85rem;
    font-weight: 600;
}

.lista-acceso-meta {
    display: grid;
    gap: 8px;
    color: #49516b;
}

.lista-acceso-meta div {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.lista-acceso-link {
    color: #4a4b8f;
    font-weight: 700;
}

.lista-acceso-empty {
    grid-column: 1 / -1;
    padding: 34px 24px;
    border-radius: 22px;
    border: 1px dashed rgba(74, 75, 143, 0.3);
    background: rgba(246, 247, 255, 0.95);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.lista-acceso-empty-sm {
    padding: 40px 24px;
    background: transparent;
    border: 0;
    min-height: 280px;
    align-content: center;
}

.lista-acceso-empty-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8edff;
    color: #4a4b8f;
    font-size: 1.5rem;
}

.lista-acceso-empty h3,
.lista-acceso-filter-head h3 {
    margin: 0;
    color: #20263f;
}

.lista-acceso-form-card,
.lista-acceso-filters,
.lista-acceso-table-wrap .card {
    border: 1px solid rgba(77, 89, 120, 0.12);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(28, 36, 66, 0.08);
}

.lista-acceso-form-card {
    padding: 22px;
}

.lista-acceso-form-grid,
.lista-acceso-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.lista-acceso-field {
    display: grid;
    gap: 8px;
}

.lista-acceso-field label {
    font-weight: 700;
    color: #20263f;
}

.lista-acceso-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.lista-acceso-filters {
    display: none;
    padding: 20px;
}

.lista-acceso-filter-form {
    display: grid;
    gap: 18px;
}

.lista-acceso-table-wrap .card {
    overflow: hidden;
}

.lista-acceso-table-wrap .table-personas {
    margin-bottom: 0;
}

body.dark-only .lista-acceso-toolbar,
body.dark-only .lista-acceso-form-intro {
    background: linear-gradient(135deg, rgba(72, 85, 136, 0.28), rgba(28, 36, 66, 0.42));
    border-color: rgba(123, 144, 214, 0.26);
}

body.dark-only .lista-acceso-toolbar-copy h2,
body.dark-only .lista-acceso-form-intro h2,
body.dark-only .lista-acceso-card-title,
body.dark-only .lista-acceso-empty h3,
body.dark-only .lista-acceso-filter-head h3,
body.dark-only .lista-acceso-summary-card strong,
body.dark-only .lista-acceso-field label {
    color: #eef2ff;
}

body.dark-only .lista-acceso-toolbar-copy p,
body.dark-only .lista-acceso-form-intro p,
body.dark-only .lista-acceso-filter-head p,
body.dark-only .lista-acceso-field small,
body.dark-only .lista-acceso-meta,
body.dark-only .lista-acceso-summary-label {
    color: #aab6d6;
}

body.dark-only .lista-acceso-summary-card,
body.dark-only .lista-acceso-card,
body.dark-only .lista-acceso-form-card,
body.dark-only .lista-acceso-filters,
body.dark-only .lista-acceso-table-wrap .card {
    background: #141b30;
    border-color: #2b3552;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body.dark-only .lista-acceso-pill,
body.dark-only .lista-acceso-chip,
body.dark-only .lista-acceso-action {
    background: #202a48;
    color: #d8e4ff;
}

body.dark-only .lista-acceso-action:hover {
    background: #6875f5;
    color: #fff;
}

body.dark-only .lista-acceso-empty {
    background: rgba(20, 27, 48, 0.9);
    border-color: rgba(123, 144, 214, 0.28);
}

body.dark-only .lista-acceso-empty-icon {
    background: #202a48;
    color: #d8e4ff;
}

body.dark-only .lista-acceso-link,
body.dark-only .lista-acceso-eyebrow {
    color: #9cb5ff;
}

@media (max-width: 767.98px) {
    .lista-acceso-grid {
        grid-template-columns: 1fr;
    }

    .lista-acceso-toolbar,
    .lista-acceso-form-intro,
    .lista-acceso-form-actions,
    .lista-acceso-card-title-row,
    .lista-acceso-footer {
        align-items: stretch;
    }

    .lista-acceso-card {
        min-height: unset;
    }

    .lista-acceso-form-card,
    .lista-acceso-filters {
        padding: 16px;
    }
}

.page-wrapper .page-header .header-wrapper {
    padding: 8px 10px;
}

@media only screen and (max-width: 991.98px) {
    .page-wrapper.compact-wrapper .page-body-wrapper .page-body {
        margin-top: 43px !important;
        padding: 0 15px;
    }
}

.responsive_hide_td {
    display: table-cell;
}

.responsive_show_td {
    display: none !important;
}

@media (max-width: 768px) {
    .responsive_show_td {
        display: table-cell !important;
    }
    .responsive_hide_td {
        display: none;
    }
}

td.listActions {
    text-align: right;
    padding-right: 30px;
}

.deleteButton.deleteImg {
    position: absolute;
    margin-top: 10px;
    z-index: 1;
    cursor: pointer;
}

.deleteButton {
    width: 15px;
    height: 15px;
    display: inline-block;
    background: url(images/remove.png) no-repeat scroll center center transparent;
}

body.dark-only .loading {
    background: no-repeat scroll center 20% #373737b8;
}

@media only screen and (max-width: 575.98px) {
    .page-wrapper .page-body-wrapper .page-title .row h3 {
        font-size: 14px;
    }
}

@media only screen and (max-width: 575.98px) {
    .page-wrapper .page-body-wrapper .page-title {
        padding: 9px 0 !important;
    }
    .evento-publica-table-card {
        overflow: scroll !important;
    }
    
        
}

tr.rowTicket.itemDeleted {
    background-color: #ffe0e0;
}

body.dark-only tr.rowTicket.itemDeleted {
    background-color: #4d3333;
}