﻿/* Dashboard — estilo inspirado en el screenshot (ejecutivo) */

.page-avance {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #212529;
    padding: 1rem;
}

/* Title */
.page-title {
    font-weight: 600;
    font-size: 1.6rem;
}

/* Filters */
.filtros-row .form-control-sm {
    height: calc(1.5rem + 0.5rem);
}

/* Alert */
.alert-info {
    background-color: #d9f5fb;
    color: #04506b;
    border: 0;
    border-radius: 6px;
    font-weight: 500;
}

/* KPI cards container (horizontal scroll) */
.kpi-cards {
    overflow: hidden;
}

.kpi-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 6px;
    align-items: stretch;
}

.kpi-card {
    min-width: 230px;
    max-width: 260px;
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.kpi-number {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 6px;
}

.kpi-sub {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Progress */
.progress-header {
    font-weight: 600;
    margin-bottom: 8px;
}

.progress {
    height: 12px;
    background: #efefef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-adv {
    background: linear-gradient(90deg,#ffb36b,#ff8a00);
}

/* Tabs */
.tabs {
    margin-top: 12px;
    margin-bottom: 6px;
}

    .tabs .tab {
        border: 0;
        background: transparent;
        padding: 10px 14px;
        margin-right: 8px;
        font-weight: 600;
        color: #6c757d;
    }

        .tabs .tab.active {
            color: #ff6a00;
            border-bottom: 3px solid #ff6a00;
        }

/* Exec summary card */
.exec-summary .summary-block {
    padding: 10px 0;
}

.summary-title {
    font-size: 0.85rem;
    color: #6c757d;
}

.summary-value {
    font-size: 1.35rem;
    font-weight: 600;
}

/* AvanceTable related (if using your component) keep the sticky header visuals */
.sticky-header th {
    background: #fff !important;
}

/* Table tweaks for executive look */
.executive-table th, .executive-table td {
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
}

.ventas-table th, .ventas-table td {
    padding: 0.5rem 0.8rem;
    font-size: 0.90rem;
}

/* Helpers */
.p-3.text-muted {
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kpi-card {
        min-width: 200px;
        max-width: 220px;
    }

    .page-title {
        font-size: 1.25rem;
    }
}

/* Evitar saltos de línea en números y mantener la descripción con ellipsis */
.ventas-table td.number-col,
.ventas-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /* Columna descripción truncada en una sola línea */
    .ventas-table td.desc-col,
    .ventas-table th.desc-col {
        max-width: 320px; /* ajuste según necesidad */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Píldoras de porcentaje */
.pct-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Estados */
.pct-green {
    background-color: #e6f8ed; /* verde pálido */
    color: #1b5e20; /* verde texto */
    border: 1px solid rgba(27,94,32,0.12);
}

.pct-orange {
    background-color: #fff7e6; /* naranja pálido */
    color: #a65a00; /* naranja oscuro */
    border: 1px solid rgba(166,90,0,0.12);
}

.pct-red-pale {
    background-color: #fbefef; /* rojo pálido */
    color: #7a1b1b; /* rojo oscuro */
    border: 1px solid rgba(122,27,27,0.08);
}

/* Opcional: estilo para cuando no hay valor */
.pct-none {
    color: #6c757d;
    background: transparent;
    font-weight: 500;
}
