/* ============================================================
   teVitaForge — Component styles
   Implementa el spec del DS al 100%. Importar tokens.css antes.
   ============================================================ */

/* ---------- Reset light ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   BUTTONS
   ============================================================ */
.tvf-btn {
  font-family: var(--tvf-font-family);
  font-size: 14px;
  font-weight: var(--tvf-fw-medium);
  padding: var(--tvf-space-8) var(--tvf-space-16);
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--tvf-space-8);
  line-height: 1;
  text-decoration: none;
  transition: box-shadow var(--tvf-duration-200) var(--tvf-easing-ease),
              background var(--tvf-duration-200) var(--tvf-easing-ease);
}
.tvf-btn:hover,
.tvf-btn:focus,
.tvf-btn:focus-visible,
.tvf-btn:active,
.tvf-btn:visited,
.tvf-btn:disabled,
.tvf-btn[aria-disabled="true"] {
  text-decoration: none;
}

/* Primary */
.tvf-btn--primary {
  background: var(--tvf-active-blue-100);
  color: #FFF;
  border-color: var(--tvf-active-blue-100);
}
.tvf-btn--primary:hover {
  box-shadow: 0 0 4px 0 #1271EC;
}

/* Secondary */
.tvf-btn--secondary {
  background: #FFF;
  color: var(--tvf-active-blue-100);
  border: 1px solid var(--tvf-active-blue-100);
  border-radius: 9999px;
}
.tvf-btn--secondary:hover {
  background: #99BDDB;
  color: var(--tvf-active-blue-100);
}

/* Small variant */
.tvf-btn--small {
  font-size: 8px;
  text-transform: uppercase;
  padding: 4px var(--tvf-space-16);
  letter-spacing: 0.04em;
  border-radius: 9999px;
}

/* Disabled (works for primary + secondary) */
.tvf-btn:disabled,
.tvf-btn[aria-disabled="true"] {
  background: var(--tvf-neutral-200);
  color: var(--tvf-neutral-300);
  border-color: var(--tvf-neutral-300);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.tvf-btn--primary:disabled,
.tvf-btn--primary[aria-disabled="true"] {
  border-color: var(--tvf-neutral-200);
}

/* Focus visible (all buttons) */
.tvf-btn:focus-visible,
.tvf-link:focus-visible,
.tvf-link--small:focus-visible {
  outline: 2px solid rgba(31, 111, 255, 0.5);
  outline-offset: 2px;
}

/* Link button */
.tvf-link {
  color: var(--tvf-active-blue-100);
  font-size: 14px;
  font-weight: var(--tvf-fw-medium);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--tvf-font-family);
}
.tvf-link:hover { text-decoration: none; }

.tvf-link--small {
  color: var(--tvf-active-blue-100);
  font-size: 10px;
  font-weight: var(--tvf-fw-semibold);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--tvf-font-family);
  letter-spacing: 0.04em;
}
.tvf-link--small:hover { text-decoration: underline; }

/* ============================================================
   TABS
   ============================================================ */
