/* Argentina Fly design tokens applied to MyFQS chrome */

:root {
  --lv-navy: #1b2230;
  --lv-navy-deep: #0f1623;
  --lv-header: #000000;
  --lv-bone: #f1eee7;
  --lv-champagne: #b49a78;
  --lv-champagne-soft: #d9c9b3;
  --lv-graphite: #5a6068;
  --lv-platinum: #dcd9d4;
  --lv-steel: #c4c0b8;
  --lv-ink: #141921;
  --lv-muted: #555555;
  --lv-white: #ffffff;
  --lv-green: #2f9e6b;
  --lv-green-hover: #26885b;
  --lv-red: #d70005;
  --lv-btn-wash: #9fa3b41c;
  --font-sans: "Inter", "Roboto", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Jost", "Inter", sans-serif;
  --header-h: 60px;
  --chrome-pad-x: 28px;
  --logo-img-h: 36px;
  /* logo-header.png is 625x260 */
  --logo-img-w: calc(var(--logo-img-h) * 625 / 260);
  --logo-text-gap: 16px;
  --form-label-w: 150px;
  --form-control-h: 36px;
  --form-control-fs: 13px;
  --form-check-size: 14px;
  --listing-toolbar-h: var(--form-control-h);
  --form-control-pad-x: 10px;
  --control-radius: 3px;
  --form-row-gap: 10px;
  --form-stack-gap: 16px;
  --page-block-gap: 16px;
  --form-label-control-gap: 6px;
  --section-title-h: 44px;
  --form-field-max: 480px;
  --form-field-wide: 720px;
  --doc-badge-w: 92px;
  --anexo-cert-badge-w: 110px;
  --doc-badge-fs: 10px;
  --doc-badge-pad-y: 5px;
  --doc-badge-pad-x: 8px;
  --doc-badge-h: 20px;
  /* Soft green pills (tarifa “Actualizado”, Anexo Afectado, Sin vencimiento). */
  --doc-badge-soft-green-bg: #dceee4;
  --doc-badge-soft-green-fg: #1b6b45;
}

body:not(.pdf-export):not(.error-page) {
  background: var(--lv-white);
  color: var(--lv-muted);
  font-family: var(--font-sans);
  font-size: 14px;
}

body:not(.pdf-export):not(.error-page) h1,
body:not(.pdf-export):not(.error-page) h2,
body:not(.pdf-export):not(.error-page) h3 {
  color: var(--lv-navy);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- Chrome: header + nav ---------- */

.site-chrome {
  background: var(--lv-header);
  color: var(--lv-white);
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-chrome .logo {
  max-width: none;
  margin: 0;
  padding: 10px var(--chrome-pad-x) 8px;
  min-height: var(--header-h);
  position: relative;
  z-index: 5;
}

.site-chrome .logo a {
  margin-left: 0;
}

.site-chrome .logoimg {
  height: var(--logo-img-h);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-chrome .logotext {
  color: var(--lv-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 0 var(--logo-text-gap);
}

.site-chrome .activeuser {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 0;
  padding-right: 36px;
}

.site-chrome .lang-drop-header {
  position: static;
}

.site-chrome .lang-drop-header summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 0;
  line-height: 1;
  background-image: none;
}

.site-chrome .lang-drop-header summary .lang-globe {
  font-size: 12px;
  line-height: 1;
  width: 12px;
  opacity: 0.82;
}

.site-chrome .lang-drop-header summary .lang-caret {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  margin-left: -1px;
  opacity: 0.72;
  transform-origin: 50% 50%;
  transition: transform 0.15s ease;
}

.site-chrome .lang-drop-header[open] summary .lang-caret {
  transform: rotate(180deg);
}

.site-chrome .lang-drop-header summary::-webkit-details-marker,
.site-chrome .lang-drop-header summary::marker {
  display: none;
  content: none;
  font-size: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  color: transparent;
}

.site-chrome .lang-drop-header .lang-drop-panel {
  position: absolute;
  right: var(--chrome-pad-x);
  top: 100%;
  min-width: 180px;
  background: var(--lv-white);
  border: 1px solid var(--lv-platinum);
  box-shadow: 0 12px 32px rgba(15, 22, 35, 0.16);
  padding: 8px 0;
  z-index: 20;
}

.site-chrome .lang-drop-header .language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--lv-navy);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-align: left;
  padding: 8px 16px;
  cursor: pointer;
}

.site-chrome .lang-drop-header .language-option:hover,
.site-chrome .lang-drop-header .language-option.is-active {
  background: var(--lv-bone);
}

.site-chrome .lang-flag {
  width: 22px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

.site-chrome .navbar {
  background: #e8e8e8 !important;
  padding: 0 var(--chrome-pad-x);
  border-top: 1px solid #d4d4d4;
}

.site-chrome .navbar .container-fluid {
  max-width: none;
  padding: 0;
}

.site-chrome .navbar-light .navbar-nav .nav-link,
.site-chrome .navbar-dark .navbar-nav .nav-link,
.site-chrome .navbar-nav .nav-link {
  color: #111111 !important;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 0 !important;
  margin-left: 0 !important;
  margin-right: 16px;
  white-space: nowrap;
}

.site-chrome .navbar-nav .nav-link:hover,
.site-chrome .navbar-nav .nav-link:focus,
.site-chrome .navbar-nav .show > .nav-link {
  color: #000000 !important;
}

.site-chrome .navbar-nav .dropdown-toggle::after {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  vertical-align: 0.2em;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-bottom: 0;
  border-left: 4px solid transparent;
  opacity: 0.65;
  transform-origin: 50% 40%;
  transition: transform 0.15s ease;
}

.site-chrome .navbar-nav .nav-item.show > .dropdown-toggle::after,
.site-chrome .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.site-chrome .header-actions {
  gap: 12px;
  flex-shrink: 0;
}

.site-chrome .navbar-toggler {
  display: none;
  position: static !important;
  right: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  border-radius: 0;
  padding: 8px;
  margin: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  z-index: 1045;
}

.site-chrome .navbar-toggler-icon {
  display: block;
  width: 18px;
  height: 14px;
  background: none !important;
  background-image: none !important;
  position: relative;
  filter: none;
  overflow: visible;
}

.site-chrome .navbar-toggler-icon::before,
.site-chrome .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform-origin: center;
  transition: transform 0.2s ease, top 0.2s ease, box-shadow 0.2s ease;
}

.site-chrome .navbar-toggler-icon::before {
  top: 0;
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.92);
}

.site-chrome .navbar-toggler-icon::after {
  top: 12px;
}

.site-chrome.nav-open .navbar-toggler-icon::before {
  top: 6px;
  box-shadow: none;
  transform: rotate(45deg);
}

.site-chrome.nav-open .navbar-toggler-icon::after {
  top: 6px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1035;
  background: rgba(15, 22, 35, 0.28);
}

.nav-backdrop[hidden] {
  display: none !important;
}

.site-chrome .nav-language {
  display: none;
}

.site-chrome .dropdown-menu {
  background: var(--lv-white);
  border: 1px solid var(--lv-platinum);
  border-radius: 0;
  margin: 0;
  left: 0;
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(15, 22, 35, 0.16);
}

@media screen and (min-width: 992px) {
  .site-chrome .navbar {
    padding-left: 0;
    padding-right: 0;
  }

  .site-chrome .navbar .container-fluid {
    width: 90%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5px;
  }

  .site-chrome .navbar-nav {
    --nav-link-pad-x: 14px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding-left: 0;
    margin-left: calc(var(--nav-link-pad-x) * -1);
  }

  .site-chrome .navbar-nav > .nav-item {
    margin: 0;
  }

  .site-chrome .navbar-light .navbar-nav .nav-link,
  .site-chrome .navbar-dark .navbar-nav .nav-link,
  .site-chrome .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px var(--nav-link-pad-x) !important;
    margin-left: 0 !important;
    margin-right: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .site-chrome .navbar-nav > .nav-item:hover,
  .site-chrome .navbar-nav > .nav-item.show,
  .site-chrome .navbar-nav .nav-link:hover,
  .site-chrome .navbar-nav .nav-link:focus,
  .site-chrome .navbar-nav .show > .nav-link {
    background: #d4d4d4;
  }

  .site-chrome .navbar-nav > .nav-item > .dropdown-menu {
    left: 0;
  }

  .site-chrome .lang-drop-header summary {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .site-chrome .lang-drop-header summary:hover,
  .site-chrome .lang-drop-header summary:focus,
  .site-chrome .lang-drop-header[open] summary {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
  }
}

.site-chrome .dropdown-item {
  color: var(--lv-navy);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 8px 18px;
}

.site-chrome .dropdown-item:hover,
.site-chrome .dropdown-item:focus {
  background: var(--lv-bone);
  color: var(--lv-navy);
}

.site-chrome .dropdown-menu form {
  margin: 0;
  padding: 0;
}

.site-chrome .dropdown-menu button.dropdown-item {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  line-height: inherit;
}

.site-chrome .dropdown-menu button.dropdown-item:hover,
.site-chrome .dropdown-menu button.dropdown-item:focus,
.site-chrome .dropdown-menu button.dropdown-item:active {
  background: var(--lv-bone);
  color: var(--lv-navy);
}

.site-chrome .dropdown-divider {
  border-top-color: var(--lv-platinum);
}

.site-chrome .mi-cuenta {
  margin-right: 0 !important;
}

.site-chrome .btn-outline-success {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  color: var(--lv-white);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 8px 18px;
}

.site-chrome .btn-outline-success:hover {
  background: var(--lv-white);
  color: var(--lv-navy);
}

/* ---------- Breadcrumb / messages ---------- */

.breadbar {
  border-bottom: 1px solid var(--lv-platinum);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: var(--page-block-gap) auto 0;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.breadbar > .d-flex {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
}

.breadsection,
a.breadsection,
.breadpage,
a.breadpage {
  white-space: nowrap;
}

.breadpage,
a.breadpage {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Listing immediately after the breadcrumb (no title-box in between). */
.breadbar + .table-container,
.breadbar + .tablee,
.breadbar + .messagebar + .table-container,
.breadbar + .messagebar + .tablee {
  margin-top: var(--page-block-gap);
}

.breadsection,
a.breadsection {
  color: var(--lv-navy);
  font-weight: 500;
}

.breadpage,
a.breadpage,
.breadseparation {
  color: var(--lv-graphite);
}

.messagebar {
  background: var(--lv-white);
  border-left: 3px solid var(--lv-champagne);
  color: var(--lv-navy);
  font-weight: 500;
}

.messagebar-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.messagebar-text {
  min-width: 0;
}

.messagebar-icon {
  flex-shrink: 0;
  line-height: 1;
  font-size: 1.05em;
}

.messagebar-success .messagebar-icon {
  color: var(--lv-green);
}

.messagebar-error .messagebar-icon {
  color: var(--lv-red);
}

/* ---------- Titles / lists ---------- */

.title-box {
  font-family: var(--font-sans);
  align-items: center;
  gap: var(--page-block-gap);
}

.title-box h2,
#legs h2,
.form-container h2 {
  font-family: var(--font-serif) !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  color: var(--lv-navy) !important;
  letter-spacing: -0.03em;
  margin: 0;
  white-space: nowrap;
}

#legs.medidor h2 {
  margin: 0 0 var(--page-block-gap);
  white-space: normal;
}

body:not(.pdf-export) #legs {
  margin-top: var(--page-block-gap);
}

body:not(.pdf-export) #tutorial.help-page {
  width: 90%;
  max-width: 1500px;
  margin: 8px auto 80px;
  padding: 0 20px 48px;
  color: var(--lv-ink);
}

body:not(.pdf-export) #tutorial.help-page .help-lede,
body:not(.pdf-export) #tutorial.help-page .help-section {
  max-width: 42rem;
}

body:not(.pdf-export) #tutorial.help-page .help-lede {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--lv-muted);
}

body:not(.pdf-export) #tutorial.help-page .help-toc {
  max-width: 42rem;
  margin: 0 0 36px;
  padding: 14px 16px 14px 12px;
  border: 1px solid var(--lv-platinum);
  background: var(--lv-bone);
}

body:not(.pdf-export) #tutorial.help-page .help-toc-chapters {
  margin: 0;
  padding-left: 1.6em;
}

body:not(.pdf-export) #tutorial.help-page .help-toc-chapters > li {
  list-style: decimal;
  margin: 0 0 8px;
  color: var(--lv-navy);
  font-size: 14px;
  line-height: 1.45;
}

body:not(.pdf-export) #tutorial.help-page .help-toc-chapters > li:last-child {
  margin-bottom: 0;
}

body:not(.pdf-export) #tutorial.help-page .help-toc-chapters > li > ol {
  margin: 4px 0 0;
  padding-left: 1.5em;
}

body:not(.pdf-export) #tutorial.help-page .help-toc-chapters > li > ol > li {
  list-style: lower-alpha;
  margin: 0 0 2px;
  color: var(--lv-muted);
  font-size: 13px;
}

body:not(.pdf-export) #tutorial.help-page .help-toc a {
  color: var(--lv-navy);
  text-decoration: none;
}

body:not(.pdf-export) #tutorial.help-page .help-toc a:hover {
  color: var(--lv-green);
}

body:not(.pdf-export) #tutorial.help-page .help-section {
  margin: 0 0 32px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body:not(.pdf-export) #tutorial.help-page .help-section h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--lv-navy);
  letter-spacing: -0.02em;
}

body:not(.pdf-export) #tutorial.help-page .help-section h4 {
  margin: 16px 0 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--lv-navy);
  letter-spacing: 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body:not(.pdf-export) #tutorial.help-page .help-chap,
body:not(.pdf-export) #tutorial.help-page .help-letter {
  font-variant-numeric: tabular-nums;
}

body:not(.pdf-export) #tutorial.help-page .help-section p,
body:not(.pdf-export) #tutorial.help-page .help-section li {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lv-muted);
}

body:not(.pdf-export) #tutorial.help-page .help-section ol,
body:not(.pdf-export) #tutorial.help-page .help-section ul {
  margin: 0 0 10px;
  padding-left: 1.5em;
}

body:not(.pdf-export) #tutorial.help-page .help-section ol > li {
  list-style: decimal;
}

body:not(.pdf-export) #tutorial.help-page .help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 4px;
}

body:not(.pdf-export) #tutorial.help-page .help-section a {
  color: var(--lv-green);
  text-decoration: none;
}

body:not(.pdf-export) #tutorial.help-page .help-section a:hover {
  text-decoration: underline;
}

.title-box .title-box-actions {
  display: contents;
}

.title-box .buttons-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: var(--listing-toolbar-h);
}

.title-box .delete-btn {
  display: none;
  box-sizing: border-box;
  height: var(--listing-toolbar-h);
  margin: 0;
  padding: 0 14px !important;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: var(--control-radius);
}

.title-box .add-item {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 0;
  flex-shrink: 0;
  height: var(--listing-toolbar-h);
}

.title-box .add-item a,
.title-box div a.new-item,
.title-box div a.new-item-icon {
  box-sizing: border-box;
  height: var(--listing-toolbar-h) !important;
  display: inline-flex;
  align-items: center;
}

