/* /Feature/Clientes/Pages/DetalleCompletoCliente.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════
   DETALLE COMPLETO CLIENTE - ESTILOS MEJORADOS
   ═══════════════════════════════════════════════════════════════ */

/* Panel de notas — altura máxima para sticky scroll */

/* Panel de notas sticky */
.dcp-notes-panel[b-g9gk5fi84r] {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

/* Scrollbar sutil en el panel de notas */
.dcp-notes-panel[b-g9gk5fi84r]::-webkit-scrollbar { width: 4px; }
.dcp-notes-panel[b-g9gk5fi84r]::-webkit-scrollbar-track { background: transparent; }
.dcp-notes-panel[b-g9gk5fi84r]::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }

/* ═══════════════════════════════════════════════════════════════
   NIVELES DE TARIFA CON BARRAS DE PROGRESO
   ═══════════════════════════════════════════════════════════════ */

.niveles-tarifa[b-g9gk5fi84r] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nivel-item[b-g9gk5fi84r] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.nivel-item--completed[b-g9gk5fi84r] {
    background: #f0fdf4;
    border-color: #86efac;
}

.nivel-item--active[b-g9gk5fi84r] {
    background: #ecfdf5;
    border: 2px solid #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.nivel-header[b-g9gk5fi84r] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.nivel-marker[b-g9gk5fi84r] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nivel-item--completed .nivel-marker[b-g9gk5fi84r],
.nivel-item--active .nivel-marker[b-g9gk5fi84r] {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.nivel-item--active .nivel-marker[b-g9gk5fi84r] {
    animation: pulse-b-g9gk5fi84r 2s infinite;
}

@keyframes pulse-b-g9gk5fi84r {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.nivel-info[b-g9gk5fi84r] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nivel-nombre[b-g9gk5fi84r] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.nivel-item--active .nivel-nombre[b-g9gk5fi84r] {
    color: #059669;
}

.nivel-rango[b-g9gk5fi84r] {
    font-size: 0.75rem;
    color: #64748b;
}

.nivel-precio[b-g9gk5fi84r] {
    font-size: 0.875rem;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}

.nivel-progress-bar[b-g9gk5fi84r] {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.nivel-progress-fill[b-g9gk5fi84r] {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejoras generales de cards */
.dcp-card[b-g9gk5fi84r] {
    transition: all 0.3s ease;
}

.dcp-card:hover[b-g9gk5fi84r] {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 860px) {
    .dcp-notes-panel[b-g9gk5fi84r] {
        position: static;
        max-height: none;
    }
}

/* Tarifa / libraje — espacio para hitos y scroll horizontal si hay muchos niveles (CSS con alcance) */
.dcp-tarifa-progress-wrap[b-g9gk5fi84r] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.dcp-tarifa-milestones[b-g9gk5fi84r] {
    gap: 0.35rem;
    min-width: min(100%, 28rem);
}

.dcp-tarifa-milestones > div[b-g9gk5fi84r] {
    min-width: 0;
    flex: 1 1 0;
}

.dcp-tarifa-milestones .text-center[b-g9gk5fi84r] {
    max-width: 100%;
}

.dcp-tarifa-milestones .whitespace-nowrap[b-g9gk5fi84r] {
    white-space: normal;
    line-height: 1.25;
    hyphens: auto;
    overflow-wrap: anywhere;
}