.tvf-tabs {
  display: flex;
  align-items: center;
  gap: var(--tvf-space-24);
  border-bottom: 1px solid var(--tvf-neutral-300);
}
.tvf-tab {
  padding: var(--tvf-space-8) 0;
  font-family: var(--tvf-font-family);
  font-size: 14px;
  font-weight: var(--tvf-fw-regular);
  text-transform: uppercase;
  color: var(--tvf-neutral-500);
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0.04em;
  transition: border-color var(--tvf-duration-200) var(--tvf-easing-ease);
}
.tvf-tab:hover {
  border-bottom-color: var(--tvf-active-blue-100);
  color: var(--tvf-neutral-500);
  text-decoration: none;
}
.tvf-tab--active,
.tvf-tab[aria-selected="true"] {
  font-weight: var(--tvf-fw-semibold);
  color: var(--tvf-active-blue-100);
  border-bottom-color: var(--tvf-active-blue-100);
}
.tvf-tab:focus-visible {
  outline: 2px solid rgba(31, 111, 255, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   PROGRESS BAR (uses Info palette — informativo, no de acción)
   ============================================================ */
.tvf-progress {
  width: 100%;
  height: 14px;
  background: var(--tvf-info-light);
  border-radius: 2px;
  overflow: hidden;
}
.tvf-progress__fill {
  height: 100%;
  background: var(--tvf-info-base);
  border-radius: 2px;
  transition: width var(--tvf-duration-200) var(--tvf-easing-ease);
}

/* ============================================================
   PRODUCT SUMMARY (molécula — vive dentro de una Card)
   ============================================================ */
.tvf-product-summary {
  display: flex;
  flex-direction: column;
  gap: var(--tvf-space-8);
  width: 100%;
}
.tvf-product-summary__top {
  display: flex;
  flex-direction: column;
  gap: var(--tvf-space-8);
}
.tvf-product-summary__line {
  display: flex;
  align-items: baseline;
  font-size: 12px;
  color: var(--tvf-neutral-900);
  font-weight: var(--tvf-fw-medium);
}
.tvf-product-summary__line--split {
  justify-content: space-between;
  gap: var(--tvf-space-16);
}
.tvf-product-summary__line--split .tvf-product-summary__strong {
  font-weight: var(--tvf-fw-bold);
}
.tvf-product-summary__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--tvf-space-16);
}
.tvf-product-summary__info {
  font-size: 12px;
  font-weight: var(--tvf-fw-bold);
  color: var(--tvf-neutral-900);
}
.tvf-product-summary__actions {
  display: flex;
  align-items: center;
  gap: var(--tvf-space-16);
  flex-shrink: 0;
}
.tvf-product-summary__actions .tvf-btn {
  white-space: nowrap;
}

/* ============================================================
   STEPPER (vertical)
   ============================================================ */
.tvf-stepper {
  display: flex;
  flex-direction: column;
  gap: var(--tvf-space-24);
  max-width: 280px;
  padding: var(--tvf-space-24) 20px;
  background: #FFF;
}
.tvf-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.tvf-step__indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--tvf-font-family);
  font-size: 12px;
  font-weight: var(--tvf-fw-semibold);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--tvf-duration-200) var(--tvf-easing-ease);
}
.tvf-step__indicator-icon { width: 16px; height: 16px; fill: currentColor; }

/* Conector — vertical line from current circle to next */
.tvf-step__connector {
  position: absolute;
  left: 11px;          /* indicator is 24px wide centered at 12; line 2px → left 11 */
  top: 24px;
  bottom: -24px;       /* spans the 24px gap into the next indicator */
  width: 2px;
  background: var(--tvf-neutral-200);
  pointer-events: none;
}
.tvf-step:last-child .tvf-step__connector { display: none; }

/* Connector context — set on the .tvf-step that OWNS the connector below it */
.tvf-step--completed .tvf-step__connector,
.tvf-step--active-prev .tvf-step__connector { background: var(--tvf-active-blue-100); }
/* (active and pending owners keep the default neutral-200) */

/* Text block */
.tvf-step__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-top: 2px;
}
.tvf-step__title {
  margin: 0;
  font-family: var(--tvf-font-family);
  font-size: 14px;
  font-weight: var(--tvf-fw-semibold);
  line-height: 20px;
  transition: color var(--tvf-duration-200) var(--tvf-easing-ease);
}
.tvf-step__desc {
  margin: 0;
  font-family: var(--tvf-font-family);
  font-size: 12px;
  font-weight: var(--tvf-fw-medium);
  line-height: 16px;
}

/* STATE — completed */
.tvf-step--completed { cursor: pointer; }
.tvf-step--completed .tvf-step__indicator {
  background: var(--tvf-active-blue-100);
  border: 0;
  color: #FFF;
}
.tvf-step--completed .tvf-step__title { color: var(--tvf-neutral-900); }
.tvf-step--completed .tvf-step__desc  { color: var(--tvf-neutral-500); }
.tvf-step--completed:hover .tvf-step__title { color: var(--tvf-active-blue-100); }

/* STATE — active */
.tvf-step--active { cursor: default; }
.tvf-step--active .tvf-step__indicator {
  background: var(--tvf-active-blue-100);
  border: 0;
  color: #FFF;
  box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.16);
}
.tvf-step--active .tvf-step__title { color: var(--tvf-neutral-900); }
.tvf-step--active .tvf-step__desc  { color: var(--tvf-neutral-500); }

