/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* == Theme-scoped component tokens (auto-generated) == */
:root {
  --kpi-gap: 16px;
  --kpi-peek: 2px;
  --kpi-radius: var(--radius-m);
  --kpi-shadow: var(--shadow-s);
  --kpi-card-w-min: 260px;
  --kpi-card-w-mob: 78vw;
  --kpi-card-w-desktop: 360px;
  --kpi-amount: #38bdf8;
  --kpi-bg: #ffffff;
  --kpi-meta: #8b93a1;
  --kpi-title: #a3aab3;
  --success-bg: var(--success-10);
  --success-ink: var(--success-80);
  --success-border: var(--success);
  --warning-bg: var(--warning-10);
  --warning-ink: var(--warning-80);
  --warning-border: var(--warning);
  --error-bg: var(--error-10);
  --error-ink: var(--error-80);
  --error-border: var(--error);
  --info-bg: var(--info-10);
  --info-ink: var(--info-80);
  --info-border: var(--info);
}

/* == Cleaned & Optimized ==============================
   - Global resets & typography
   - Tables (tabla-proyectos)
   - Pills & estados
   - Menú de tabla (acciones)
   - Forms (JetFormBuilder + helpers)
   - Layout (header, sidebar, content)
   - Cards (BEM)
   - KPI Scroller
   - Popups (backdrop blur)
   - Tabs & Focus states
   - User card & menu (sidebar)
   - Effects (fade-up)
   ==================================================== */
/* Body */
.brx-body {
  background-color: var(--bg-body);
}
body::-webkit-scrollbar {
  position: absolute; /* truco: las dibuja flotando encima */
}
html,
body {
  scrollbar-gutter: stable; /* sin saltos al aparecer */
  scrollbar-width: thin; /* en Firefox, barra más discreta */
  scrollbar-color: var(--neutral-500, #9ca3af) transparent;
}

:root,
:host {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial;
}
body,
input,
btn,
textarea {
  font-family: var(
    --font-sans,
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial
  );
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(
    --font-sans,
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial
  );
}
#brx-content {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}
#brxe-sidebar {
  background-color: var(--bg-surface);
  position: fixed;
  bottom: 0;
  z-index: 18;
  width: var(--sidebar-width);
  height: calc(100% - var(--header-height));
}
body.full-size #brx-content {
  margin-top: 0px;
  margin-left: 0px;
  width: 100vw;
}
@media (max-width: 991px) {
  #brx-content {
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    padding-bottom: 90px;
  }
  #brxe-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
}
.section {
  padding: 0 var(--l-space-m) var(--l-space-6xl) var(--l-space-m);
}
.container--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(38rem, 100%), 1fr));
  grid-auto-flow: row;
  gap: var(--c-space-l);
  align-items: stretch;
  justify-content: center;
}
.container--flex {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: var(--l-space-l);
}
/* Header */
.header {
  width: 100%;
  height: var(--header-height);
  background-color: var(--primary);
  padding: var(--l-space-m);
}
.header__left {
  width: var(--sidebar-width);
  background-color: red;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: var(--l-space-m);
}
.header__right {
  width: calc(100% - var(--sidebar-width));
  background-color: blue;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: var(--l-space-m);
}
/* Sidebar */
.sidebar {
  padding: var(--l-space-l) var(--l-space-s);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 20;
}
.sidebar-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  row-gap: var(--l-space-xs);
}
.sidebar-btn {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: var(--c-space-xs) var(--c-space-xl);
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: var(--text-base);
  color: var(--text-body);
  border-radius: var(--radius-full);
  letter-spacing: 0.5;
}
.sidebar-title {
  font-size: inherit;
  font-weight: 500;
  color: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.sidebar-chevron {
  font-size: var(--text-xs);
  color: inherit;
}
.sidebar-icon__wrap {
  min-width: 14px;
  min-height: 14px;
  display: flex;
  flex-direction: row;
  align-self: center;
  justify-content: center;
  align-items: center;
}
.sidebar-icon {
  width: 19px;
  height: 21px;
  color: inherit;
}
.sidebar-icon path {
  fill: currentColor;
}
.sidebar-btn:hover {
  background-color: var(--primary-l-3);
  color: var(--text-title);
}
/* Oculta el ícono por defecto */
.sidebar-btn .fa-chevron-right {
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Muestra el ícono al hacer hover o si está activo */
.sidebar-btn:hover .fa-chevron-right,
.sidebar-btn[aria-current="page"] .fa-chevron-right {
  opacity: 1;
  transform: translateX(0);
}

/* Hover (solo se aplica si NO está activo) */
.sidebar-btn:not([aria-current="page"]):hover {
  background-color: var(--text-title-10); /* O el color que uses para hover */
}
/* Botón activo: mantiene color primario */
.sidebar-btn[aria-current="page"] {
  background-color: var(--primary);
  color: var(--text-black);
}
.sidebar-btn.is-active {
  background-color: var(--primary);
  color: var(--text-black);
}
/* Logo */
.logo {
  margin-top: 6px;
}

/* Blur en el fondo cuando el popup está abierto */
.brx-popup:not(.brx-infobox-popup):not(.brx-infobox-popup-builder)
  .brx-popup-backdrop {
  position: fixed;
  inset: 0;
  opacity: 1;
  visibility: visible;
  background-color: rgba(16, 16, 16, 0.5);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
    opacity 0.3s ease;
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .brx-popup:not(.brx-infobox-popup):not(.brx-infobox-popup-builder)
    .brx-popup-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

/* Tabs */
#brxe-rwqmbb > .tab-menu .tab-title.brx-open {
  box-shadow: var(--shadow-m);
}
/* Focus */
/* 1) Apagar el tap highlight en TODO lo clickeable (y en sus hijos) */
:root,
html,
body,
a,
btn,
input,
label,
summary,
[role="btn"],
.brxe-btn,
.bricks-btn,
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}
/* 2) Quitar el ring de foco sólo en tap, pero mantener accesibilidad con focus-visible */
a:focus,
btn:focus,
[role="btn"]:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
}
/* 3) Si tu tema pinta un azul en :active, neutralizalo */
a:active,
btn:active,
[role="btn"]:active,
.brxe-btn:active,
.bricks-btn:active {
  background-color: inherit;
  box-shadow: none !important;
}
/* 4) Inputs en iOS suelen traer estilos propios */
input,
select,
textarea,
btn {
  -webkit-appearance: none;
  appearance: none;
}

