/* ==========================================================================
   Listado moderno Eco Guacaipuro (componentes reutilizables)
   Mismo lenguaje visual de historicopagos.php y pagosv2.php.
   Prefijo: lst-
   Usado por: pagosenoficinaunificado, pagosporservicio, reportediariopagos,
              reportetotalrecaudado y vistapagarclienteunificado.
   ========================================================================== */

/* ---------- Contenedor de página y panel principal ---------- */
.page-header + .page-content.lst-page-content {
    padding-top: 24px !important;
    padding-bottom: 20px !important;
}
.dashboard .lst-main-panel {
    height: auto !important;
    margin-bottom: 0 !important;
}
.lst-main-panel > .panel-body {
    padding-bottom: 0 !important;
}
.lst-main-panel.lst-panel-flush > .panel-body {
    padding-bottom: 20px !important;
}
.lst-site-footer {
    display: none;
}
.lst-is-hidden {
    display: none !important;
}

/* ---------- Acciones superiores del encabezado ---------- */
.lst-header-actions {
    float: right;
    margin-top: 6px;
    margin-right: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Cinta informativa (cliente / contexto) ---------- */
.lst-banner {
    background: #f5fbf7;
    border: 1px solid #b3e6c0;
    border-left: 4px solid #00B02D;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #334155;
    font-size: 13px;
}
.lst-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.lst-banner-meta strong {
    color: #0f172a;
}
.lst-banner-divider {
    color: #cbd5e1;
}

/* ---------- Tarjetas KPI ---------- */
.lst-kpi-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 8px;
}
.lst-kpi-col {
    width: 100%;
    padding: 0 10px;
    margin-bottom: 16px;
}
@media (min-width: 992px) {
    .lst-kpi-grid-4 .lst-kpi-col {
        width: 25%;
    }
    .lst-kpi-grid-3 .lst-kpi-col {
        width: 33.3333%;
    }
    .lst-kpi-grid-2 .lst-kpi-col {
        width: 50%;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .lst-kpi-grid-4 .lst-kpi-col {
        width: 50%;
    }
    .lst-kpi-grid-3 .lst-kpi-col {
        width: 50%;
    }
    .lst-kpi-grid-2 .lst-kpi-col {
        width: 50%;
    }
}
.lst-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-radius: 8px;
    padding: 16px 18px;
    height: 100%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}
.lst-kpi-card[data-status],
.lst-kpi-card-clickable {
    cursor: pointer;
    user-select: none;
}
.lst-kpi-card[data-status]:hover,
.lst-kpi-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}
.lst-kpi-card.active-card {
    box-shadow: 0 0 0 2px #00B02D, 0 6px 14px rgba(0, 176, 45, 0.15);
    background-color: #f5fbf7;
}
.lst-kpi-blue {
    border-left-color: #3b82f6;
}
.lst-kpi-amber {
    border-left-color: #f59e0b;
}
.lst-kpi-green {
    border-left-color: #10b981;
}
.lst-kpi-teal {
    border-left-color: #0d9488;
}
.lst-kpi-teal .lst-kpi-icon {
    background: #f0fdfa;
    color: #0d9488;
}
.lst-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.lst-kpi-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
}
.lst-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.lst-kpi-blue .lst-kpi-icon {
    background: #eff6ff;
    color: #2563eb;
}
.lst-kpi-amber .lst-kpi-icon {
    background: #fffbeb;
    color: #d97706;
}
.lst-kpi-green .lst-kpi-icon {
    background: #ecfdf5;
    color: #059669;
}
.lst-kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.15;
}
.lst-kpi-sub {
    margin-top: 6px;
    font-size: 12.5px;
    color: #64748b;
}
.lst-kpi-sub strong {
    color: #334155;
}

