﻿.ds-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ds-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ds-gray-800);
}

    .ds-label .required {
        color: var(--ds-danger);
        margin-left: 2px;
    }

.btnBuscarpor {
    background-color: var(--ds-primary-mid);
    color: white;
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

    .btnBuscarpor:hover {
        background-color: var(--ds-primary-hover);
        color: white;
    }

.btnBuscarpor-activo {
    background-color: var(--ds-primary);
    color: white;
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.20);
}

    .btnBuscarpor-activo:hover {
        background-color: var(--ds-primary-hover);
        color: white;
    }

.ds-input,
.ds-select,
.ds-textarea {
    height: 38px;
    padding: 0 12px;
    border: 0.5px solid var(--ds-gray-300);
    border-radius: var(--ds-radius);
    font-size: 13px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--ds-gray-900);
    background: #fff;
    transition: var(--ds-transition);
    width: 100%;
}



/*ImagenFormularios*/
.divtotal {
    padding: 2% 4% 2% 4%;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.dash-wrapper {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Encabezado ── */
.dash-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

    .dash-header h1 {
        font-size: 18px;
        font-weight: 600;
        color: var(--ds--text-1);
    }

    .dash-header p {
        font-size: 12px;
        color: var(--ds--text-all);
        margin-top: 2px;
    }

/* ── KPI grid ── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 1.25rem;
}

.kpi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
}

.kpi-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    line-height: 1;
}

    .kpi-value.danger {
        color: #b91c1c;
    }

.kpi-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

.kpi-accent {
    border-top: 3px solid #0d9488;
}

.kpi-accent2 {
    border-top: 3px solid #fd2626;
}

.kpi-accent3 {
    border-top: 3px solid #d1d819;
}

.kpi-accent4 {
    border-top: 3px solid #0d9488;
}

/* ── Charts row ── */
.charts-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.charts-row2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
}

.chart-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

/* ── Leyenda ── */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #6b7280;
}

    .legend span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Progress bars ── */
.prog-row {
    margin-bottom: 12px;
}

.prog-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.prog-track {
    background: #f3f4f6;
    border-radius: 4px;
    height: 7px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease;
}

    .prog-fill.green {
        background: #10b981;
    }

    .prog-fill.amber {
        background: #f59e0b;
    }

    .prog-fill.red {
        background: #ef4444;
    }

.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 99px;
}

.badge-ok {
    background: #d1fae5;
    color: #065f46;
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.prog-foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 11px;
    color: #6b7280;
}

    .prog-foot strong {
        color: #111827;
    }