/* Helpers de layout (fluido, sin breakpoints) */
.grid {
  display: grid;
  gap: var(--c-space-l);
}
.grid--auto-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
}
.grid--auto-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
}

.grid--auto-4 {
  display: grid;
  gap: var(--c-space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}
.grid--auto-2-alt {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
}
.stack > * + * {
  margin-top: var(--c-space-l);
}
.container-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 9999;  
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  margin-top: var(--l-space-s);
  margin-bottom: var(--l-space-s);
}

/* Page */
.page__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
}
.page__title {
  font-size: var(--text-xl);
  color: var(--text-title);
  font-weight: 600;
  line-height: 1.2;
}
/* texto cambia cuando el header tiene .scrolling */
@supports selector(body:has(#brx-header.scrolling)) {
  body:has(#brx-header.scrolling) .page__title{
    color: var(--text-black); /* oscuro */
  }
}
/* icono cambia cuando el header tiene .scrolling */
@supports selector(body:has(#brx-header.scrolling)) {
  body:has(#brx-header.scrolling) .icon-volver__icono path{
    fill: var(--text-black);
    stroke: var(--text-black);
  }
}
.page__title-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 0px;
}
.page__title-wrap .icon-volver {
  margin-left: -10px;
}
/* #region Card*/
.card__header-wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: stretch;
  background: var(--bg-surface);
  color: var(--text-body);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}

/* Modificadores */
.card--muted {
  background: var(--bg-body);
}
.card--clickable {
  cursor: pointer;
  transition: scale 0.18s ease, transform 0.06s ease;
}
.card--clickable:hover {
  border: 1.5px solid var(--primary-d-1);
}
.card--clickable:active {
  scale: 0.997;
  box-shadow: none;
}
.card--nested {
  background: var(--bg-body-10);
  border-style: dashed;
}
.card--s {
  padding: var(--c-space-m);
}
.card--m {
  padding: var(--c-space-l);
}
.card--l {
  padding: var(--l-space-xl);
}
.card--full {
  grid-column: 1 / -1;
}
/* Estructura interna */
.card__content {
  display: flex;
  flex-direction: column;
  gap: var(--c-space-l);
  align-items: stretch;
}
.card__content--between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card__profile {
  display: flex;
  align-items: center;
  gap: var(--c-space-m);
}
.card__avatar {
  inline-size: var(--l-space-3xl);
  block-size: var(--l-space-3xl);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-body);
  box-shadow: var(--shadow-xs);
}
.card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__icon {
  width: var(--c-space-l);
  flex-shrink: 0;
}
.card__icon path {
  fill:var(--text-title)
}
.card__header {
  display: flex;
  flex-direction: row;
  align-self: flex-start;
  align-items: center;
  column-gap: var(--c-space-xs);
  width: auto;
  margin-bottom: var(--c-space-l);
}
.card__title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--text-title);
}
.card__super-title {
  font-size: var(--text-xl);
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.5;
}
.card__title a {
  display: block;
  white-space: inherit;
  overflow: inherit;
  text-overflow: inherit;
}
.card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-body-l-1);
  font-weight: 400;
}
.card__content-fields {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: var(--c-space-4xs);
}
/* #endregion */
.content-field__label {
  flex: 1;
  word-break: break-word;
}
.content-field__value {
  flex: 1;
  word-break: break-word;
}

/* Campos label/value */
.field {
  display: grid;
  gap: 0.25rem;
}
.field__label {
  font-size: var(--text-xs);
  color: var(--text-body-l-1);
  font-weight: 500;
  line-height: 1.4;
}
.field__value {
  font-size: var(--text-sm);
  color: var(--text-body);
  font-weight: 500;
}
.field__value .jet-listing-dynamic-field__content {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--text-2xs);
  font-weight: 600;
  background: var(--bg-body);
  border: 1px solid var(--border-primary);
  color: var(--text-body);
}
.badge--primary {
  background: var(--primary-10);
  color: var(--text-title);
  border-color: var(--primary-30);
}
.badge--warning {
  background: var(--warning-10, var(--error-10));
  color: var(--text-title);
}

.list {
  display: grid;
  gap: var(--c-space-l);
}
.list--auto-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
}

.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--c-space-m);
  padding: var(--c-space-m);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-s);
  background: var(--bg-body);
}
.file__meta {
  color: var(--text-body-l-1);
  font-size: var(--text-2xs);
}

.contact {
  display: grid;
  gap: 0.6rem;
}
.contact__name {
  font-weight: 600;
}
.contact__role {
  color: var(--text-body-l-1);
  font-size: var(--text-sm);
}
.contact__line {
  display: flex;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text-body);
}

.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-body);
  border-radius: var(--radius-full);
}
.tabs__item {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-body-l-1);
}
.tabs__item--active {
  background: var(--bg-surface);
  color: var(--text-title);
  box-shadow: var(--shadow-xs);
}

.jet-listing-dynamic-field__icon {
  width: 16px;
  justify-content: center;
}

/* #region Form*/
.form {
  background: var(--bg-surface);
  color: var(--text-body);
  font-family: var(
    --font-sans,
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial
  );
}

.section-form {
  background-color: var(--primary);
  height: 100dvh;
  justify-content: center;
}
.form-wrap {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  padding: var(--l-space-5xl) var(--l-space-6xl);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-xl);
}
/* Mobile full-screen */
@media (max-width: 767px) {
  .form-wrap {
    width: 100vw;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: var(--l-space-xl);
  }
  .form-wrap--fullheight {
    height: 100dvh;
  }
}
/*Corrige link svg se desplace para arriba*/
.bricks-link-wrapper {
  display: inline-block;
  line-height: 0; /* elimina el espacio de línea */
}
/* Cabeceras y texto */
.form__title {
  font-size: var(--text-2xl);
  color: var(--text-title);
  font-weight: 600;
}
.form h1,
.form h2,
.form h3 {
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text-body);
}
.form p,
.form small {
  color: var(--dark-60);
}
/* Layout general del <form> y filas de JetFormBuilder */

.form .jet-form-builder-row {
  display: grid;
  gap: 8px;
}

