/* contenedor general */
.card-clientes {
    background: var(--bs-body-bg);
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.6rem rgba(0,0,0,.05);
}

/* GRID común para cabecera y filas */
.grid-clientes {
    display: grid;
    grid-template-columns: 64px 1.5fr 2fr 1.2fr 1fr auto;
    align-items: center;
}

    .grid-clientes > * {
        padding: .75rem 1rem;
    }

    /* cabecera “pegada” con sutil degradado */
    .grid-clientes.header {
        position: sticky;
        top: 0;
        font-weight: 600;
        z-index: 1;
        background: linear-gradient( 0deg, var(--bs-body-bg) 0%, rgba(255,255,255,.85) 70%);
    }

    /* raya entre filas y efecto hover */
    .grid-clientes:not(.header) {
        border-top: 1px solid var(--bs-border-color);
    }

        .grid-clientes:not(.header):hover {
            background: rgba(0,123,255,.04);
        }

    .grid-clientes img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
    }

/* search-box “pill” */
.search-pill {
    background: #e9f0fc;
    border-radius: 2rem;
}

    .search-pill input {
        background: transparent !important;
        border: 0;
    }

/* Compactar SOLO a partir de 768 px (Bootstrap md) */
@media (min-width: 768px) {
    .compact-input .form-control,
    .compact-input .form-select {
        font-size: .90rem;
        padding: .35rem .75rem;
        height: calc(1.5em + .70rem + 2px); /* ≈ 38 px */
    }
}




.validation-message {
    color: var(--bs-red);
    text-align: start;
}

.btn-custom {
    padding-top: .75rem;
    padding-bottom: .75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: .75rem;
    align-items: center;
    display: flex;
    gap: .5rem;
}

.fade-in {
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInGlow {
    0% {
        opacity: 0;
        transform: translateY(10px);
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: none;
    }
}

.fade-in-glow {
    animation: fadeInGlow 0.5s ease-out;
}

/* ----- Lista de conceptos de factura ----- */
.concepto-item {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: 1rem;
}

.concepto-item + .concepto-item {
    margin-top: 1rem;
}

.ph-spin {
    display: inline-block;
    animation: ph-spin-animation 1s linear infinite;
}

@keyframes ph-spin-animation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}