.new-item,
.new-item-icon {
  background: var(--lv-green) !important;
  color: var(--lv-white) !important;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1;
}

.new-item {
  padding: 0 14px !important;
  border-radius: var(--control-radius) 0 0 var(--control-radius) !important;
}

.new-item-icon {
  padding: 0 12px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0 var(--control-radius) var(--control-radius) 0 !important;
}

.new-item:hover,
.new-item-icon:hover {
  background: var(--lv-green-hover) !important;
  color: var(--lv-white) !important;
}

body:not(.pdf-export) .title-box.title-box--view {
  margin-top: var(--page-block-gap);
  margin-bottom: var(--page-block-gap);
  width: 90%;
  max-width: 1500px;
  justify-content: flex-end;
}

body:not(.pdf-export) .title-box.title-box--view:has(> h2) {
  justify-content: space-between;
}

body:not(.pdf-export) .title-box.title-box--view .view-edit-btn.btns {
  gap: 8px;
  text-decoration: none;
  color: var(--lv-navy);
  background: var(--lv-btn-wash) !important;
  border: 1px solid var(--lv-navy) !important;
}

body:not(.pdf-export) .title-box.title-box--view .view-edit-btn.btns:hover {
  background: var(--lv-navy) !important;
  color: var(--lv-white);
}

body:not(.pdf-export) .title-box.title-box--view .view-edit-btn.btns i {
  font-size: 12px;
  line-height: 1;
}

body:not(.pdf-export) .title-box.title-box--view + .form-container,
body:not(.pdf-export) .title-box.title-box--view + #fixes > .form-container,
body:not(.pdf-export) .title-box.title-box--view + #legs {
  margin-top: 0;
}

body:not(.pdf-export) .title-box.title-box--view + #legs > .form-group:first-child,
body:not(.pdf-export) .title-box.title-box--view + #legs > .add-quote-form-block:first-child {
  margin-top: 0;
}

.filter-lists {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  margin: 0;
  height: var(--listing-toolbar-h);
}

.filter-lists input,
.filter-lists .filter-clear {
  box-sizing: border-box;
  font-size: 11px;
  height: var(--listing-toolbar-h);
  padding: 0 12px;
  margin: 0;
  line-height: 1;
}

.filter-lists input {
  border-radius: var(--control-radius) !important;
}

.filter-lists .filter-clear {
  border-radius: var(--control-radius) !important;
}

.filter-lists input {
  min-width: 180px;
  max-width: 280px;
  border: 1px solid #ccc !important;
  background: var(--lv-white);
  font-family: var(--font-sans);
}

.filter-lists .filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 500;
  background: var(--lv-btn-wash) !important;
  border: 1px solid var(--lv-navy) !important;
  color: var(--lv-navy) !important;
  text-decoration: none;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-lists .filter-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.filter-lists .filter-clear:hover {
  background: var(--lv-navy) !important;
  color: var(--lv-white) !important;
}

.filter-suggestions {
  position: fixed;
  z-index: 1080;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--lv-white);
  border: 1px solid #ccc;
  border-top: none;
  box-shadow: 0 8px 18px rgba(20, 25, 33, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.filter-suggestions li {
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.35;
  color: var(--lv-ink);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-suggestions li strong {
  font-weight: 600;
  color: var(--lv-navy);
}

.filter-suggestions li.is-active,
.filter-suggestions li:hover {
  background: #f5f5f5;
}

.tablas,
.tablee {
  border-color: var(--lv-platinum) !important;
  background: var(--lv-white);
  font-family: var(--font-sans) !important;
  font-size: 11px;
  line-height: 1.35;
}

.tablee th {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

.tablee td,
.tablee a,
.tablee tr a {
  font-size: 11px;
}

.tablee th.col-select,
.tablee td.col-select {
  width: 28px;
  min-width: 28px;
  max-width: 32px;
  padding: 0 4px 0 8px !important;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.tablee th.col-select input[type="checkbox"],
.tablee td.col-select input[type="checkbox"] {
  display: block;
  margin: 0 auto;
  padding: 0;
  width: var(--form-check-size);
  height: var(--form-check-size);
  min-height: 0;
}

.tablee th.col-actions,
.tablee td.actions-column {
  width: 88px;
  white-space: nowrap;
  vertical-align: middle;
  text-align: right;
  padding: 0 10px 0 8px !important;
  opacity: 1;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-height: 32px;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  color: var(--lv-navy) !important;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
}

.table-action i {
  font-size: 13px;
  line-height: 1;
}

.table-action:hover,
.table-action:focus {
  background: rgba(27, 34, 48, 0.08);
  color: var(--lv-navy) !important;
}

.table-action.is-disabled {
  color: var(--lv-steel) !important;
  pointer-events: none;
  cursor: default;
  background: transparent;
}

thead,
.tablee thead,
.tablee thead tr,
.tablee thead tr:hover,
.tablee thead th,
.tablee thead th:hover {
  background-color: var(--lv-navy) !important;
  color: var(--lv-white);
}

.tablee tr {
  border-bottom-color: var(--lv-platinum) !important;
}

.tablee tbody tr:hover {
  background-color: #ebe7de !important;
}

.tablee a,
.tablee tr a {
  color: var(--lv-navy);
  font-weight: 500;
}

#pagination-box,
#pagination-box p {
  font-size: 11px;
}

.page-item.active .page-link {
  background-color: var(--lv-navy);
  border-color: var(--lv-navy);
}

.page-link {
  color: var(--lv-navy);
  border-radius: 0;
}

.page-link:hover {
  color: var(--lv-champagne);
}

/* ---------- Buttons / forms ---------- */

.btns,
.savebtns button,
.form-user-login .btns,
.form-user-creds .btns {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lv-btn-wash) !important;
  border: 1px solid var(--lv-navy) !important;
  border-radius: var(--control-radius);
  color: var(--lv-navy);
  font-family: var(--font-ui) !important;
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  height: var(--form-control-h);
  min-height: var(--form-control-h);
  max-height: var(--form-control-h);
  padding: 0 16px !important;
  line-height: 1;
}

body:not(.pdf-export) .error-advice {
  color: var(--lv-red);
  margin: var(--form-label-control-gap) 0 0;
  font-family: var(--font-sans);
  font-size: var(--form-control-fs);
  font-weight: 500;
  min-height: 1.2em;
}

.btns:hover,
.savebtns button:hover {
  background: var(--lv-navy) !important;
  color: var(--lv-white);
}

#legs.add-edit-quote .quote-notes-btns.savebtns,
#legs .quote-notes-btns.savebtns,
#legs .savebtns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: right;
  box-sizing: border-box;
}

.form-block {
  border-color: var(--lv-platinum) !important;
  background: var(--lv-white);
  color: var(--lv-graphite);
  font-family: var(--font-sans) !important;
  max-width: 100%;
  box-sizing: border-box;
}

.form-title,
.add-quote-form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--lv-navy) !important;
  color: var(--lv-white) !important;
  font-family: var(--font-sans);
  font-weight: 500 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: none !important;
  box-sizing: border-box;
  height: var(--section-title-h);
  min-height: var(--section-title-h);
  max-height: var(--section-title-h);
  padding: 0 16px !important;
  flex-wrap: nowrap;
  overflow: hidden;
}

.add-quote-form-title > span,
.form-title > span,
.med-leg-1,
.med-leg-2,
.med-leg-2 span {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.add-quote-form-block {
  border-color: var(--lv-platinum) !important;
  background: var(--lv-white);
}

.form-line-data label,
.form-block label,
#legs label {
  color: var(--lv-graphite) !important;
  font-family: var(--font-sans);
}

body:not(.pdf-export) .form-line-data {
  align-items: center;
}

body:not(.pdf-export) .form-block .form-line-data,
body:not(.pdf-export) .form-container .form-line-data {
  display: flex;
  align-items: center;
  gap: var(--form-row-gap);
  width: 100%;
  margin: 8px 0;
  box-sizing: border-box;
}

body:not(.pdf-export) .form-line-data > label {
  margin-top: 0 !important;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  align-self: center;
  line-height: 1.25;
}

body:not(.pdf-export) .form-block .form-line-data > label,
body:not(.pdf-export) .form-container .form-line-data > label,
body:not(.pdf-export) .form-block .form-line-data > label.long-label,
body:not(.pdf-export) .form-container .form-line-data > label.long-label {
  display: block;
  flex: 0 0 var(--form-label-w);
  flex-direction: row;
  justify-content: flex-start;
  width: var(--form-label-w);
  min-width: var(--form-label-w) !important;
  max-width: var(--form-label-w) !important;
  margin: 0 !important;
  padding: 0;
  text-align: left !important;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.25;
  box-sizing: border-box;
}

/* Texto dentro del control: mismo inset en todo el site (Precio km, fees, fechas, listados). */
body:not(.pdf-export) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not(.fq-select-native):not(.fq-file-native),
body:not(.pdf-export) select:not(.fq-select-native),
body:not(.pdf-export) textarea {
  padding-left: var(--form-control-pad-x) !important;
  padding-right: var(--form-control-pad-x) !important;
  box-sizing: border-box;
}

/* Tipografía de controles = cuerpo del site. Bootstrap .form-control es 1rem (16px);
   el UA pone otra familia en textarea. No inflar a 16px en móvil (el zoom lo corta maximum-scale=1). */
body:not(.pdf-export) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
body:not(.pdf-export) select,
body:not(.pdf-export) textarea,
body:not(.pdf-export) .form-control:not([type="checkbox"]):not([type="radio"]),
body:not(.pdf-export) .fq-select-trigger,
body:not(.pdf-export) .fq-select-name,
body:not(.pdf-export) .fq-select-label,
body:not(.pdf-export) .fq-file-btn,
body:not(.pdf-export) .fq-file-name,
body:not(.pdf-export) .ui-autocomplete-input,
body:not(.pdf-export) .autocomplete-suggestion {
  font-family: var(--font-sans) !important;
  font-size: var(--form-control-fs) !important;
  font-weight: 400;
}

body:not(.pdf-export) .form-block .form-line-data > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body:not(.pdf-export) .form-container .form-line-data > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body:not(.pdf-export) .form-block .form-line-data > select,
body:not(.pdf-export) .form-container .form-line-data > select,
body:not(.pdf-export) .form-block .form-line-data > .fq-select,
body:not(.pdf-export) .form-container .form-line-data > .fq-select,
body:not(.pdf-export) .form-block .form-line-data > .fq-select--form,
body:not(.pdf-export) .form-container .form-line-data > .fq-select--form,
body:not(.pdf-export) .form-block .form-line-data > textarea,
body:not(.pdf-export) .form-container .form-line-data > textarea,
body:not(.pdf-export) .form-block .form-line-data > .form-control,
body:not(.pdf-export) .form-container .form-line-data > .form-control,
body:not(.pdf-export) .form-block .form-line-data > .fix-list,
body:not(.pdf-export) .form-container .form-line-data > .fix-list,
body:not(.pdf-export) .form-block .form-line-data > .destination-input-group,
body:not(.pdf-export) .form-container .form-line-data > .destination-input-group,
body:not(.pdf-export) .form-block .form-line-data > p,
body:not(.pdf-export) .form-container .form-line-data > p {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-top: 0;
  margin-bottom: 0;
  align-self: center;
  box-sizing: border-box;
}

body:not(.pdf-export) .form-block .form-line-data > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body:not(.pdf-export) .form-container .form-line-data > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body:not(.pdf-export) .form-block .form-line-data > select:not(.fq-select-native),
body:not(.pdf-export) .form-container .form-line-data > select:not(.fq-select-native),
body:not(.pdf-export) .form-block .form-line-data > .form-control:not(textarea),
body:not(.pdf-export) .form-container .form-line-data > .form-control:not(textarea) {
  height: var(--form-control-h) !important;
  min-height: var(--form-control-h) !important;
  max-height: var(--form-control-h) !important;
  padding: 0 var(--form-control-pad-x) !important;
  line-height: var(--form-control-h) !important;
  font-size: var(--form-control-fs);
}

body:not(.pdf-export) .form-block .form-line-data > textarea,
body:not(.pdf-export) .form-container .form-line-data > textarea,
body:not(.pdf-export) .form-block .form-line-data > textarea.form-control,
body:not(.pdf-export) .form-container .form-line-data > textarea.form-control,
body:not(.pdf-export) .form-block .form-line-data > textarea.group-external-notes,
body:not(.pdf-export) .form-container .form-line-data > textarea.group-external-notes {
  height: auto !important;
  min-height: 120px !important;
  max-height: none !important;
  padding: 8px var(--form-control-pad-x) !important;
  line-height: 1.4 !important;
  font-family: var(--font-sans) !important;
  font-size: var(--form-control-fs) !important;
  align-self: stretch;
  resize: vertical;
}

body:not(.pdf-export) .form-block .form-line-data:has(> textarea),
body:not(.pdf-export) .form-container .form-line-data:has(> textarea),
body:not(.pdf-export) .form-block .form-line-data:has(> .fix-list),
body:not(.pdf-export) .form-container .form-line-data:has(> .fix-list) {
  align-items: flex-start;
}

body:not(.pdf-export) .form-block .form-line-data:has(> textarea) > label,
body:not(.pdf-export) .form-container .form-line-data:has(> textarea) > label,
body:not(.pdf-export) .form-block .form-line-data:has(> .fix-list) > label,
body:not(.pdf-export) .form-container .form-line-data:has(> .fix-list) > label {
  padding-top: 10px;
}

body:not(.pdf-export) .form-block .form-line-data > input[type="checkbox"],
body:not(.pdf-export) .form-container .form-line-data > input[type="checkbox"],
body:not(.pdf-export) .form-block .form-line-data .destination-input-group input[type="checkbox"],
body:not(.pdf-export) .form-container .form-line-data .destination-input-group input[type="checkbox"],
body:not(.pdf-export) .form-block .form-line-data > input[type="radio"],
body:not(.pdf-export) .form-container .form-line-data > input[type="radio"] {
  flex: 0 0 var(--form-check-size) !important;
  display: block;
  width: var(--form-check-size) !important;
  min-width: var(--form-check-size) !important;
  max-width: var(--form-check-size) !important;
  height: var(--form-check-size) !important;
  min-height: var(--form-check-size) !important;
  max-height: var(--form-check-size) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  align-self: center !important;
  box-sizing: border-box;
  vertical-align: middle;
}

body:not(.pdf-export) .form-block .form-line-data .destination-input-group:has(> input[type="checkbox"]):not(:has(input[type="number"])),
body:not(.pdf-export) .form-container .form-line-data .destination-input-group:has(> input[type="checkbox"]):not(:has(input[type="number"])) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 var(--form-check-size) !important;
  width: var(--form-check-size) !important;
  min-width: var(--form-check-size) !important;
  max-width: var(--form-check-size) !important;
  height: var(--form-check-size) !important;
  min-height: 0 !important;
  max-height: var(--form-check-size) !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