/* ---------- Pestañas tipo pill de filtrado / navegación ---------- */
.lst-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}
.lst-tabs-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lst-tab-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lst-tab-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.lst-tab-btn.active {
    background: #00B02D;
    border-color: #00B02D;
    color: #ffffff;
    font-weight: 600;
}
.lst-tab-btn .lst-pill-count {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
}
.lst-tab-btn.active .lst-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.lst-filter-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Barra de filtros en línea (reportes por fechas) ---------- */
.lst-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}
.lst-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lst-filter-group label {
    margin: 0;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
}
.lst-filter-group .form-control {
    height: 34px;
    font-size: 13px;
    border-color: #cbd5e1;
    border-radius: 6px;
    min-width: 160px;
}
.lst-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- Controles DataTables, scroll interno y pie fijo ---------- */
.lst-dt-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.lst-dt-top .dataTables_length,
.lst-dt-top .dataTables_filter {
    float: none !important;
    margin: 0 !important;
}
.lst-table-scroll {
    width: 100%;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: auto;
}
.lst-dt-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 12px 4px 16px;
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
/* Neutraliza [aria-live="polite"] { position: fixed; z-index: 1700 } de toastr.css
   y el "#table_info { display: none }" global de Content/style.css */
.lst-dt-footer .dataTables_info,
.lst-dt-footer .dataTables_info[aria-live="polite"],
.lst-dt-footer #table_info {
    display: block !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    pointer-events: auto !important;
    float: none !important;
    margin: 0 !important;
    padding-top: 0 !important;
    color: #64748b;
    font-size: 13px;
    white-space: normal;
}
.lst-dt-footer .dataTables_paginate {
    float: none !important;
    margin: 0 0 0 auto !important;
    padding-top: 0 !important;
}
.lst-dt-top:empty,
.lst-dt-footer:empty {
    display: none;
}
@media (max-width: 767px) {
    .lst-dt-top,
    .lst-dt-footer {
        justify-content: center;
        text-align: center;
    }
    .lst-dt-footer .dataTables_paginate {
        margin: 0 !important;
    }
}

/* ---------- Tabla limpia (neutraliza bordes globales de Content/style.css) ---------- */
table.lst-table {
    width: 100% !important;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 0 !important;
}
.lst-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: inset 0 -2px 0 #e2e8f0;
    background-color: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 11px 10px;
    text-align: left;
    white-space: nowrap;
}
.lst-table thead th.text-right {
    text-align: right;
}
.lst-table thead th.text-center {
    text-align: center;
}
.lst-table thead th.lst-col-check {
    width: 50px;
}
.lst-table tbody td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 11px 10px;
    vertical-align: middle;
    font-size: 13px;
    color: #1e293b;
    background-color: #ffffff;
}
.lst-table tbody tr:last-child td {
    border-bottom: none !important;
}
.lst-table tbody tr:hover td {
    background-color: #f5fbf7 !important;
}
.lst-table tbody td.lst-cell-click {
    cursor: pointer;
}
.lst-table tbody td.text-right,
.lst-table tbody td.lst-num {
    text-align: right;
}

