/* ═══════════════════════════════════════════════════════════════════════════
   tabler-compat.css — Capa de compatibilidad Bootstrap → Tabler
   Normaliza botones, tablas, cards, badges y espaciados para que las
   28 vistas escritas con Bootstrap clásico se vean bien bajo Tabler.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── BOTONES ─────────────────────────────────────────────────────────── */
/* Resetear botones Bootstrap a estética Tabler */
.btn {
    --tblr-btn-font-size: .875rem;
    --tblr-btn-padding-x: 1rem;
    --tblr-btn-padding-y: .5rem;
    font-size: var(--tblr-btn-font-size, .875rem) !important;
    padding: var(--tblr-btn-padding-y, .5rem) var(--tblr-btn-padding-x, 1rem) !important;
    border-radius: var(--tblr-border-radius, 4px) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    gap: .35rem;
    transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s;
}

/* Botones pequeños — Tabler los usa más compactos */
.btn-sm {
    --tblr-btn-padding-x: .75rem;
    --tblr-btn-padding-y: .3rem;
    font-size: .8rem !important;
    min-height: 32px;
}

/* Botones de acción en tablas — mantener tamaño táctil */
.btn-action {
    font-size: .8rem !important;
    padding: .3rem .7rem !important;
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}

/* Botón primary con gradiente de marca */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary.active {
    background: linear-gradient(135deg, #5a6fd6, #6a4192) !important;
}

/* Botón outline — bordes sutiles como Tabler */
.btn-outline-primary {
    border: 1.25px solid var(--tblr-primary, #667eea) !important;
    color: var(--tblr-primary, #667eea) !important;
    background: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-primary.active {
    background: var(--tblr-primary, #667eea) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border: 1.25px solid #d1d5db !important;
    color: #374151 !important;
    background: transparent !important;
}
.btn-outline-secondary:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

/* Botón danger */
.btn-danger {
    background: #e24b4a !important;
    border: none !important;
    color: #fff !important;
}
.btn-danger:hover { background: #d03b3a !important; }

/* Botón success (WA) */
.btn-wa {
    background: #25d366 !important;
    border: none !important;
    color: #fff !important;
}
.btn-wa:hover { background: #1ebe5d !important; }

/* Botón warning */
.btn-warning {
    color: #1f2937 !important;
    background: #f59e0b !important;
    border: none !important;
}

/* Botón info */
.btn-info {
    color: #fff !important;
    background: #3b82f6 !important;
    border: none !important;
}

/* ── BADGES ──────────────────────────────────────────────────────────── */
/* Fix: badges Bootstrap usan bg-* que Tabler no tiene */
.badge {
    font-size: .75rem !important;
    font-weight: 600 !important;
    padding: .25em .6em !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
}

/* Badge verde ACTIVO — texto blanco SIEMPRE */
.badge.bg-success,
.badge.bg-green,
.badge[class*="bg-green"] {
    background: #1d9e75 !important;
    color: #fff !important;
}

/* Badge rojo INACTIVO */
.badge.bg-danger,
.badge.bg-red,
.badge[class*="bg-red"] {
    background: #e24b4a !important;
    color: #fff !important;
}

/* Badge azul info */
.badge.bg-info,
.badge.bg-blue,
.badge[class*="bg-blue"] {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* Badge primary — Tabler usa su propio color primary como fondo,
   hay que forzar texto blanco */
.badge.bg-primary {
    background: #667eea !important;
    color: #fff !important;
}

/* Badge amarillo warning */
.badge.bg-warning,
.badge.bg-yellow,
.badge[class*="bg-yellow"] {
    background: #f59e0b !important;
    color: #1f2937 !important;
}

/* Badge gris secondary */
.badge.bg-secondary,
.badge.bg-gray,
.badge[class*="bg-gray"] {
    background: #6b7280 !important;
    color: #fff !important;
}

/* Badges de plan (colores personalizados TSL) */
.badge-plan {
    font-size: .7rem !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
    padding: .25em .6em !important;
    border-radius: 4px !important;
    text-transform: uppercase;
}
.badge-plan-presencia {
    background: #0ea5e9 !important;
    color: #fff !important;
}
.badge-plan-zona {
    background: #6366f1 !important;
    color: #fff !important;
}
.badge-plan-region {
    background: #7c3aed !important;
    color: #fff !important;
}
.badge-plan-manual {
    background: #64748b !important;
    color: #fff !important;
}

/* ── TABLAS ──────────────────────────────────────────────────────────── */
.table {
    margin-bottom: 0 !important;
    font-size: .85rem;
}
.table > :not(caption) > * > * {
    padding: .6rem .75rem !important;
    vertical-align: middle;
}
.table thead {
    background: #f8fafc;
}
.table thead th {
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb !important;
}
.table-hover tbody tr:hover {
    background: #f1f5f9;
}

/* Contenedor de tabla responsive con márgenes como Tabler */
.table-responsive {
    margin: 0;
}

/* ── CARDS ───────────────────────────────────────────────────────────── */
.card {
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.075) !important;
    border: 1px solid #e5e7eb !important;
    margin-bottom: 1.25rem !important;
    overflow: hidden;
}
.card-header {
    padding: .75rem 1rem !important;
    font-weight: 600;
    font-size: .85rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.card-body {
    padding: 1rem !important;
    overflow-wrap: anywhere;
}
.card.border-0 {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.075) !important;
}
.card.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,.075) !important;
}

/* ── DASHBOARD STAT CARDS — estilo unificado para todo el panel ────── */
.dash-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dash-num {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1e293b;
}

/* ── LISTAS ──────────────────────────────────────────────────────────── */
.list-group {
    border-radius: 8px;
    overflow: hidden;
}
.list-group-item {
    padding: .65rem 1rem !important;
    border-color: #e5e7eb !important;
    font-size: .85rem;
}

/* ── FORMULARIOS ──────────────────────────────────────────────────────── */
.form-control, .form-select {
    font-size: .875rem !important;
    padding: .45rem .75rem !important;
    border-radius: 6px !important;
    border-color: #d1d5db !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--tblr-primary, #667eea) !important;
    box-shadow: 0 0 0 2px rgba(102,126,234,.2) !important;
}
/* TSL1360 — el radio fijo de arriba partía los input-group (campo con ícono): cada pieza quedaba redondeada.
   Dentro de un grupo, los bordes internos van rectos y, en el grupo "flat" de Tabler, el foco lo marca el grupo entero. */
.input-group > .form-control:not(:first-child), .input-group > .form-select:not(:first-child) {
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
}
.input-group > .form-control:not(:last-child), .input-group > .form-select:not(:last-child) {
    border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
}
.input-group-text { border-color: #d1d5db; }
.input-group-flat > .input-group-text:first-child { border-radius: 6px 0 0 6px; }
.input-group-flat > .input-group-text:last-child  { border-radius: 0 6px 6px 0; }
.input-group-flat .form-control:focus { box-shadow: none !important; }
.input-group-flat:focus-within { border-radius: 6px; box-shadow: 0 0 0 2px rgba(102,126,234,.2); }
.input-group-flat:focus-within > .input-group-text { border-color: var(--tblr-primary, #667eea); }
.form-label {
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .3rem;
}

/* ── PAGINACIÓN CI4 → TABLER ────────────────────────────────────────── */
.pagination {
    gap: 2px;
    margin: 0;
}
.pagination .page-link {
    font-size: .8rem;
    padding: .25rem .55rem;
    color: var(--tblr-primary, #667eea);
    border-color: var(--tblr-border-color, #dee2e6);
    border-radius: 6px !important;
}
.pagination .page-item.active .page-link {
    background: var(--tblr-primary, #667eea);
    border-color: var(--tblr-primary, #667eea);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    color: #adb5bd;
}

/* ── SIDEBAR ENV BADGE ──────────────────────────────────────────────── */
.env-badge {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    padding: .4rem .6rem;
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}
.env-badge .env-label {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .05em;
    color: #fff;
    padding: .18em .5em;
    border-radius: 6px;
}
.env-badge .env-version {
    font-size: .65rem;
    font-weight: 700;
    color: #8b95a7;
    letter-spacing: .02em;
}

/* ── MISC ────────────────────────────────────────────────────────────── */
/* Text truncate con ellipsis para tablas */
.text-truncate-wrap {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Links de tabla hover */
.table a:not(.btn) {
    color: var(--tblr-primary, #667eea);
    text-decoration: none;
}
.table a:not(.btn):hover {
    text-decoration: underline;
}

/* Dropdown de Tabler — sincronizado */
.dropdown-menu {
    border-radius: 8px;
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: .4rem;
}
.dropdown-item {
    border-radius: 6px;
    padding: .4rem .75rem;
    font-size: .85rem;
}
.dropdown-item:hover {
    background: #f3f4f6;
}
.dropdown-item.active {
    background: var(--tblr-primary, #667eea);
    color: #fff;
}

/* Panel de detalles */
.detail-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    margin-bottom: .2rem;
}
.detail-value {
    font-size: .9rem;
    color: #111827;
    font-weight: 500;
}

/* Alertas */
.alert {
    border-radius: 8px;
    border: none;
    font-size: .85rem;
    display: block !important;
    flex-direction: unset !important;
    gap: unset !important;
}
.alert code {
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
}
.modal-body {
    padding: 1.25rem;
}
.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: .75rem 1.25rem;
}

/* Tooltips y popovers */
.tooltip-inner {
    font-size: .78rem;
    border-radius: 6px;
}

/* Gráfico de contacto en dashboard */
.chart-container {
    padding: 1rem;
}

/* Contenedor de filtros */
.filters-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Botón toggle sidebar en clásico — sincronizado */
.btn-sidebar-toggle {
    display: none;
}
@media (max-width: 767.98px) {
    .btn-sidebar-toggle { display: inline-flex !important; }
}

/* ── BOTONES DE ACCIÓN EN TABLAS — mismo ancho sin wrap ──────────── */
/* Todos los .btn-action dentro de tablas deben tener el MISMO ancho.
   102px cubre "Desactivar" que es el texto más largo.
   Además, forzamos nowrap en el grupo de acciones para evitar que
   3-4 botones se apilen verticalmente (como pasaba en Sitios y Blog
   donde la columna de acciones es angosta). */
.table td:last-child .btn-action {
    min-width: 102px;
    text-align: center;
    justify-content: center;
}
.table td:last-child [class*="d-flex"] {
    flex-wrap: nowrap !important;
}

/* ── BOTONES EN FORMULARIOS — pares Guardar/Cancelar uniformes ────── */
/* Botones submit + anchor de cancelar en los forms de edición */
form .d-flex.gap-2.mt-4 > .btn,
.d-flex.gap-2.mt-4 > .btn-primary,
.d-flex.gap-2.mt-4 > .btn-outline-secondary {
    min-width: 120px;
    text-align: center;
    justify-content: center;
}

/* Pares Todos/Ninguno en secciones de selección múltiple */
.d-flex.gap-2.flex-wrap.align-items-center > .btn-outline-primary,
.d-flex.gap-2.flex-wrap.align-items-center > .btn-outline-secondary {
    min-width: 100px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT DEL PANEL (TSL1358: movido desde el <style> de admin/layout_v2.php — el
   panel no lleva CSS en las vistas; todo vive acá, ver .claude/rules/panel-tabler.md).
   Los duplicados de .badge-plan, .btn-action, .btn-wa y .pagination que tenía el
   layout se borraron: ya estaban arriba (min-height de .btn-action quedó en 34px,
   que era el valor que ganaba).
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --tblr-primary: #667eea;
    --tblr-primary-rgb: 102, 126, 234;
}
body { font-family: var(--tblr-font-sans-serif, 'Inter', system-ui, sans-serif); }

/* ── Sidebar brand ─────────────────────────────────────── */
.navbar-vertical .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -.2px;
    padding: .9rem 1.2rem;
    margin: 0;
}
.navbar-vertical .navbar-brand:hover { color: rgba(255,255,255,.85) !important; }
.navbar-vertical .navbar-brand .tsl-mark { border-radius: 7px; vertical-align: -7px; }

/* ── Sidebar section headers ───────────────────────────── */
.nav-section-header {
    display: block;
    padding: .5rem 1.5rem .25rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #4a5568;
}

/* ── Sidebar: allow bottom-anchored env badge ─────────── */
.navbar-vertical .navbar-nav { flex-grow: 1; }

/* TSL367/368/369 — historial de este bug (medido con Playwright real, no estimado, tras
   que el owner confirmara 2 veces que seguía viendo la barra con flechas).
   TSL367 intentó volver el sidebar sticky+scroll-propio: NO tuvo efecto — Tabler YA
   declara `.navbar-vertical { position:fixed; overflow-y:scroll }` en su propio CSS a
   partir de este breakpoint (con más especificidad que mi regla), así que mi
   `position:sticky` nunca ganó. El `overflow-y:scroll` (no `auto`) es EL PROPIO TABLER —
   por eso la barra con flechas arriba/abajo (estilo clásico de Windows) siempre iba a
   aparecer en cuanto el contenido superara la altura visible, sin importar sticky/auto.
   TSL368 recortó el padding de los nav-link pero midió mal cuánto hacía falta.
   Medición real (Playwright, ventana 1366×700, sesión logueada real): brand 42.8px +
   15 nav-links a 40px c/u = 600px + 2 encabezados de sección a 28px c/u = 56px + el
   badge de entorno (env badge, padding INLINE de panel_env_helper.php, no CSS) a 66px +
   padding superior del <ul> 8px = 805px de contenido real contra 700px de alto de
   ventana → 105px de overflow REAL, confirmado con getBoundingClientRect(), no una
   estimación. El fix anterior sólo achicó 2 de los 5 componentes.
   Fix real (recorta los 5 componentes, sólo desktop >=992px — en mobile el sidebar es
   un menú colapsado/offcanvas distinto, se conserva el padding completo de Tabler,
   antipatrón documentado: touch target < 44px):
   - nav-link: padding .35rem → .15rem (ya no alcanzaba, se corrigió con datos reales)
   - nav-section-header: margin-top + padding recortados
   - navbar-brand: padding recortado
   - <ul> padding-top: .5rem → .25rem
   - badge de entorno: su padding es INLINE (panel_env_helper.php, compartido con el
     layout clásico) — se override acá con !important dirigido al último <li> del menú
     (única forma de ganarle a un style="" inline sin tocar el helper compartido).
   Con estos 5 recortes el contenido total baja a ~660px (verificado con el mismo
   script), con margen real bajo una ventana de 700px de alto — antes sólo llegaba a
   ~805px→~762px, insuficiente. El scroll independiente (aunque Tabler ya lo trae de
   fábrica) queda como red de seguridad para ventanas aún más bajas. */
@media (min-width: 992px) {
    /* TSL370 — la causa real que se me había pasado por alto: Tabler fija
       `overflow-y: scroll` (no `auto`) en `.navbar-vertical` — con `scroll` el
       navegador SIEMPRE dibuja la barra (con sus flechas arriba/abajo en Windows),
       tenga o no contenido para desplazar. Todos los recortes de altura de abajo
       eran necesarios pero nunca iban a hacer desaparecer la barra por sí solos,
       porque `scroll` no depende de si hay overflow real. Confirmado con captura
       real del owner en PROD tras TSL369: menú compacto, mucho espacio vacío debajo
       del badge, y la barra con flechas seguía ahí. */
    .navbar-vertical {
        overflow-y: auto !important;
    }
    /* TSL371 — con la causa real ya cerrada (TSL370: overflow-y:auto), el margen entre
       el contenido y el alto de ventana es amplio (~504px de contenido vs 700-900px
       típicos) — sobra espacio para que las filas respiren sin arriesgar que vuelva el
       scroll. El owner pidió más aire entre pestañas tras ver TSL369 demasiado
       apretado. Se afloja el padding manteniendo el `min-height:0` (sin eso Tabler
       vuelve a imponer 40px fijos) y el resto de los recortes queda en un punto medio. */
    .navbar-vertical .navbar-brand {
        padding: .7rem 1.2rem !important;
    }
    .navbar-vertical .nav-link {
        padding-top: .32rem !important;
        padding-bottom: .32rem !important;
        min-height: 0 !important;
    }
    .navbar-vertical .nav-section-header {
        margin-top: .5rem !important;
        padding-top: .35rem !important;
        padding-bottom: .18rem !important;
    }
    .navbar-vertical .navbar-nav.pt-lg-3 {
        padding-top: .4rem !important;
    }
    .navbar-vertical .navbar-nav > li:last-child {
        padding: .5rem 1.3rem !important;
    }
    .navbar-vertical .navbar-nav > li:last-child > span {
        padding: .35rem .58rem !important;
    }
}

/* ── UTILIDADES DEL PANEL (TSL1358) ───────────────────────────────────────
   Lo poco que Tabler no trae. Se usan combinadas con utilidades de Tabler
   (bg-light, border, rounded, p-2, small, font-monospace). Regla: .claude/rules/panel-tabler.md */
.scroll-box    { max-height: 260px; overflow-y: auto; }
.scroll-box-sm { max-height: 180px; }
.scroll-box-md { max-height: 340px; }
.scroll-box-lg { max-height: 600px; overflow: auto; }
/* Log de una tarea en vivo (SSE): líneas con text-success / text-danger / text-orange / text-primary. */
.log-box { font-size: .8rem; }

/* Tarjeta de plan elegible (Prestadores → crear/editar): marcada cuando su radio está tildado. */
.plan-card:has(input:checked) { border-color: var(--tblr-primary) !important; box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), .15); }

/* Regeneración (TSL451, movido de regen/index.php en TSL1358): buscador de sitios con ancho flexible
   y los 4 modos en grilla 2x2 en pantallas angostas (btn-group nativo no hace wrap). */
#regen-page .regen-site-search { flex: 1 1 110px; min-width: 90px; max-width: 220px; }
@media (max-width: 420px) {
    #regen-page #mode-group { flex-wrap: wrap; }
    #regen-page #mode-group .btn { flex: 1 1 calc(50% - 2px); }
}

/* ── LOGIN (auth/login.php, body.auth-page; movido de su <style> en TSL1358) ── */
.auth-page .tsl-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.6rem; letter-spacing: -.5px; color: var(--tblr-body-color); }
.auth-page .tsl-brand img { border-radius: 14px; box-shadow: 0 6px 18px rgba(var(--tblr-primary-rgb), .35); }
.auth-page .tsl-toggle-pass { cursor: pointer; }
.auth-page .input-group-flat .form-control,
.auth-page .input-group-flat .input-group-text { background-color: var(--tblr-bg-forms) !important; }
/* Autocompletado del navegador (Chrome/Edge con la contraseña guardada): pinta el input de azul claro por encima de
   cualquier background-color. Se tapa con una sombra interna del color del form, lo único que respeta :-webkit-autofill. */
.auth-page .input-group-flat .form-control:-webkit-autofill,
.auth-page .input-group-flat .form-control:-webkit-autofill:hover,
.auth-page .input-group-flat .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--tblr-bg-forms) inset !important;
    box-shadow: 0 0 0 1000px var(--tblr-bg-forms) inset !important;
    -webkit-text-fill-color: var(--tblr-body-color);
    caret-color: var(--tblr-body-color);
}

/* ── TABLAS EN CELULAR (owner 20/11: revisión del panel en celular) ──────────────────────────────────────────────────────
   1) `.card-body { overflow-wrap: anywhere }` (arriba) se heredaba a las tablas: el ancho mínimo de cada celda caía a una
      letra y el texto se partía letra por letra («Limpi/eza») en vez de scrollear dentro de `.table-responsive`.
      Las tablas vuelven a medir por palabra; los slugs en monoespaciado se pueden seguir partiendo.
   2) Listas con `table-mobile-md` (componente de Tabler: en celular cada fila es una tarjeta con `data-label`): las reglas de
      acciones de escritorio (mismo ancho y sin wrap, ver «BOTONES DE ACCIÓN EN TABLAS») no aplican en celular, así los
      botones entran y bajan de línea si hace falta. */
.card-body .table,
.table-responsive .table {
    overflow-wrap: normal;
}
.table .font-monospace {
    overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
    .table-mobile-md td:last-child [class*="d-flex"] { flex-wrap: wrap !important; }
    .table-mobile-md td:last-child .btn-action { min-width: 0; }
    .table-mobile-md td [style*="white-space:nowrap"] { white-space: normal !important; flex-wrap: wrap !important; }
}
/* Prestadores y Sitios usan `table-mobile-xl`: tarjetas hasta 1200 px (con la barra lateral, en tablet la tabla no entra). */
@media (max-width: 1199.98px) {
    .table-mobile-xl td:last-child [class*="d-flex"] { flex-wrap: wrap !important; }
    .table-mobile-xl td:last-child .btn-action { min-width: 0; }
    .table-mobile-xl td [style*="white-space:nowrap"] { white-space: normal !important; flex-wrap: wrap !important; }
}

/* ── ACCIONES DE FORMULARIO FIJAS ABAJO (owner 20/11) ────────────────────────────────────────────────────────────────────
   En los formularios largos (Editar sitio mide ~4 pantallas en celular) «Guardar» quedaba solo al final. `.form-acciones`
   deja la barra de botones pegada al borde inferior de la pantalla mientras se recorre el formulario. `.card` tiene
   `overflow:hidden` (arriba), que anula `position:sticky`: solo la tarjeta que contiene una barra así lo pierde. */
.form-acciones {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--tblr-bg-surface);
    border-top: 1px solid var(--tblr-border-color);
    padding: .75rem 0;
}
.card:has(.form-acciones) {
    overflow: visible !important;
}