body:not(.pdf-export) .form-block .form-line-data:has(> input[type="checkbox"]):not(:has(input[type="number"])),
body:not(.pdf-export) .form-container .form-line-data:has(> input[type="checkbox"]):not(:has(input[type="number"])),
body:not(.pdf-export) .form-block .form-line-data:has(> .destination-input-group > input[type="checkbox"]):not(:has(input[type="number"])),
body:not(.pdf-export) .form-container .form-line-data:has(> .destination-input-group > input[type="checkbox"]):not(:has(input[type="number"])),
body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])),
body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center !important;
  gap: 10px;
  min-height: var(--form-check-size);
}

body:not(.pdf-export) .form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label,
body:not(.pdf-export) .form-container .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label,
body:not(.pdf-export) .form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label.long-label,
body:not(.pdf-export) .form-container .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label.long-label,
body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label,
body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label.long-label,
body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label,
body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label.long-label {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: var(--form-check-size);
  order: 2;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: var(--form-check-size) !important;
}

body:not(.pdf-export) .form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > .destination-input-group,
body:not(.pdf-export) .form-container .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > .destination-input-group,
body:not(.pdf-export) .form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > input[type="checkbox"],
body:not(.pdf-export) .form-container .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > input[type="checkbox"],
body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > .destination-input-group,
body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > input[type="checkbox"],
body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > .destination-input-group,
body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > input[type="checkbox"] {
  order: 1;
  flex: 0 0 var(--form-check-size) !important;
  width: var(--form-check-size) !important;
  max-width: var(--form-check-size) !important;
  min-width: var(--form-check-size) !important;
  align-self: center !important;
}

body:not(.pdf-export) .form-block .form-line-data > input[type="file"],
body:not(.pdf-export) .form-container .form-line-data > input[type="file"],
body:not(.pdf-export) .form-block .form-line-data > .fq-file,
body:not(.pdf-export) .form-container .form-line-data > .fq-file {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: var(--form-control-h);
  max-height: none !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

body:not(.pdf-export) .fq-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body:not(.pdf-export) .fq-file .fq-file-native,
body:not(.pdf-export) .fq-file input[type="file"].fq-file-native {
  position: fixed !important;
  top: auto !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body:not(.pdf-export) .fq-file .fq-file-native::-webkit-file-upload-button,
body:not(.pdf-export) .fq-file input[type="file"].fq-file-native::-webkit-file-upload-button {
  visibility: hidden !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body:not(.pdf-export) .fq-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  height: var(--form-control-h);
  min-height: var(--form-control-h);
  padding: 0 14px;
  box-sizing: border-box;
  background: var(--lv-white);
  border: 1px solid var(--lv-navy);
  border-radius: var(--control-radius);
  color: var(--lv-navy);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

body:not(.pdf-export) .fq-file-btn:hover {
  background: var(--lv-navy);
  color: var(--lv-white);
}

body:not(.pdf-export) .fq-file-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 154, 120, 0.16);
}

body:not(.pdf-export) .fq-file-btn i {
  font-size: 12px;
}

body:not(.pdf-export) .fq-file-name {
  min-width: 0;
  flex: 1 1 120px;
  color: var(--lv-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.pdf-export) .fq-file-name.is-empty {
  color: var(--lv-muted);
}

body:not(.pdf-export) .selecting:has(> .fq-file),
body:not(.pdf-export) .editreg.form-block .selecting:has(> .fq-file) {
  margin: 0;
  max-width: 480px;
}

body:not(.pdf-export) .form-block .form-line-data .destination-input-group,
body:not(.pdf-export) .form-container .form-line-data .destination-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto !important;
  min-height: var(--form-control-h);
}

body:not(.pdf-export) .form-block .form-line-data .destination-input-group input[type="number"],
body:not(.pdf-export) .form-container .form-line-data .destination-input-group input[type="number"] {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0 !important;
  height: var(--form-control-h) !important;
  min-height: var(--form-control-h) !important;
  max-height: var(--form-control-h) !important;
  padding: 0 var(--form-control-pad-x) !important;
}

body:not(.pdf-export) .form-block .import-dest-btns,
body:not(.pdf-export) .form-container .import-dest-btns {
  flex-wrap: nowrap;
  margin: 0 !important;
}

body:not(.pdf-export) .form-block .import-dest-btns > .import-dest-controls,
body:not(.pdf-export) .form-container .import-dest-btns > .import-dest-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

body:not(.pdf-export) .form-block .import-dest-btns > .import-dest-controls > button,
body:not(.pdf-export) .form-container .import-dest-btns > .import-dest-controls > button {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
}

body:not(.pdf-export) .form-block .import-dest-controls,
body:not(.pdf-export) .form-container .import-dest-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

body:not(.pdf-export) .form-block .import-dest-controls > input,
body:not(.pdf-export) .form-container .import-dest-controls > input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

body:not(.pdf-export) .form-block .import-dest-btns > button,
body:not(.pdf-export) .form-container .import-dest-btns > button,
body:not(.pdf-export) .form-block .import-dest-controls > button,
body:not(.pdf-export) .form-container .import-dest-controls > button {
  flex: 0 0 auto;
  width: auto !important;
  height: var(--form-control-h) !important;
  min-height: var(--form-control-h) !important;
  max-height: var(--form-control-h) !important;
  padding: 0 12px !important;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

body:not(.pdf-export) .form-block .form-line-data > .fq-select,
body:not(.pdf-export) .form-container .form-line-data > .fq-select,
body:not(.pdf-export) .fq-select--form {
  --fq-radius: var(--control-radius);
  width: auto;
  max-width: none;
  min-width: 0;
}

body:not(.pdf-export) .form-block .form-line-data .fq-select-trigger,
body:not(.pdf-export) .form-container .form-line-data .fq-select-trigger,
body:not(.pdf-export) .fq-select--form .fq-select-trigger {
  height: var(--form-control-h);
  min-height: var(--form-control-h);
  padding: 0 var(--form-control-pad-x);
}

body:not(.pdf-export) .form-content,
body:not(.pdf-export) .form-content > section,
body:not(.pdf-export) .form-content > section:first-of-type,
body:not(.pdf-export) .form-content > section:last-of-type {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

body:not(.pdf-export) .editreg,
body:not(.pdf-export) .form-container,
body:not(.pdf-export) .form-line-data,
body:not(.pdf-export) .title-box {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body:not(.pdf-export) .title-box {
  margin-top: var(--page-block-gap);
  margin-bottom: var(--page-block-gap);
}

body:not(.pdf-export) .form-block img:not(.leaflet-tile):not(.leaflet-marker-icon):not(.leaflet-marker-shadow),
body:not(.pdf-export) .form-content img:not(.leaflet-tile):not(.leaflet-marker-icon):not(.leaflet-marker-shadow),
body:not(.pdf-export) .form-line-data img:not(.leaflet-tile):not(.leaflet-marker-icon):not(.leaflet-marker-shadow) {
  max-width: 100% !important;
  height: auto;
}

/* Leaflet tiles live inside .form-block; max-width/height:auto collapses the basemap. */
body:not(.pdf-export) .leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}

body:not(.pdf-export) .form-content.no-column,
body:not(.pdf-export) .form-block .form-content.no-column,
body:not(.pdf-export) .form-container .form-content.no-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
}

body:not(.pdf-export) .form-block .map,
body:not(.pdf-export) .form-container .map {
  margin: 0 !important;
  width: 100%;
}

body:not(.pdf-export) .leaflet-tooltip.map-marker-label {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  max-width: none;
  padding: 0 2px;
  pointer-events: none;
  text-shadow:
    0 0 3px #000,
    1px 1px 2px #000,
    -1px -1px 2px #000,
    1px -1px 2px #000,
    -1px 1px 2px #000;
  white-space: nowrap;
}

body:not(.pdf-export) .leaflet-tooltip.map-marker-label::before {
  display: none;
}

body:not(.pdf-export) .view-section .form-line-data > ul.route-view-waypoints,
body:not(.pdf-export) .view-section .route-view-waypoints li {
  font-size: inherit;
  font-family: inherit;
  font-weight: 400;
}

/* Action row sits outside the framed card, same as quotes. */
body:not(.pdf-export) .form-block:has(> .savebtns) {
  border: none !important;
  background: transparent;
}

body:not(.pdf-export) .form-block:has(> .savebtns) > .form-title {
  border: 1px solid var(--lv-platinum);
  border-bottom: none;
}

body:not(.pdf-export) .form-block:has(> .savebtns) > .form-content {
  border: 1px solid var(--lv-platinum);
  border-top: none;
  background: var(--lv-white);
}

body:not(.pdf-export) .form-block > .savebtns,
body:not(.pdf-export) .editreg > .savebtns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin: 15px 0 35px;
  padding: 12px 0;
  background: transparent;
  box-sizing: border-box;
}

/* Edit forms: label above the control; fields stay compact on desktop. */
body:not(.pdf-export) .editreg.form-block .form-content {
  padding: 20px 24px 24px;
}

body:not(.pdf-export) .editreg.form-block .form-content > section {
  display: grid;
  grid-template-columns: minmax(12rem, var(--form-field-max)) minmax(12rem, var(--form-field-max));
  justify-content: start;
  align-items: start;
  column-gap: 28px;
  row-gap: 16px;
  width: min(100%, calc(var(--form-field-max) * 2 + 28px));
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body:not(.pdf-export) .editreg.form-block .form-content.form-stack > section {
  grid-template-columns: minmax(0, var(--form-field-max));
  width: min(var(--form-field-max), 100%);
  max-width: 100%;
  min-width: 0;
  column-gap: 0;
}

body:not(.pdf-export) .form-content.plane-form-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

body:not(.pdf-export) .form-content.plane-form-layout > .plane-form-photos {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* Same trailing air as the last .form-line-data in a view section (e.g. Editado). */
  margin-bottom: 8px;
}

body:not(.pdf-export) .plane-photo-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

body:not(.pdf-export) .plane-photo-label {
  margin: 0;
  color: var(--lv-graphite);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

body:not(.pdf-export) .plane-photo-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  background: none;
  border: 0;
  position: relative;
}

body:not(.pdf-export) .plane-photo-media {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

body:not(.pdf-export) .plane-photo-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 260px;
  height: auto;
  margin: 0;
  object-fit: contain;
}

body:not(.pdf-export) .plane-photo-empty {
  display: none;
  color: var(--lv-muted);
  font-size: 13px;
}

body:not(.pdf-export) .plane-photo-frame.is-empty .plane-photo-empty {
  display: block;
}

body:not(.pdf-export) .plane-photo-frame.is-empty .plane-photo-media,
body:not(.pdf-export) .plane-photo-frame.is-empty img {
  display: none;
}

body:not(.pdf-export) .plane-photo-card > input[type="file"],
body:not(.pdf-export) .plane-photo-card > .fq-file {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body:not(.pdf-export) .plane-photo-card > .fq-file {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Ocultar el control nativo antes de que fancy_file.js envuelva el input (iOS). */
body:not(.pdf-export) .plane-photo-card > input[type="file"] {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
}

body:not(.pdf-export) .plane-photo-delete {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  background: rgba(20, 25, 33, 0.78);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
}

body:not(.pdf-export) .plane-photo-frame:not(.is-empty) .plane-photo-media .plane-photo-delete:not([hidden]) {
  display: inline-flex;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  margin: 0;
}

body:not(.pdf-export) .plane-photo-frame.is-empty .plane-photo-delete,
body:not(.pdf-export) .plane-photo-delete[hidden] {
  display: none !important;
}

body:not(.pdf-export) .plane-photo-delete i {
  font-size: 12px;
}

body:not(.pdf-export) .plane-photo-delete:hover {
  background: var(--lv-red);
  color: #fff;
  text-decoration: none;
}

@media screen and (min-width: 992px) {
  body:not(.pdf-export) .form-content.plane-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    column-gap: 36px;
    row-gap: 0;
    align-items: start;
  }

  body:not(.pdf-export) .editreg.form-block .form-content.form-stack.plane-form-layout > section.plane-form-fields {
    width: min(480px, 100%);
    max-width: 100%;
    min-width: 0;
  }

  body:not(.pdf-export) .editreg.form-block .form-content.form-stack.plane-form-layout > section.plane-form-photos {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    grid-template-columns: none;
  }

  body:not(.pdf-export) .form-container .form-content.plane-form-layout > .plane-form-fields {
    width: 100%;
    max-width: 560px;
  }

  body:not(.pdf-export) .plane-rate-note {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  body:not(.pdf-export) .plane-photo-frame img {
    max-height: 320px;
  }
}

body:not(.pdf-export) .editreg.form-block .form-content.no-column > section:first-of-type {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}

body:not(.pdf-export) .editreg.form-block .form-content.no-column > section.map-section,
body:not(.pdf-export) .editreg.form-block .form-content.no-column > #map-container {
  display: block;
  width: 100%;
  max-width: 100%;
}

body:not(.pdf-export) .editreg.form-block .form-line-data {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0;
}

body:not(.pdf-export) .editreg.form-block .form-line-data > label,
body:not(.pdf-export) .editreg.form-block .form-line-data > label.long-label {
  display: block;
  flex: none;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: stretch;
  text-align: left !important;
  line-height: 1.25;
}

body:not(.pdf-export) .editreg.form-block .form-line-data > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body:not(.pdf-export) .editreg.form-block .form-line-data > select,
body:not(.pdf-export) .editreg.form-block .form-line-data > .fq-select,
body:not(.pdf-export) .editreg.form-block .form-line-data > .fq-select--form,
body:not(.pdf-export) .editreg.form-block .form-line-data > textarea,
body:not(.pdf-export) .editreg.form-block .form-line-data > .form-control,
body:not(.pdf-export) .editreg.form-block .form-line-data > .fix-list,
body:not(.pdf-export) .editreg.form-block .form-line-data > .destination-input-group,
body:not(.pdf-export) .editreg.form-block .form-line-data > .import-dest-controls,
body:not(.pdf-export) .editreg.form-block .form-line-data > p,
body:not(.pdf-export) .editreg.form-block .form-line-data > input[type="file"],
body:not(.pdf-export) .editreg.form-block .form-line-data > .fq-file {
  flex: 0 0 auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  align-self: stretch;
}

body:not(.pdf-export) .editreg.form-block .form-line-data:has(> textarea),
body:not(.pdf-export) .editreg.form-block .form-line-data:has(> img),
body:not(.pdf-export) .editreg.form-block .form-line-data:has(> input[type="file"]),
body:not(.pdf-export) .editreg.form-block .form-line-data:has(> .fq-file),
body:not(.pdf-export) .editreg.form-block .form-line-data.import-dest {
  grid-column: 1 / -1;
  max-width: 100%;
}

body:not(.pdf-export) .editreg.form-block .form-line-data > label:empty {
  display: none;
}

body:not(.pdf-export) .editreg.form-block .form-line-data > .fix-list:not(:has(li)) {
  display: none;
}

body:not(.pdf-export) .editreg.form-block .form-line-data:has(> textarea) > label,
body:not(.pdf-export) .editreg.form-block .form-line-data:has(> .fix-list) > label {
  padding-top: 0 !important;
}

body:not(.pdf-export) .editreg.form-block .form-content.form-stack:has(#planes) > section {
  width: min(var(--form-field-wide), 100%);
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

body:not(.pdf-export) .editreg.form-block .form-content.form-stack:has(#planes) > section > .form-line-data {
  max-width: min(var(--form-field-max), 100%);
}

body:not(.pdf-export) .editreg.form-block .form-content > section > #planes,
body:not(.pdf-export) .editreg.form-block .form-content > section > .op-data-assign,
body:not(.pdf-export) .editreg.form-block #planes.op-data-assign {
  display: flex;
  flex-direction: column;
  gap: var(--form-stack-gap);
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.pdf-export) .editreg.form-block #planes.op-data-assign > .form-line-data {
  max-width: 100%;
}

body:not(.pdf-export) .editreg.form-block .plane-assign-select {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  column-gap: var(--form-row-gap);
  row-gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 13px 0 0;
}

body:not(.pdf-export) .editreg.form-block .plane-assign-col {
  display: flex;
  flex-direction: column;
  gap: var(--form-label-control-gap);
  min-width: 0;
  height: 100%;
}

body:not(.pdf-export) .editreg.form-block .plane-assign-col > label {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
}

body:not(.pdf-export) .editreg.form-block .plane-assign-select ul {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 120px;
  margin: 0;
  padding: 4px 6px;
  box-sizing: border-box;
  text-align: left;
}

body:not(.pdf-export) .editreg.form-block .plane-assign-select ul.assign-select-empty {
  padding: 10px;
}

body:not(.pdf-export) .editreg.form-block .plane-assign-select li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  list-style: none;
  text-align: left;
}

body:not(.pdf-export) .editreg.form-block .plane-assign-select li > span {
  min-width: 0;
  overflow-wrap: break-word;
}

body:not(.pdf-export) .editreg.form-block .plane-assign-select .btn-add,
body:not(.pdf-export) .editreg.form-block .plane-assign-select .btn-delete {
  flex: 0 0 auto;
  padding: 0;
  line-height: 1;
}

body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  grid-column: 1 / -1;
  max-width: 100%;
  min-height: var(--form-check-size);
}