/* STATE — pending */
.tvf-step--pending { cursor: default; }
.tvf-step--pending .tvf-step__indicator {
  background: #FFF;
  border: 1px solid var(--tvf-neutral-300);
  color: var(--tvf-neutral-400);
}
.tvf-step--pending .tvf-step__title { color: var(--tvf-neutral-400); }
.tvf-step--pending .tvf-step__desc  { color: var(--tvf-neutral-400); }

/* ============================================================
   HEADER / TOP MENU
   ============================================================ */
.tvf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--tvf-header-height);
  background: #FFF;
  border: none;
  box-shadow: none;
  padding: var(--tvf-space-8) var(--tvf-space-16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tvf-header__inner {
  width: 100%;
  max-width: var(--tvf-app-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tvf-header__left {
  display: flex;
  align-items: center;
  gap: var(--tvf-space-32);
}
.tvf-header__logo {
  height: 24px;
  width: auto;
  display: block;
}
.tvf-menu-item {
  font-family: var(--tvf-font-family);
  font-size: 14px;
  font-weight: var(--tvf-fw-medium);
  color: var(--tvf-neutral-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
}
.tvf-menu-item:hover,
.tvf-menu-item:hover .tvf-icon {
  color: var(--tvf-active-blue-100);
}
.tvf-menu-item .tvf-chevron {
  width: 16px;
  height: 16px;
  color: var(--tvf-neutral-900);
  transition: transform var(--tvf-duration-200) var(--tvf-easing-ease);
}
.tvf-menu-item[aria-expanded="true"] .tvf-chevron {
  transform: rotate(180deg);
}

.tvf-header__right {
  display: flex;
  align-items: center;
  gap: var(--tvf-space-24);
}
/* Unit 1: RUT + apartment icon, clickable as a single block */
.tvf-header__company {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--tvf-font-family);
  color: var(--tvf-neutral-900);
}
.tvf-header__company .tvf-header__rut {
  font-size: 12px;
  font-weight: var(--tvf-fw-medium);
  color: var(--tvf-neutral-900);
}
.tvf-header__rut {
  font-size: 12px;
  font-weight: var(--tvf-fw-medium);
  color: var(--tvf-neutral-900);
}
/* Unit 2: name + person icon, non-interactive */
.tvf-header__profile {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: var(--tvf-fw-medium);
  color: var(--tvf-neutral-900);
}
.tvf-header__icon-btn {
  width: 16px;
  height: 16px;
  color: var(--tvf-neutral-900);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dropdown panel (matches Select panel) */
.tvf-dropdown-panel {
  margin-top: 4px;
  background: #FFF;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: var(--tvf-radius-4);
  padding: 0;
  overflow: hidden;
  min-width: 200px;
}
.tvf-dropdown-option {
  min-height: 32px;
  padding: 10px 8px;
  font-family: var(--tvf-font-family);
  font-size: 16px;
  color: var(--tvf-neutral-900);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ============================================================
   APP LAYOUT
   ============================================================ */
.tvf-app-layout {
  width: 100%;
  max-width: var(--tvf-app-max-width);
  margin: 0 auto;
  background: #FFF;
  display: flex;
  flex-direction: column;
  gap: var(--tvf-space-24);
  padding: var(--tvf-space-16);
}
@media (min-width: 768px) {
  .tvf-app-layout { padding: var(--tvf-space-16) var(--tvf-space-24); }
}
@media (min-width: 1024px) {
  .tvf-app-layout {
    padding: var(--tvf-space-16) var(--tvf-space-24) var(--tvf-space-24) var(--tvf-space-24);
  }
}

/* ============================================================
   CARDS / CONTAINERS
   ============================================================ */
.tvf-card {
  border: 1px solid var(--tvf-neutral-200);
  border-radius: var(--tvf-radius-8);
  padding: var(--tvf-space-24) var(--tvf-space-24) var(--tvf-space-32) var(--tvf-space-24);
  gap: var(--tvf-space-24);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #FFF;
}
.tvf-card__header {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--tvf-space-16);
}
.tvf-card__header-main {
  display: flex;
  flex-direction: column;
  gap: var(--tvf-space-16);
}
.tvf-card__title {
  color: var(--tvf-neutral-900);
  font-family: var(--tvf-font-family);
  font-size: 12px;
  font-weight: var(--tvf-fw-bold);
  line-height: 18px;
  text-transform: uppercase;
  margin: 0;
}
.tvf-card__subtitle {
  color: var(--tvf-neutral-900);
  font-family: var(--tvf-font-family);
  font-size: 14px;
  font-weight: var(--tvf-fw-medium);
  line-height: var(--tvf-lh-24);
  margin: 0;
}
.tvf-card__body {
  align-self: center;
  width: 100%;
  max-width: var(--tvf-card-body-max-width);
  display: flex;
  flex-direction: column;
  gap: var(--tvf-space-24);
}

/* ============================================================
   INPUTS — floating label
   ============================================================ */
.tvf-input {
  position: relative;
  width: 100%;
}
.tvf-input__control {
  position: relative;
  display: block;
  height: 36px;
}
.tvf-input__field {
  width: 100%;
  height: 36px;
  padding: 10px 8px;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: var(--tvf-radius-4);
  background: #FFF;
  font-family: var(--tvf-font-family);
  font-size: 16px;
  color: var(--tvf-neutral-900);
  outline: none;
}
.tvf-input__label {
  position: absolute;
  left: 8px;
  top: 18px;            /* exact midline of 36px field */
  transform: translateY(-50%);
  line-height: 1;
  font-size: 16px;
  color: var(--tvf-neutral-400);
  pointer-events: none;
  background: transparent;
  padding: 0;
  font-family: var(--tvf-font-family);
  transition: all var(--tvf-duration-200) var(--tvf-easing-ease);
}
.tvf-input__field:focus + .tvf-input__label,
.tvf-input__field:not(:placeholder-shown) + .tvf-input__label {
  top: 0;
  font-size: 10px;
  color: var(--tvf-neutral-500);
  background: #FFF;
  padding: 0 4px;
  line-height: 1;
}
.tvf-input__helper {
  display: block;
  margin-top: var(--tvf-space-8);
  font-family: var(--tvf-font-family);
  font-size: 12px;
  color: var(--tvf-neutral-500);
  font-weight: var(--tvf-fw-regular);
}

/* Error */
.tvf-input--error .tvf-input__field { border-color: var(--tvf-error-base); }
.tvf-input--error .tvf-input__label { color: var(--tvf-error-base); }
.tvf-input__error {
  display: block;
  margin-top: var(--tvf-space-8);
  font-size: 12px;
  font-weight: var(--tvf-fw-regular);
  color: var(--tvf-error-base);
}

/* Disabled */
.tvf-input--disabled .tvf-input__field,
.tvf-input__field:disabled {
  background: var(--tvf-neutral-100);
  border: 1px solid var(--tvf-neutral-300);
  cursor: default;
  pointer-events: none;
}
.tvf-input__field:disabled::placeholder {
  color: var(--tvf-neutral-300);
  font-size: 16px;
}

/* ============================================================
   SELECT
   ============================================================ */
.tvf-select { position: relative; width: 100%; }
.tvf-select__trigger {
  width: 100%;
  height: 36px;
  padding: 10px 8px;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: var(--tvf-radius-4);
  background: #FFF;
  font-family: var(--tvf-font-family);
  font-size: 16px;
  color: var(--tvf-neutral-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}
.tvf-select__trigger--has-value { color: var(--tvf-neutral-900); }
.tvf-select__chevron {
  width: 16px;
  height: 16px;
  color: var(--tvf-neutral-500);
  flex-shrink: 0;
}
.tvf-select__panel {
  margin-top: 4px;
  background: #FFF;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: var(--tvf-radius-4);
  padding: 0;
  overflow: hidden;
}
.tvf-select__option {
  min-height: 32px;
  padding: 10px 8px;
  font-family: var(--tvf-font-family);
  font-size: 16px;
  color: var(--tvf-neutral-900);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.tvf-select__option--selected {
  background: var(--tvf-active-blue-tint);
  color: var(--tvf-active-blue-100);
}

/* Error / disabled mirror Inputs */
.tvf-select--error .tvf-select__trigger { border-color: var(--tvf-error-base); }
.tvf-select__error {
  display: block;
  margin-top: var(--tvf-space-8);
  font-size: 12px;
  color: var(--tvf-error-base);
}

/* ============================================================
   TEXTAREA
   ============================================================ */
.tvf-textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 8px;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: var(--tvf-radius-4);
  background: #FFF;
  font-family: var(--tvf-font-family);
  font-size: 16px;
  color: var(--tvf-neutral-900);
  resize: vertical;
  outline: none;
}
.tvf-textarea::placeholder {
  color: var(--tvf-neutral-400);
  font-size: 16px;
}
.tvf-textarea:disabled {
  background: var(--tvf-neutral-100);
  border: 1px solid var(--tvf-neutral-300);
  cursor: default;
  pointer-events: none;
  resize: none;
}
.tvf-textarea--error { border-color: var(--tvf-error-base); }

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.tvf-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--tvf-space-8);
  border-radius: var(--tvf-radius-8);
  border: 1px solid;
  font-family: var(--tvf-font-family);
  font-size: 10px;
  font-weight: var(--tvf-fw-medium);
  text-transform: uppercase;
  width: auto;
  letter-spacing: 0.04em;
}
.tvf-badge--success { background: var(--tvf-success-light); border-color: var(--tvf-success-base); color: var(--tvf-success-dark); }
.tvf-badge--warning { background: var(--tvf-warning-light); border-color: var(--tvf-warning-base); color: var(--tvf-warning-dark); }
.tvf-badge--error   { background: var(--tvf-error-light);   border-color: var(--tvf-error-base);   color: var(--tvf-error-dark); }
.tvf-badge--info    { background: var(--tvf-info-light);    border-color: var(--tvf-info-base);    color: var(--tvf-info-dark); }
.tvf-badge--neutral { background: var(--tvf-neutral-500);   border-color: var(--tvf-neutral-900);  color: var(--tvf-neutral-900); }

/* ============================================================
   ALERTS
   ============================================================ */
.tvf-alert {
  display: flex;
  align-items: center;
  gap: var(--tvf-space-8);
  width: 100%;
  padding: var(--tvf-space-16);
  border-radius: var(--tvf-radius-4);
  border: 1px solid;
  font-family: var(--tvf-font-family);
  font-size: 14px;
  font-weight: var(--tvf-fw-medium);
}
.tvf-alert__icon { width: 16px; height: 16px; flex-shrink: 0; }
.tvf-alert--success { background: var(--tvf-success-light); border-color: var(--tvf-success-dark); color: var(--tvf-success-dark); }
.tvf-alert--warning { background: var(--tvf-warning-light); border-color: var(--tvf-warning-dark); color: var(--tvf-warning-dark); }
.tvf-alert--error   { background: var(--tvf-error-light);   border-color: var(--tvf-error-dark);   color: var(--tvf-error-dark); }
.tvf-alert--info    { background: var(--tvf-info-light);    border-color: var(--tvf-info-dark);    color: var(--tvf-info-dark); }

/* ============================================================
   CHECKBOX
   ============================================================ */
.tvf-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: 2px;
  background: #FFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tvf-checkbox__check { width: 14px; height: 14px; color: var(--tvf-active-blue-100); }
.tvf-checkbox--disabled {
  background: var(--tvf-neutral-100);
  cursor: default;
  pointer-events: none;
}
.tvf-checkbox--disabled .tvf-checkbox__check { color: var(--tvf-neutral-400); }

/* ============================================================
   RADIO
   ============================================================ */
.tvf-radio {
  width: 16px;
  height: 16px;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: 50%;
  background: #FFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tvf-radio__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tvf-active-blue-100);
}
.tvf-radio--disabled {
  background: var(--tvf-neutral-100);
  cursor: default;
  pointer-events: none;
}
.tvf-radio--disabled .tvf-radio__dot { display: none; }

/* ============================================================
   SWITCH
   ============================================================ */
.tvf-switch {
  width: 56px;
  height: 28px;
  border: 2px solid var(--tvf-neutral-300);
  border-radius: 14px;
  background: #FFF;
  position: relative;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
}
.tvf-switch__thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tvf-neutral-300);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all var(--tvf-duration-200) var(--tvf-easing-ease);
}
.tvf-switch--on .tvf-switch__thumb {
  background: var(--tvf-active-blue-100);
  left: 32px;
}
.tvf-switch--off,
.tvf-switch--disabled {
  background: var(--tvf-neutral-100);
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   TABLE
   ============================================================ */
.tvf-table {
  width: 100%;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: var(--tvf-radius-4);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-family: var(--tvf-font-family);
}
.tvf-table thead th {
  background: #FFF;
  color: var(--tvf-neutral-500);
  font-size: 14px;
  font-weight: var(--tvf-fw-medium);
  text-align: left;
  padding: var(--tvf-space-16);
  border-bottom: 1px solid var(--tvf-neutral-200);
}
.tvf-table tbody td {
  padding: var(--tvf-space-16);
  border-bottom: 1px solid var(--tvf-neutral-200);
  color: var(--tvf-neutral-900);
  vertical-align: middle;
  min-height: 48px;
}
.tvf-table tbody tr:nth-child(odd) { background: #FFF; }
.tvf-table tbody tr:nth-child(even) { background: var(--tvf-neutral-50); }
.tvf-table tbody tr:last-child td { border-bottom: none; }

.tvf-table__primary { font-size: 14px; font-weight: var(--tvf-fw-bold); color: var(--tvf-neutral-900); display: block; }
.tvf-table__secondary { font-size: 12px; font-weight: var(--tvf-fw-regular); color: var(--tvf-neutral-900); display: block; }

.tvf-table__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--tvf-space-8);
}
.tvf-table__action-icon {
  width: 24px;
  height: 24px;
  color: var(--tvf-neutral-900);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.tvf-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--tvf-space-16);
  background: transparent;
  font-family: var(--tvf-font-family);
}
.tvf-pagination__total { color: var(--tvf-neutral-500); font-size: 12px; font-weight: var(--tvf-fw-regular); }
.tvf-pagination__total strong { color: var(--tvf-neutral-500); font-size: 12px; font-weight: var(--tvf-fw-semibold); }
.tvf-pagination__nav { display: flex; align-items: center; gap: 4px; }
.tvf-pagination__page {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--tvf-fw-regular);
  border-radius: var(--tvf-radius-4);
  cursor: pointer;
  background: transparent;
  color: var(--tvf-neutral-900);
  border: 0;
  font-family: var(--tvf-font-family);
}
.tvf-pagination__page--active {
  background: var(--tvf-active-blue-tint);
  color: var(--tvf-active-blue-100);
  font-weight: var(--tvf-fw-semibold);
}
.tvf-pagination__ellipsis {
  color: var(--tvf-neutral-500);
  font-size: 12px;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}