.form .jet-form-builder__label {
  margin: 0;
}
.form .jet-form-builder__label-text {
  display: inline-block;
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--dark-60);
}
/* Campo base */
.form .jet-form-builder__field {
  width: 100%;
  background: var(--bg-surface);
  color: var(--text-body);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  outline: none;
  font-size: var(--text-base);
  line-height: 1.2;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, transform 0.06s ease;
}
/* Placeholder discreto */
.form .jet-form-builder__field::placeholder {
  color: color-mix(in oklab, var(--text-body) 60%, transparent);
  opacity: 0.9;
}
/* Focus accesible y elegante */
.form .jet-form-builder__field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--primary) 20%, transparent);
  background: var(--bg-surface);
}
/* Hover (solo puntero) */
@media (hover: hover) {
  .form .jet-form-builder__field:hover {
    border-color: color-mix(
      in oklab,
      var(--primary) 30%,
      var(--border-primary)
    );
  }
}
/* Textarea */
.form textarea.jet-form-builder__field {
  min-height: 120px;
  resize: vertical;
}
/* Select con caret CSS (sin SVG externos) */
.form select.jet-form-builder__field {
  appearance: none;
  background: linear-gradient(45deg, transparent 50%, var(--dark-60) 50%)
      calc(100% - 1.6rem) 50%/6px 6px no-repeat,
    linear-gradient(135deg, var(--dark-60) 50%, transparent 50%)
      calc(100% - 1.1rem) 50%/6px 6px no-repeat,
    linear-gradient(to right, transparent, transparent) calc(100% - 3.2rem)
      0.6rem/1px 2.2rem no-repeat;
  padding-right: 2.4rem;
}
/* Switch/checkbox/radio (más visibles) */
.form input[type="checkbox"],
.form input[type="radio"] {
  width: 24px;
  height: 24px;
  accent-color: var(--primary);
  vertical-align: middle;
}
.form .choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-body);
}
/* Ajuste de la fila con switch */
.form .jet-form-builder-row:has([role="switch"]) {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0px var(--l-space-2xl); /* margen izquierdo y derecho */
}
/* Label alineado a la izquierda */
.form .jet-form-builder-row:has([role="switch"]) .jet-form-builder__label {
  display: flex;
  padding-inline: 0px var(--l-space-2xl);
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
  font-weight: 400;
  color: var(--light-60, #4b5563);
}

.form
  .jet-form-builder-row:has([role="switch"])
  .jet-form-builder__label
  .jet-form-builder__label-text {
  display: inline-block;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--dark-60);
  margin-bottom: 0px;
}
/* Switch alineado a la derecha con margen */
.form .jet-form-builder-row:has([role="switch"]) .jet-form-builder__field-wrap {
  margin-left: 0px;
  margin-right: 0px; /* opcional, ya con padding en la fila */
  display: flex;
  align-items: center;
}
/* Texto HTML */
.html-link {
  margin-top: var(--c-space-m);
  display: inline-block;
  width: 100%;
  text-align: center;
  font-weight: 400;
  font-size: var(--text-sm);
  color: blue;
  cursor: pointer;
  transition: color 0.18s ease;
}
.html-link:hover {
  text-decoration: underline;
}
/* Ayudas y errores */
.form .hint {
  font-size: 12px;
  color: var(--dark-60);
  margin-top: 6px;
}
.form .error-msg {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}
/* Estados nativos útiles (sin JS) */
.form input:invalid:not(:focus):not(:placeholder-shown),
.form textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #dc2626;
}
.form input:valid:not(:focus),
.form textarea:valid:not(:focus) {
  border-color: var(--border-primary);
}
/* Botón primario JetFormBuilder */
.form .jet-form-builder__submit {
  align-items: center;
  width: 100%;
  height: 48px;
  border: 0;
  margin-top: var(--c-space-l);
  border-radius: var(--radius-s);
  background: var(--primary);
  color: var(--text-black); /* contraste correcto con tu primary verdoso */
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .form .jet-form-builder__submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  }
}
.form .jet-form-builder__submit:active {
  transform: translateY(1px);
}
/* Contenedor de upload (más ordenado) */
.form .jet-form-builder-file-upload {
  border: 1.5px dashed var(--border-primary);
  border-radius: var(--radius-s);
  padding: 12px;
  background: var(--bg-surface);
}
/* Separadores opcionales */
.form .section {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-primary);
}
/* Espaciados responsivos en grupos */
.form .row {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .form .row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form .row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Respeta preferencias de movimiento */
@media (prefers-reduced-motion: reduce) {
  .form * {
    transition: none !important;
  }
}
/* === Contenedor y bloque === */
.form .jet-form-builder-messages-wrap {
  margin-top: var(--space-m, 1rem);
}

.form .jet-form-builder-message {
  position: relative;
  display: block;
  padding: 12px 14px 12px 48px;
  border-radius: 12px;
  font-size: var(--text-base, 14px);
  line-height: 1.4;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  animation: jfb-pop-in 0.22s ease-out both;
}
@keyframes jfb-pop-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .form .jet-form-builder-message {
    animation: none;
  }
}

/* helper icono a la izquierda */
.form .jet-form-builder-message::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: no-repeat 50% 50% / 100% 100%;
}

/* === SUCCESS === */
.form .jet-form-builder-message--success {
  color: var(--success-ink);
  background: var(--success-bg);
  border-color: var(--success-border);
}
.form .jet-form-builder-message--success::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;

  -webkit-mask: url("/wp-content/uploads/2025/09/check-circle.svg") no-repeat
    center;
  -webkit-mask-size: cover;
  mask: url("/wp-content/uploads/2025/09/check-circle.svg") no-repeat center;
  mask-size: cover;

  background-color: var(--success-ink);
}