body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label,
body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label.long-label {
  display: flex !important;
  align-items: center !important;
  flex: 0 1 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: var(--form-check-size);
  order: 2;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: var(--form-check-size) !important;
}

body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > .destination-input-group,
body:not(.pdf-export) .editreg.form-block .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > input[type="checkbox"] {
  order: 1;
  flex: 0 0 var(--form-check-size) !important;
  width: var(--form-check-size) !important;
  max-width: var(--form-check-size) !important;
  min-width: var(--form-check-size) !important;
  align-self: center !important;
}

body:not(.pdf-export) .editreg.form-block .form-line-data .destination-input-group input[type="number"] {
  width: 100% !important;
  max-width: 100% !important;
}

body:not(.pdf-export) .editreg.form-block .import-dest-btns > label:not(.long-label) {
  display: none;
}

body:not(.pdf-export) .editreg.form-block .import-dest-msg,
body:not(.pdf-export) .editreg.form-block .import-route-msg {
  margin: 0;
  max-width: 100%;
}

body:not(.pdf-export) .editreg.form-block .import-route-msg:empty {
  display: none;
}

body:not(.pdf-export) .editreg.form-block .selecting {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 720px;
}

body:not(.pdf-export) .import-dest-msg,
body:not(.pdf-export) .import-route-msg {
  margin-left: calc(var(--form-label-w) + var(--form-row-gap));
  color: var(--lv-red);
  font-weight: 500;
}

/* Shared two-column tracks for view pages: labels align, values align.
   Column width follows the longest title (capped at --form-label-w), not 150px on every row. */
body:not(.pdf-export) .view-section {
  display: grid;
  grid-template-columns: fit-content(var(--form-label-w)) minmax(0, 1fr);
  column-gap: var(--form-row-gap);
  row-gap: 0;
  align-items: start;
}

body:not(.pdf-export) .view-section > :not(.form-line-data),
body:not(.pdf-export) .view-section > .form-line-data.compliance-doc-row {
  grid-column: 1 / -1;
}

body:not(.pdf-export) .view-section > .form-line-data:not(.compliance-doc-row) {
  display: grid !important;
  grid-template-columns: subgrid !important;
  grid-column: 1 / -1;
  align-items: first baseline;
  column-gap: inherit;
  row-gap: 0;
  margin: 8px 0;
}

body:not(.pdf-export) .view-section .form-line-data > label {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none;
  align-self: unset;
  padding-top: 0 !important;
  line-height: 1.35;
  font-weight: 600;
}

/* Label + pill on the same row (Anexo): centers of the letters and the badge match.
   Precio km is not this pattern: USD shares the label row; the date pill goes under the amount. */
body:not(.pdf-export) .view-section > .form-line-data:not(.compliance-doc-row):has(.doc-badge):not(:has(.plane-rate-value)) {
  align-items: center;
}

body:not(.pdf-export) .view-section > .form-line-data:has(.doc-badge):not(:has(.plane-rate-value)) > label {
  display: flex;
  align-items: center;
  line-height: 1;
  min-height: var(--doc-badge-h);
}

body:not(.pdf-export) .view-section > .form-line-data:has(.plane-rate-value) {
  align-items: first baseline;
}

body:not(.pdf-export) .form-line-data > p.op-data-plane-all,
body:not(.pdf-export) .view-section .form-line-data > p.op-data-plane-all {
  color: var(--lv-green);
  font-weight: 600;
}

body:not(.pdf-export) .view-section .form-line-data > p,
body:not(.pdf-export) .view-section .form-line-data > ul,
body:not(.pdf-export) .view-section .form-line-data > .fix-list,
body:not(.pdf-export) .view-section .form-line-data > a,
body:not(.pdf-export) .view-section .form-line-data > .data-changed-box {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-top: 0;
  align-self: unset;
  line-height: 1.35;
  font-weight: 400;
  overflow-wrap: break-word;
}

body:not(.pdf-export) .form-field-note {
  color: var(--lv-muted);
  font-weight: 400;
  line-height: 1.35;
}

body:not(.pdf-export) .plane-rate-value {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  text-align: left;
}

body:not(.pdf-export) .plane-rate-note {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  height: var(--doc-badge-h);
  min-height: var(--doc-badge-h);
  padding: var(--doc-badge-pad-y) var(--doc-badge-pad-x);
  border-radius: 4px;
  font-size: var(--doc-badge-fs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow-wrap: normal;
  min-width: 0;
  max-width: 100%;
}

body:not(.pdf-export) .plane-rate-note.is-fresh {
  background: var(--doc-badge-soft-green-bg);
  color: var(--doc-badge-soft-green-fg);
}

body:not(.pdf-export) .plane-rate-note.is-stale {
  background: #fde6cc;
  color: #9a4e00;
}

body:not(.pdf-export) .editreg.form-block .form-line-data > .plane-rate-note {
  width: auto !important;
  max-width: 100% !important;
  align-self: flex-start;
}

body:not(.pdf-export) .view-section .form-line-data > ul.route-view-waypoints {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}

body:not(.pdf-export) .view-section .route-view-waypoints li {
  padding: 0;
  line-height: 1.35;
}

body:not(.pdf-export) .view-section .route-view-waypoints li + li {
  margin-top: 2px;
}

body:not(.pdf-export) .view-section .form-line-data > img {
  align-self: start;
  width: auto !important;
  min-width: 0 !important;
  max-width: min(400px, 100%) !important;
  height: auto;
  margin: 0 !important;
  object-fit: contain;
}

body:not(.pdf-export) .view-section .form-line-data > img.group-logo-preview {
  max-width: 140px !important;
  max-height: 64px !important;
}

body:not(.pdf-export) #legs .date-ul li,
body:not(.pdf-export) #legs .aeroplane-ul,
body:not(.pdf-export) .medidor-plane {
  align-items: center;
}

body:not(.pdf-export) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body:not(.pdf-export) select:not(.fq-select-native),
body:not(.pdf-export) textarea {
  border: 1px solid var(--lv-steel) !important;
  border-radius: var(--control-radius) !important;
  font-family: var(--font-sans) !important;
  font-size: var(--form-control-fs) !important;
}

body:not(.pdf-export) input:focus,
body:not(.pdf-export) select:focus,
body:not(.pdf-export) textarea:focus {
  outline: none;
  border-color: var(--lv-navy) !important;
  box-shadow: none;
}

.loginsep {
  display: none;
}

/* ---------- Auth pages ---------- */

body:not(.pdf-export):not(.error-page).auth-page {
  background: var(--lv-white);
  min-height: 100vh;
}

body.auth-page .site-chrome {
  position: relative;
}

body.auth-page .form-block.form-user-login {
  background: var(--lv-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 8vh auto 0;
  max-width: 480px;
  width: 90%;
  padding: 36px 32px 28px;
}

body.auth-page .form-block .form-div {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  font-family: var(--font-sans) !important;
  margin: 0 0 18px;
}

body.auth-page .form-block label {
  display: block !important;
  color: var(--lv-navy) !important;
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left !important;
  width: 100% !important;
  padding: 0 0 8px !important;
  margin: 0 !important;
}

body.auth-page .form-block input,
body.auth-page .form-user-login input,
body.auth-page .form-user-creds input {
  width: 100%;
  max-width: 100%;
  height: var(--form-control-h);
  min-height: var(--form-control-h);
  max-height: var(--form-control-h);
  padding: 0 var(--form-control-pad-x);
  font-size: var(--form-control-fs);
  font-family: var(--font-sans);
  box-sizing: border-box;
}

body.auth-page .form-block .form-div:last-of-type {
  justify-content: flex-end !important;
  align-items: center !important;
  flex-direction: row !important;
  margin-top: 8px;
}

body.auth-page .form-div a {
  color: var(--lv-graphite);
  font-size: 13px;
}

body.auth-page .form-div a:hover {
  color: var(--lv-navy);
}

body.auth-page .btns {
  border-color: var(--lv-navy) !important;
}

body.auth-page .messagebar {
  max-width: 480px;
  margin: 24px auto 0;
}

#legs {
  font-family: var(--font-sans);
}

#legs.medidor {
  --leg-meter-cols: minmax(0, 1.4fr) minmax(0, 1.4fr) 124px minmax(0, 0.55fr) minmax(0, 0.5fr) minmax(0, 0.65fr);
  --leg-meter-col-gap: 20px;
}

.leg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--form-control-h);
  height: var(--form-control-h);
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  border-radius: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.leg-icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 !important;
  flex-shrink: 0;
}

.leg-icon-btn--ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lv-green) !important;
  border-radius: var(--control-radius);
  width: var(--form-control-h);
  height: var(--form-control-h);
  padding: 0 !important;
}

.leg-icon-btn--ok:hover,
.leg-edit-actions .leg-icon-btn--ok:hover,
.leg-col-3 .leg-icon-btn--ok:hover,
.add-quote-form-title .leg-icon-btn--ok:hover {
  background: var(--lv-green-hover) !important;
}

.leg-icon-btn--ok img {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
  flex-shrink: 0;
}

/* Align the validate/edit icon with origin/destination inputs (24px + margin-top -5px) */
#legs #table-body.table-quote .leg-quote-col-3 {
  display: flex;
  align-items: center;
  height: 24px;
  margin-top: 4px;
}

#legs #table-body.table-quote .leg-quote-col-3 .leg-icon-btn {
  width: 24px;
  height: 24px;
}

#legs .quote-fee-ul > li {
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

#legs .quote-fee-ul > .fee-edit-col-4.d-flex {
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#legs .extra-fee-btns .leg-icon-btn {
  width: 24px;
  height: 24px;
  margin: 0;
}

#legs .extra-fee-btns .leg-icon-btn img {
  width: 18px;
  height: 18px;
}

#legs .extra-fee-btns .leg-icon-btn--ok img {
  width: 14px;
  height: 14px;
}

.ts-search-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.ts-search-row .ts-search-input {
  flex: 0 0 33% !important;
  width: 33% !important;
  max-width: 33% !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  box-sizing: border-box;
}

.ts-search-row .leg-icon-btn:hover {
  background: rgba(27, 34, 48, 0.08) !important;
}

#legs.medidor .add-quote-form-title,
.ul-medidor .add-quote-form-title {
  background: #ffffff !important;
  color: #141921 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-weight: 700 !important;
}

.add-quote-form-title.leg-tramo-head {
  background: rgba(27, 34, 48, 0.08) !important;
  color: #1b2230 !important;
  font-weight: 700 !important;
}

#legs.medidor .add-quote-form-title > span,
.ul-medidor .add-quote-form-title > span,
.ul-medidor .add-quote-form-title .med-leg-1 {
  font-weight: 700;
}

.add-quote-form-title .leg-icon-btn:hover {
  background: rgba(27, 34, 48, 0.08) !important;
}

.leg-col-3 .leg-icon-btn:hover,
.btns-new-leg .leg-icon-btn:hover,
.leg-edit-actions .leg-icon-btn:hover {
  background: rgba(27, 34, 48, 0.08) !important;
}

.actions-leg,
.leg-medidor-actions,
.leg-medidor-actions > div {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  height: 44px;
}

.leg-edit-row {
  display: grid;
  grid-template-columns: var(--leg-meter-cols, minmax(0, 1.4fr) minmax(0, 1.4fr) 124px minmax(0, 0.55fr) minmax(0, 0.5fr) minmax(0, 0.65fr));
  column-gap: var(--leg-meter-col-gap, 20px);
  row-gap: 10px;
  align-items: end;
  justify-content: start;
  padding: 12px 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.leg-edit-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.leg-edit-field > span {
  font-size: 11px;
  font-weight: 600;
  color: #7a7a7a;
  line-height: 1;
}

.leg-edit-field input,
#legs .leg-edit-field input.input-text,
#legs .leg-tramos input.input-text,
#legs .ul-medidor input.input-text {
  height: 36px !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px !important;
}

.leg-edit-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.ul-medidor.leg-tramo-2,
.ul-medidor.medidor-empty-leg {
  display: block;
  width: 100%;
}

#legs.medidor .leg-col-8 {
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 0;
}

#legs.medidor .leg-meter-item + .leg-meter-item,
#legs.medidor .leg-tramo-2 {
  border-top: 1px dotted #d5d2cc;
  margin-top: 6px;
  padding-top: 10px;
}

#legs.medidor .leg-meter-item:has(+ #table-footer) {
  border-bottom: 1px dotted #d5d2cc;
  margin-bottom: 32px;
  padding-bottom: 10px;
}

#legs.medidor .leg-meter-item:has(+ #table-footer) .leg-tramo-2 {
  margin-bottom: 0 !important;
}

#legs.medidor .leg-meter-item:has(+ #table-footer) .leg-tramo-2 .leg-edit-row {
  padding-bottom: 10px;
}

.leg-tramo-2 > .add-quote-form-title {
  width: 100%;
}

