/* static/app/perfil/facturacion.css */

/* =========================
   FACTURACIÓN
========================= */

.facturacion-page{
    max-width:980px;
    margin:0 auto;
    padding:18px 0 32px 0;
}

/* =========================
   LISTA
========================= */

.facturas-lista{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* =========================
   ITEM FACTURA
========================= */

.factura-item{
    display:flex;
    align-items:center;
    justify-content:space-between;

    width:100%;
    box-sizing:border-box; /* 🔥 CLAVE */

    padding:16px 18px;

    border:1px solid #d0c8bb;
    border-radius:14px;

    background:#ffffff;

    gap:16px;
}

/* =========================
   BLOQUE IZQUIERDA
========================= */

.factura-left{
    display:flex;
    flex-direction:column;
    gap:4px;

    min-width:0; /* 🔥 CLAVE para evitar overflow */
}

/* =========================
   BLOQUE DERECHA
========================= */

.factura-right{
    display:flex;
    align-items:center;
    gap:12px;

    flex-shrink:0; /* 🔥 evita que rompa layout */
}

/* =========================
   TEXTO
========================= */

.factura-concepto{
    font-size:14px;
    font-weight:500;
    color:#2c3c3d;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.factura-fecha{
    font-size:12px;
    color:#8a8375;
}

.factura-importe{
    font-size:14px;
    font-weight:600;
    color:#92180b;

    white-space:nowrap;
}

/* =========================
   BOTÓN
========================= */

.btn-pdf{
    font-size:12px;
    padding:7px 12px;

    border-radius:8px;

    background:#375e65;
    color:#ffffff;

    text-decoration:none;
    font-weight:500;

    white-space:nowrap;

    transition:all 0.15s ease;
}

.btn-pdf:hover{
    background:#2c4c52;
}

/* =========================
   SIN PDF
========================= */

.sin-pdf{
    font-size:12px;
    color:#8a8375;
    font-style:italic;

    white-space:nowrap;
}

/* =========================
   HOVER
========================= */

.factura-item:hover{
    background:#f2efe9;
}