/* === INFO / NOTICE === */
.form .jet-form-builder-message--notice,
.form .jet-form-builder-message--info {
  color: var(--info-ink, #1f3b82);
  background: var(--info-bg, #eaf1ff);
  border-color: var(--info-border, #cfdcff);
}
.form .jet-form-builder-message--notice::before,
.form .jet-form-builder-message--info::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;

  -webkit-mask: url("/wp-content/uploads/2025/09/info-circle.svg") no-repeat
    center;
  -webkit-mask-size: cover;
  mask: url("/wp-content/uploads/2025/09/info-circle.svg") no-repeat center;
  mask-size: cover;

  background-color: var(--info-ink, #1f3b82);
}

/* === ERROR === */
.form .jet-form-builder-message--error {
  color: var(--error-ink, #7f1d1d);
  background: var(--error-bg, #fde2e2);
  border-color: var(--error-border, #fecaca);
}
.form .jet-form-builder-message--error::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;

  -webkit-mask: url("/wp-content/uploads/2025/09/xmark-circle.svg") no-repeat
    center;
  -webkit-mask-size: cover;
  mask: url("/wp-content/uploads/2025/09/xmark-circle.svg") no-repeat center;
  mask-size: cover;

  background-color: var(--error-ink, #7f1d1d);
}

/* === WARNING === */
.form .jet-form-builder-message--warning {
  color: var(--warning-ink, #7a5b00);
  background: var(--warning-bg, #fff3d6);
  border-color: var(--warning-border, #ffe3a3);
}
.form .jet-form-builder-message--warning::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;

  -webkit-mask: url("/wp-content/uploads/2025/09/alert-triangle.svg") no-repeat
    center;
  -webkit-mask-size: cover;
  mask: url("/wp-content/uploads/2025/09/alert-triangle.svg") no-repeat center;
  mask-size: cover;

  background-color: var(--warning-ink, #7a5b00);
}
/* === Animación desde abajo con fade === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Clase reutilizable */
.fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* #endregion */
/* ===== User Card (base) ===== */
.user-card {
  color: var(--text-body);
  font-size: var(--text-sm);
}
/* Variante cuando vive en la sidebar */
.user-card--sidebar {
  display: block;
  padding: 0px var(--l-space-s);
}
/* Caja interna (tarjeta) */
.user-card__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--c-space-s);
  padding: var(--c-space-s);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  cursor: pointer;
}
/* Avatar */
.user-card__avatar-wrap {
  inline-size: 3.2rem;
  block-size: 3.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-body-10);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--bg-body-40);
}
.user-card__avatar {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}
/* Texto */
.user-card__meta {
  min-width: 0; /* permite elipsis */
  display: grid;
  gap: 0.1rem;
}
.user-card__greet {
  font-size: var(--text-2xs);
  color: var(--text-body-l-1);
  line-height: 1.1;
}
.user-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Interacciones (pensando en el futuro dropdown) */
.user-card__inner:hover {
  border-color: color-mix(in oklab, var(--primary), transparent 80%);
  box-shadow: var(--shadow-m);
}
.user-card__inner:active {
  transform: translateY(1px);
}
/* Accento opcional: aro primario sutil en avatar al hover */
.user-card__inner:hover .user-card__avatar-wrap {
  outline: 2px solid color-mix(in oklab, var(--primary), transparent 75%);
  outline-offset: 2px;
}
/* Modo compacto (si en móvil querés apretar más) */
@media (max-width: 480px) {
  .user-card__inner {
    gap: var(--c-space-2xs);
    padding: var(--c-space-2xs);
  }
  .user-card__name {
    font-size: var(--text-xs);
  }
}
/* Menu open */
.user-menu {
  position: relative;
}
.user-menu__trigger {
  cursor: pointer;
}
.user-menu__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  min-inline-size: 220px;
  background: var(--bg-surface, var(--bg-surface));
  border: 1px solid var(--border-primary, #e5e7eb);
  border-radius: var(--radius-m, 10px);
  box-shadow: var(--shadow-l, 0 12px 30px rgba(0, 0, 0, 0.12));
  padding: 0.25rem;
  z-index: 1000;
}

.user-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.user-menu__item {
  margin: 0;
}
.user-menu__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-m, 10px);
  color: var(--text-body, var(--text-body));
  text-decoration: none;
  font-size: var(--text-sm, 14px);
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
}
.user-menu__link:hover,
.user-menu__link:focus {
  background: color-mix(
    in oklab,
    var(--text-body, var(--text-body)),
    transparent 86%
  );
  outline: none;
}
.user-menu__logout {
  color: color-mix(in oklab, var(--text-body, var(--text-body)), #ff6b6b 30%);
}
/* Estado abierto: highlight al trigger */
.user-menu.is-open .user-card__inner {
  border-color: color-mix(
    in oklab,
    var(--text-body, var(--text-body)),
    transparent 78%
  );
  box-shadow: var(--shadow-m, 0 8px 20px rgba(0, 0, 0, 0.1));
}
/* Icono */
.user-menu__icon {
  font-size: 1.1rem; /* ajustá según tu set de íconos */
  color: var(--text-body-l-1, #666);
  flex-shrink: 0; /* evita que se deforme */
}
/* Label */
.user-menu__label {
  flex: 1;
  color: var(--text-body, var(--text-body));
}
/* Hover/focus */
.user-menu__link:hover,
.user-menu__link:focus {
  background: color-mix(
    in oklab,
    var(--text-body, var(--text-body)),
    transparent 78%
  );
  outline: none;
}
.user-menu__link:hover .user-menu__icon,
.user-menu__link:focus .user-menu__icon {
  color: var(--text-body, var(--text-body));
}


/* === KPI Pay (usa tokens CoreFramework) === */
.kpi-pay{
  /* Columna derecha adaptativa con token de layout (18–24rem) */
  --right-w: var(--l-space-7xl);
  --gap-x: var(--c-space-2xs);
  --bar-h: var(--c-space-3xs);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  font-family: var(--cf-font-family--inter), system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: var(--text-xs);
  color: var(--text-body);
}

/* IZQUIERDA crece; DERECHA fija */
.kpi-pay__left{
  width: 100%;
}
.kpi-pay__right{
  width: 100%;
}

/* Provider + título */
.kpi-pay__provider a{
  color: var(--text-body-l-1);
  text-decoration: none;
  font-size: calc(var(--text-xs) * .95);
}
.kpi-pay__title{
  font-size: var(--text-lg);
  margin: calc(var(--c-space-4xs) / 2) 0 0 0;
  color: var(--text-title);
}

/* Fila “Pagado   70%” */
.kpi-pay__meta-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--c-space-2xs);
  white-space: nowrap;
}
.kpi-pay__status,
.kpi-pay__pct{
  font-weight: 600;
  color: var(--text-body);
}

/* Barra */
.kpi-pay__bar{
  position: relative;
  height: var(--bar-h);
  background: var(--bg-surface-d-1);
  border-radius: var(--radius-full);
  overflow: hidden;
  width: 100%;
  margin-top: var(--c-space-4xs);
  box-shadow: inset 0 1px 0 var(--bg-surface-50); /* leve relieve */
}
.kpi-pay__fill{
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--info);
  transition: width .35s ease;
}
.kpi-pay__bar[aria-valuenow="100"] .kpi-pay__fill{
  background: var(--success);
}

/* Monto */
.kpi-pay__amount{
  margin-top: var(--c-space-4xs);
  text-align: right;
  font-weight: 500;
  color: var(--text-body-l-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsivo: apila en móviles */
@media (max-width: 560px){
  .kpi-pay{ flex-direction: column; }
  .kpi-pay__right{ width: 100%; max-width: none; }
  .brxe-eytios .brxe-xtomny.brxe-accordion-nested .accordion-title-wrapper {
  padding-right:3px;
  column-gap: 3px;}
}





















.brxe-eytios .brxe-xtomny.brxe-accordion-nested .accordion-title-wrapper {
  column-gap: 3px;
}
.pago_parcial__wrap {
  width: 100% !important;
  display: flex;
  flex-direction: row;
  padding-top: 3px;
  border-top: 1px solid var(--border-primary);
}
.pago_parcial__wrap--head {
  width: 100% !important;
  display: flex;
  flex-direction: row;
  border-top: 0px solid var(--border-primary);
  font-weight: 600;
}

.pago_parcial__item--fecha {
  justify-content: flex-end !important;
  flex: 1 1 30%;
}
.pago_parcial__item--comprobante {
  flex: 1 1 25%;
}
.pago_parcial__item--estado {
  flex: 1 1 20%;
}
.pago_parcial__item--price {
  flex: 1 1 25%; /* ancho relativo */
}
.pago-parcial__field {
  font-size: var(--text-xs);
  color: var(--text-title-90);
  font-weight: 500;
  line-height: 1.2;
}
.pago-parcial__field--price {
  font-size: var(--text-sm);
  color: var(--text-title);
  font-weight: 600;
}

/* Contenedor del monto */
.pago_parcial__item--price,
.pago-parcial__field--price,
.jet-listing-dynamic-field__inline-wrap {
  display: flex !important;
  justify-content: flex-end !important;
  text-align: right !important;
}

/* El contenido del monto */
.jet-listing-dynamic-field__content {
  text-align: right !important;
}

.jet-form-builder-repeater__new {
  background-color: transparent;
}
.form .jet-form-builder-repeater__actions {
  padding: var(--c-space-m) var(--c-space-m);
  border: 2px dashed var(--dark-70);
  border-radius: var(--radius-m);
  align-self: center !important;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  background-color: var(--primary-10);
  display: flex;
  margin: 0;
}

.kpi-budget {
  display: grid;
  gap: var(--space-2xs, 0.35rem);
  font-family: var(
    --font-sans,
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial
  );
  color: var(--text-body, #111);
  width: 100%;
}

.kpi-budget__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kpi-budget__title {
  font-weight: 700;
}
.kpi-budget__total {
  font-weight: 700;
}

.kpi-budget__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-s, 0.9rem);
}
.kpi-budget__label {
  font-weight: 600;
}
.kpi-budget__pct {
  font-weight: 600;
}

.kpi-budget__bar {
  position: relative;
  height: var(--c-space-2xs, 1rem); /* alto pequeño */
  background: var(--bg-surface-d-1, #e5e7eb); /* gris de track */
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
}
.kpi-budget__fill {
  width: 0;
  height: 100%;
  background: var(--info, #3b82f6); /* azul de progreso */
  border-radius: inherit;
  transition: width 0.35s ease;
}

/* línea inferior: montos */
.kpi-budget__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* opcional: cuando llega a 100%, verde */
.kpi-budget__bar[aria-valuenow="100"] .kpi-budget__fill {
  background: var(--success, #22c55e);
}

/* #region Botones */
.btn {
  /* Layout y espaciado */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--c-space-3xs);
  padding: var(--c-space-2xs) var(--c-space-s);

  /* Tipografía */
  font-family: var(--cf-font-family--inter);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;

  /* Apariencia visual */
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  position: relative;
  overflow: hidden;

  /* Transiciones suaves */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);

  /* Estados de accesibilidad */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.card .btn {
  margin-top: var(--c-space-m);
}
/* ELEMENTOS DEL BOTÓN */
.btn__icon {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  transition: transform 0.2s ease;
  z-index: 2;
  position: relative;
}

.btn__title {
  font-weight: inherit;
  z-index: 2;
  position: relative;
  margin: 0;
  font-size: inherit;
}

/* MODIFICADOR: Variante Primary (Solid) */
.btn--primary {
  background-color: var(--primary-d-1);
  color: var(--text-light);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--primary-d-1);
}

.btn--primary .btn__icon path {
  stroke: var(--text-light);
  stroke-width: 3;
}

/*.btn--primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary-30);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none;
  z-index: 1;
}*/

.btn--primary:hover {
  background-color: var(--primary);
  color: var(--text-black);
  border-color: var(--primary-10);
  box-shadow: var(--shadow-s);
  transform: translateY(-1px);
}

.btn--primary:hover .btn__icon {
  transform: scale(1.05);
}

.btn--primary:hover .btn__icon path {
  stroke: var(--text-black);
}
.btn--primary:active .btn__icon path {
  stroke: var(--text-black);
}

.btn--primary:active {
  background-color: var(--primary-20);
  color: var(--primary-d-3);
  border-color: var(--primary-20);
  box-shadow: var(--shadow-xs);
  transform: translateY(0);
  transition-duration: 0.1s;
}

.btn--primary:active .btn__icon {
  transform: scale(0.95);
}

.btn--primary:active::before {
  width: 300%;
  height: 300%;
}

.btn--primary:focus-visible {
  outline: 2px solid var(--primary-d-1);
  outline-offset: 2px;
  box-shadow: var(--shadow-s), 0 0 0 4px var(--primary-20);
}

/* MODIFICADOR: Variante Secondary (Outline) */
.btn--secondary {
  background-color: transparent;
  color: var(--primary-d-2);
  border: 1px solid var(--primary-d-2);
  box-shadow: none;
}

.btn--secondary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary-20);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.btn--secondary:hover {
  background-color: var(--primary-10);
  color: var(--primary-d-2);
  border-color: var(--primary-d-2);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.btn--secondary:active {
  background-color: var(--primary-20);
  color: var(--primary-d-3);
  border-color: var(--primary-d-3);
  box-shadow: none;
  transform: translateY(0);
  transition-duration: 0.1s;
}

.btn--secondary:active::before {
  width: 300%;
  height: 300%;
}

.btn--secondary:focus-visible {
  outline: 2px solid var(--primary-d-2);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--primary-20);
}
.btn--secondary .btn__icon path {
  stroke: var(--primary-d-2);
  fill: var(--primary-d-2);
  stroke-width: 0.5;
}

/* MODIFICADOR: Variante Tertiary (Text) */
.btn--tertiary {
  background-color: transparent;
  color: var(--primary-d-2);
  border: none;
  box-shadow: none;
  padding: var(--c-space-2xs) var(--c-space-xs);
}

.btn--tertiary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary-20);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.btn--tertiary:hover {
  background-color: var(--primary-10);
  color: var(--primary-d-2);
  box-shadow: none;
  transform: none;
}

.btn--tertiary:active {
  background-color: var(--primary-20);
  color: var(--primary-d-3);
  box-shadow: none;
  transform: none;
  transition-duration: 0.1s;
}

.btn--tertiary:active::before {
  width: 300%;
  height: 300%;
}

.btn--tertiary:focus-visible {
  outline: 2px solid var(--primary-d-2);
  outline-offset: 2px;
  background-color: var(--primary-10);
}

/* MODIFICADOR: Variante Info */
.btn--info {
  background-color: transparent;
  color: var(--info);
  border: none;
  box-shadow: none;
  padding: var(--c-space-2xs) var(--c-space-xs);
}

.btn--info::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--info-20);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.btn--info:hover {
  background-color: var(--info-10);
  color: var(--info);
  box-shadow: none;
  transform: none;
}

.btn--info:active {
  background-color: var(--info-20);
  color: var(--info);
  box-shadow: none;
  transform: none;
  transition-duration: 0.1s;
}

.btn--info:active::before {
  width: 300%;
  height: 300%;
}

.btn--info:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
  background-color: var(--info-10);
}