.leg-tramos .leg-col-1 li:last-of-type,
.leg-tramos .leg-col-2 li:last-of-type,
.leg-tramos .leg-col-4 li:last-of-type,
.leg-tramos .leg-col-5 li:last-of-type,
.leg-tramos .leg-col-6 li:last-of-type,
.leg-tramos .leg-col-7 li:last-of-type {
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.leg-tramos .leg-col-1 li.li-input-text:last-of-type,
.leg-tramos .leg-col-2 li.li-input-text:last-of-type {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

#legs .table-quote .leg-quote-col-1,
#legs .table-quote .leg-quote-col-2 {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

#legs .leg-tramos .errormsg,
#legs .table-quote .errormsg {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #9b3a2f;
}

#legs .leg-tramos select.route {
  height: 26px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#legs .leg-tramos .fq-select,
#legs .table-quote .fq-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

#legs .table-quote .leg-quote-col-4 .fq-select,
#legs .leg-quote-col-4 .fq-select {
  width: calc(100% - 16px);
  max-width: calc(100% - 16px);
  min-width: 0;
  flex: 0 1 auto;
}

#legs .table-quote .leg-quote-col-4,
#legs .leg-tramos .leg-col-4 li:last-of-type {
  display: flex;
  align-items: center;
}

#legs .table-quote .leg-quote-col-4 .fq-select {
  margin-top: -5px;
}

#legs .date-ul .fq-select,
#legs .add-extra-fee .fq-select,
#legs .table-quote .fq-select,
#legs .leg-tramos .fq-select {
  --fq-radius: 8px;
}

#legs .date-ul .fq-select-trigger,
#legs .add-extra-fee .fq-select-trigger,
#legs .table-quote .fq-select-trigger,
#legs .leg-quote-col-4 .fq-select-trigger,
#legs .leg-tramos .fq-select-trigger,
#legs .quote-aeroplane-data .fq-select-trigger {
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  padding: 0 8px 0 10px !important;
  gap: 6px;
  font-size: var(--form-control-fs) !important;
  font-weight: 500;
  line-height: 1 !important;
  background: #fff;
  border: 1px solid var(--lv-steel, #c8c4bc);
  border-radius: 8px;
}

#legs .date-ul .fq-select-name,
#legs .date-ul .fq-select-label,
#legs .add-extra-fee .fq-select-name,
#legs .add-extra-fee .fq-select-label,
#legs .table-quote .fq-select-name,
#legs .table-quote .fq-select-label,
#legs .leg-tramos .fq-select-name,
#legs .leg-tramos .fq-select-label {
  font-size: var(--form-control-fs);
  font-weight: 500;
  line-height: 1;
}

#legs .date-ul .fq-select-chevron,
#legs .add-extra-fee .fq-select-chevron,
#legs .table-quote .fq-select-chevron,
#legs .leg-quote-col-4 .fq-select-chevron,
#legs .leg-tramos .fq-select-chevron {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  background: #f6f5f2;
}

#legs .add-extra-fee {
  align-items: center;
}

#legs .add-extra-fee > li {
  margin: 0;
  min-height: 26px;
}

#legs .add-extra-fee .fee-edit-col-1 {
  display: flex;
  align-items: center;
}

#legs .add-extra-fee .basketicon {
  margin: 0 7px 0 -1px;
}

#legs .add-extra-fee .fq-select {
  width: 100%;
}

@media screen and (max-width: 1024px), screen and (pointer: coarse) {
  #legs .table-quote .add-extra-fee .fq-select-trigger {
    height: var(--form-control-h) !important;
    min-height: var(--form-control-h) !important;
    max-height: var(--form-control-h) !important;
  }
}

@media screen and (min-width: 701px) {
  #legs.medidor #table-body.leg-tramos {
    display: grid;
    grid-template-columns: var(--leg-meter-cols);
    column-gap: var(--leg-meter-col-gap);
    row-gap: 0;
    align-items: start;
  }

  #legs.medidor .leg-tramos > .add-quote-form-title,
  #legs.medidor .leg-tramos > .leg-col-8 {
    grid-column: 1 / -1;
  }

  #legs.medidor .leg-tramos > .leg-col-1,
  #legs.medidor .leg-tramos > .leg-col-2,
  #legs.medidor .leg-tramos > .leg-col-4,
  #legs.medidor .leg-tramos > .leg-col-5,
  #legs.medidor .leg-tramos > .leg-col-6,
  #legs.medidor .leg-tramos > .leg-col-7 {
    width: auto !important;
    margin-right: 0 !important;
    min-width: 0;
  }

  #legs.medidor .leg-tramos .leg-col-4 .fq-select,
  #legs.medidor .leg-tramos .leg-col-4 .fq-select-trigger {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

::-webkit-scrollbar-track {
  background: var(--lv-bone);
}

::-webkit-scrollbar-thumb {
  background: var(--lv-steel);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lv-graphite);
}

@media screen and (max-width: 991.98px) {
  .site-chrome .header-language,
  .site-chrome .activeuser {
    display: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-chrome .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-chrome .navbar {
    background: var(--lv-header) !important;
    padding: 0 !important;
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-chrome .navbar .container-fluid {
    display: block;
    padding: 0;
  }

  .site-chrome .navbar-collapse {
    margin-top: 0 !important;
    padding: 0 0 12px;
    background: var(--lv-header);
  }

  .site-chrome .navbar-nav {
    width: 100%;
    margin: 0 !important;
    padding: 0;
  }

  .site-chrome .navbar-nav .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-chrome .navbar-toggler,
  .site-chrome .navbar-toggler:hover,
  .site-chrome .navbar-toggler:focus,
  .site-chrome .navbar-toggler:focus-visible,
  .site-chrome .navbar-toggler:active,
  .site-chrome .navbar-nav .nav-link,
  .site-chrome .navbar-nav .nav-link:hover,
  .site-chrome .navbar-nav .nav-link:focus,
  .site-chrome .navbar-nav .nav-link:focus-visible,
  .site-chrome .navbar-nav .nav-link:active,
  .site-chrome .dropdown-item,
  .site-chrome .dropdown-item:hover,
  .site-chrome .dropdown-item:focus,
  .site-chrome .dropdown-item:focus-visible,
  .site-chrome .dropdown-item:active,
  .site-chrome .nav-language summary,
  .site-chrome .nav-language summary:focus,
  .site-chrome .nav-language summary:focus-visible,
  .site-chrome .nav-language .language-option,
  .site-chrome .nav-language .language-option:focus,
  .site-chrome .nav-language .language-option:focus-visible,
  .site-chrome .nav-language .language-option:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .site-chrome .navbar-light .navbar-nav .nav-link,
  .site-chrome .navbar-dark .navbar-nav .nav-link,
  .site-chrome .navbar-nav .nav-link,
  .site-chrome .navbar-nav .nav-link:hover,
  .site-chrome .navbar-nav .nav-link:focus,
  .site-chrome .navbar-nav .show > .nav-link {
    display: flex;
    align-items: center;
    margin-right: 0;
    min-height: 0;
    line-height: 1;
    padding: 19px 20px !important;
    color: #ffffff !important;
  }

  .site-chrome .navbar-nav .nav-item.show {
    background: rgba(255, 255, 255, 0.05);
  }

  .site-chrome .navbar-nav .nav-item.show > .nav-link {
    color: #ffffff !important;
  }

  .site-chrome .navbar-nav .dropdown-toggle::after {
    border-top-color: #ffffff;
    opacity: 0.75;
  }

  .site-chrome .navbar-nav .dropdown-menu,
  .site-chrome .navbar-nav .dropdown-menu.show,
  .site-chrome .mi-cuenta .dropdown-menu,
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    min-width: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 20px 0 32px !important;
    z-index: 1 !important;
  }

  .site-chrome .dropdown-item,
  .site-chrome .dropdown-item:hover,
  .site-chrome .dropdown-item:focus,
  .site-chrome .dropdown-item:active,
  .site-chrome button.dropdown-item {
    display: flex;
    align-items: center;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    min-height: 0;
    line-height: 1;
    padding: 16px 0 16px 14px !important;
    position: relative;
    width: 100%;
    text-align: left;
  }

  .site-chrome .dropdown-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    color: #ffffff;
    opacity: 0.7;
  }

  .site-chrome .dropdown-item:hover,
  .site-chrome .dropdown-item:focus {
    color: #ffffff !important;
    opacity: 1;
  }

  .site-chrome .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
    margin: 0;
  }

  .site-chrome .nav-language {
    display: block;
    margin: 0 20px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-chrome .nav-language summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-height: 0;
    line-height: 1;
    padding: 19px 0;
  }

  .site-chrome .nav-language summary::-webkit-details-marker,
  .site-chrome .nav-language summary::marker {
    display: none;
    content: "";
  }

  .site-chrome .nav-language summary::after {
    content: "+";
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.8;
  }

  .site-chrome .nav-language[open] summary::after {
    content: "−";
  }

  .site-chrome .nav-language-list {
    display: flex;
    flex-direction: column;
    padding: 0 0 0 2px;
  }

  .site-chrome .nav-language .language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: left;
    text-transform: none;
    min-height: 0;
    line-height: 1;
    padding: 16px 0;
    cursor: pointer;
  }

  .site-chrome .nav-language .language-option:hover,
  .site-chrome .nav-language .language-option.is-active {
    color: #ffffff;
  }

  body:not(.pdf-export) .form-content.plane-form-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  body:not(.pdf-export) .plane-rate-value {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  body:not(.pdf-export) .editreg.form-block .form-content.form-stack.plane-form-layout > section.plane-form-photos {
    width: 100%;
    max-width: 100%;
  }

}

@media screen and (max-width: 700px) {
  .site-chrome .logo {
    padding: 12px 16px;
  }

  .site-chrome .logotext {
    letter-spacing: 0.16em;
    font-size: 11px;
    margin-left: 10px;
  }

  .site-chrome .navbar-nav .nav-link {
    margin-right: 0;
  }

  .title-box {
    flex-wrap: wrap;
  }

  .title-box h2,
  #legs h2,
  .form-container h2 {
    font-size: 26px !important;
    white-space: normal !important;
  }

  .title-box .filter-lists {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    height: auto;
  }

  .filter-lists input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: auto;
  }

  .filter-lists .filter-clear {
    flex-shrink: 0;
  }

  #legs #table-body.table-quote .leg-quote-col-3 {
    height: auto;
    margin-top: 0;
  }

  #legs:not(.medidor) .add-quote-form-title {
    height: var(--section-title-h);
    min-height: var(--section-title-h);
    max-height: var(--section-title-h);
    padding: 0 14px !important;
    flex-wrap: nowrap;
    gap: 8px;
  }

  #legs:not(.medidor) .add-quote-form-title #search-input {
    width: min(160px, 44vw);
    height: 28px;
  }

  body.auth-page .form-block.form-user-login {
    margin: 6vh auto !important;
    padding: 28px 20px 22px;
  }

  .leg-edit-row {
    grid-template-columns: 1fr;
  }

  .ts-search-row .ts-search-input {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  :root {
    --form-control-h: 32px;
  }

  body:not(.pdf-export) .form-content.no-column,
  body:not(.pdf-export) .form-block .form-content.no-column,
  body:not(.pdf-export) .form-container .form-content.no-column {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body:not(.pdf-export) .editreg.form-block .form-content {
    padding: 16px 12px 18px;
  }

  body:not(.pdf-export) .editreg.form-block .form-content > section,
  body:not(.pdf-export) .editreg.form-block .form-content.form-stack > section,
  body:not(.pdf-export) .editreg.form-block .form-content.form-stack.plane-form-layout > section.plane-form-fields,
  body:not(.pdf-export) .editreg.form-block .form-content.form-stack > section.compliance-slots,
  body:not(.pdf-export) .editreg.form-block .form-content.no-column > section:first-of-type {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    column-gap: 0;
    row-gap: 14px;
  }

  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes),
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    column-gap: 0;
    row-gap: var(--form-stack-gap);
    width: 100%;
    min-width: 0;
  }

  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes) .compliance-slot-main,
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) .compliance-slot-main,
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes) .anexo2-planes,
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) .anexo2-planes {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes) .anexo2-planes,
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) .anexo2-planes {
    padding-left: 0;
    border-left: 0;
    padding-top: var(--form-stack-gap);
    border-top: 1px solid var(--lv-platinum);
  }

  body:not(.pdf-export) .anexo2-planes-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.pdf-export) .anexo2-planes-item .compliance-check-label input[type="checkbox"] {
    order: 0;
    margin-left: 0;
  }

  body:not(.pdf-export) .editreg .form-line-data,
  body:not(.pdf-export) .editreg.form-block .form-line-data {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-width: none;
  }

  body:not(.pdf-export) .editreg .form-line-data > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  body:not(.pdf-export) .editreg .form-line-data > select,
  body:not(.pdf-export) .editreg .form-line-data > .fq-select,
  body:not(.pdf-export) .editreg .form-line-data > .fq-select--form,
  body:not(.pdf-export) .editreg .form-line-data > textarea,
  body:not(.pdf-export) .editreg .form-line-data > .form-control,
  body:not(.pdf-export) .editreg .form-line-data > .fix-list,
  body:not(.pdf-export) .editreg .form-line-data > .destination-input-group,
  body:not(.pdf-export) .editreg .form-line-data > p,
  body:not(.pdf-export) .editreg .form-line-data > input[type="file"],
  body:not(.pdf-export) .editreg .form-line-data > .fq-file {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch;
  }

  body:not(.pdf-export) .editreg .form-line-data > label,
  body:not(.pdf-export) .editreg .form-line-data > label.long-label {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
    padding-top: 0;
    text-align: left;
  }

  body:not(.pdf-export) .view-section > .form-line-data:not(.compliance-doc-row) {
    grid-template-columns: subgrid !important;
    margin: 8px 0;
  }

  body:not(.pdf-export) .form-block .form-line-data:has(> textarea) > label,
  body:not(.pdf-export) .form-container .form-line-data:has(> textarea) > label,
  body:not(.pdf-export) .form-block .form-line-data:has(> .fix-list) > label,
  body:not(.pdf-export) .form-container .form-line-data:has(> .fix-list) > label {
    padding-top: 0;
  }

  body:not(.pdf-export) .form-block .form-line-data > label:empty,
  body:not(.pdf-export) .form-container .form-line-data > label:empty,
  body:not(.pdf-export) .form-block .import-dest-btns > label:not(.long-label),
  body:not(.pdf-export) .form-container .import-dest-btns > label:not(.long-label) {
    display: none;
  }

  body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    min-height: var(--form-check-size);
  }

  body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label,
  body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label.long-label {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: var(--form-check-size);
    order: 2;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: var(--form-check-size) !important;
  }

  body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > .destination-input-group,
  body:not(.pdf-export) .editreg .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > input[type="checkbox"] {
    order: 1;
    flex: 0 0 var(--form-check-size) !important;
    width: var(--form-check-size) !important;
    max-width: var(--form-check-size) !important;
    min-width: var(--form-check-size) !important;
    align-self: center !important;
  }

  body:not(.pdf-export) .form-block .form-line-data .destination-input-group input[type="number"],
  body:not(.pdf-export) .form-container .form-line-data .destination-input-group input[type="number"],
  body:not(.pdf-export) .form-block .form-line-data .fq-select-trigger,
  body:not(.pdf-export) .form-container .form-line-data .fq-select-trigger,
  body:not(.pdf-export) .fq-select--form .fq-select-trigger {
    width: 100% !important;
  }

  body:not(.pdf-export) .import-dest-msg,
  body:not(.pdf-export) .import-route-msg {
    margin-left: 0;
  }

  body:not(.pdf-export) .form-block .import-dest-btns,
  body:not(.pdf-export) .form-container .import-dest-btns {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  body:not(.pdf-export) .form-block .import-dest-btns > label.long-label,
  body:not(.pdf-export) .form-container .import-dest-btns > label.long-label {
    flex: none;
    width: auto;
  }

  body:not(.pdf-export) .form-block .import-dest-btns > .import-dest-controls,
  body:not(.pdf-export) .form-container .import-dest-btns > .import-dest-controls {
    flex-wrap: nowrap;
  }

  body:not(.pdf-export) .form-block .import-dest-controls,
  body:not(.pdf-export) .form-container .import-dest-controls {
    flex-wrap: wrap;
  }

  body:not(.pdf-export) .form-block .import-dest-controls > input,
  body:not(.pdf-export) .form-container .import-dest-controls > input {
    flex: 1 1 100%;
    width: 100% !important;
  }

  body:not(.pdf-export) .form-block .import-dest-controls > button,
  body:not(.pdf-export) .form-container .import-dest-controls > button {
    flex: 1 1 auto;
  }

  body:not(.pdf-export) .form-content {
    padding: 12px;
  }

  body:not(.pdf-export) .form-block > .savebtns,
  body:not(.pdf-export) .editreg > .savebtns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 15px 0 35px;
    padding: 12px 0;
  }

  body:not(.pdf-export) .form-block > .savebtns a,
  body:not(.pdf-export) .editreg > .savebtns a {
    display: block;
    width: 100%;
  }

  body:not(.pdf-export) .form-container,
  body:not(.pdf-export) .editreg {
    width: calc(100% - 24px);
    max-width: none;
  }
}

