/* ------------------------------------------------------------------------ */
/*  Dashboard v2 — estilos acotados a .dashv2 (vista dashboard)             */
/* ------------------------------------------------------------------------ */

.dashv2 {
    padding: 4px 0 10px;
}

/* Header */
.dashv2 .dashv2-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.dashv2 .dashv2-title {
    font-family: "Raleway", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.dashv2 .dashv2-sub {
    font-size: 13.5px;
    color: #8A94A6;
    margin: 4px 0 0;
}

.dashv2 .dashv2-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dashv2 .dashv2-period {
    display: inline-flex;
    background: #fff;
    border: 1px solid #E4E8EF;
    border-radius: 10px;
    padding: 3px;
}

.dashv2 .dashv2-period button {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    border-radius: 7px;
    cursor: pointer;
}

.dashv2 .dashv2-period button.active {
    background: #1F2937;
    color: #fff;
}

.dashv2 .dashv2-pill-btn {
    background: #fff;
    border: 1px solid #E4E8EF;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.dashv2 .dashv2-pill-btn i {
    margin-right: 6px;
    color: #9CA3AF;
}

.dashv2 .dashv2-pill-btn .fa-spin {
    color: #3E97FF;
}

.dashv2 .dashv2-pill-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #E4E8EF;
    border-radius: 10px;
    padding: 8px 12px;
}

.dashv2 .dashv2-pill-select i {
    color: #9CA3AF;
}

.dashv2 .dashv2-pill-select select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    outline: none;
    max-width: 220px;
}

/* KPI cards con gráfico */
.dashv2 .dashv2-kpi-row {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
}

.dashv2 .dashv2-kpi-row > div {
    display: flex;
}

.dashv2 .dashv2-kpi-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(20, 40, 80, .05);
    border: 1px solid #EEF1F6;
    padding: 18px 20px 14px;
    margin-bottom: 20px;
    width: 100%;
}

.dashv2 .dashv2-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dashv2 .dashv2-kpi-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 600;
}

.dashv2 .dashv2-kpi-badge {
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 9px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dashv2 .dashv2-kpi-badge.up { background: #E7F7EF; color: #0E9F6E; }
.dashv2 .dashv2-kpi-badge.down { background: #FDECEC; color: #E02424; }

.dashv2 .dashv2-kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.15;
}

.dashv2 .dashv2-kpi-value small {
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    margin-left: 2px;
}

.dashv2 .dashv2-kpi-chart {
    height: 42px;
    margin: 8px -4px 2px;
}

.dashv2 .dashv2-kpi-caption {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

.dashv2 .dashv2-kpi-card.pending {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 118px;
    color: #B0B8C4;
}

.dashv2 .dashv2-kpi-card.pending i {
    font-size: 20px;
    margin-bottom: 6px;
}

.dashv2 .dashv2-kpi-card.pending .dashv2-kpi-label {
    color: #B0B8C4;
}

/* Chips sin gráfico */
.dashv2 .dashv2-chip-row {
    margin-bottom: 4px;
}

.dashv2 .dashv2-chip {
    background: #fff;
    border: 1px solid #EEF1F6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(20, 40, 80, .04);
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashv2 .dashv2-chip-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.dashv2 .dashv2-chip-icon.tipo-entero { background: #6B7CFF; }
.dashv2 .dashv2-chip-icon.tipo-moneda { background: #10B981; }
.dashv2 .dashv2-chip-icon.tipo-dias { background: #F59E0B; }

.dashv2 .dashv2-chip-label {
    display: block;
    font-size: 12px;
    color: #8A94A6;
}

.dashv2 .dashv2-chip-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
}

/* Accesos rápidos */
.dashv2 .dashv2-section-title {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 10px;
}

.dashv2 .dashv2-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.dashv2 .dashv2-shortcut-btn {
    background: #fff;
    border: 1px solid #E4E8EF;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashv2 .dashv2-shortcut-btn:hover {
    border-color: #C9D1DF;
    color: #1F2937;
}

.dashv2 .dashv2-shortcut-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}

.dashv2 .dashv2-shortcut-icon.pinned {
    background: #F5A623;
}

.dashv2 .dashv2-shortcut-icon.frequent {
    background: #3E97FF;
}

.dashv2 .dashv2-shortcuts-empty {
    font-size: 13px;
    color: #9CA3AF;
    padding: 8px 2px;
}

/* Cards grandes (gráfico ventas acumuladas / actividad reciente) */
.dashv2 .dashv2-card {
    background: #fff;
    border: 1px solid #EEF1F6;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(20, 40, 80, .05);
    padding: 20px 22px;
    margin-bottom: 20px;
}

.dashv2 .dashv2-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dashv2 .dashv2-card-title {
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.dashv2 .dashv2-card-sub {
    font-size: 12px;
    color: #9CA3AF;
    margin: 2px 0 0;
}

/* Actividad reciente */
.dashv2 .dashv2-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F2F4F8;
}

.dashv2 .dashv2-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashv2 .dashv2-activity-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #EEF1FF;
    color: #6B7CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.dashv2 .dashv2-activity-text {
    flex: 1;
    min-width: 0;
}

.dashv2 .dashv2-activity-main {
    font-size: 13px;
    color: #1F2937;
    display: block;
}

.dashv2 .dashv2-activity-main b {
    font-weight: 600;
}

.dashv2 .dashv2-activity-extra {
    font-size: 12px;
    color: #9CA3AF;
    display: block;
    margin-top: 1px;
}

.dashv2 .dashv2-activity-time {
    font-size: 11.5px;
    color: #9CA3AF;
    white-space: nowrap;
}

.dashv2 .dashv2-activity-empty {
    font-size: 13px;
    color: #9CA3AF;
    padding: 10px 0;
}

@media (max-width: 767px) {
    .dashv2 .dashv2-header { flex-direction: column; }
}