/* ---------- Chips, etiquetas y tipografía de celdas ---------- */
.lst-strong {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.3;
}
.lst-subtext {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.lst-muted {
    color: #94a3b8;
    font-size: 12px;
}
.lst-periodos-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 240px;
}
.lst-periodo-chip {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}
.lst-metodo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.lst-metodo-pasarela {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}
.lst-ref-code {
    display: inline-block;
    font-family: Consolas, Monaco, monospace;
    font-size: 12.5px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 8px;
    color: #0f172a;
}
.lst-monto {
    font-weight: 700;
    font-size: 13.5px;
    color: #0f172a;
    white-space: nowrap;
}
.lst-monto-neg {
    color: #b91c1c;
}
.lst-num {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ---------- Badges de estado ---------- */
.lst-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    width: fit-content;
    white-space: nowrap;
}
.lst-badge-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.lst-badge-warning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.lst-badge-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.lst-badge-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ---------- Casillas de selección y barra de total/acciones (cuotas por pagar) ---------- */
.lst-table .checkbox-custom {
    margin: 0;
}
.lst-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 0;
    padding: 14px 4px 18px;
    border-top: 1px solid #e2e8f0;
}
.lst-action-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lst-action-total-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
}
.lst-action-total-value {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.lst-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.lst-btn-pagar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #000000;
    background: #000000;
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lst-btn-pagar:hover {
    background: #00B02D;
    border-color: #00B02D;
}
/* Variante secundaria (contorno) para acciones alternativas, ej. "Pago por Pasarela" */
.lst-btn-pagar.lst-btn-pagar-alt {
    background: #ffffff;
    color: #000000 !important;
}
.lst-btn-pagar.lst-btn-pagar-alt:hover {
    background: #00B02D;
    border-color: #00B02D;
    color: #ffffff !important;
}
.lst-hint {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px 0;
}

/* ---------- Estado vacío ---------- */
.lst-empty-state {
    text-align: center;
    padding: 42px 20px;
    color: #64748b;
}
.lst-empty-state i {
    font-size: 46px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 12px;
}
.lst-empty-state h4 {
    color: #334155;
    margin-bottom: 6px;
    font-weight: 600;
}

/* ---------- Controles auxiliares y acciones de tabla ---------- */
.lst-select-cuenta {
    font-size: 12px !important;
}
.lst-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.lst-btn-tabla-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b !important;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.lst-btn-tabla-accion:hover,
.lst-btn-tabla-accion:focus {
    background: #00B02D;
    border-color: #00B02D;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 176, 45, 0.25);
}
.lst-btn-tabla-danger {
    color: #b91c1c !important;
    border-color: #fecaca;
    background: #fff5f5;
    padding: 6px 10px;
}
.lst-btn-tabla-danger:hover,
.lst-btn-tabla-danger:focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

/* ==========================================================================
   Modal moderno de registro de pago y carga de soporte (.lst-modal-pago)
   Usado en pagosenoficinaunificado.php y vistapagarclienteunificado.php
   ========================================================================== */
.lst-modal-pago .lst-modal-pago-dialog {
    max-width: 650px;
    width: 95%;
}
.lst-modal-pago .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
}
.lst-modal-pago .modal-header {
    padding: 15px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lst-modal-pago .modal-header::before,
.lst-modal-pago .modal-header::after {
    display: none;
}
.lst-modal-pago .modal-header .modal-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}
.lst-modal-pago .modal-header .modal-title i {
    color: #00B02D;
    font-size: 20px;
}
.lst-modal-pago .modal-header .close {
    margin: 0;
    opacity: 0.85;
    font-size: 22px;
    line-height: 1;
}
.lst-modal-pago .modal-header .close:hover {
    opacity: 1;
}
.lst-modal-pago .modal-body {
    padding: 18px 22px;
    max-height: 76vh;
    overflow-y: auto;
    background: #ffffff;
}
.lst-modal-banner {
    background: #f5fbf7;
    border: 1px solid #b3e6c0;
    border-left: 4px solid #00B02D;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 12.5px;
    color: #334155;
}
.lst-modal-banner strong {
    color: #0f172a;
}
.lst-modal-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.lst-modal-section:last-child {
    margin-bottom: 0;
}
.lst-modal-section-white {
    background: #ffffff;
}
.lst-modal-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #475569;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lst-modal-section-title i {
    color: #00B02D;
    font-size: 15px;
}
.lst-form-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -7px;
    margin-right: -7px;
}
.lst-form-col {
    width: 100%;
    padding: 0 7px;
    margin-bottom: 12px;
}
.lst-form-col:last-child {
    margin-bottom: 0;
}
@media (min-width: 600px) {
    .lst-form-col-half,
    .lst-form-col-third,
    .lst-form-col-quarter {
        width: 50%;
    }
    .lst-form-grid .lst-form-col {
        margin-bottom: 12px;
    }
}
@media (min-width: 768px) {
    .lst-form-col-third {
        width: 33.3333%;
    }
}
@media (min-width: 992px) {
    .lst-form-col-quarter {
        width: 25%;
    }
}
.lst-form-col-full {
    width: 100%;
    margin-bottom: 12px;
}
.lst-form-grid > .lst-form-col:last-child {
    margin-bottom: 0;
}
.lst-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
    line-height: 1.25;
}
.lst-field-label .required {
    color: #dc2626;
    margin-left: 2px;
}
.form-control.lst-input,
.lst-modal-pago .form-control.lst-input {
    height: 38px;
    padding: 7px 11px !important;
    font-size: 13px;
    color: #0f172a;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}
textarea.form-control.lst-input {
    height: auto !important;
    min-height: 82px;
    resize: vertical;
    line-height: 1.45;
}
.form-control.lst-input:focus,
.lst-modal-pago .form-control.lst-input:focus {
    border-color: #00B02D !important;
    box-shadow: 0 0 0 3px rgba(0, 176, 45, 0.14) !important;
    outline: none;
}
.form-control.lst-input[disabled],
.form-control.lst-input[readonly],
.lst-modal-pago .form-control.lst-input[disabled],
.lst-modal-pago .form-control.lst-input[readonly] {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
    cursor: not-allowed;
    opacity: 1;
}
.lst-modal-pago .lst-file-group .form-control.lst-input[readonly] {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    color: #0f172a !important;
    cursor: default;
}
.lst-modal-pago .lst-file-group {
    display: flex;
    width: 100%;
}
.lst-modal-pago .lst-file-group .input-group-btn {
    width: auto;
    display: flex;
}
.lst-modal-pago .lst-file-group .btn-file {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    margin: 0;
    white-space: nowrap;
}
.lst-monto-box {
    background: #f5fbf7;
    border: 1px solid #b3e6c0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 2px;
}
.lst-monto-box .lst-field-label {
    color: #00473D;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.lst-monto-box .form-control.lst-input,
.lst-modal-pago .lst-monto-box .form-control.lst-input {
    height: 42px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a !important;
    background-color: #ffffff !important;
    border-color: #80d498 !important;
}
.lst-monto-box .form-control.lst-input[disabled],
.lst-monto-box .form-control.lst-input[readonly],
.lst-modal-pago .lst-monto-box .form-control.lst-input[disabled] {
    background-color: #edf9f1 !important;
    color: #0f172a !important;
    border-color: #b3e6c0 !important;
}
.lst-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: #64748b;
}
.lst-modal-pago .modal-footer {
    padding: 13px 22px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.lst-modal-pago .modal-footer::before,
.lst-modal-pago .modal-footer::after {
    display: none;
}
.lst-modal-pago .modal-footer .btn {
    margin: 0;
}

.lst-col-checkbox {
    width: 40px !important;
}

.lst-hidden {
    display: none;
}

.lst-spinner-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ---------- Botones de acción adyacentes en celdas de tabla ---------- */
.lst-table td .lst-btn-tabla-accion + .lst-btn-tabla-accion {
    margin-left: 6px;
}


/* ==========================================================================
   Páginas de formulario (crear / editar) y historial de cambios compartido
   (antes sólo en servicios.css como .serv-*)
   ========================================================================== */
.lst-form-page {
    max-width: 960px;
    margin: 0 auto;
}
.lst-form-page .tab-pane {
    padding-top: 4px;
}
.lst-audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12.5px;
    color: #475569;
}

.lst-audit-meta strong {
    color: #0f172a;
}

/* Línea de tiempo para Historial de Cambios */
.lst-history-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
    margin-left: 8px;
    max-height: 290px;
    overflow-y: auto;
}