@media screen and (max-width: 900px) {
  body:not(.pdf-export) .form-content.no-column,
  body:not(.pdf-export) .form-block .form-content.no-column,
  body:not(.pdf-export) .form-container .form-content.no-column {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media screen and (max-width: 1024px) {
  .title-box {
    flex-wrap: wrap;
    align-items: center;
  }

  /* Nothing shares the title's row: actions go on the next row, filter below them. */
  .title-box > h2 {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .title-box .filter-lists {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  .title-box .title-box-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    order: 2;
    margin-left: 0;
  }

  .title-box .buttons-container {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .title-box .add-item {
    margin-left: auto;
  }

  body:not(.pdf-export) .title-box.title-box--view {
    flex-wrap: wrap;
    align-items: center;
    min-height: var(--listing-toolbar-h);
  }

  body:not(.pdf-export) .title-box.title-box--view > h2 {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
}

@media screen and (min-width: 1025px) {
  .title-box .title-box-actions {
    display: contents;
    height: auto !important;
  }

  .title-box {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
  }

  .title-box > h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .title-box .buttons-container {
    grid-column: 4;
    grid-row: 1;
    justify-self: center;
    width: auto;
    justify-content: center;
  }

  .title-box .filter-lists {
    grid-column: 3;
    grid-row: 1;
    flex: none;
    width: auto;
    max-width: none;
    justify-content: center;
  }

  .title-box .add-item {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
  }

  .title-box:not(:has(.filter-lists)) {
    grid-template-columns: auto 1fr auto;
  }

  .title-box:not(:has(.filter-lists)) .buttons-container {
    grid-column: 2;
  }

  .title-box:not(:has(.filter-lists)) .add-item {
    grid-column: 3;
  }

  .title-box.title-box--view:not(:has(.filter-lists)):not(:has(> h2)) {
    grid-template-columns: 1fr auto;
  }

  .title-box.title-box--view:not(:has(.filter-lists)):not(:has(> h2)) .add-item {
    grid-column: 2;
    justify-self: end;
  }
}

@media screen and (min-width: 1024px) {
  .site-chrome .navbar-expand-lg .navbar-nav .nav-link {
    margin-left: 0 !important;
  }
}

/* Controles móviles: mismo cuerpo que el resto del site (`--form-control-fs`).
   El zoom de iOS se evita con `maximum-scale=1` en el viewport, no agrandando el texto. */
@media screen and (max-width: 1024px), screen and (pointer: coarse) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
  }

  html,
  body {
    overflow-x: hidden;
  }

  :root {
    --form-control-h: 32px;
  }

  body:not(.pdf-export) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  body:not(.pdf-export) select,
  body:not(.pdf-export) .form-control:not(textarea),
  body:not(.pdf-export) .input-text,
  body:not(.pdf-export) .ts-search-input,
  body:not(.pdf-export) #search-input,
  body:not(.pdf-export) .form-line-data input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  body:not(.pdf-export) .form-line-data select,
  body:not(.pdf-export) .form-user-login input,
  body:not(.pdf-export) .form-user-creds input,
  body:not(.pdf-export) #legs input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  body:not(.pdf-export) #legs select:not(.fq-select-native),
  body:not(.pdf-export) #plane:not(.fq-select-native),
  body:not(.pdf-export) .airspace-select,
  body:not(.pdf-export) .addFee,
  body:not(.pdf-export) .hour,
  body:not(.pdf-export) .pax,
  body:not(.pdf-export) .date,
  body:not(.pdf-export) .customers,
  body:not(.pdf-export) .destinations {
    font-size: var(--form-control-fs) !important;
    line-height: 1.25 !important;
    max-height: var(--form-control-h) !important;
    min-height: var(--form-control-h);
    height: var(--form-control-h) !important;
  }

  body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit,
  body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit-fields-wrapper,
  body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit-text,
  body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit-month-field,
  body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit-day-field,
  body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit-year-field,
  body:not(.pdf-export) input[type="date"]::-webkit-inner-spin-button,
  body:not(.pdf-export) input[type="date"]::-webkit-calendar-picker-indicator {
    font-size: var(--form-control-fs);
  }

  /* iOS pinta la fecha en ::-webkit-date-and-time-value. line-height: 1 deja el
     texto arriba de la caja de 32px; hay que igualarlo a la altura interna. */
  body:not(.pdf-export) input[type="date"],
  body:not(.pdf-export) input[type="datetime-local"],
  body:not(.pdf-export) input[type="time"] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
    line-height: calc(var(--form-control-h) - 2px) !important;
  }

  body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit,
  body:not(.pdf-export) input[type="datetime-local"]::-webkit-datetime-edit,
  body:not(.pdf-export) input[type="time"]::-webkit-datetime-edit,
  body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit-fields-wrapper,
  body:not(.pdf-export) input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
  body:not(.pdf-export) input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    margin: 0;
    height: 100%;
    min-height: 0;
    padding: 0;
    line-height: calc(var(--form-control-h) - 2px);
    text-align: left;
  }

  body:not(.pdf-export) input[type="date"]::-webkit-date-and-time-value,
  body:not(.pdf-export) input[type="datetime-local"]::-webkit-date-and-time-value,
  body:not(.pdf-export) input[type="time"]::-webkit-date-and-time-value {
    margin: 0;
    padding: 0;
    min-height: 0;
    line-height: calc(var(--form-control-h) - 2px);
    text-align: left;
  }

  body:not(.pdf-export) input[type="date"]::-webkit-calendar-picker-indicator,
  body:not(.pdf-export) input[type="datetime-local"]::-webkit-calendar-picker-indicator,
  body:not(.pdf-export) input[type="time"]::-webkit-calendar-picker-indicator {
    align-self: center;
    margin: 0 0 0 auto;
  }

  body:not(.pdf-export) input[type="file"]:not(.fq-file-native) {
    height: auto !important;
    max-height: none !important;
    min-height: var(--form-control-h);
  }

  body:not(.pdf-export) .fq-file .fq-file-native,
  body:not(.pdf-export) .fq-file input[type="file"].fq-file-native,
  body:not(.pdf-export) .plane-photo-card > input[type="file"] {
    position: fixed !important;
    top: auto !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 1px !important;
    max-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  body:not(.pdf-export) .fq-file-btn {
    font-size: var(--form-control-fs) !important;
    height: var(--form-control-h);
    min-height: var(--form-control-h);
  }

  body:not(.pdf-export) .fq-file-name {
    font-size: var(--form-control-fs);
  }

  body:not(.pdf-export) textarea,
  body:not(.pdf-export) .form-control:is(textarea),
  body:not(.pdf-export) .form-line-data textarea,
  body:not(.pdf-export) .form-block .form-line-data > textarea,
  body:not(.pdf-export) .form-container .form-line-data > textarea,
  body:not(.pdf-export) #legs textarea,
  body:not(.pdf-export) #textarea-notes,
  body:not(.pdf-export) #external_notes,
  body:not(.pdf-export) #trip_sheet_notes {
    height: auto !important;
    min-height: 120px !important;
    max-height: none !important;
    line-height: 1.4 !important;
    font-family: var(--font-sans) !important;
    font-size: var(--form-control-fs) !important;
  }

  body:not(.pdf-export) .form-block .form-line-data .fq-select-trigger,
  body:not(.pdf-export) .form-container .form-line-data .fq-select-trigger,
  body:not(.pdf-export) .fq-select--form .fq-select-trigger,
  body:not(.pdf-export) .fq-select-trigger,
  body:not(.pdf-export) #legs .fq-select-trigger {
    height: var(--form-control-h);
    min-height: var(--form-control-h);
    max-height: var(--form-control-h);
    padding: 0 10px;
    font-size: var(--form-control-fs) !important;
  }

  body:not(.pdf-export) #language-selector {
    font-size: var(--form-control-fs) !important;
    min-height: var(--form-control-h);
    height: var(--form-control-h) !important;
  }

  .title-box .buttons-container,
  .title-box .delete-btn,
  .title-box .add-item,
  .title-box .add-item a,
  .title-box div a.new-item,
  .title-box div a.new-item-icon {
    height: var(--listing-toolbar-h) !important;
  }

  .title-box .delete-btn {
    font-size: 9px !important;
    letter-spacing: 0.12em;
    padding: 0 10px !important;
  }

  .title-box .new-item {
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  .title-box .new-item-icon {
    padding: 0 8px !important;
  }

  body:not(.pdf-export) .filter-lists,
  body:not(.pdf-export) .title-box .filter-lists {
    height: var(--listing-toolbar-h);
    align-items: stretch;
    gap: 6px;
  }

  body:not(.pdf-export) .filter-lists input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body:not(.pdf-export) .filter-lists-mobile input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body:not(.pdf-export) .filter-lists .filter-clear {
    height: var(--listing-toolbar-h) !important;
    min-height: var(--listing-toolbar-h) !important;
    max-height: var(--listing-toolbar-h) !important;
    padding: 0 10px !important;
    line-height: 1 !important;
    box-sizing: border-box;
  }

  body:not(.pdf-export) .filter-lists input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body:not(.pdf-export) .filter-lists-mobile input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    font-size: var(--form-control-fs) !important;
  }

  .ui-widget,
  .ui-autocomplete,
  .ui-autocomplete.ui-widget,
  .ui-menu .ui-menu-item,
  .ui-menu .ui-menu-item-wrapper,
  .autocomplete-suggestions,
  .autocomplete-suggestion {
    font-size: var(--form-control-fs) !important;
  }

  .ui-autocomplete {
    max-width: calc(100vw - 24px);
  }

  .table-actions {
    min-height: var(--form-control-h);
    gap: 4px;
  }

  .table-action {
    width: var(--form-control-h);
    min-width: var(--form-control-h);
    height: var(--form-control-h);
  }

  .table-action i {
    font-size: 15px;
  }

  body:not(.pdf-export) .form-block > .savebtns,
  body:not(.pdf-export) .editreg > .savebtns {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 15px 0 35px;
    padding: 12px 0;
  }

  body:not(.pdf-export) .form-block > .savebtns a,
  body:not(.pdf-export) .editreg > .savebtns a {
    display: block;
    width: 100%;
  }
}

/* Custom selects */
.fq-select {
  --fq-radius: 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  vertical-align: middle;
}

.fq-select--plane {
  width: min(380px, 100%);
  max-width: 380px;
  flex: 0 1 380px;
}

.fq-select--quote {
  width: 240px;
  min-width: 200px;
  max-width: 260px;
  flex: 0 0 auto;
}

.fq-select--form {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.fq-select--fill {
  width: 100%;
  max-width: none;
}

.fq-select.fq-select--compact {
  width: 96px;
  min-width: 88px;
  max-width: 110px;
  flex: 0 0 auto;
}

.fq-select.fq-select--compact:has(select.pax) {
  width: 64px;
  min-width: 56px;
  max-width: 72px;
}

.fq-select.fq-select--inline {
  width: 180px;
  min-width: 140px;
  max-width: 220px;
  flex: 0 0 auto;
}

.fq-select.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.fq-select-option.is-disabled {
  opacity: 0.4;
  cursor: default;
}

.fq-select-native {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.medidor .fq-select-trigger,
.fq-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 10px 0 12px;
  background: #fcfcfb;
  border: 1px solid #e8e6e1;
  border-radius: var(--fq-radius);
  box-shadow: none;
  color: var(--lv-navy);
  font-family: var(--font-sans);
  font-size: var(--form-control-fs);
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fq-select-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.fq-select-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f6f5f2;
  position: relative;
}

.fq-select-chevron::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -1px;
  border-right: 1.5px solid #6f6a64;
  border-bottom: 1.5px solid #6f6a64;
  transform: rotate(45deg);
  transition: transform 0.15s ease, margin-top 0.15s ease;
}

.fq-select.is-open .fq-select-chevron::after {
  margin-top: 2px;
  transform: rotate(225deg);
}

.medidor .fq-select-trigger:hover,
.fq-select-trigger:hover {
  border-color: #ddd9d2;
  background: #fafaf8;
}

.fq-select.is-open .fq-select-trigger,
.medidor .fq-select.is-open .fq-select-trigger,
.medidor .fq-select-trigger:focus,
.fq-select-trigger:focus {
  outline: none;
  border-color: #ddd6cc;
  box-shadow: 0 0 0 3px rgba(180, 154, 120, 0.1);
}

.fq-select.is-placeholder .fq-select-name {
  color: #8b8680;
  font-weight: 400;
}

.fq-select-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.fq-select-tail {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b645c;
  background: #f5f4f1;
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1.3;
}

.fq-select-panel {
  position: fixed;
  z-index: 2200;
  background: var(--lv-white);
  border: 1px solid #ece8e1;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 22, 35, 0.12);
  padding: 6px;
  overflow: hidden;
}

.fq-select-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.fq-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--lv-navy);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  border-radius: 8px;
}

.fq-select-option .fq-select-name {
  flex: 1 1 auto;
  min-width: 0;
}

.fq-select-option .fq-select-tail {
  margin-left: auto;
}

