/* .mt-button {
    margin-top: 1.7rem !important;
} */

.btn-responsive {
    width: 100%; /* En móvil: ancho completo */
}
.btn-responsive-2 {
    width: 100%; /* En móvil: ancho completo */
}
.btn-responsive-actions {
    width: 100%; /* En móvil: ancho completo */
}
@media (min-width: 768px) {
    .btn-responsive {
        width: 190px; /* En pantallas medianas hacia arriba */
    }
    .btn-responsive-2 {
        width: 130px; /* En móvil: ancho completo */
    }
}
.btn-buscar-papeleta {
    margin-top: 1px;
    background-image: radial-gradient(
            90% 85% at 85% 88%,
            rgba(0, 0, 0, 0.12) 0%,
            transparent 80%
        ),
        radial-gradient(
            70% 85% at 25% 22%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 55%
        ),
        linear-gradient(#17a2b8, #17a2b8) !important; /* COLOR BASE */
}
.custom-table {
    table-layout: fixed; /* fuerza celdas proporcionales */
    width: 100%;
}

.custom-table td,
.custom-table th {
    white-space: nowrap; /* evita que el texto rompa la tabla */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modo móvil (solo 2 columnas visibles) */
.custom-table {
    table-layout: fixed;
}

/* Modo escritorio - restaurar comportamiento normal */
@media (min-width: 768px) {
    .custom-table {
        table-layout: auto !important;
        width: 100% !important;
    }

    .custom-table th,
    .custom-table td {
        white-space: nowrap;
    }
}

.check_label {
    margin-left: 5px !important;
    margin-top: 5px !important;
}

/* styles.css */
.ui-menu .ui-menu-item-wrapper.ui-state-active {
    background-color: #ad1d62 !important;
    color: #fff !important;
}

.card-custom {
    border: none;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    min-height: 350px;
}

/* Tabs dentro del card */
.card-custom .nav-tabs .nav-link.active {
    border: none;
    border-bottom: 3px solid #0a8765;
    background-color: transparent;
    font-weight: 600;
}

.card-custom .nav-tabs .nav-link {
    color: #000;
}

/* Imagen dentro del card */
.card-custom .card-img {
    border-radius: 15px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Texto de rating dentro del card */
.card-custom .text-rating {
    color: #28a745;
    font-weight: 500;
}

.text-justify {
    text-align: justify;
}

/* Fuerza que el wrapper de Flatpickr ocupe 100% */
.flatpickr-wrapper {
    width: 100%;
    display: block;
}

/* Input alternativo dentro del wrapper */
.flatpickr-input {
    width: 100% !important;
    box-sizing: border-box;
    text-align: center; /* opcional */
}

.content-right {
    justify-content: end;
}

.invalid-label {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-form-invalid-color);
}
.font-icons {
    font-size: 6rem !important;
}
.line-heigh-p {
    line-height: 130%;
}
.centrar-flex {
    display: flex !important;
    justify-content: center !important;
}
.btn-block {
    display: block;
    width: 100%;
}

table .form-check {
    min-height: 0rem !important
  ;
}

.font-weight-normal {
    font-weight: normal !important;
}

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

.borderless td,
.borderless th {
    border: none;
}

.form-img {
    border-radius: 30px !important;
    border: 2px dotted #9ba5b3 !important;
    width: 100% !important;
    max-width: 250px;
    height: auto;
}

.text-min {
    font-size: 0.72rem !important;
}

.input-sm {
    font-size: 0.8rem !important;
}

.thead-dark th {
    background-color: #edecf0;
    border-color: #edecf0;
}

.th-style {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
}
.pointer {
    cursor: pointer;
}
.input-readonly {
    background-color: #f3f2f7;
    /* border: 1px solid #f3f2f7; */
}

.spinner-ios {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.12);
    border-top-color: transparent;
    border-right-color: #cf458a;
    border-bottom-color: transparent;
    border-left-color: #cf458a;
    animation: spinnerIOS 0.8s linear infinite;
}

@keyframes spinnerIOS {
    to {
        transform: rotate(360deg);
    }
}

.text-theme {
    color: #0a2a70;
}

.btn-sm {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.85rem !important;
    line-height: 1.7 !important;
    border-radius: 10px !important;
}

.text-alert {
    text-align: center;
    font-size: 1rem;
    line-height: 130%;
}

.form-check-input {
    cursor: pointer;
}

/* GRID BASE */
.permisos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    background: white;
}