.lst-history-item {
    position: relative;
    margin-bottom: 14px;
}

.lst-history-item:last-child {
    margin-bottom: 0;
}

.lst-history-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00B02D;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 176, 45, 0.2);
}

.lst-history-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.lst-history-date {
    font-weight: 600;
    color: #1e293b;
}

.lst-history-user {
    color: #00594C;
    font-weight: 600;
    background: #edf9f1;
    border: 1px solid #b3e6c0;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
}

.lst-history-desc {
    font-size: 12.5px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.45;
}

.lst-history-empty {
    text-align: center;
    padding: 28px 16px;
    color: #64748b;
}

.lst-history-empty i {
    font-size: 32px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 8px;
}

.lst-history-empty p {
    margin: 0;
    font-size: 13px;
}
.lst-history-collapse-hidden {
    display: none;
}

/* Campo de edición en línea dentro de una celda (p. ej. cantidad de baremos) */
.lst-input-inline {
    width: 100%;
    min-width: 80px;
    height: 32px;
}

/* Columna de formulario que sólo contiene un botón: alineado con la base de los campos */
.lst-form-col-boton {
    display: flex;
    align-items: flex-end;
}
@media (max-width: 599px) {
    .lst-form-col-boton {
        justify-content: flex-start;
    }
}

/* Barra de botones sobre una tabla editable (teléfonos, interlocutores) */
.lst-toolbar-tabla {
    margin-bottom: 8px;
}

/* KPI cuyo valor es un texto (p. ej. nombre del último periodo ejecutado) */
.lst-kpi-value.lst-kpi-value-texto {
    font-size: 18px;
    line-height: 1.3;
}

/* Fila de un registro ya procesado / inactivo (sin acciones) */
.lst-table tbody tr.lst-fila-inactiva td {
    color: #64748b;
    background-color: #f8fafc;
}

/* Aviso dentro de un modal antes de una acción masiva o irreversible */
.lst-modal-banner.lst-modal-banner-alerta {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}
