/* ==========================================================================
   Ventana de "pedidos pendientes de pago" (#modal-recupero-venta-impago): sale al entrar en la home, categorías y fichas
   cuando el cliente tiene pedidos sin pagar. El marcado vive en _Layout y _LayoutIndex (cabecera, cuerpo y pie) y la tabla
   de pedidos se pinta con la plantilla Mustache #templateRecuperoVentasPagos; aquí solo se cambia el aspecto, no las clases
   ni los ids que usa el JS (btnRecuperoAnular, btnRecuperarPagar).
   Estilo de la tienda: DM Sans, rojo de marca, tinta #222326, líneas #e9e7e5.
   ========================================================================== */
#modal-recupero-venta-impago .modal-dialog {
    max-width: 580px;
}
#modal-recupero-venta-impago .modal-content {
    overflow: hidden;
    font-family: var(--ro-font, 'DM Sans', Arial, sans-serif);
    color: var(--ro-ink, #222326);
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(34, 35, 38, .30);
}

/* Cabecera: título y cierre */
#modal-recupero-venta-impago .modal-header {
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 6px;
    border: 0;
}
#modal-recupero-venta-impago .modal-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--ro-ink, #222326);
}
#modal-recupero-venta-impago .modal-header .close {
    /* El CSS heredado lo posiciona en absoluto sobre la esquina y tapaba el final del título: vuelve al flujo flex */
    position: static;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin: -2px 0 0;
    padding: 0;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    color: #736470;
    text-shadow: none;
    opacity: 1;
    background: #f5f1f3;
    border-radius: 50%;
    transition: background-color .15s, color .15s;
}
#modal-recupero-venta-impago .modal-header .close:hover {
    color: #fff;
    background: var(--ro-ink, #222326);
}

/* Cuerpo: tabla de pedidos */
#modal-recupero-venta-impago .modal-body {
    padding: 8px 24px 4px;
}
#modal-recupero-venta-impago .modal-body .table {
    width: 100%;
    margin: 0;
    font-size: 14px;
    color: var(--ro-ink, #222326);
    border-collapse: collapse;
}
#modal-recupero-venta-impago .modal-body .table thead th {
    padding: 8px 8px 8px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ro-muted, #686a70);
    border: 0;
    border-bottom: 1px solid var(--ro-line, #e9e7e5);
}
#modal-recupero-venta-impago .modal-body .table tbody td {
    padding: 14px 8px 14px 0;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid var(--ro-line, #e9e7e5);
}
#modal-recupero-venta-impago .modal-body .table tbody tr:last-child td {
    border-bottom: 0;
}
/* Sin el rayado de la tabla heredada */
#modal-recupero-venta-impago .modal-body .table-striped tbody tr:nth-of-type(odd),
#modal-recupero-venta-impago .modal-body .table-striped tbody tr:nth-of-type(even) {
    background: transparent;
}
/* Importe en rojo de marca, alineado a la derecha antes del botón */
#modal-recupero-venta-impago .modal-body .table tbody td:nth-child(3) {
    font-weight: 700;
    white-space: nowrap;
    color: var(--ro-brand, #d9263b);
}
#modal-recupero-venta-impago .modal-body .table tbody td:last-child,
#modal-recupero-venta-impago .modal-body .table thead th:last-child {
    padding-right: 0;
    text-align: right;
}

/* Botón "Pagar" */
#modal-recupero-venta-impago .btnRecuperarPagar {
    min-height: 38px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
    background: var(--ro-brand, #d9263b);
    border: 0;
    border-radius: 8px;
    transition: background-color .15s;
}
#modal-recupero-venta-impago .btnRecuperarPagar:hover,
#modal-recupero-venta-impago .btnRecuperarPagar:focus-visible {
    background: var(--ro-brand-dark, #b71c2e);
}

/* Pie: botón de cerrar, secundario */
#modal-recupero-venta-impago .modal-footer {
    justify-content: flex-end;
    padding: 12px 24px 24px;
    border: 0;
}
#modal-recupero-venta-impago .modal-footer .btnRecuperoAnular {
    min-height: 40px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ro-ink, #222326);
    cursor: pointer;
    background: #fff;
    border: 1px solid #dcd7da;
    border-radius: 8px;
    transition: border-color .15s, background-color .15s;
}
#modal-recupero-venta-impago .modal-footer .btnRecuperoAnular:hover,
#modal-recupero-venta-impago .modal-footer .btnRecuperoAnular:focus-visible {
    background: #faf8f9;
    border-color: var(--ro-ink, #222326);
}

@media (max-width: 575px) {
    #modal-recupero-venta-impago .modal-dialog {
        margin: 12px;
    }
    #modal-recupero-venta-impago .modal-header {
        padding: 20px 18px 4px;
    }
    #modal-recupero-venta-impago .modal-title {
        font-size: 18px;
    }
    #modal-recupero-venta-impago .modal-body {
        padding: 6px 18px 2px;
    }
    #modal-recupero-venta-impago .modal-body .table {
        font-size: 13px;
    }
    #modal-recupero-venta-impago .modal-body .table thead th {
        font-size: 11px;
        white-space: normal;
    }
    #modal-recupero-venta-impago .btnRecuperarPagar {
        min-height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }
    #modal-recupero-venta-impago .modal-footer {
        padding: 10px 18px 20px;
    }
    #modal-recupero-venta-impago .modal-footer .btnRecuperoAnular {
        width: 100%;
    }
}