.tvf-pagination__arrow {
  width: 16px;
  height: 16px;
  color: var(--tvf-neutral-900);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tvf-pagination__arrow:disabled,
.tvf-pagination__arrow[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tvf-pagination__perpage {
  display: flex;
  align-items: center;
  gap: var(--tvf-space-16);
}
.tvf-pagination__label { color: var(--tvf-neutral-500); font-size: 12px; font-weight: var(--tvf-fw-regular); }
.tvf-pagination__select {
  width: 64px;
  height: 32px;
  border: 1px solid var(--tvf-neutral-300);
  border-radius: var(--tvf-radius-4);
  padding: 0 var(--tvf-space-8);
  font-size: 12px;
  font-family: var(--tvf-font-family);
  color: var(--tvf-neutral-900);
  cursor: pointer;
  background: #FFF;
}
.tvf-pagination__range { color: var(--tvf-neutral-900); font-size: 12px; font-weight: var(--tvf-fw-regular); }

/* ============================================================
   ICON helper
   ============================================================ */
.tvf-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  fill: currentColor;
  vertical-align: middle;
}
.tvf-icon--24 { width: 24px; height: 24px; }
.tvf-icon--32 { width: 32px; height: 32px; }
.tvf-icon--48 { width: 48px; height: 48px; }
