/*
 * Sprint MAESTRO v2 B1: estilo cabecera de listas.
 * Compatible Bootstrap 3 (no romper layout legacy).
 */
.list-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--fs-bg);
    border: 1px solid var(--fs-line);
    border-radius: 4px;
    padding: 12px 20px;
    margin: 0 0 16px 0;
}

.list-header__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--fs-text-body);
}

.list-header__new {
    white-space: nowrap;
}

.list-header__new .fas,
.list-header__new .fa {
    margin-right: 6px;
}

@media (max-width: 600px) {
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .list-header__new {
        width: 100%;
        text-align: center;
    }
}

/* Sprint MAESTRO v2 D1: buscador grande live search */
.search-input--large {
    width: 100%;
    max-width: 480px;
    font-size: 16px;
    padding: 10px 14px;
    border: 1px solid var(--fs-line-strong);
    border-radius: 4px;
    margin: 8px 0 16px 0;
}
.search-input--large:focus {
    border-color: var(--fs-brand-line);
    outline: none;
    box-shadow: 0 0 0 2px var(--fs-brand-glow);
}

/* Sprint FIX-VALIDATION-BUGS B3: header de form/view + grupo de acciones */
.list-header__search {
    flex: 1 1 320px;
    max-width: 480px;
    margin: 0 16px;
}
.list-header__actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.list-header__actions .btn { white-space: nowrap; }

.view-header,
.form-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--fs-bg);
    border: 1px solid var(--fs-line);
    border-radius: 4px;
    padding: 12px 20px;
    margin: 0 0 16px 0;
}
.view-header__title,
.form-header__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--fs-text-body);
}
.view-header__actions,
.form-header__actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.view-header__actions .btn,
.form-header__actions .btn { white-space: nowrap; }
@media (max-width: 600px) {
    .view-header,
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Sprint FIX-VALIDATION-BUGS B4: form_guard estado durante submit */
form.is-submitting button[type=submit],
form.is-submitting input[type=submit] {
    opacity: 0.6;
    cursor: progress;
}

/* Sprint FIX-VALIDATION-BUGS B3: botones de accion clonados al header */
.form-buttons-top {
    background: var(--fs-bg);
    border: 1px solid var(--fs-line);
    border-radius: 4px;
    padding: 10px 16px;
    margin: 0 0 16px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.form-buttons-top__inner {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}
.form-buttons-top .btn {
    white-space: nowrap;
}
.address-block-top-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    margin-bottom: 12px;
}
