﻿/* ===== Forms ===== */

form {
    max-width: 720px;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

legend {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 4px;
}

.form-group input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5f5;
    font-size: 14px;
}

.form-group span {
    font-size: 12px;
    color: #dc2626;
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* =========================
   FILTROS
   ========================= */

.filters {
    display: flex;
    width: 100%;
    max-width: fit-content;

    align-items: flex-end;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.filters span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 0.25rem;
}

/* Contenedor label + input */
.filters > div {
    display: flex;
    flex-direction: column;
}

/* Inputs */
.filters input[type="text"],
.filters select {
    min-width: 180px;
    padding: 0.45rem 0.6rem;

    border: 1px solid #cbd5e1;
    border-radius: 6px;

    font-size: 0.9rem;
    background: #fff;
}

.filters input::placeholder {
    color: #94a3b8;
}

/* Focus */
.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Botón */
.filters .btn-primary {
    height: 36px;
    padding: 0 1rem;

    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.filters .btn-primary:hover {
    background: #1d4ed8;
}

/* Responsive */
@media (max-width: 1024px) {
    .filters {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .filters input,
    .filters select {
        min-width: 100%;
    }

    .filters .btn-primary {
        width: 100%;
    }
}