/* CELDAS */
.perm-name,
.perm-field {
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f2;
    display: flex;
    align-items: center;
}

.perm-field {
    justify-content: center;
    gap: 8px;
}

.perm-check {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.perm-check + label {
    width: 22px;
    height: 22px;
    border: 2px solid #adb5bd;
    background: white;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.perm-check + label:hover {
    border-color: #22ad42;
}

.perm-check:checked + label {
    background-color: #22ad42;
    border-color: #22ad42;
}

.perm-check:checked + label::after {
    content: "";
    width: 6px;
    height: 12px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.mobile-label {
    display: none;
    margin-right: 5px;
}

.mobile-label i {
    font-size: 25px;
}

@media (max-width: 600px) {
    .permisos-grid {
        grid-template-columns: 1fr 1fr;
    }

    .perm-header {
        display: none;
    }

    .perm-name {
        grid-column: 1 / -1;
        font-weight: 600;
        padding-top: 14px;
    }

    .perm-field {
        justify-content: flex-start;
        padding-left: 20px;
    }

    .mobile-label {
        display: inline-block;
        width: 80px;
        font-weight: 400;
        cursor: pointer;
    }
}

.align-baseline {
    align-items: baseline !important;
}

.finance-card {
    border-radius: 20px;
    padding: 15px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.finance-card .icon {
    font-size: 30px;
    margin-bottom: 0px;
    opacity: 0.9;
}
.finance-card .amount {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0px;
}
.finance-card .label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.fc-success {
    background: linear-gradient(135deg, #28c76f, #20a95d);
}

.fc-neto {
    background: linear-gradient(135deg, #00cfe8, #00b6cc);
}

.tab-menu {
    border-radius: 20px;
}

.tab-menu .list-group-item {
    font-size: 16px;
    padding: 14px 18px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.tab-menu .list-group-item i {
    margin-right: 8px;
    font-size: 18px;
}

.tab-menu .list-group-item.active {
    background-color: #545a61;
    color: #fff;
    border-color: #545a61;
}

.tab-menu .list-group-item:hover {
    background-color: #545a61;
    color: #fff;
}

.tab-body .tab-content-item {
    display: none;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tab-body .tab-content-item.active {
    display: block;
}

.detalle-reserva p {
    font-size: 16px;
}
.card-detalle {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}
.payment-cards-vertical {
    display: flex;
    flex-direction: column;
}

.payment-card {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 18px;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.08); */
}
.payment-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
}
.payment-title {
    font-size: 15px;
    font-weight: 500;
    color: #666;
}
.payment-amount {
    font-size: 19px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .payment-card {
        padding: 12px 14px;
    }
    .payment-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .payment-title {
        font-size: 14px;
    }
    .payment-amount {
        font-size: 17px;
    }
}

.nu-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 5px;
}

.nu-section {
    background: #fff;
    padding: 10px 12px;
    border-radius: 22px;
    border: none;
}

/* Títulos */
.nu-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nu-item {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #f3f3f3;
    text-align: center;
}

/* 🖥 ESCRITORIO (cuando crece) */
@media (min-width: 577px) {
    .nu-item {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }
}

.nu-item:last-child {
    border-bottom: none;
}

.nu-label {
    font-size: 16px;
    color: #696969;
}

.nu-amount {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.nu-commission-box {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nu-input {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    padding: 0 12px;
    font-size: 17px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.nu-input-unit {
    font-size: 18px;
    padding: 10px;
    font-weight: 700;
    color: #222;
}

.nu-btn {
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 18px;
}

/* Botón transferir */
.nu-btn-transfer {
    width: 100%;
    border-radius: 14px;
    padding: 10px 0;
    font-weight: 600;
}

.hr-gradiente {
    border: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.5),
        transparent
    );
    margin: 3px 0;
}

#tab-saldos,
#tab-recibos-pago,
#tab-orden-pago {
    padding: 0px;
    border-radius: 0px;
    box-shadow: none;
}
.ec-totales .ec-card {
    border: 1px solid #eef0f4;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.ec-totales .ec-header {
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ec-totales .ec-header--teal {
    background: linear-gradient(135deg, #10b981, #047857);
}
.ec-totales .ec-header--blue {
    background: linear-gradient(135deg, #138496, #0f6674);
}
.ec-totales .ec-badge {
    font-size: 16px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}
.ec-totales .ec-body {
    padding: 12px 16px;
}
.ec-totales .ec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    font-size: 16px;
}
.ec-totales .ec-row + .ec-row {
    border-top: 1px solid #f2f4f7;
}
.ec-totales .ec-value {
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.ec-totales .ec-pill {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #10b981;
    padding: 4px 9px;
    border-radius: 999px;
}

@media (max-width: 576px) {
    .ec-totales .ec-card {
        border-radius: 14px;
    }
    .ec-totales .ec-row {
        font-size: 14px;
        padding: 10px 2px;
    }
}

/* Scope solo para esta card */
.ec-pay-card {
    background: #fff;
    border: 1px solid #eef0f4;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.06);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ec-pay-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18),
        0 4px 10px rgba(15, 23, 42, 0.08);
}

/* Labels sutiles */
.ec-pay-card .ec-label {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* Chips modernos */
.ec-pay-card .ec-chip {
    font-size: 13px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.ec-pay-card .ec-chip--folio {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
    border-radius: 10px; /* más “botón” */
}

.ec-pay-card .ec-chip--ok {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.ec-pay-card .ec-chip--error {
    background: #fee2e2; /* rojo suave */
    color: #b91c1c; /* rojo texto */
    border-color: #fecaca; /* borde rojo claro */
}

/* Importe pro */
.ec-pay-card .ec-amount {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.precio-tachado {
    text-decoration: line-through;
    font-size: 12px;
    color: #b91c1c;
}

.op-tarjeta {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.op-encabezado {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.op-titulo-proveedor {
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.op-subtitulo-proveedor {
    font-size: 0.85rem;
    color: #696969;
    text-transform: uppercase !important;
}

/* Detalles */
.op-caja-detalles {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
}
.op-kv {
    font-size: 16px;
}
.op-kv-etiqueta {
    color: #6b7280;
    font-size: 0.82rem;
    text-transform: uppercase !important;
}
.op-kv-valor {
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
}
.op-monto {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.op-saldos {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    width: 100%;
}
.op-saldos-header {
    background: linear-gradient(135deg, #138496, #0f6674);
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 10px;
}
.op-saldos table td {
    font-size: 0.9rem;
    border-color: rgba(0, 0, 0, 0.04);
}

.op-tabla-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.op-fila-header {
    display: none;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.op-fila {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 130px 1fr 140px 1fr 120px;
    gap: 10px;
    align-items: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
    transition: all 180ms ease;
}

.op-fila:hover {
    transform: translateY(-0.50px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.op-celda {
    font-size: 0.92rem;
}
.op-celda--monto {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.op-celda--acciones {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.op-celda-label {
    display: none;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 2px;
}

.op-acciones .btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .op-fila-header {
        display: grid;
        grid-template-columns: 130px 1fr 140px 1fr 120px;
        gap: 10px;
    }
    .op-saldos-contenedor {
        display: flex;
        justify-content: flex-end;
    }
    .op-saldos {
        max-width: 360px;
    }
}

@media (max-width: 575.98px) {
    .op-acciones-header {
        width: 100%;
        justify-content: flex-start;
    }
    .op-detalles-grid .col-6 {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .op-fila {
        grid-template-columns: 1fr;
    }
    .op-celda-label {
        display: block;
    }
    .op-celda--acciones {
        justify-content: flex-start;
    }
}