#legs .fq-select-list,
#legs .fq-select-option {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  float: none;
  color: var(--lv-navy, #1b2230);
  font-size: 13px;
  font-weight: 400;
}

.fq-select-option:hover,
.fq-select-option.is-active {
  background: #f8f7f4;
}

.fq-select-option.is-selected {
  background: #f4f2ee;
}

.fq-select-option.is-selected .fq-select-name {
  font-weight: 600;
}

.fq-select-empty {
  padding: 12px 14px;
  color: var(--lv-graphite);
  font-size: 12px;
  font-family: var(--font-sans);
}

.medidor-plane {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.medidor-plane .fq-select {
  margin-left: 0;
}

#legs.medidor .medidor-plane .meter-disclaimer--alert {
  box-sizing: border-box;
  width: min(380px, 100%);
  max-width: 380px;
  flex: 0 1 380px;
  margin: 0;
  min-height: 38px;
  height: 38px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#legs.medidor #table-footer.meter-summary {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 18px;
  padding: 4px 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--lv-navy);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  container-type: inline-size;
  container-name: meter-summary;
}

.meter-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-bottom: 12px;
}

.meter-summary-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lv-graphite);
}

.meter-summary-rate {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
  color: var(--lv-muted);
  font-size: 12px;
  font-weight: 400;
}

.meter-summary-rate::before {
  content: none;
}

@container meter-summary (min-width: 560px) {
  .meter-summary-head {
    flex-wrap: nowrap;
  }

  .meter-summary-rate::before {
    content: "—";
    color: var(--lv-steel);
    font-weight: 500;
  }
}

.meter-summary-plane {
  color: var(--lv-navy);
}

.meter-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meter-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--lv-bone);
  border-radius: 8px;
}

.meter-summary-stat.is-total {
  background: var(--lv-navy);
  color: var(--lv-white);
}

.meter-summary-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lv-graphite);
}

.meter-summary-stat.is-total .meter-summary-label {
  color: var(--lv-champagne-soft);
}

.meter-summary-value {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--lv-navy);
  font-variant-numeric: tabular-nums;
}

.meter-summary-stat.is-total .meter-summary-value {
  color: var(--lv-white);
}

#legs.medidor .meter-disclaimer {
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--lv-graphite);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

#legs.medidor .meter-disclaimer--alert {
  background: #faf3f1;
  border: 1px solid #ead8d4;
  border-radius: 8px;
  color: #9b3a2f;
}

@media screen and (max-width: 700px) {
  .fq-select,
  .fq-select--quote,
  .fq-select--form,
  .fq-select--fill,
  .fq-select--plane,
  .fq-select--inline {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #legs.medidor .leg-tramos > .leg-col-4 {
    width: 24% !important;
    margin-right: 6%;
    box-sizing: border-box;
  }

  #legs.medidor .leg-tramos .leg-col-4 .fq-select,
  #legs.medidor .leg-tramos .leg-col-4 .fq-select-trigger {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .medidor-plane .fq-select {
    margin-left: 0;
    margin-top: 6px;
    display: block;
  }

  #legs.medidor .medidor-plane .meter-disclaimer--alert {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }

  .meter-summary-metrics {
    grid-template-columns: 1fr;
  }

  .meter-summary-kicker {
    font-size: 13px;
    font-weight: 700;
  }

  .meter-summary-value {
    font-size: 18px;
  }
}

body:not(.pdf-export) .doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: var(--doc-badge-fs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  height: var(--doc-badge-h);
  min-height: var(--doc-badge-h);
  padding: var(--doc-badge-pad-y) var(--doc-badge-pad-x);
  border-radius: 4px;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

body:not(.pdf-export) .doc-badge:not(.doc-badge--file) {
  width: var(--doc-badge-w);
  min-width: var(--doc-badge-w);
  max-width: 100%;
}

body:not(.pdf-export) .doc-badge--expired,
body:not(.pdf-export) .doc-badge--has_expired {
  background: #c0392b;
  color: #fff;
}

body:not(.pdf-export) .doc-badge--expiring,
body:not(.pdf-export) .doc-badge--has_expiring {
  background: #e67e22;
  color: #fff;
}

body:not(.pdf-export) .doc-badge--valid,
body:not(.pdf-export) .doc-badge--partial {
  background: var(--lv-green);
  color: #fff;
}

body:not(.pdf-export) .doc-badge--missing {
  background: #e8e4df;
  color: #555;
}

body:not(.pdf-export) .doc-badge--na {
  background: var(--doc-badge-soft-green-bg);
  color: var(--doc-badge-soft-green-fg);
}

body:not(.pdf-export) a.doc-badge--file {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  background: var(--lv-navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

body:not(.pdf-export) a.doc-badge--file:hover,
body:not(.pdf-export) a.doc-badge--file:focus {
  background: var(--lv-navy-deep);
  color: #fff;
  text-decoration: none;
}

body:not(.pdf-export) a.doc-badge--file i {
  font-size: var(--doc-badge-fs);
  flex-shrink: 0;
}

body:not(.pdf-export) a.doc-badge--file span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

body:not(.pdf-export) .anexo2-mark {
  display: inline-flex;
  width: 1.25rem;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  line-height: 1;
  margin-right: 0;
  text-align: center;
}

body:not(.pdf-export) .view-section .form-line-data > p:has(.doc-badge):not(.plane-rate-value) {
  display: flex;
  align-items: center;
  line-height: 1;
  min-height: var(--doc-badge-h);
}

body:not(.pdf-export) .view-section .form-line-data > p.plane-rate-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.35;
  min-height: 0;
  text-align: left;
}

body:not(.pdf-export) .doc-badge.anexo2-status {
  width: auto;
  min-width: var(--doc-badge-w);
  max-width: 100%;
}

body:not(.pdf-export) .doc-badge--anexo-yes {
  background: var(--doc-badge-soft-green-bg);
  color: var(--doc-badge-soft-green-fg);
}

body:not(.pdf-export) .doc-badge--anexo-no {
  background: #f6e4e1;
  color: #9b2c23;
}

/* Edición: Anexo es label arriba + pill abajo, como Nombre / Rol. */
body:not(.pdf-export) .editreg.form-block .form-line-data > .doc-badge.anexo2-status {
  width: auto;
  min-width: var(--doc-badge-w);
  max-width: 100%;
  align-self: flex-start;
}

body:not(.pdf-export) .anexo2-mark--yes {
  color: var(--lv-green);
}

body:not(.pdf-export) .anexo2-mark--no {
  color: #c0392b;
}

body:not(.pdf-export) .operator-plane-anexo2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

body:not(.pdf-export) .editreg.form-block .form-content.form-stack > section.compliance-slots,
body:not(.pdf-export) .compliance-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 28px;
  row-gap: var(--form-stack-gap);
  width: min(100%, calc(var(--form-field-max) * 2 + 28px));
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body:not(.pdf-export) .compliance-slots > .compliance-hint {
  grid-column: 1 / -1;
}

body:not(.pdf-export) .compliance-slot-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--form-stack-gap);
  min-width: 0;
}

body:not(.pdf-export) .anexo2-planes {
  min-width: 0;
  padding-left: var(--form-stack-gap);
  border-left: 1px solid var(--lv-platinum);
}

body:not(.pdf-export) .anexo2-planes-title {
  margin: 0;
  color: var(--lv-navy);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

body:not(.pdf-export) .anexo2-planes-hint,
body:not(.pdf-export) .anexo2-planes-empty {
  margin: var(--form-label-control-gap) 0 0;
  color: var(--lv-graphite);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.5;
}

body:not(.pdf-export) .anexo2-planes-hint {
  font-style: italic;
}

body:not(.pdf-export) .anexo2-planes-list {
  list-style: none;
  margin: var(--form-stack-gap) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  column-gap: var(--form-stack-gap);
  row-gap: var(--form-stack-gap);
  align-items: start;
}

body:not(.pdf-export) .anexo2-planes-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--form-row-gap);
  min-width: 0;
}

body:not(.pdf-export) .anexo2-planes-item .compliance-check-label {
  display: flex;
  align-items: center;
  gap: var(--form-row-gap);
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
  white-space: normal;
}

body:not(.pdf-export) .anexo2-planes-item .compliance-check-label input[type="checkbox"] {
  order: 1;
  margin-left: auto;
  flex: 0 0 auto;
}

body:not(.pdf-export) .anexo2-planes-name {
  font-family: var(--font-sans);
  font-size: var(--form-control-fs);
  font-weight: 600;
  color: var(--lv-navy);
}

body:not(.pdf-export) .anexo2-planes-tail {
  font-family: var(--font-sans);
  font-size: var(--form-control-fs);
  font-weight: 400;
  color: var(--lv-graphite);
}

body:not(.pdf-export) .anexo2-planes-item a {
  color: var(--lv-navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body:not(.pdf-export) .form-content > .anexo2-planes-empty {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.5;
}

body:not(.pdf-export) .form-content:has(> .anexo2-planes-empty:only-child) {
  padding-top: 16px;
  padding-bottom: 16px;
}

body:not(.pdf-export) .operator-plane-list {
  display: grid;
  grid-template-columns: minmax(0, max-content) max-content max-content var(--doc-badge-w) max-content;
  justify-content: start;
  column-gap: var(--form-stack-gap);
  row-gap: 0;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body:not(.pdf-export) .operator-plane-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  column-gap: inherit;
  padding: var(--form-stack-gap) 0;
  border-top: 1px solid var(--lv-platinum);
  min-width: 0;
}

body:not(.pdf-export) .operator-plane-row:first-child {
  padding-top: 0;
  border-top: 0;
}

body:not(.pdf-export) .operator-plane-row:last-child {
  padding-bottom: 8px;
}

body:not(.pdf-export) .operator-plane-id,
body:not(.pdf-export) .operator-plane-badges {
  display: contents;
}

body:not(.pdf-export) .operator-plane-row .anexo2-planes-name {
  min-width: 0;
  overflow-wrap: break-word;
}

body:not(.pdf-export) .operator-plane-row .doc-badge.anexo2-status {
  justify-self: start;
}

body:not(.pdf-export) .operator-plane-row > a {
  color: var(--lv-navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

body:not(.pdf-export) .operator-plane-list .anexo2-planes-tail {
  white-space: nowrap;
}

body:not(.pdf-export) .anexo2-planes-docs {
  min-width: 0;
  max-width: 100%;
}

body:not(.pdf-export) .anexo2-planes-docs .doc-badge {
  width: var(--doc-badge-w);
  min-width: var(--doc-badge-w);
  max-width: var(--doc-badge-w);
}

body:not(.pdf-export) .compliance-slot.is-invalid {
  background: #fdecea;
  border: 1px solid var(--lv-red);
  box-shadow: none;
  padding: 10px 12px;
}

body:not(.pdf-export) .compliance-slot.is-invalid .form-line-data > label {
  color: var(--lv-red);
}

body:not(.pdf-export) .compliance-slot.is-invalid .compliance-expires-input {
  border-color: var(--lv-red) !important;
  background: #fff !important;
  color: var(--lv-ink) !important;
}

body:not(.pdf-export) .compliance-slot-error {
  display: none;
  width: 100%;
  margin: 6px 0 0;
  color: var(--lv-red);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

body:not(.pdf-export) .compliance-slot.is-invalid .compliance-slot-error {
  display: block;
}

body:not(.pdf-export) .compliance-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: var(--form-stack-gap);
  gap: var(--form-stack-gap);
  box-sizing: border-box;
  background: var(--lv-white);
  border: 1px solid var(--lv-platinum);
}

body:not(.pdf-export) .compliance-slot + .compliance-slot {
  margin-top: 0;
}

body:not(.pdf-export) .form-title[data-cert][hidden],
body:not(.pdf-export) .form-content[data-cert][hidden] {
  display: none !important;
}

body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes),
body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-column: 1 / -1;
  column-gap: 28px;
  row-gap: var(--form-stack-gap);
  align-items: start;
}

body:not(.pdf-export) .compliance-slot-title {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--lv-navy);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  min-height: var(--doc-badge-h);
  text-align: left;
  white-space: nowrap;
}

body:not(.pdf-export) .form-block .compliance-slot .form-line-data,
body:not(.pdf-export) .editreg.form-block .compliance-slot .form-line-data,
body:not(.pdf-export) .editreg.form-block .compliance-slot .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: var(--form-label-control-gap);
  max-width: 100%;
  margin: 0;
}

body:not(.pdf-export) .form-block .compliance-slot .form-line-data > label,
body:not(.pdf-export) .form-block .compliance-slot .form-line-data > label.long-label,
body:not(.pdf-export) .editreg.form-block .compliance-slot .form-line-data > label,
body:not(.pdf-export) .editreg.form-block .compliance-slot .form-line-data > label.long-label,
body:not(.pdf-export) .editreg.form-block .compliance-slot .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label,
body:not(.pdf-export) .editreg.form-block .compliance-slot .form-line-data:has(input[type="checkbox"]):not(:has(input[type="number"])) > label.long-label {
  order: 0 !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  align-self: stretch !important;
  text-align: left !important;
}

body:not(.pdf-export) .form-block .compliance-slot .form-line-data > p,
body:not(.pdf-export) .form-block .compliance-slot .form-line-data > .compliance-slot-expiry {
  flex: none !important;
  align-self: stretch !important;
  width: 100% !important;
  margin: 0;
  min-width: 0 !important;
  max-width: 100% !important;
  line-height: 1.35;
  font-weight: 400;
  text-align: left;
  color: var(--lv-ink);
}

body:not(.pdf-export) .form-block .compliance-slot .form-line-data.compliance-slot-head {
  margin-top: 0;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: var(--form-row-gap);
}

body:not(.pdf-export) .compliance-expiry-controls .leg-icon-btn img {
  max-width: none !important;
  width: 24px;
  height: 24px;
}

body:not(.pdf-export) .compliance-expiry-controls .leg-icon-btn--ok img {
  width: 20px;
  height: 20px;
}

body:not(.pdf-export) .form-block .compliance-slot .form-line-data > .compliance-slot-meta,
body:not(.pdf-export) .form-block .compliance-slot .form-line-data > .compliance-expiry-wrap,
body:not(.pdf-export) .form-block .compliance-slot .form-line-data > .compliance-expiry-controls,
body:not(.pdf-export) .form-block .compliance-slot .form-line-data > .fq-file,
body:not(.pdf-export) .form-block .compliance-slot .form-line-data > .compliance-file {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body:not(.pdf-export) .form-block .compliance-slot .form-line-data.compliance-slot-head > label,
body:not(.pdf-export) .form-block .compliance-slot .form-line-data.compliance-slot-head > label.compliance-slot-title {
  display: flex;
  align-items: center;
  width: auto !important;
  flex: 0 0 auto !important;
  align-self: auto !important;
  line-height: 1;
  min-height: var(--doc-badge-h);
  white-space: nowrap;
}

body:not(.pdf-export) .form-block .compliance-slot .form-line-data.compliance-slot-head > .compliance-slot-meta {
  width: auto !important;
  flex: 1 1 auto;
  max-width: 100%;
}

body:not(.pdf-export) .compliance-slot-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--form-row-gap);
  min-width: 0;
  flex: 1 1 auto;
}