/* MODIFICADOR: Variante Danger */
.btn--danger {
  background-color: transparent;
  color: var(--error);
  border: none;
  box-shadow: none;
  padding: var(--c-space-2xs) var(--c-space-xs);
}

.btn--danger::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--error-20);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.btn--danger:hover {
  background-color: var(--error-10);
  color: var(--error);
  box-shadow: none;
  transform: none;
}

.btn--danger:active {
  background-color: var(--error-20);
  color: var(--error);
  box-shadow: none;
  transform: none;
  transition-duration: 0.1s;
}

.btn--danger:active::before {
  width: 300%;
  height: 300%;
}

.btn--danger:focus-visible {
  outline: 2px solid var(--error);
  outline-offset: 2px;
  background-color: var(--error-10);
}
.btn--danger .btn__icon path {
  stroke: var(--error);
  fill: var(--error);
  stroke-width: 0.1;
}

/* MODIFICADORES: Tamaños */
.btn--small {
  padding: var(--c-space-4xs) var(--c-space-2xs);
  font-size: var(--text-xs);
  gap: var(--c-space-4xs);
}

.btn--small .btn__icon {
  width: 1.4rem;
  height: 1.4rem;
}

.btn--large {
  padding: var(--c-space-s) var(--c-space-m);
  font-size: var(--text-base);
  gap: var(--c-space-xs);
}

