/* MinCiencia Documentos Presupuestarios — estilos públicos */

.mdp-wrapper {
    --mdp-border: #E5E7EB;
    --mdp-text: #1F2937;
    --mdp-text-muted: #6B7280;
    --mdp-badge-anio-bg: #F3F4F6;
    --mdp-badge-anio-text: #374151;
    --mdp-badge-tipo-bg: #D1FAE5;
    --mdp-badge-tipo-text: #047857;
    --mdp-accent: #34D399;
    --mdp-accent-dark: #10B981;
    font-family: inherit;
    color: var( --mdp-text );
    box-sizing: border-box;
}

.mdp-wrapper *,
.mdp-wrapper *::before,
.mdp-wrapper *::after {
    box-sizing: border-box;
}

.mdp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.mdp-filtros {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mdp-filtro-label {
    font-size: 14px;
    color: var( --mdp-text-muted );
}

.mdp-select-anio,
.mdp-select-tipo {
    padding: 8px 32px 8px 12px;
    border-radius: 8px;
    border: 1px solid var( --mdp-border );
    background: #fff;
    color: var( --mdp-text );
    font-size: 14px;
}

.mdp-resultados-count {
    font-size: 13px;
    color: var( --mdp-text-muted );
}

.mdp-empty-state {
    color: var( --mdp-text-muted );
    text-align: center;
    padding: 30px 0;
}

.mdp-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
    gap: 18px;
}

.mdp-card {
    background: #fff;
    border: 1px solid var( --mdp-border );
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mdp-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.mdp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.mdp-badge-anio {
    background: var( --mdp-badge-anio-bg );
    color: var( --mdp-badge-anio-text );
}

.mdp-badge-tipo {
    background: var( --mdp-badge-tipo-bg );
    color: var( --mdp-badge-tipo-text );
}

.mdp-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var( --mdp-text );
    line-height: 1.35;
}

.mdp-card-desc {
    font-size: 13px;
    color: var( --mdp-text-muted );
    line-height: 1.5;
    margin: 0 0 8px;
    flex-grow: 1;
}

.mdp-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var( --mdp-accent-dark );
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: auto;
}

.mdp-card-btn:hover {
    background: var( --mdp-accent );
    color: #fff;
}

.mdp-card-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mdp-card-btn-disabled {
    background: #E5E7EB;
    color: var( --mdp-text-muted );
    cursor: not-allowed;
}

@media ( max-width: 600px ) {
    .mdp-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .mdp-select-anio,
    .mdp-select-tipo {
        flex: 1 1 auto;
    }
}
