/* =====================================================================
 * 2026-11-11 Formularios del gestor con el diseño de "Editar bono":
 *  - Cada formulario de alta/edición (div.form) va en tarjetas. Si tiene
 *    secciones (h4.title-section), formularios.js lo parte en una tarjeta
 *    por sección.
 *  - Títulos de sección en granate y mayúsculas.
 *  - Desplegables (Select2) a la misma altura y estilo que los campos.
 * El TPV del gastrobar (div.gastrobar) se queda como está.
 * Se carga después de global.css (intro_librerias_css.ctp).
 * ===================================================================== */

/* ---------- Tarjetas ---------- */
div.form:not(.gastrobar) fieldset.form-tarjeta,
div.form:not(.gastrobar) .form-seccion {
    background    : #fafafa;
    border        : 1px solid #e5e5e5;
    border-radius : 6px;
    padding       : 16px 20px 6px;
    margin-bottom : 18px;
}

div.form:not(.gastrobar) fieldset.form-con-secciones {
    background : none;
    border     : none;
    padding    : 0;
}

/* Las filas de bootstrap dentro de la tarjeta no necesitan tanto aire */
div.form:not(.gastrobar) .form-seccion > .row.mb-16:last-child,
div.form:not(.gastrobar) fieldset.form-tarjeta > .row.mb-16:last-child {
    margin-bottom : 10px;
}

/* ---------- Títulos de sección ---------- */
div.form:not(.gastrobar) h4.title-section {
    margin         : 0 0 12px;
    padding        : 0;
    border-left    : none;
    font-size      : 13px;
    font-weight    : 600;
    text-transform : uppercase;
    letter-spacing : 1px;
    line-height    : normal;
    color          : #a80532;
}

/* ---------- Checkboxes alineados con su texto ---------- */
div.form:not(.gastrobar) .input.checkbox {
    display     : flex;
    align-items : center;
    gap         : 8px;
}

div.form:not(.gastrobar) .input.checkbox label {
    margin : 0;
}

/* ---------- Desplegables Select2 (todo el gestor) ---------- */
.select2-container--default .select2-selection--single {
    height        : 38px;
    padding       : 0 12px;
    background    : #ededed;
    border        : none;
    border-radius : 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height : 38px;
    padding     : 0 24px 0 0;
    font-size   : 13px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top    : 6px !important;
    right  : 8px;
    height : 26px;
}

.select2-container--default .select2-selection--multiple {
    min-height    : 38px;
    background    : #ededed;
    border        : none;
    border-radius : 4px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border : none;
}

/* 2026-11-12: la tarjeta tiene que contener las columnas flotantes (p. ej. "Precios Gastrobares"
   en Productos, que va en columnas col-md-3 sin .row): clearfix */
div.form:not(.gastrobar) fieldset.form-tarjeta::after,
div.form:not(.gastrobar) .form-seccion::after {
    content : "";
    display : table;
    clear   : both;
}

/* Precios por gastrobar (Productos): el bloque también contiene sus columnas */
div.form:not(.gastrobar) .caja-precios-gastro::after {
    content : "";
    display : table;
    clear   : both;
}