.btn--large .btn__icon {
  width: 1.8rem;
  height: 1.8rem;
}

/* MODIFICADORES: Estilos especiales */
.btn--full-width {
  width: 100%;
}

.btn--icon-only {
  padding: var(--c-space-xs);
}

/* MODIFICADORES: Estados */
.btn--disabled,
.btn:disabled,
.btn[aria-disabled="true"] {
  background-color: var(--bg-surface-d-2);
  color: var(--text-body-l-2);
  border-color: var(--bg-surface-d-2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn--loading {
  pointer-events: none;
  position: relative;
}

.btn--loading .btn__icon,
.btn--loading .btn__title {
  opacity: 0;
}

.btn--loading::after {
  content: "";
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: btn-loading-spin 1s linear infinite;
  z-index: 3;
}

@keyframes btn-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Estados especiales para variantes tertiary */
.btn--tertiary.btn--small,
.btn--info.btn--small,
.btn--danger.btn--small {
  padding: var(--c-space-4xs) var(--c-space-4xs);
}

.btn--tertiary.btn--large,
.btn--info.btn--large,
.btn--danger.btn--large {
  padding: var(--c-space-2xs) var(--c-space-xs);
}

/* Estados disabled para variantes */
.btn--secondary:disabled,
.btn--secondary[aria-disabled="true"] {
  background-color: transparent;
  color: var(--text-body-l-2);
  border-color: var(--text-body-l-2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn--tertiary:disabled,
.btn--tertiary[aria-disabled="true"],
.btn--info:disabled,
.btn--info[aria-disabled="true"],
.btn--danger:disabled,
.btn--danger[aria-disabled="true"] {
  background-color: transparent;
  color: var(--text-body-l-2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* Adaptación para tema oscuro */
:root.cf-theme-dark .btn--primary {
  box-shadow: var(--shadow-s);
}

:root.cf-theme-dark .btn--primary:hover {
  box-shadow: var(--shadow-m);
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    padding: var(--c-space-xs) var(--c-space-s);
  }

  .btn--primary:hover {
    background-color: var(--primary);
    transform: none;
  }

  .btn--primary:active {
    background-color: var(--primary-d-1);
  }
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn__icon,
  .btn::before {
    transition: none;
    animation: none;
    transform: none !important;
  }
}
/* #endregion */
/* #region Mobile */
@media (max-width: 768px) {
  .logo {
    display: none;
  }
  .container-header {
    position: sticky;
    top: 0;
    z-index: 9990;
    margin-bottom: var(--l-space-l);
    margin-top: 0;
  }
  .icon-volver {
    z-index: 9990;
    min-width: 12px;
    min-height: 12px;
    display: flex ;
  }
  .icon-volver--hidden {
    display: none;
  }
  .page__title-wrap .icon-volver__icono path {
    stroke: var(--text-black);
    stroke-width: 0.3;
    fill: var(--text-black);
  }
  .page__title {
    max-inline-size: 15ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page__title-wrap .icon-volver {
    margin-left: -10px;
  }
  .page__title-wrap--hidden {
    margin-left: 0px;
  }
  .page__title-wrap .page__title {
    color: var(--text-black);
  }
}
/* #endregion */
/* #region Estado-pill*/
/* diseño tipo tag/pill ESTADO*/
.estado-pill {
  border-radius: var(--radius-full);
  border-width: 1px;
  border-style: solid;
  padding: var(--c-space-4xs) var(--c-space-2xs);
  font-size: var(--text-2xs);
  line-height: 1rem;
  font-weight: 500;
}
.estado-pill[data-estado="en_progreso"] {
  border-color: var(--warning);
  background-color: var(--warning-bg);
  color: var(--warning);
}
.estado-pill[data-estado="planificacion"] {
  border-color: var(--info);
  background-color: var(--info-bg);
  color: var(--info);
}
.estado-pill[data-estado="finalizado"] {
  border-color: var(--success);
  background-color: var(--success-bg);
  color: var(--success);
}
.estado-pill[data-estado="cancelado"] {
  border-color: var(--error);
  background-color: var(--error-bg);
  color: var(--error);
}
/* #endregion */
/* #region Clickable*/
.clickable-parent {
  position: relative;
}
.clickable-parent h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.clickable-parent a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* #endregion */

/* #region Vacio*/
/* #endregion */

/* Proyectos tab color icono */
.cf-theme-dark #brxe-smfusn,
.cf-theme-dark #brxe-cbznqj {
  stroke: var(--text-light) !important;
}
.cf-theme-dark .brx-open #brxe-smfusn,
.cf-theme-dark .brx-open #brxe-cbznqj {
  stroke: var(--primary-d-3) !important;
}


/* Volver */
.icon-volver{
  display: flex; 
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.icon-volver__icono{
  width: var(--c-space-l);
  height: var(--c-space-l);
  display: inline-block;
  padding: 12px;        /* área extra clickeable */
  box-sizing: content-box;
  cursor: pointer;
}
.icon-volver__icono path{
  stroke: var(--text-title);
  fill: var(--text-title);
  stroke-width: 0.3;
}



.slef-factura-msg {
  color: #b91c1c; /* rojo */
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.slef-factura-invalid {
  outline: 1px solid rgba(185,28,28,0.25);
}
/* Mensaje de CUIT duplicado (futuro amistoso) */
.slef-cuit-msg { color:#b91c1c; font-size:.875rem; margin-top:.25rem; }
.slef-cuit-invalid { outline:1px solid rgba(185,28,28,.25); }
/* El navegador ya estiliza [disabled], pero por si hay custom select de JFB: */
select[disabled].slef-disabled {
  opacity: .6;               /* grisado */
  cursor: not-allowed;       /* cursor bloqueado */
  background-color: #f3f4f6; /* gris claro */
}

/* Si JFB envuelve el campo en un contenedor custom, lo atenuamos y desactivamos clicks */
.slef-field-disabled {
  opacity: .6;
  pointer-events: none; /* evita interacción si el select es “falso” (custom) */
}

/* form enviar compra */
/* 1) Forzar el layout del submit a columna (botón arriba, mensaje abajo) */
.jet-form-builder__action-button-wrapper.jet-form-builder__submit-wrap,
.jet-form-builder__submit-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px; /* espacio vertical entre botón y mensaje */
}

/* 2) Estado visual del botón deshabilitado */
.jet-form-builder__submit-wrap .jet-form-builder__action-button[disabled],
.jet-form-builder__submit-wrap button[disabled],
.jet-form-builder__submit-wrap input[type="submit"][disabled],
.slef-submit-disabled {
  background-color: #9CA3AF !important; /* gris */
  border-color: #9CA3AF !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.95;
  box-shadow: none !important;
}

/* 3) Mensaje bajo el botón */
.jet-form-builder__submit-wrap .slef-submit-msg {
  display: block;
  width: 100%;
  margin: 0;              /* lo maneja el gap del contenedor */
  font-size: 13px;
  line-height: 1.35;
  color: #6B7280;         /* gris neutro (no rojo para no “gritar”) */
}

/* Si preferís marcarlo como error, descomentá: */
/*
.jet-form-builder__submit-wrap .slef-submit-msg--error { color: #b91c1c; }
*/

/* Cruz en campo de texto en el form */
/* Clearable input (JetFormBuilder) */
.jfb-clearable {
  position: relative;
}

.jfb-clearable > input {
  padding-right: 2.25rem; /* espacio para la X */
}

/* Botón X */
.jfb-clear-btn {
  position: absolute;
  right: 6px;
  top: 22px;
  transform: translateY(-55%);
  width: 16px;
  height: 16px;
  display: none;
  place-items: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--text-body-l-1);   /* 👈 acá toma el color de la variable */
}

.jfb-clear-btn:hover { color: var(--text-body); }

/* Mostrar X solo cuando hay texto */
.jfb-clearable.has-value > .jfb-clear-btn { display: grid; }

/* Permite desactivar por campo: data-no-clear */
input[data-no-clear] + .jfb-clear-btn { display: none !important; }

/* Tabs en Proyecto*/
.tab {
  width: 100%;
  padding: var(--c-space-2xs);
  border-radius: var(--radius-full);
  border-width: 1px;
  border-style: solid;
  border-color: var(--bg-surface-30);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-primary);
}
.tab__item {
  width: 100%;
  border-radius: var(--radius-full);
}
.tab-menu .tab-title.brx-open {
  box-shadow: var(--shadow-s);
}
.tab__title {
  text-align: center;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-black);
}
.cf-theme-dark .tab__item:not(.brx-open) .tab__title {
  color: var(--text-light);
}

/* KPI Info */
.kpi-info{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-s, 12px);
}
.kpi-card{
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  background-color: var(--bg-surface);
  border-radius: var(--radius-m);
  padding: var(--c-space-s);
  box-shadow: var(--shadow-s);
  border: 1px solid var(--border-primary);

}

.kpi-info > .kpi-card{
  box-shadow: var(--shadow-s);
}
.kpi-info__icon{
  margin-bottom: var(--c-space-s);
  width: 24px;
  height: 26px;
  display: inline-block;
}
.kpi-info__icon path{
  stroke-width: 2px;

}
.kpi-info__icon--compras path{
  stroke: var(--info-80);
  fill: var(--info-80);
  stroke-width: 0.2px;
}
.kpi-info__icon--comp-total path{
  stroke: var(--success-80);

}
.kpi-info__icon--parcial path{
  stroke: var(--warning-80);
}
.kpi-info__icon--saldo path{
  stroke: var(--error-80);
}
.kpi-info__title{
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-body);
  }
.kpi-info__dato{
  font-size: var(--text-3xl);
  font-weight: 700;;
  color: var(--text-title);
}

/* Campo deshabilitado en el form de venta*/
/* Aplicalá al <input>, <textarea> o <select> */
.jet-form-builder__field-wrap:has(.is-readonly) {
  cursor: not-allowed !important;
}

/* el input sigue sin eventos */
.is-readonly {
  pointer-events: none;
  user-select: none;
  caret-color: transparent;
  background-color: var(--field-readonly-bg, #f6f7f9);
  color: var(--field-readonly-fg, #6b7280);
  border-color: var(--field-readonly-border, #e5e7eb);
}

/* feedback visual opcional para el botón agregar */
.jet-form-builder-repeater__new.is-disabled { opacity: .5; pointer-events: none; }


/* ===========================
   KPI BAR – estilos base
   Todo configurable por CSS vars (se integran con tu CoreFramework)
   =========================== */

/* Defaults seguros; el tema puede sobreescribirlos en :root o en un wrapper */
.kpi-bar {
  --kpi-bar-h: 12px;                 /* altura de la barra */
  --kpi-bar-radius: var(--radius-m, 9999px);
  --kpi-bar-track: var(--surface-3, #e5e7eb);           /* pista (track) */
  --kpi-bar-fill: var(--info-500, #2563eb);             /* azul <100% */
  --kpi-bar-fill-done: var(--success-500, #16a34a);     /* verde =100% */
  --kpi-bar-text: var(--text-body, #111827);
  --kpi-bar-muted: var(--text-secondary, #6b7280);
  --kpi-bar-gap-y: var(--space-2, .5rem);               /* separación vertical */
  --kpi-bar-anim-ms: 500ms;                             /* duración animación */
  --kpi-skeleton-from: color-mix(in oklab, var(--kpi-bar-track) 92%, black 0%);
  --kpi-skeleton-to:   color-mix(in oklab, var(--kpi-bar-track) 80%, white 0%);
}

.kpi-bar {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: var(--kpi-bar-gap-y);
  color: var(--kpi-bar-text);
  width: 100%;
}

/* Filas superior e inferior: etiqueta/% y acumulado/restante */
.kpi-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, .5rem);
  line-height: 1.2;
}

.kpi-bar__row--top .kpi-bar__label-left { font-weight: 600; }
.kpi-bar__row--top .kpi-bar__label-right { font-variant-numeric: tabular-nums; }

.kpi-bar__row--bottom [data-role="accumulated"],
.kpi-bar__row--bottom [data-role="remaining"] {
  font-variant-numeric: tabular-nums;
}
.kpi-bar__row--bottom .kpi-bar__value-right {
  color: var(--kpi-bar-muted);
}

/* Barra visual */
.kpi-bar__track {
  position: relative;
  height: var(--kpi-bar-h);
  background: var(--kpi-bar-track);
  border-radius: var(--kpi-bar-radius);
  overflow: clip;
}

.kpi-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--kpi-bar-fill);
  border-radius: inherit;
  transition: width var(--kpi-bar-anim-ms) ease-out, background-color 200ms linear;
}

/* Cuando llega a 100% (tras redondeo y clamping) */
.kpi-bar.is-complete .kpi-bar__fill {
  background: var(--kpi-bar-fill-done);
}

/* Skeleton propio del componente */
.kpi-bar__skeleton {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.kpi-bar.is-loading .kpi-bar__skeleton {
  opacity: 1;
  background: linear-gradient(90deg, 
    var(--kpi-skeleton-from) 0%,
    var(--kpi-skeleton-to) 50%,
    var(--kpi-skeleton-from) 100%
  );
  background-size: 200% 100%;
  animation: kpi-skeleton-shimmer 1.2s linear infinite;
}

@keyframes kpi-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

/* Accesibilidad */
.kpi-bar__sr {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* Respeto de reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .kpi-bar__fill { transition: none !important; }
  .kpi-bar.is-loading .kpi-bar__skeleton { animation: none !important; }
}


/*
 * SLEF Core - Estilos para Validaciones (VERSIÓN MEJORADA)
 * --------------------------------------------------
 */

/* Solo muestra el borde rojo en campos inválidos que ya han sido "tocados" por el usuario */
.jet-form-builder input.interacted:invalid {
    border-color: #d00 !important;
}

/* ... (el resto de tus clases de SLEF Core no necesitan cambios) ... */
.slef-invalid-border {
    border-color: #d00 !important;
}
.slef-field-message {
    font-size: 0.9em;
    margin-top: -4px;
    margin-bottom: 10px;
    padding-left: 2px;
    transition: color 0.2s;
    cursor: pointer;
    color: #0073aa; /* Azul de ayuda por defecto */
}
.slef-field-message:hover {
    color: #00a0d2;
    text-decoration: underline;
}
.slef-field-message.is-error {
    color: #d00;
    font-weight: bold;
    cursor: default;
    text-decoration: none !important;
}
.slef-form-error-msg {
    height: auto;
    opacity: 0;
    visibility: hidden;
    color: #d00;
    font-size: 0.9em;
    font-weight: bold;
    text-align: right;
    margin-top: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.slef-form-error-msg.is-visible {
    opacity: 1;
    visibility: visible;
}
.slef-clearable-field {
    padding-right: 35px !important;
}
.slef-clear-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-color: #999;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background-color 0.2s;
}
.slef-clear-btn:hover {
    background-color: #666;
}
.slef-clear-btn.is-visible {
    opacity: 0.7;
    pointer-events: auto;
}