body:not(.pdf-export) .compliance-slot-meta .status-pill,
body:not(.pdf-export) .compliance-slot-meta .compliance-status,
body:not(.pdf-export) .compliance-slot-meta .doc-badge {
  flex: 0 0 auto;
}

body:not(.pdf-export) .compliance-slot-fileline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

body:not(.pdf-export) .compliance-slot-fileline .js-doc-preview {
  min-width: 0;
  max-width: 100%;
}

body:not(.pdf-export) .compliance-slot-fileline .compliance-doc-delete {
  margin-left: 0;
  flex-shrink: 0;
}

body:not(.pdf-export) .view-section .form-line-data.compliance-doc-row {
  display: grid !important;
  grid-template-columns: var(--form-label-w) 11.5rem minmax(8rem, 18rem) 7.5rem !important;
  align-items: center;
  column-gap: var(--form-stack-gap);
  width: 100%;
  max-width: 100%;
  margin: var(--form-stack-gap) 0;
}

body:not(.pdf-export) .view-section .form-line-data.compliance-doc-row + .compliance-doc-row {
  padding-top: var(--form-stack-gap);
  border-top: 1px solid var(--lv-platinum);
}

body:not(.pdf-export) .view-section .form-line-data.compliance-doc-row > label {
  min-width: 0 !important;
  max-width: none !important;
  overflow-wrap: break-word;
}

body:not(.pdf-export) .compliance-doc-cols,
body:not(.pdf-export) .compliance-slot-status.compliance-doc-cols {
  display: grid;
  grid-template-columns: 11.5rem minmax(8rem, 18rem) 7.5rem;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  min-width: 0;
}

body:not(.pdf-export) .compliance-col-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body:not(.pdf-export) .compliance-col-file {
  min-width: 0;
}

body:not(.pdf-export) .compliance-col-file .js-doc-preview {
  max-width: 100%;
}

body:not(.pdf-export) .compliance-col-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--form-control-h);
}

body:not(.pdf-export) .compliance-slot-status a.js-doc-preview,
body:not(.pdf-export) .compliance-col-file a.js-doc-preview {
  cursor: pointer;
}

body:not(.pdf-export) .compliance-doc-row:not(.operator-plane-row) .compliance-col-file:not(:has(.js-doc-preview)),
body:not(.pdf-export) .compliance-doc-row:not(.operator-plane-row) .compliance-col-action:not(:has(.js-doc-delete)) {
  display: none;
}

body:not(.pdf-export) .operator-plane-row .compliance-col-action a {
  color: var(--lv-navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media screen and (max-width: 700px) {
  body:not(.pdf-export) .view-section .form-line-data.compliance-doc-row {
    grid-template-columns: fit-content(8.5rem) minmax(0, 1fr) auto !important;
    column-gap: var(--form-row-gap);
    row-gap: var(--form-label-control-gap);
    align-items: center;
    margin: 0;
    padding: var(--form-stack-gap) 0;
  }

  body:not(.pdf-export) .view-section .form-line-data.compliance-doc-row > label {
    grid-column: 1;
    grid-row: 1;
  }

  body:not(.pdf-export) .view-section .form-line-data.compliance-doc-row > .compliance-col-status {
    grid-column: 2 / -1;
    grid-row: 1;
  }

  body:not(.pdf-export) .view-section .form-line-data.compliance-doc-row > .compliance-col-file {
    grid-column: 2;
    grid-row: 2;
  }

  body:not(.pdf-export) .view-section .form-line-data.compliance-doc-row > .compliance-col-action {
    grid-column: 3;
    grid-row: 2;
  }

  body:not(.pdf-export) .compliance-doc-cols,
  body:not(.pdf-export) .compliance-slot-status.compliance-doc-cols {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  body:not(.pdf-export) .compliance-doc-cols > .compliance-col-status,
  body:not(.pdf-export) .compliance-slot-status.compliance-doc-cols > .compliance-col-status {
    grid-column: 1 / -1;
  }

  body:not(.pdf-export) .compliance-expiry-controls {
    flex-wrap: wrap;
  }

  body:not(.pdf-export) .editreg.form-block .form-content.form-stack > section.compliance-slots,
  body:not(.pdf-export) .compliance-slots {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    column-gap: 0;
  }

  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes),
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    column-gap: 0;
    row-gap: var(--form-stack-gap);
    width: 100%;
    min-width: 0;
  }

  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes) .compliance-slot-main,
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) .compliance-slot-main,
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes) .anexo2-planes,
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) .anexo2-planes {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo1:has(.anexo2-planes) .anexo2-planes,
  body:not(.pdf-export) .compliance-slot.compliance-slot--anexo2:has(.anexo2-planes) .anexo2-planes {
    padding-left: 0;
    border-left: 0;
    padding-top: var(--form-stack-gap);
    border-top: 1px solid var(--lv-platinum);
  }

  body:not(.pdf-export) .view-section .anexo2-planes {
    padding-left: 0;
  }

  body:not(.pdf-export) .operator-plane-list {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  body:not(.pdf-export) .operator-plane-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--form-row-gap);
    row-gap: calc(var(--form-label-control-gap) + 4px);
    grid-template-columns: none;
    grid-column: auto;
  }

  body:not(.pdf-export) .operator-plane-id,
  body:not(.pdf-export) .operator-plane-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--form-row-gap);
    min-width: 0;
  }

  body:not(.pdf-export) .operator-plane-id {
    flex: 1 1 100%;
  }

  body:not(.pdf-export) .operator-plane-badges {
    flex: 0 1 auto;
  }

  body:not(.pdf-export) .form-block .compliance-slot .form-line-data.compliance-slot-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body:not(.pdf-export) .compliance-slot-title,
  body:not(.pdf-export) .form-block .compliance-slot .form-line-data.compliance-slot-head > label,
  body:not(.pdf-export) .form-block .compliance-slot .form-line-data.compliance-slot-head > label.compliance-slot-title {
    white-space: normal;
  }

  body:not(.pdf-export) .form-block .compliance-slot .form-line-data.compliance-slot-head > .compliance-slot-meta {
    justify-content: flex-start;
    width: 100% !important;
    flex: 1 1 auto;
    row-gap: var(--form-label-control-gap);
  }

  /* Mobile fijo: título / pill / archivo + Eliminar, igual en todas las cards. Ver operators-compliance.mdc § Mobile. */
  body:not(.pdf-export) .compliance-slot-head .compliance-slot-fileline {
    flex: 1 1 100%;
  }

  body:not(.pdf-export) .anexo2-planes-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.pdf-export) .anexo2-planes-item .compliance-check-label input[type="checkbox"] {
    order: 0;
    margin-left: 0;
  }
}

body:not(.pdf-export) .compliance-doc-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lv-red);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

body:not(.pdf-export) .compliance-doc-delete i {
  font-size: 13px;
}

body:not(.pdf-export) .compliance-doc-delete:hover,
body:not(.pdf-export) .compliance-doc-delete:focus {
  color: #b50004;
  text-decoration: none;
}

body:not(.pdf-export) .compliance-slot-date {
  color: var(--lv-muted);
  font-size: 12px;
}

body:not(.pdf-export) .compliance-file {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: var(--form-control-h);
  box-sizing: border-box;
}

body:not(.pdf-export) .compliance-expiry-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

body:not(.pdf-export) .compliance-expiry-controls .leg-icon-btn[hidden] {
  display: none !important;
}

body:not(.pdf-export) input[type="date"],
body:not(.pdf-export) input[type="datetime-local"],
body:not(.pdf-export) input[type="time"],
body:not(.pdf-export) input[type="month"],
body:not(.pdf-export) input[type="week"],
body:not(.pdf-export) input[type="file"]:not(.fq-file-native) {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body:not(.pdf-export) input[type="date"]::-webkit-datetime-edit-fields-wrapper,
body:not(.pdf-export) input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
}

body:not(.pdf-export) .compliance-expiry-controls input[type="date"],
body:not(.pdf-export) .compliance-expiry-controls .compliance-expires-input {
  height: var(--form-control-h) !important;
  min-height: var(--form-control-h) !important;
  width: 10.75rem !important;
  min-width: 10.75rem !important;
  max-width: 100% !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

body:not(.pdf-export) .compliance-expires-input:disabled {
  background: var(--lv-bone);
  color: var(--lv-muted);
  cursor: default;
  pointer-events: none;
}

body:not(.pdf-export) .compliance-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap;
  cursor: pointer;
  color: var(--lv-graphite);
}

body:not(.pdf-export) .compliance-hint {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: var(--form-stack-gap) 0 0;
  padding: 10px 12px;
  box-sizing: border-box;
  text-align: left;
  color: var(--lv-graphite);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  background: var(--lv-bone);
  border-left: 3px solid var(--lv-champagne);
}

body:not(.pdf-export) .app-dialog,
body:not(.pdf-export) .delete-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 22, 35, 0.45);
}

body:not(.pdf-export) .app-dialog[hidden],
body:not(.pdf-export) .delete-modal[hidden] {
  display: none;
}

body:not(.pdf-export) .app-dialog-box,
body:not(.pdf-export) .delete-modal-box {
  background: var(--lv-white);
  color: var(--lv-ink);
  width: min(460px, 92vw);
  padding: 22px 24px 18px;
  box-shadow: 0 8px 28px rgba(15, 22, 35, 0.22);
}

body:not(.pdf-export) .app-dialog-title,
body:not(.pdf-export) .delete-modal-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--lv-navy);
}

body:not(.pdf-export) .app-dialog-text,
body:not(.pdf-export) .delete-modal-text {
  margin: 0 0 12px;
  color: var(--lv-muted);
  font-size: 14px;
  line-height: 1.4;
}

body:not(.pdf-export) .app-dialog-list,
body:not(.pdf-export) .delete-modal-list {
  margin: 0 0 18px;
  padding: 10px 14px;
  list-style: none;
  background: var(--lv-bone);
  color: var(--lv-ink);
}

body:not(.pdf-export) .app-dialog-list[hidden],
body:not(.pdf-export) .delete-modal-list[hidden],
body:not(.pdf-export) .app-dialog-text[hidden],
body:not(.pdf-export) .app-dialog-cancel[hidden] {
  display: none !important;
}

body:not(.pdf-export) .app-dialog-list li,
body:not(.pdf-export) .delete-modal-list li {
  padding: 3px 0;
  font-size: 14px;
}

body:not(.pdf-export) .app-dialog-actions,
body:not(.pdf-export) .delete-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

body:not(.pdf-export) .app-dialog-actions .btns,
body:not(.pdf-export) .delete-modal-actions .btns {
  box-sizing: border-box;
  margin: 0;
  height: var(--form-control-h);
  max-height: var(--form-control-h);
  min-height: var(--form-control-h);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body:not(.pdf-export) .app-dialog-ok.btns.is-primary {
  background: var(--lv-green) !important;
  border-color: var(--lv-green) !important;
  color: var(--lv-white) !important;
}

body:not(.pdf-export) .app-dialog-ok.btns.is-primary:hover {
  background: var(--lv-green-hover) !important;
  border-color: var(--lv-green-hover) !important;
  color: var(--lv-white) !important;
}

body:not(.pdf-export) .app-dialog-ok.btns.is-danger,
body:not(.pdf-export) .delete-modal-confirm.btns {
  background: var(--lv-red) !important;
  border-color: var(--lv-red) !important;
  color: var(--lv-white) !important;
}

body:not(.pdf-export) .app-dialog-ok.btns.is-danger:hover,
body:not(.pdf-export) .delete-modal-confirm.btns:hover {
  background: #b50004 !important;
  border-color: #b50004 !important;
  color: var(--lv-white) !important;
}

body:not(.pdf-export) .doc-preview-modal {
  z-index: 4100;
  padding: 16px;
}

body:not(.pdf-export) .doc-preview-box {
  display: flex;
  flex-direction: column;
  width: min(960px, 94vw);
  height: min(90vh, 900px);
  max-height: 90vh;
  min-height: 0;
  overflow: hidden;
  background: var(--lv-white);
  color: var(--lv-ink);
  padding: 16px 18px 14px;
  box-shadow: 0 8px 28px rgba(15, 22, 35, 0.22);
  box-sizing: border-box;
}

body:not(.pdf-export) .doc-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-width: 0;
  flex-shrink: 0;
}

body:not(.pdf-export):not(.error-page) .doc-preview-title {
  margin: 0;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--lv-ink);
}

body:not(.pdf-export) .doc-preview-x {
  flex: 0 0 auto;
  width: var(--form-control-h);
  height: var(--form-control-h);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lv-graphite);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body:not(.pdf-export) .doc-preview-x:hover {
  color: var(--lv-navy);
}

body:not(.pdf-export) .doc-preview-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--lv-bone);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body:not(.pdf-export) .doc-preview-status {
  margin: auto;
  padding: 16px;
  color: var(--lv-muted);
  font-size: 14px;
  text-align: center;
}

body:not(.pdf-export) .doc-preview-status[hidden],
body:not(.pdf-export) .doc-preview-img[hidden],
body:not(.pdf-export) .doc-preview-frame[hidden],
body:not(.pdf-export) .doc-preview-pages[hidden] {
  display: none !important;
}

body:not(.pdf-export) .doc-preview-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}

body:not(.pdf-export) .doc-preview-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: var(--lv-white);
}

body:not(.pdf-export) .doc-preview-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

body:not(.pdf-export) .doc-preview-pages canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: var(--lv-white);
  box-shadow: 0 1px 4px rgba(15, 22, 35, 0.12);
}

body:not(.pdf-export) .doc-preview-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-shrink: 0;
}

body:not(.pdf-export) .doc-preview-actions .btns {
  box-sizing: border-box;
  margin: 0;
  height: var(--form-control-h);
  max-height: var(--form-control-h);
  min-height: var(--form-control-h);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  text-decoration: none;
}

body:not(.pdf-export) .doc-preview-download i {
  font-size: 13px;
}

@media (max-width: 700px) {
  body:not(.pdf-export) .doc-preview-modal {
    padding: 0;
    align-items: stretch;
  }

  body:not(.pdf-export) .doc-preview-box {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  body:not(.pdf-export):not(.error-page) .doc-preview-title {
    font-size: 16px;
  }
}

body:not(.pdf-export) .operator-plane-annex {
  display: inline-flex;
  align-items: center;
  gap: var(--form-row-gap);
}

body:not(.pdf-export) .editreg.form-block .form-line-data.operator-cert-line:has(input[type="checkbox"]):not(:has(input[type="number"])) {
  min-height: calc(var(--form-check-size) + 8px);
}

body:not(.pdf-export) .editreg.form-block .form-line-data.operator-cert-line:has(input[type="checkbox"]):not(:has(input[type="number"])) > label {
  font-weight: 600;
}

body:not(.pdf-export) .operator-plane-annex .doc-badge.anexo2-status {
  width: var(--anexo-cert-badge-w);
  min-width: var(--anexo-cert-badge-w);
  max-width: var(--anexo-cert-badge-w);
  justify-content: center;
}
