/* =========================================================
   GYALUX CATALOG MANAGER · SISTEMA CORPORATIVO DEFINITIVO
   Sistema visual corporativo compartido por toda la aplicación.
   ========================================================= */

body.gyalux-corporate {
  --gx-page: #eef3f9;
  --gx-paper: #ffffff;
  --gx-surface: #ffffff;
  --gx-surface-soft: #f6f8fc;
  --gx-ink: #17365d;
  --gx-muted: #5b6980;
  --gx-line: #d9e1ec;
  --gx-line-strong: #c8d2e0;
  --gx-blue: #17365d;
  --gx-blue-2: #234a76;
  --gx-blue-mid: #2d659d;
  --gx-blue-soft: #edf4fb;
  --gx-gold: #d0a33b;
  --gx-gold-strong: #bd8e24;
  --gx-gold-soft: #fbf4df;
  --gx-success: #247451;
  --gx-success-bg: #eaf6ef;
  --gx-warning: #9c6711;
  --gx-warning-bg: #fff6df;
  --gx-danger: #b43a32;
  --gx-danger-bg: #fff0ee;
  --gx-info-bg: #eef6ff;
  --gx-shadow: 0 20px 52px rgba(7, 31, 70, .09);
  --gx-shadow-soft: 0 10px 28px rgba(7, 31, 70, .065);
  --gx-radius: 20px;
  --gx-radius-sm: 12px;
  background:
    radial-gradient(circle at 8% 6%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 91% 16%, rgba(255,255,255,.85) 0 5px, transparent 6px),
    linear-gradient(90deg, rgba(7,31,70,.026) 1px, transparent 1px),
    linear-gradient(rgba(7,31,70,.026) 1px, transparent 1px),
    #eef3f9;
  background-size: 170px 170px, 230px 230px, 52px 52px, 52px 52px, auto;
  color: var(--gx-ink);
}

body.gyalux-corporate::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.8), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(208,163,59,.07), transparent 25%),
    radial-gradient(circle at 56% 82%, rgba(23,79,135,.055), transparent 30%);
}

/* Cabecera y marca */
body.gyalux-corporate .gx-app-header {
  min-height: 78px;
  border: 0;
  border-top: 3px solid var(--gx-gold);
  border-bottom: 1px solid rgba(7,31,70,.08);
  background: rgba(255,255,255,.93);
  box-shadow: 0 8px 28px rgba(7,31,70,.065);
  backdrop-filter: blur(18px);
}

body.gyalux-corporate .gx-header-inner {
  min-height: 75px;
  grid-template-columns: 230px minmax(0,1fr) auto;
  gap: 28px;
}

body.gyalux-corporate .gx-brand-line {
  gap: 12px;
}

body.gyalux-corporate .gx-brand-symbol {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border: 1px solid rgba(208,163,59,.38);
  border-radius: 14px;
  background: linear-gradient(145deg, #0d315f, #061a39);
  color: #f2c85f;
  font-size: 22px;
  box-shadow: 0 9px 22px rgba(7,31,70,.18);
}

body.gyalux-corporate .gx-brand-copy strong {
  color: var(--gx-blue);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.035em;
}

body.gyalux-corporate .gx-brand-copy strong em {
  color: var(--gx-gold-strong);
  font-style: normal;
}

body.gyalux-corporate .gx-brand-copy span {
  margin-top: 1px;
  color: #68758a;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.gyalux-corporate .gx-module-nav {
  gap: 7px;
}

body.gyalux-corporate .gx-module-nav a {
  min-height: 40px;
  border-radius: 11px;
  padding: 0 13px;
  color: #384a64;
  font-size: 12px;
  font-weight: 500;
  transition: .18s ease;
}

body.gyalux-corporate .gx-module-nav a:hover {
  border-color: rgba(208,163,59,.3);
  background: var(--gx-gold-soft);
  color: var(--gx-blue);
  transform: translateY(-1px);
}

body.gyalux-corporate .gx-module-nav a.active {
  border-color: rgba(208,163,59,.48);
  background: linear-gradient(180deg, #fff9e9, #f8edcf);
  color: var(--gx-blue);
  box-shadow: inset 0 -2px 0 var(--gx-gold), 0 6px 14px rgba(208,163,59,.10);
}

body.gyalux-corporate .gx-user-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--gx-line);
  border-radius: 11px;
  background: #f8fafc;
  color: #40506a;
  font-size: 11px;
  font-weight: 500;
}

body.gyalux-corporate .gx-header-button,
body.gyalux-corporate .logout {
  min-height: 40px;
  border-radius: 11px;
  border-color: var(--gx-line-strong);
  color: var(--gx-blue);
  font-weight: 500;
}

body.gyalux-corporate .gx-header-button:hover,
body.gyalux-corporate .logout:hover {
  border-color: #99abc0;
  background: #f5f8fc;
  transform: translateY(-1px);
}

body.gyalux-corporate .gx-header-button.is-primary {
  border-color: var(--gx-gold-strong);
  background: linear-gradient(180deg, #dcb451, #c7942d);
  color: #fff;
  box-shadow: 0 9px 20px rgba(189,142,36,.22);
}

/* Área principal y cabecera de página */
body.gyalux-corporate .gx-main,
body.gyalux-corporate .main {
  padding-top: 30px;
}

body.gyalux-corporate .gx-page-hero {
  position: relative;
  align-items: center;
  min-height: 150px;
  margin-bottom: 24px;
  padding: 27px 30px 28px;
  overflow: hidden;
  border: 1px solid rgba(7,31,70,.10);
  border-left: 5px solid var(--gx-gold);
  border-radius: 22px;
  background:
    radial-gradient(circle at 89% 26%, rgba(208,163,59,.15), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.99), rgba(246,249,253,.97));
  box-shadow: var(--gx-shadow);
}

body.gyalux-corporate .gx-page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 52%;
  opacity: .35;
  pointer-events: none;
  background:
    radial-gradient(circle at 12px 12px, rgba(7,31,70,.15) 0 2px, transparent 3px) 0 0/58px 58px,
    linear-gradient(90deg, transparent 0 48%, rgba(7,31,70,.07) 49% 51%, transparent 52%) 0 0/116px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}

body.gyalux-corporate .gx-page-heading,
body.gyalux-corporate .gx-page-actions {
  position: relative;
  z-index: 1;
}

body.gyalux-corporate .gx-eyebrow,
body.gyalux-corporate .gx-kicker {
  margin-bottom: 9px;
  color: var(--gx-gold-strong);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
}

body.gyalux-corporate .gx-page-heading h1,
body.gyalux-corporate .gx-page-hero h1 {
  color: var(--gx-blue);
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 500;
  letter-spacing: -.045em;
}

body.gyalux-corporate .gx-page-heading > p:last-child,
body.gyalux-corporate .gx-page-hero p:not(.gx-eyebrow) {
  max-width: 730px;
  margin-top: 10px;
  color: #5a6880;
  font-size: 14px;
  line-height: 1.55;
}

body.gyalux-corporate .gx-page-actions {
  gap: 9px;
}

/* Botones */
body.gyalux-corporate button,
body.gyalux-corporate .button,
body.gyalux-corporate .supplier-action,
body.gyalux-corporate .supplier-sheet-button,
body.gyalux-corporate .supplier-profile-action,
body.gyalux-corporate .form-button,
body.gyalux-corporate .product-filter-action,
body.gyalux-corporate .gx-task-action {
  min-height: 42px;
  border-radius: 11px;
  border-color: var(--gx-blue);
  background: linear-gradient(180deg, #0d315f, #071f46);
  box-shadow: 0 7px 16px rgba(7,31,70,.14);
}

body.gyalux-corporate button:hover,
body.gyalux-corporate .button:hover,
body.gyalux-corporate .supplier-action:hover,
body.gyalux-corporate .supplier-profile-action:hover,
body.gyalux-corporate .gx-task-action:hover {
  border-color: #174f87;
  background: linear-gradient(180deg, #174f87, #0b2a55);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(7,31,70,.18);
}

body.gyalux-corporate .supplier-create-action,
body.gyalux-corporate .form-button,
body.gyalux-corporate .supplier-profile-action.is-primary {
  min-height: 42px;
  padding-inline: 17px;
  border-color: var(--gx-gold-strong);
  border-radius: 11px;
  background: linear-gradient(180deg, #ddb451, #c7942d);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 9px 20px rgba(189,142,36,.22);
}

body.gyalux-corporate .supplier-create-action:hover,
body.gyalux-corporate .form-button:hover,
body.gyalux-corporate .supplier-profile-action.is-primary:hover {
  border-color: #aa7918;
  background: linear-gradient(180deg, #e5be5d, #b9821f);
  color: #fff;
  transform: translateY(-1px);
}

body.gyalux-corporate .supplier-table-action {
  min-height: 34px;
  padding: 0 11px;
  border-color: #ccd6e3;
  border-radius: 9px;
  background: #fff;
  color: var(--gx-blue);
  box-shadow: none;
}

body.gyalux-corporate .supplier-table-action:not(.is-danger):hover {
  border-color: #99abc1;
  background: var(--gx-blue-soft);
  color: var(--gx-blue);
  transform: translateY(-1px);
}

/* Paneles generales */
body.gyalux-corporate .panel,
body.gyalux-corporate .supplier-list-panel,
body.gyalux-corporate .supplier-profile-panel,
body.gyalux-corporate .supplier-sheet-panel,
body.gyalux-corporate .tariff-flow-panel,
body.gyalux-corporate .guided-flow-shell,
body.gyalux-corporate .product-process-panel,
body.gyalux-corporate .local-selection-form {
  border-color: rgba(7,31,70,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--gx-shadow);
}

body.gyalux-corporate .supplier-list-panel {
  padding: 0;
  overflow: hidden;
}

body.gyalux-corporate .supplier-directory-toolbar {
  min-height: 82px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gx-line);
  background: linear-gradient(180deg, #fff, #f8fafd);
}

body.gyalux-corporate .supplier-directory-heading h2 {
  color: var(--gx-blue);
  font-size: 20px;
  font-weight: 500;
}

body.gyalux-corporate .supplier-directory-heading p {
  color: #69778d;
  font-size: 12px;
}

/* Tablas */
body.gyalux-corporate .supplier-table-wrap,
body.gyalux-corporate .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.gyalux-corporate .supplier-table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

body.gyalux-corporate .supplier-table th,
body.gyalux-corporate table th {
  padding: 13px 15px;
  border-bottom: 1px solid #cfdae7;
  background: #f0f5fa;
  color: #41536c;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .075em;
  text-transform: uppercase;
}

body.gyalux-corporate .supplier-table td,
body.gyalux-corporate table td {
  padding: 14px 15px;
  border-bottom-color: #e7edf4;
  color: #263a56;
}

body.gyalux-corporate .supplier-table tbody tr {
  transition: background .15s ease, transform .15s ease;
}

body.gyalux-corporate .supplier-table tbody tr:hover {
  background: #f7faff;
}

body.gyalux-corporate .supplier-name-cell a,
body.gyalux-corporate .tariff-main-name-cell a {
  color: var(--gx-blue);
  font-weight: 500;
}

body.gyalux-corporate .supplier-table-status,
body.gyalux-corporate .supplier-profile-status,
body.gyalux-corporate .supplier-sheet-status-inline,
body.gyalux-corporate .tariff-primary-status {
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: .015em;
}

/* Dashboard */
body.gyalux-corporate.section-dashboard .gx-page-hero {
  min-height: 175px;
  background:
    radial-gradient(circle at 88% 15%, rgba(224,181,80,.20), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #f7fafe 62%, #eef5fc 100%);
}

body.gyalux-corporate.section-dashboard .gx-dashboard {
  gap: 18px;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metrics {
  gap: 14px;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric {
  position: relative;
  min-height: 142px;
  gap: 13px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(7,31,70,.10);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7,31,70,.075);
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gx-gold), #edd081);
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric:hover {
  transform: translateY(-4px);
  border-color: rgba(23,79,135,.24);
  box-shadow: 0 20px 42px rgba(7,31,70,.12);
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--gx-gold-soft);
  color: #9a6c13;
  font-size: 11px;
  box-shadow: inset 0 0 0 1px rgba(208,163,59,.16);
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric-icon.is-navy {
  background: linear-gradient(145deg, #123b70, #071f46);
  color: #fff;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric-icon.is-rose {
  background: #fff0ee;
  color: #b43a32;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric-icon.is-green {
  background: #eaf6ef;
  color: #247451;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric-icon.is-blue,
body.gyalux-corporate.section-dashboard .gx-dashboard-metric-icon.is-slate {
  background: #edf4fb;
  color: #174f87;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric strong {
  color: var(--gx-blue);
  font-size: 30px;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric small {
  color: #435671;
  font-size: 11px;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel {
  border-color: rgba(7,31,70,.10);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7,31,70,.075);
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel > header {
  min-height: 90px;
  padding: 20px 21px 16px;
  border-bottom-color: #e2e9f1;
  background: linear-gradient(180deg, #fff, #f8fafd);
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel header span {
  color: var(--gx-gold-strong);
  letter-spacing: .12em;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel header h2 {
  color: var(--gx-blue);
  font-size: 18px;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-task {
  border-color: #dce5ef;
  border-radius: 13px;
  background: #fbfcfe;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-task-code {
  background: var(--gx-gold-soft);
  color: #956a17;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-task > a {
  border-radius: 9px;
  border-color: #cbd6e3;
  color: var(--gx-blue);
}

/* Ficha de proveedor */
body.gyalux-corporate .supplier-profile-head {
  position: relative;
  padding: 26px 26px 22px;
  overflow: hidden;
  border-bottom: 0;
  background:
    radial-gradient(circle at 87% 20%, rgba(224,181,80,.28), transparent 24%),
    linear-gradient(135deg, #0d315f, #061a39);
}

body.gyalux-corporate .supplier-profile-head::after {
  content: "";
  position: absolute;
  inset: 0 0 0 58%;
  opacity: .18;
  background: radial-gradient(circle at 12px 12px, #fff 0 2px, transparent 3px) 0 0/48px 48px;
}

body.gyalux-corporate .supplier-profile-head > * {
  position: relative;
  z-index: 1;
}

body.gyalux-corporate .supplier-profile-identity h2,
body.gyalux-corporate .supplier-profile-identity p,
body.gyalux-corporate .supplier-profile-meta-item,
body.gyalux-corporate .supplier-profile-meta-item span {
  color: #fff;
}

body.gyalux-corporate .supplier-profile-identity h2 {
  font-size: 26px;
  font-weight: 500;
}

body.gyalux-corporate .supplier-profile-identity p {
  color: rgba(255,255,255,.74);
}

body.gyalux-corporate .supplier-profile-logo {
  border: 1px solid rgba(255,255,255,.38);
  background: #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}

body.gyalux-corporate .supplier-profile-toolbar .supplier-profile-action:not(.is-primary):not(.is-warning):not(.is-danger) {
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.10);
  color: #fff;
  box-shadow: none;
}

body.gyalux-corporate .supplier-profile-body {
  gap: 18px;
  padding: 22px;
  background: #f7f9fc;
}

body.gyalux-corporate .supplier-profile-section {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7,31,70,.045);
}

body.gyalux-corporate .supplier-profile-section-head {
  padding: 15px 17px;
  border-bottom-color: #e4ebf3;
  background: #f8fafd;
}

body.gyalux-corporate .supplier-profile-section-head h3 {
  color: var(--gx-blue);
  font-weight: 500;
}

/* Formulario de proveedor */
body.gyalux-corporate .supplier-sheet-header {
  position: relative;
  padding: 24px 26px;
  border-bottom: 1px solid #dce5ef;
  background:
    radial-gradient(circle at 91% 15%, rgba(208,163,59,.16), transparent 24%),
    linear-gradient(135deg, #fff, #f4f8fc);
}

body.gyalux-corporate .supplier-sheet-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gx-gold);
}

body.gyalux-corporate .supplier-sheet-identity h2 {
  color: var(--gx-blue);
  font-size: 25px;
  font-weight: 500;
}

body.gyalux-corporate .supplier-sheet-logo {
  border-color: #d9e3ee;
  background: #fff;
  box-shadow: 0 13px 28px rgba(7,31,70,.10);
}

body.gyalux-corporate .supplier-sheet-body {
  padding: 22px;
  background: #f7f9fc;
}

body.gyalux-corporate .supplier-form-section {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7,31,70,.045);
}

body.gyalux-corporate .supplier-form-section-head {
  padding: 15px 17px;
  border-bottom-color: #e3eaf2;
  background: linear-gradient(180deg, #fff, #f8fafd);
}

body.gyalux-corporate .supplier-form-section-head h3 {
  color: var(--gx-blue);
  font-size: 16px;
  font-weight: 500;
}

body.gyalux-corporate input:not([type="checkbox"]):not([type="radio"]),
body.gyalux-corporate select,
body.gyalux-corporate textarea {
  border-color: #cbd6e3;
  border-radius: 10px;
  background: #fff;
  color: #233852;
}

body.gyalux-corporate input:not([type="checkbox"]):not([type="radio"]):focus,
body.gyalux-corporate select:focus,
body.gyalux-corporate textarea:focus {
  border-color: #3e74aa;
  box-shadow: 0 0 0 4px rgba(23,79,135,.11);
}

/* Flujo guiado de tarifas */
body.gyalux-corporate .guided-flow-header {
  position: relative;
  padding: 25px 26px 21px;
  overflow: hidden;
  border-bottom: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(224,181,80,.25), transparent 24%),
    linear-gradient(135deg, #0d315f, #061a39);
}

body.gyalux-corporate .guided-flow-header h2,
body.gyalux-corporate .guided-flow-header p,
body.gyalux-corporate .guided-flow-header .gx-kicker {
  color: #fff;
}

body.gyalux-corporate .guided-flow-header .gx-kicker {
  color: #e7c463;
}

body.gyalux-corporate .guided-flow-header p {
  color: rgba(255,255,255,.74);
}

body.gyalux-corporate .guided-steps {
  min-height: 62px;
  padding: 0 24px;
  border-bottom-color: #dce5ef;
  background: #fff;
}

body.gyalux-corporate .guided-step {
  color: #7a879a;
  font-size: 10px;
  font-weight: 500;
}

body.gyalux-corporate .guided-step span {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-color: #cdd8e5;
  background: #f2f6fa;
}

body.gyalux-corporate .guided-step.is-active {
  color: var(--gx-blue);
}

body.gyalux-corporate .guided-step.is-active span {
  border-color: var(--gx-gold-strong);
  background: linear-gradient(180deg, #ddb451, #c7942d);
  color: #fff;
  box-shadow: 0 6px 14px rgba(189,142,36,.22);
}

body.gyalux-corporate .guided-flow-form {
  padding-top: 23px;
}

body.gyalux-corporate .guided-simple-section,
body.gyalux-corporate .guided-file-banner,
body.gyalux-corporate .guided-safe-note {
  border-color: #dce5ef;
  border-radius: 14px;
  background: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  body.gyalux-corporate .gx-header-inner {
    grid-template-columns: 205px minmax(0,1fr) auto;
    gap: 15px;
  }

  body.gyalux-corporate .gx-module-nav a {
    padding-inline: 9px;
  }

  body.gyalux-corporate.section-dashboard .gx-dashboard-metrics {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  body.gyalux-corporate .gx-page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  body.gyalux-corporate .gx-page-actions {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body.gyalux-corporate .gx-main,
  body.gyalux-corporate .main {
    width: min(100% - 24px, var(--gx-max));
    padding-top: 18px;
  }

  body.gyalux-corporate .gx-page-hero {
    min-height: 0;
    padding: 22px 19px;
    border-radius: 17px;
  }

  body.gyalux-corporate .gx-page-heading h1,
  body.gyalux-corporate .gx-page-hero h1 {
    font-size: 29px;
  }

  body.gyalux-corporate.section-dashboard .gx-dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }

  body.gyalux-corporate .supplier-directory-toolbar,
  body.gyalux-corporate .supplier-profile-head,
  body.gyalux-corporate .supplier-sheet-header,
  body.gyalux-corporate .guided-flow-header {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  body.gyalux-corporate.section-dashboard .gx-dashboard-metrics {
    grid-template-columns: 1fr;
  }

  body.gyalux-corporate .gx-page-actions > *,
  body.gyalux-corporate .supplier-create-action,
  body.gyalux-corporate .form-button {
    width: 100%;
  }
}

/* =========================================================
   TIPOGRAFÍA UNIVERSAL
   ========================================================= */
body.gyalux-corporate {
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

body.gyalux-corporate :is(p, li, dt, dd, td, label, input, select, textarea, option, small, strong, b, a, button) {
  font-weight: 400;
}

body.gyalux-corporate :is(h1, h2) {
  color: #17365d;
  font-weight: 500;
  letter-spacing: -.024em;
}

body.gyalux-corporate :is(h3, h4, h5, h6) {
  color: #21466f;
  font-weight: 500;
  letter-spacing: -.015em;
}

body.gyalux-corporate :is(.gx-module-nav a, .gx-header-button, .logout, .button, button,
  .supplier-action, .supplier-sheet-button, .supplier-profile-action, .form-button,
  .product-filter-action, .gx-task-action, .supplier-table-action, .supplier-create-action,
  .supplier-table-status, .supplier-profile-status, .supplier-sheet-status-inline,
  .tariff-primary-status, .gx-eyebrow, .gx-kicker, table th) {
  font-weight: 500;
}

body.gyalux-corporate :is(.supplier-name-cell a, .tariff-main-name-cell a,
  .product-main-name-cell a, .category-main-name-cell a, .category-reconcile-source-name,
  .new-category-source-name, .local-selection-product-cell strong) {
  color: #17365d;
  font-weight: 500;
  letter-spacing: -.006em;
}

body.gyalux-corporate strong,
body.gyalux-corporate b {
  font-weight: 500;
}

body.gyalux-corporate .gx-page-heading h1,
body.gyalux-corporate .gx-page-hero h1 {
  font-size: clamp(32px, 3.3vw, 42px);
  font-weight: 500;
}

body.gyalux-corporate :is(.gx-page-heading > p:last-child, .gx-page-hero p:not(.gx-eyebrow),
  .supplier-directory-heading p, .panel-header p, .supplier-form-section-head p,
  .supplier-profile-section-head p) {
  color: #5b6b82;
  font-size: 15px;
  line-height: 1.58;
}

/* =========================================================
   ESTRUCTURA UNIVERSAL DE PÁGINAS Y CONTENEDORES
   ========================================================= */
body.gyalux-corporate .gx-header-inner,
body.gyalux-corporate .gx-main,
body.gyalux-corporate .main {
  width: min(100% - 48px, var(--gx-max));
  max-width: var(--gx-max);
  margin-inline: auto;
}

body.gyalux-corporate .gx-page-content {
  display: grid;
  gap: 20px;
}

body.gyalux-corporate :is(.panel, .supplier-list-panel, .supplier-profile-panel,
  .supplier-sheet-panel, .tariff-flow-panel, .guided-flow-shell, .guided-review-shell,
  .guided-products-shell, .product-process-panel, .local-selection-form,
  .product-primary-list-panel, .category-primary-list-panel, .category-reconcile-panel,
  .category-reconcile-active-panel, .category-decision-panel, .economic-panel) {
  overflow: hidden;
  border: 1px solid rgba(23,54,93,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 16px 40px rgba(18,49,88,.075);
}

body.gyalux-corporate :is(.panel-header, .supplier-directory-toolbar,
  .supplier-sheet-header, .supplier-profile-head, .guided-flow-header,
  .guided-review-header, .economic-panel-head) {
  min-height: 82px;
}

body.gyalux-corporate .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #e1e8f0;
  background: linear-gradient(180deg, #fff, #f8fafd);
}

body.gyalux-corporate .panel-header h2 {
  margin: 0;
  color: #17365d;
  font-size: 21px;
  font-weight: 500;
}

body.gyalux-corporate .panel-header p {
  margin: 5px 0 0;
}

body.gyalux-corporate :is(.actions, .supplier-table-actions, .supplier-sheet-actions,
  .supplier-profile-toolbar, .category-reconcile-context-actions,
  .new-category-footer-actions, .form-actions) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

body.gyalux-corporate .inline-action-form {
  margin: 0;
}

/* Formularios comunes */
body.gyalux-corporate :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 44px;
  border: 1px solid #cbd6e3;
  border-radius: 10px;
  background: #fff;
  color: #263e5e;
  font: inherit;
  font-size: 15px;
  box-shadow: inset 0 1px 1px rgba(23,54,93,.025);
}

body.gyalux-corporate :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: #4a79a8;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(45,101,157,.11);
}

body.gyalux-corporate label {
  color: #314d6f;
  font-size: 14px;
}

body.gyalux-corporate :is(.field-hint, .supplier-form-help, .form-help, small) {
  color: #6a788b;
  line-height: 1.45;
}

/* Tablas comunes */
body.gyalux-corporate :is(.supplier-table-wrap, .table-wrap, .product-table-wrap,
  .category-table-wrap, .category-reconcile-table-wrap, .category-decision-table-wrap,
  .economic-table-wrap) {
  overflow: auto;
  background: #fff;
}

body.gyalux-corporate table {
  color: #2c425e;
  font-size: 14px;
}

body.gyalux-corporate table th {
  padding: 13px 15px;
  border-bottom: 1px solid #d2dce7;
  background: #eef4f9;
  color: #445a75;
  font-size: 11px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

body.gyalux-corporate table td {
  padding: 14px 15px;
  border-bottom: 1px solid #e6edf4;
  color: #304864;
  vertical-align: middle;
}

body.gyalux-corporate table tbody tr:hover {
  background: #f7faff;
}

body.gyalux-corporate .supplier-number-cell {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   PRODUCTOS: LISTADO, FICHA Y EDICIÓN
   ========================================================= */
body.gyalux-corporate .product-primary-list-panel {
  box-shadow: 0 18px 44px rgba(18,49,88,.085);
}

body.gyalux-corporate .product-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(620px, 2.25fr);
  align-items: center;
  gap: 20px;
  padding: 19px 22px;
}

body.gyalux-corporate .product-directory-heading h2 {
  margin: 0;
  color: #17365d;
  font-size: 21px;
  font-weight: 500;
}

body.gyalux-corporate .product-directory-filters {
  display: grid;
  grid-template-columns: minmax(230px,1.4fr) minmax(150px,.9fr) minmax(180px,1fr) auto auto;
  gap: 9px;
  align-items: center;
}

body.gyalux-corporate .product-filter-active {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gx-gold-soft);
  color: #946b1d;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}

body.gyalux-corporate .product-primary-table {
  min-width: 1320px;
}

body.gyalux-corporate .product-primary-table td {
  padding-block: 13px;
}

body.gyalux-corporate .product-main-name-cell a {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.35;
}

body.gyalux-corporate .product-main-name-cell small,
body.gyalux-corporate .product-category-cell small,
body.gyalux-corporate .product-margin-cell small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

body.gyalux-corporate .product-category-cell strong {
  display: block;
  color: #2f4c6e;
  font-weight: 400;
  line-height: 1.4;
}

body.gyalux-corporate .product-price-cell {
  color: #17365d;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

body.gyalux-corporate .product-margin {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}

body.gyalux-corporate .product-margin.is-positive { background: #eaf6ef; color: #287051; }
body.gyalux-corporate .product-margin.is-negative { background: #fff0ee; color: #a63d36; }
body.gyalux-corporate .product-margin.is-pending { background: #f2f5f8; color: #68788d; }

body.gyalux-corporate .product-thumb {
  border-color: #d4dee9;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18,49,88,.07);
}

body.gyalux-corporate .product-directory-pagination {
  padding: 14px 20px;
  border-top: 1px solid #e4ebf2;
  background: #fafbfd;
  color: #65758a;
}

body.gyalux-corporate .product-price-note {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid #e4ebf2;
  background: #f3f7fb;
  color: #5b6c82;
  font-size: 13px;
  line-height: 1.55;
}

body.gyalux-corporate .product-detail-panel > .product-detail-layout,
body.gyalux-corporate .product-detail-panel > .product-detail-audit {
  margin-inline: 22px;
}

body.gyalux-corporate .product-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px,.7fr) minmax(360px,1.3fr);
  gap: 18px;
  padding: 22px 0;
}

body.gyalux-corporate .product-detail-section {
  padding: 18px;
  border: 1px solid #dce5ee;
  border-radius: 15px;
  background: #fbfcfe;
  box-shadow: 0 7px 20px rgba(18,49,88,.045);
}

body.gyalux-corporate .product-detail-section-main {
  grid-column: span 1;
}

body.gyalux-corporate .product-detail-section h3 {
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e2e9f0;
  font-size: 17px;
}

body.gyalux-corporate .product-detail-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

body.gyalux-corporate .product-detail-list > div {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px 13px;
  border: 1px solid #e2e9f0;
  border-radius: 11px;
  background: #fff;
}

body.gyalux-corporate .product-detail-list span {
  color: #68788d;
  font-size: 12px;
}

body.gyalux-corporate .product-detail-list strong {
  color: #244464;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

body.gyalux-corporate .product-detail-pricing .product-detail-list strong {
  color: #17365d;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

body.gyalux-corporate .product-detail-media {
  min-height: 230px;
  border-radius: 13px;
  background: linear-gradient(145deg,#f8fafc,#eef3f8);
}

body.gyalux-corporate .product-detail-audit {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid #dde6ef;
  border-radius: 15px;
  background: #f8fafd;
}

body.gyalux-corporate .product-detail-audit-head {
  margin-bottom: 14px;
}

body.gyalux-corporate .product-detail-audit-head h2 {
  margin: 0;
  font-size: 19px;
}

body.gyalux-corporate .product-detail-audit-head p {
  margin: 6px 0 0;
  color: #66768b;
}

body.gyalux-corporate .product-raw-json {
  max-height: 480px;
  overflow: auto;
  padding: 16px;
  border: 1px solid #dde6ef;
  border-radius: 12px;
  background: #fff;
  color: #344e6e;
  white-space: pre-wrap;
}

body.gyalux-corporate .product-edit-panel form {
  background: #f7f9fc;
}

body.gyalux-corporate .product-edit-body {
  padding: 22px;
}

body.gyalux-corporate .product-edit-grid {
  gap: 16px;
}

body.gyalux-corporate .product-edit-section {
  margin: 22px 0 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--gx-gold);
  border-radius: 9px;
  background: #fff;
  color: #25476c;
  font-size: 16px;
  font-weight: 500;
}

body.gyalux-corporate .product-edit-note {
  margin-top: 20px;
  border: 1px solid #dbe5ef;
  border-radius: 13px;
  background: #edf4fb;
  color: #4f6178;
}

body.gyalux-corporate .product-edit-footer {
  padding: 17px 22px;
  border-top: 1px solid #dde6ef;
  background: #fff;
}

/* =========================================================
   CATEGORÍAS Y CONCILIACIÓN
   ========================================================= */
body.gyalux-corporate .category-primary-list-panel {
  box-shadow: 0 18px 44px rgba(18,49,88,.085);
}

body.gyalux-corporate .category-primary-table td {
  padding-block: 13px;
}

body.gyalux-corporate .category-main-name-cell strong,
body.gyalux-corporate .category-path-cell strong {
  color: #244464;
  font-weight: 400;
}

body.gyalux-corporate .category-primary-actions {
  justify-content: flex-end;
}

body.gyalux-corporate .category-management-form .category-form-symbol {
  background: linear-gradient(145deg,#17365d,#0d2749);
  color: #e7bd55;
}

body.gyalux-corporate .category-form-explanation {
  color: #53657c;
  line-height: 1.65;
}

body.gyalux-corporate .category-reconcile-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 23px 25px;
  border: 1px solid rgba(23,54,93,.11);
  border-left: 5px solid var(--gx-gold);
  border-radius: 18px;
  background: linear-gradient(135deg,#fff,#f4f8fc);
  box-shadow: 0 14px 34px rgba(18,49,88,.07);
}

body.gyalux-corporate .category-reconcile-context h2 {
  margin: 0;
  font-size: 24px;
}

body.gyalux-corporate .category-reconcile-context p {
  margin: 7px 0 0;
  color: #607188;
}

body.gyalux-corporate :is(.category-reconcile-summary, .new-category-summary,
  .category-decision-summary) {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
}

body.gyalux-corporate :is(.category-reconcile-summary-card, .new-category-summary-card) {
  min-height: 105px;
  padding: 17px;
  border: 1px solid #dbe4ed;
  border-top: 3px solid var(--gx-gold);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(18,49,88,.06);
}

body.gyalux-corporate :is(.category-reconcile-summary-card, .new-category-summary-card) span {
  display: block;
  color: #65758a;
  font-size: 12px;
}

body.gyalux-corporate :is(.category-reconcile-summary-card, .new-category-summary-card) strong {
  display: block;
  margin-top: 8px;
  color: #17365d;
  font-size: 27px;
  font-weight: 500;
}

body.gyalux-corporate .category-reconcile-notice,
body.gyalux-corporate .category-decision-notice {
  margin: 0 16px 16px;
}

body.gyalux-corporate .preview-notice,
body.gyalux-corporate .new-category-warning,
body.gyalux-corporate .category-decision-notice {
  padding: 14px 16px;
  border: 1px solid #e6d39d;
  border-radius: 12px;
  background: #fff8e7;
  color: #6e5a2c;
}

body.gyalux-corporate .category-reconcile-table,
body.gyalux-corporate .new-category-table,
body.gyalux-corporate .category-decision-table,
body.gyalux-corporate .category-group-table {
  min-width: 1020px;
}

body.gyalux-corporate :is(.category-reconcile-source-name, .new-category-source-name) {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

body.gyalux-corporate .category-reconcile-confidence {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

body.gyalux-corporate .category-reconcile-confidence.very-high,
body.gyalux-corporate .category-reconcile-confidence.high { background: #eaf6ef; color: #287051; }
body.gyalux-corporate .category-reconcile-confidence.medium { background: #fff6df; color: #916518; }
body.gyalux-corporate .category-reconcile-confidence.low { background: #fff0ee; color: #a63d36; }

body.gyalux-corporate :is(.category-reconcile-footer, .new-category-footer) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-top: 1px solid #dfe7ef;
  background: #f8fafd;
}

body.gyalux-corporate :is(.category-reconcile-footer, .new-category-footer) p {
  max-width: 820px;
  margin: 0;
  color: #5e6f84;
  line-height: 1.55;
}

body.gyalux-corporate .category-reconcile-select-cell input,
body.gyalux-corporate .new-category-select-cell input,
body.gyalux-corporate .category-decision-select-cell input {
  width: 18px;
  height: 18px;
  accent-color: #c89a2f;
}

body.gyalux-corporate .new-category-target-select,
body.gyalux-corporate .category-decision-table select {
  min-width: 230px;
}

body.gyalux-corporate .category-decision-filters {
  display: grid;
  grid-template-columns: repeat(4,minmax(145px,1fr)) auto auto;
  gap: 9px;
  align-items: center;
}

body.gyalux-corporate .category-group-row > td {
  background: #f5f8fc;
}

/* =========================================================
   RESTO DE MÓDULOS: TARIFAS, REVISIÓN Y SELECCIÓN
   ========================================================= */
body.gyalux-corporate :is(.review-block, .guided-review-grid > section,
  .tariff-ficha-actions-panel, .local-selection-intro-card,
  .local-selection-stat, .economic-conditions-grid > *, .card) {
  border-color: #dce5ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18,49,88,.045);
}

body.gyalux-corporate :is(.review-summary, .guided-review-summary,
  .tariff-update-metric-grid, .local-selection-stats) strong {
  color: #17365d;
  font-weight: 500;
}

body.gyalux-corporate :is(.review-block-head, .guided-review-grid > section > header,
  .tariff-ficha-actions-head) {
  background: #f7f9fc;
  border-bottom-color: #e1e8f0;
}

body.gyalux-corporate .local-selection-score,
body.gyalux-corporate .local-selection-stat strong {
  color: #17365d;
  font-weight: 500;
}

body.gyalux-corporate .empty,
body.gyalux-corporate .category-reconcile-empty {
  padding: 34px 22px;
  border: 1px dashed #cbd7e4;
  border-radius: 14px;
  background: #f8fafc;
  color: #64758b;
  text-align: center;
}

body.gyalux-corporate .messages {
  display: grid;
  gap: 10px;
}

body.gyalux-corporate .message {
  padding: 13px 15px;
  border-radius: 11px;
  font-weight: 400;
}

/* Login */
body.gyalux-corporate.section-login .login-card,
body.gyalux-corporate.section-login .panel {
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(18,49,88,.14);
}

/* =========================================================
   RESPONSIVE UNIVERSAL
   ========================================================= */
@media (max-width: 1100px) {
  body.gyalux-corporate .product-directory-toolbar {
    grid-template-columns: 1fr;
  }
  body.gyalux-corporate .category-decision-filters {
    grid-template-columns: repeat(3,minmax(145px,1fr));
  }
}

@media (max-width: 900px) {
  body.gyalux-corporate .product-directory-filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.gyalux-corporate .product-directory-filters > :first-child {
    grid-column: 1 / -1;
  }
  body.gyalux-corporate .product-detail-layout {
    grid-template-columns: 1fr;
  }
  body.gyalux-corporate :is(.category-reconcile-summary, .new-category-summary,
    .category-decision-summary) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.gyalux-corporate .category-reconcile-context {
    align-items: flex-start;
    flex-direction: column;
  }
  body.gyalux-corporate .category-decision-filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  body.gyalux-corporate {
    font-size: 14px;
  }
  body.gyalux-corporate .gx-header-inner,
  body.gyalux-corporate .gx-main,
  body.gyalux-corporate .main {
    width: min(100% - 24px, var(--gx-max));
  }
  body.gyalux-corporate .panel-header,
  body.gyalux-corporate .supplier-directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  body.gyalux-corporate .product-directory-filters,
  body.gyalux-corporate .category-decision-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }
  body.gyalux-corporate .product-directory-filters > :first-child {
    grid-column: auto;
  }
  body.gyalux-corporate .product-detail-list,
  body.gyalux-corporate :is(.category-reconcile-summary, .new-category-summary,
    .category-decision-summary) {
    grid-template-columns: 1fr;
  }
  body.gyalux-corporate :is(.category-reconcile-footer, .new-category-footer) {
    align-items: stretch;
    flex-direction: column;
  }
  body.gyalux-corporate :is(.category-reconcile-footer, .new-category-footer) .supplier-create-action,
  body.gyalux-corporate .new-category-footer-actions,
  body.gyalux-corporate .new-category-footer-actions > * {
    width: 100%;
  }
  body.gyalux-corporate .product-detail-panel > .product-detail-layout,
  body.gyalux-corporate .product-detail-panel > .product-detail-audit {
    margin-inline: 16px;
  }
}

/* =========================================================
   COMPONENTES COMPLEMENTARIOS DE TODA LA APP
   ========================================================= */
body.gyalux-corporate :is(.data-grid, .product-process-summary, .economic-conditions-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 12px;
}

body.gyalux-corporate :is(.data-item, .product-process-stat, .economic-conditions-grid > div) {
  padding: 14px 15px;
  border: 1px solid #dde6ef;
  border-radius: 12px;
  background: #fff;
}

body.gyalux-corporate :is(.data-item span, .product-process-stat span, .economic-conditions-grid span) {
  display: block;
  color: #68788d;
  font-size: 12px;
}

body.gyalux-corporate :is(.data-item strong, .product-process-stat strong, .economic-conditions-grid strong) {
  display: block;
  margin-top: 6px;
  color: #17365d;
  font-size: 17px;
  font-weight: 500;
}

body.gyalux-corporate :is(.status-pill, .badge, .meta-pill, .supplier-table-status,
  .supplier-profile-status, .supplier-sheet-status-inline, .tariff-primary-status) {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
}

body.gyalux-corporate :is(.status-pill, .badge, .meta-pill).on,
body.gyalux-corporate :is(.supplier-table-status, .supplier-profile-status, .supplier-sheet-status-inline).is-active {
  border-color: #cfe7d9;
  background: #eaf6ef;
  color: #287051;
}

body.gyalux-corporate :is(.status-pill, .badge, .meta-pill).pending,
body.gyalux-corporate .tariff-primary-status.is-pending {
  border-color: #eadcaf;
  background: #fff6df;
  color: #8e651d;
}

body.gyalux-corporate :is(.preview-error, .message.error) {
  padding: 14px 16px;
  border: 1px solid #eccfc9;
  border-radius: 12px;
  background: #fff0ee;
  color: #983d37;
}

body.gyalux-corporate .message.success {
  padding: 14px 16px;
  border: 1px solid #cfe7d9;
  border-radius: 12px;
  background: #eaf6ef;
  color: #287051;
}

body.gyalux-corporate .gx-action-menu {
  position: relative;
}

body.gyalux-corporate .gx-action-menu > summary {
  list-style: none;
  cursor: pointer;
}

body.gyalux-corporate .gx-action-menu-list {
  min-width: 210px;
  padding: 7px;
  border: 1px solid #d6e0ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(18,49,88,.16);
}

body.gyalux-corporate .gx-action-menu-list .supplier-table-action {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.gyalux-corporate :is(.category-action-danger, .supplier-table-action.is-danger) {
  color: #a43d37;
}

body.gyalux-corporate :is(.category-action-danger, .supplier-table-action.is-danger):hover {
  border-color: #e6c7c3;
  background: #fff0ee;
  color: #97352f;
}

body.gyalux-corporate :is(.category-action-disabled, .supplier-table-action.is-disabled) {
  opacity: .52;
  pointer-events: none;
}

body.gyalux-corporate .supplier-form-section-body {
  padding: 18px;
}

body.gyalux-corporate .supplier-form-fields {
  gap: 15px;
}

body.gyalux-corporate .supplier-form-field {
  gap: 6px;
}

body.gyalux-corporate .supplier-form-toggle {
  min-height: 76px;
  padding: 14px 15px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #f9fbfd;
}

body.gyalux-corporate .supplier-form-toggle-copy strong {
  color: #244464;
  font-weight: 500;
}

body.gyalux-corporate .supplier-form-toggle-copy span {
  color: #68788d;
}

body.gyalux-corporate .supplier-sheet-meta {
  gap: 8px 16px;
}

body.gyalux-corporate .supplier-sheet-meta-item {
  color: #5f7086;
}

body.gyalux-corporate .supplier-sheet-meta-item > span:first-child {
  color: #758398;
}

body.gyalux-corporate .product-process-head {
  padding: 22px 24px;
  border-bottom: 1px solid #e0e8f0;
  background: linear-gradient(135deg,#fff,#f4f8fc);
}

body.gyalux-corporate .product-process-kicker {
  color: #a97920;
  font-size: 11px;
  letter-spacing: .12em;
}

body.gyalux-corporate .product-process-body {
  padding: 22px;
  background: #f7f9fc;
}

body.gyalux-corporate :is(.product-process-fields, .product-process-detected) {
  padding: 18px;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: #fff;
}

body.gyalux-corporate .product-process-note {
  padding: 14px 16px;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  background: #edf4fb;
  color: #53667f;
}

body.gyalux-corporate .product-process-footer {
  padding: 17px 22px;
  border-top: 1px solid #dfe7ef;
  background: #fff;
}

body.gyalux-corporate :is(.category-reconcile-samples, .new-category-samples) {
  color: #5f7085;
  line-height: 1.5;
}

body.gyalux-corporate .category-decision-row td {
  background: #fff;
}

body.gyalux-corporate .category-decision-row + .category-decision-row td {
  border-top-color: #edf1f5;
}

body.gyalux-corporate .economic-disclaimer {
  margin: 0;
  padding: 14px 17px;
  border-top: 1px solid #dfe7ef;
  background: #f8fafd;
  color: #5b6d83;
  font-size: 13px;
}

@media (max-width: 680px) {
  body.gyalux-corporate :is(.data-grid, .product-process-summary, .economic-conditions-grid) {
    grid-template-columns: 1fr;
  }
  body.gyalux-corporate .supplier-form-section-body,
  body.gyalux-corporate .product-process-body {
    padding: 16px;
  }
}

/* Afinado de clases estructurales específicas */
body.gyalux-corporate .product-detail-header,
body.gyalux-corporate .product-edit-toolbar {
  background: linear-gradient(180deg,#fff,#f7f9fc);
}

body.gyalux-corporate .product-detail-actions,
body.gyalux-corporate .product-primary-actions,
body.gyalux-corporate .catalog-compact-actions {
  justify-content: flex-end;
}

body.gyalux-corporate .product-detail-identification,
body.gyalux-corporate .product-detail-categories {
  background: #fff;
}

body.gyalux-corporate .product-thumb-cell {
  text-align: center;
}

body.gyalux-corporate .product-filter-search {
  border-color: var(--gx-blue);
  background: linear-gradient(180deg,#234a76,#17365d);
  color: #fff;
}

body.gyalux-corporate .product-process-stat-primary {
  border-top: 3px solid var(--gx-gold);
}

body.gyalux-corporate .supplier-sheet-grid,
body.gyalux-corporate .category-form-grid {
  gap: 18px;
}

body.gyalux-corporate .supplier-sheet-profile {
  gap: 16px;
}

body.gyalux-corporate .supplier-sheet-subtitle {
  color: #62738a;
}

body.gyalux-corporate .supplier-sheet-logo-fallback {
  color: #d6ad4d;
  font-weight: 500;
}

body.gyalux-corporate .supplier-form-column,
body.gyalux-corporate .supplier-form-toggles {
  gap: 16px;
}

body.gyalux-corporate .supplier-sort-indicator {
  color: #b38328;
}

body.gyalux-corporate .category-decision-action-select {
  min-width: 180px;
}

body.gyalux-corporate .category-reconcile-active-table td,
body.gyalux-corporate .category-reconcile-form td,
body.gyalux-corporate .category-decision-form td {
  vertical-align: middle;
}

body.gyalux-corporate .gx-panel-soft {
  border-color: #dce5ee;
  background: #f8fafd;
}

body.gyalux-corporate .notice {
  border-radius: 12px;
}

/* =========================================================
   SISTEMA DEFINITIVO DE LISTADOS Y ACCIONES · v0.8.2
   Proveedores, tarifas, categorías y productos comparten
   estructura, filtros, tabla, ordenación y responsive.
   ========================================================= */
body.gyalux-corporate {
  --gx-list-border: #dbe4ee;
  --gx-list-head: #f2f6fa;
  --gx-list-hover: #f7faff;
  --gx-btn-height: 42px;
  --gx-btn-height-sm: 34px;
}

/* Botón único para toda la aplicación */
body.gyalux-corporate :is(
  button, .button, .gx-btn, .supplier-action, .supplier-sheet-button,
  .supplier-profile-action, .form-button, .product-filter-action,
  .gx-task-action, .supplier-table-action, .supplier-create-action,
  .gx-header-button, .logout, .platform-overview-action,
  .review-top-actions a, .catalog-compact-actions a
) {
  box-sizing: border-box;
  min-height: var(--gx-btn-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #17365d;
  border-radius: 10px;
  background: linear-gradient(180deg,#244b78,#17365d);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(23,54,93,.12);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.gyalux-corporate :is(
  button, .button, .gx-btn, .supplier-action, .supplier-sheet-button,
  .supplier-profile-action, .form-button, .product-filter-action,
  .gx-task-action, .supplier-table-action, .supplier-create-action,
  .gx-header-button, .logout, .platform-overview-action,
  .review-top-actions a, .catalog-compact-actions a
):hover {
  border-color: #244f80;
  background: linear-gradient(180deg,#315d8d,#1d426e);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23,54,93,.17);
  transform: translateY(-1px);
}

body.gyalux-corporate :is(.gx-btn--primary, .supplier-create-action, .form-button,
  .supplier-profile-action.is-primary, .gx-header-button.is-primary) {
  border-color: #b88625;
  background: linear-gradient(180deg,#ddb450,#c9972d);
  color: #fff;
  box-shadow: 0 7px 17px rgba(190,143,38,.20);
}

body.gyalux-corporate :is(.gx-btn--primary, .supplier-create-action, .form-button,
  .supplier-profile-action.is-primary, .gx-header-button.is-primary):hover {
  border-color: #a8791f;
  background: linear-gradient(180deg,#e4bc59,#bd8925);
  color: #fff;
}

body.gyalux-corporate :is(.gx-btn--secondary, .supplier-table-action,
  .button.secondary, .button.small.secondary) {
  border-color: #cbd6e2;
  background: #fff;
  color: #234463;
  box-shadow: none;
}

body.gyalux-corporate :is(.gx-btn--secondary, .supplier-table-action,
  .button.secondary, .button.small.secondary):hover {
  border-color: #91a7bf;
  background: #eef4fa;
  color: #17365d;
  box-shadow: none;
}

body.gyalux-corporate .gx-btn--ghost {
  border-color: transparent;
  background: transparent;
  color: #52677e;
  box-shadow: none;
}

body.gyalux-corporate .gx-btn--ghost:hover {
  border-color: #d7e0ea;
  background: #f5f8fb;
  color: #17365d;
  box-shadow: none;
}

body.gyalux-corporate :is(.gx-btn--danger, .supplier-table-action.is-danger,
  .category-action-danger, button.is-danger) {
  border-color: #d4aaa6;
  background: #fff;
  color: #a6423b;
  box-shadow: none;
}

body.gyalux-corporate :is(.gx-btn--danger, .supplier-table-action.is-danger,
  .category-action-danger, button.is-danger):hover {
  border-color: #c57e78;
  background: #fff1ef;
  color: #96352f;
  box-shadow: none;
}

body.gyalux-corporate :is(.gx-btn--sm, .supplier-table-action, .button.small,
  .gx-action-menu > summary) {
  min-height: var(--gx-btn-height-sm);
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13px;
}

body.gyalux-corporate :is(.is-disabled, button:disabled, .button.disabled) {
  opacity: .52;
  pointer-events: none;
  cursor: default;
  transform: none;
}

/* Contenedor universal de listado */
body.gyalux-corporate .gx-list-panel {
  overflow: visible;
  border: 1px solid rgba(23,54,93,.11);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(18,49,88,.075);
}

body.gyalux-corporate .gx-list-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--gx-list-border);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg,#fff,#f8fafd);
}

body.gyalux-corporate .gx-list-title h2 {
  margin: 0;
  color: #17365d;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.018em;
}

body.gyalux-corporate .gx-list-title p {
  margin: 5px 0 0;
  color: #65758a;
  font-size: 14px;
}

body.gyalux-corporate .gx-list-header-actions,
body.gyalux-corporate .gx-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

body.gyalux-corporate .gx-list-filters {
  display: grid;
  grid-template-columns: minmax(260px,1.55fr) minmax(180px,.9fr) minmax(180px,.9fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--gx-list-border);
  background: #fbfcfe;
}

body.gyalux-corporate .gx-list-filters :is(input,select) {
  width: 100%;
  min-width: 0;
}

body.gyalux-corporate .gx-list-notice {
  margin: 14px 22px;
  padding: 12px 14px;
  border: 1px solid #e4d6ae;
  border-radius: 11px;
  background: #fff9e9;
  color: #5c5139;
  font-size: 14px;
  line-height: 1.55;
}

/* Tabla universal */
body.gyalux-corporate .gx-data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  background: #fff;
}

body.gyalux-corporate .gx-data-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

body.gyalux-corporate .gx-data-table th {
  padding: 13px 15px;
  border-bottom: 1px solid #cfdae6;
  background: var(--gx-list-head);
  color: #445b75;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1.3;
  text-transform: uppercase;
  vertical-align: middle;
}

body.gyalux-corporate .gx-data-table td {
  padding: 14px 15px;
  border-bottom: 1px solid #e6edf4;
  color: #304864;
  font-size: 14px;
  line-height: 1.45;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

body.gyalux-corporate .gx-data-table tbody tr:hover {
  background: var(--gx-list-hover);
}

body.gyalux-corporate .gx-data-table tbody tr:last-child td {
  border-bottom: 0;
}

body.gyalux-corporate .gx-data-table th:last-child,
body.gyalux-corporate .gx-data-table td:last-child {
  width: 190px;
}

body.gyalux-corporate .gx-data-table :is(td,th):nth-last-child(2) {
  width: 150px;
}

body.gyalux-corporate .gx-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font: inherit;
  text-decoration: none;
  white-space: normal;
}

body.gyalux-corporate .gx-sort-link span:last-child {
  color: #9a7a35;
  font-size: 12px;
}

body.gyalux-corporate .gx-sort-link.is-active {
  color: #17365d;
}

body.gyalux-corporate .gx-cell-stack,
body.gyalux-corporate .gx-data-table td > .supplier-name-cell {
  display: grid;
  gap: 4px;
}

body.gyalux-corporate .gx-cell-stack small,
body.gyalux-corporate .gx-data-table td small {
  display: block;
  color: #69798c;
  font-size: 12px;
  line-height: 1.4;
}

body.gyalux-corporate .gx-data-table .supplier-name-cell a {
  color: #17365d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

body.gyalux-corporate .gx-data-table .supplier-name-cell a:hover {
  color: #275884;
  text-decoration: underline;
}

/* Acciones desplegables universales */
body.gyalux-corporate .gx-action-menu {
  position: relative;
}

body.gyalux-corporate .gx-action-menu > summary {
  list-style: none;
}

body.gyalux-corporate .gx-action-menu > summary::-webkit-details-marker {
  display: none;
}

body.gyalux-corporate .gx-action-menu-list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  right: 0;
  min-width: 190px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d4dee9;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(18,49,88,.16);
}

body.gyalux-corporate .gx-action-menu-list :is(a,button,span,form) {
  width: 100%;
}

/* Columnas específicas conservando una tabla común */
body.gyalux-corporate .product-primary-table th:nth-child(1),
body.gyalux-corporate .product-primary-table td:nth-child(1) { width: 29%; }
body.gyalux-corporate .product-primary-table th:nth-child(2),
body.gyalux-corporate .product-primary-table td:nth-child(2) { width: 19%; }
body.gyalux-corporate .product-primary-table th:nth-child(3),
body.gyalux-corporate .product-primary-table td:nth-child(3) { width: 12%; }
body.gyalux-corporate .product-primary-table th:nth-child(4),
body.gyalux-corporate .product-primary-table td:nth-child(4) { width: 8%; }
body.gyalux-corporate .product-primary-table th:nth-child(5),
body.gyalux-corporate .product-primary-table td:nth-child(5),
body.gyalux-corporate .product-primary-table th:nth-child(6),
body.gyalux-corporate .product-primary-table td:nth-child(6),
body.gyalux-corporate .product-primary-table th:nth-child(7),
body.gyalux-corporate .product-primary-table td:nth-child(7) { width: 10%; }
body.gyalux-corporate .product-primary-table th:nth-child(8),
body.gyalux-corporate .product-primary-table td:nth-child(8) { width: 12%; }

body.gyalux-corporate .product-main-cell-inner {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 11px;
  align-items: center;
}

body.gyalux-corporate .product-main-cell .product-thumb {
  width: 48px;
  height: 48px;
}

body.gyalux-corporate .category-primary-table th:nth-child(1),
body.gyalux-corporate .category-primary-table td:nth-child(1) { width: 19%; }
body.gyalux-corporate .category-primary-table th:nth-child(2),
body.gyalux-corporate .category-primary-table td:nth-child(2) { width: 29%; }
body.gyalux-corporate .category-primary-table th:nth-child(3),
body.gyalux-corporate .category-primary-table td:nth-child(3) { width: 9%; }
body.gyalux-corporate .category-primary-table th:nth-child(4),
body.gyalux-corporate .category-primary-table td:nth-child(4) { width: 20%; }
body.gyalux-corporate .category-primary-table th:nth-child(5),
body.gyalux-corporate .category-primary-table td:nth-child(5) { width: 9%; }
body.gyalux-corporate .category-primary-table th:nth-child(6),
body.gyalux-corporate .category-primary-table td:nth-child(6) { width: 14%; }

/* Fichas y procesos: mismas acciones, paneles y lectura */
body.gyalux-corporate :is(.supplier-profile-panel, .supplier-sheet-panel,
  .tariff-flow-panel, .guided-flow-shell, .guided-review-shell,
  .product-detail-panel, .product-edit-panel, .category-reconcile-panel,
  .category-decision-panel) {
  border-radius: 18px;
}

body.gyalux-corporate :is(.supplier-profile-toolbar, .supplier-sheet-actions,
  .tariff-ficha-action-row, .product-detail-actions, .product-edit-actions,
  .category-reconcile-context-actions, .new-category-footer-actions) :is(a,button,summary) {
  min-height: var(--gx-btn-height);
  border-radius: 10px;
  font-size: 14px;
}

/* Sin scroll interno en listados: tarjetas responsive */
@media (max-width: 1100px) {
  body.gyalux-corporate .gx-list-filters {
    grid-template-columns: minmax(260px,1fr) repeat(2,minmax(170px,.7fr));
  }
  body.gyalux-corporate .gx-list-filters :is(button,a) {
    width: 100%;
  }
}

@media (max-width: 900px) {
  body.gyalux-corporate .gx-list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.gyalux-corporate .gx-list-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.gyalux-corporate .gx-list-filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  body.gyalux-corporate .gx-list-filters input[type="search"] {
    grid-column: 1 / -1;
  }

  body.gyalux-corporate .gx-data-table-wrap {
    overflow: visible;
    padding: 14px;
    background: #f5f8fb;
  }

  body.gyalux-corporate .gx-data-table,
  body.gyalux-corporate .gx-data-table tbody,
  body.gyalux-corporate .gx-data-table tr,
  body.gyalux-corporate .gx-data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.gyalux-corporate .gx-data-table {
    table-layout: auto;
    background: transparent;
  }

  body.gyalux-corporate .gx-data-table thead {
    display: none;
  }

  body.gyalux-corporate .gx-data-table tbody {
    display: grid;
    gap: 12px;
  }

  body.gyalux-corporate .gx-data-table tr {
    overflow: visible;
    border: 1px solid #dbe4ee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 17px rgba(18,49,88,.045);
  }

  body.gyalux-corporate .gx-data-table td,
  body.gyalux-corporate .gx-data-table td:nth-child(n) {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 142px minmax(0,1fr);
    gap: 13px;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid #e8eef4;
    text-align: left;
  }

  body.gyalux-corporate .gx-data-table td::before {
    content: attr(data-label);
    color: #6b7b8e;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  body.gyalux-corporate .gx-data-table td:last-child {
    border-bottom: 0;
  }

  body.gyalux-corporate .gx-data-table .supplier-table-actions-cell {
    display: grid;
  }

  body.gyalux-corporate .gx-row-actions {
    justify-content: flex-start;
  }

  body.gyalux-corporate .gx-action-menu-list {
    right: auto;
    left: 0;
  }
}

@media (max-width: 680px) {
  body.gyalux-corporate .gx-list-header,
  body.gyalux-corporate .gx-list-filters {
    padding-inline: 16px;
  }

  body.gyalux-corporate .gx-list-filters {
    grid-template-columns: 1fr;
  }

  body.gyalux-corporate .gx-list-filters input[type="search"] {
    grid-column: auto;
  }

  body.gyalux-corporate .gx-list-header-actions,
  body.gyalux-corporate .gx-list-header-actions > *,
  body.gyalux-corporate .gx-list-header > .gx-btn {
    width: 100%;
  }

  body.gyalux-corporate .gx-data-table-wrap {
    padding: 10px;
  }

  body.gyalux-corporate .gx-data-table td,
  body.gyalux-corporate .gx-data-table td:nth-child(n) {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  body.gyalux-corporate .gx-row-actions,
  body.gyalux-corporate .gx-row-actions > *,
  body.gyalux-corporate .gx-row-actions > form > * {
    width: 100%;
  }

  body.gyalux-corporate .gx-action-menu-list {
    position: static;
    margin-top: 7px;
    box-shadow: none;
  }

  body.gyalux-corporate .product-main-cell-inner {
    grid-template-columns: 42px minmax(0,1fr);
  }

  body.gyalux-corporate .product-main-cell .product-thumb {
    width: 42px;
    height: 42px;
  }
}

/* Ajustes finales de geometría de tabla v0.8.2 */
@media (min-width: 901px) {
  body.gyalux-corporate .gx-data-table td.gx-cell-stack {
    display: table-cell;
  }

  body.gyalux-corporate .gx-data-table td.gx-cell-stack > span,
  body.gyalux-corporate .gx-data-table td.gx-cell-stack > small {
    display: block;
  }

  body.gyalux-corporate .gx-data-table th:last-child,
  body.gyalux-corporate .gx-data-table td:last-child {
    width: 220px;
  }

  body.gyalux-corporate .product-primary-table th:last-child,
  body.gyalux-corporate .product-primary-table td:last-child {
    width: 145px;
  }
}

body.gyalux-corporate .gx-action-menu > summary::after {
  content: none;
}

/* Legibilidad de fichas y correcciones responsive verificadas */
body.gyalux-corporate .supplier-profile-meta-item {
  gap: 5px;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
}

body.gyalux-corporate .supplier-profile-meta-item b {
  color: rgba(255,255,255,.68);
  font-weight: 400;
}

body.gyalux-corporate .supplier-profile-meta-item .supplier-profile-status.is-active {
  color: #286b50;
}

body.gyalux-corporate .supplier-profile-meta-item .supplier-profile-status.is-inactive {
  color: #687486;
}

body.gyalux-corporate :is(.button.disabled, .button.is-disabled, .supplier-table-action.is-disabled,
  .gx-btn.is-disabled, button:disabled) {
  border-color: #d9e0e8;
  background: #f2f5f8;
  color: #8995a4;
  box-shadow: none;
  opacity: 1;
}

body.gyalux-corporate :is(.button.danger, .button.warning) {
  border-color: #d4aaa6;
  background: #fff;
  color: #a6423b;
  box-shadow: none;
}

body.gyalux-corporate :is(.button.danger, .button.warning):hover {
  border-color: #c57e78;
  background: #fff1ef;
  color: #96352f;
}

@media (min-width: 901px) {
  body.gyalux-corporate .product-primary-table th:last-child,
  body.gyalux-corporate .product-primary-table td:last-child {
    width: 180px;
  }
}

@media (max-width: 900px) {
  body.gyalux-corporate .gx-data-table td,
  body.gyalux-corporate .gx-data-table td:nth-child(n),
  body.gyalux-corporate .product-primary-table td {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

body.gyalux-platform.gyalux-corporate .button.disabled:not(.secondary):not(.danger):not(.warning),
body.gyalux-platform.gyalux-corporate .button.is-disabled:not(.secondary):not(.danger):not(.warning) {
  border-color: #d9e0e8;
  background: #f2f5f8;
  color: #8995a4;
  box-shadow: none;
}


body.gyalux-corporate .gx-nav-toggle {
  display: none !important;
}

@media (max-width: 900px) {
  body.gyalux-corporate .gx-nav-toggle {
    display: inline-grid !important;
    place-items: center;
  }
}

body.gyalux-corporate .product-main-cell-inner {
  grid-template-columns: 72px minmax(0,1fr);
  gap: 12px;
  align-items: center;
}

body.gyalux-corporate .product-main-cell .product-thumb,
body.gyalux-corporate .product-thumb-cell .product-thumb {
  width: 64px;
  height: 64px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.gyalux-corporate .product-thumb img {
  background: transparent;
}


/* v0.8.4 · Ajustes de productos y acciones de listados */
body.gyalux-corporate .gx-row-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.gyalux-corporate .tariff-primary-list-panel .supplier-table-actions-cell {
  min-width: 180px;
}

body.gyalux-corporate .product-main-cell-inner {
  grid-template-columns: 82px minmax(0,1fr);
  gap: 14px;
}

body.gyalux-corporate .product-main-cell .product-thumb,
body.gyalux-corporate .product-thumb-cell .product-thumb {
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: opacity .16s ease;
}

body.gyalux-corporate .product-main-cell .product-thumb:hover,
body.gyalux-corporate .product-thumb-cell .product-thumb:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  opacity: .9;
}

body.gyalux-corporate .product-thumb img {
  background: transparent;
  transform: scale(1);
  transition: transform .16s ease;
}

body.gyalux-corporate .product-thumb:hover img {
  transform: scale(1.025);
}

body.gyalux-corporate .product-margin {
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid #c6e4d1;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

body.gyalux-corporate .product-margin.is-positive {
  background: #eaf6ef;
  color: #287051;
}

body.gyalux-corporate .product-margin-cell small {
  margin-top: 5px;
  color: #53667d;
  font-size: 12px;
  line-height: 1.2;
}

body.gyalux-corporate .discarded-products-table .product-main-cell {
  min-width: 310px;
}

body.gyalux-corporate .discarded-products-table th:nth-child(1),
body.gyalux-corporate .discarded-products-table td:nth-child(1) { width: 33%; }
body.gyalux-corporate .discarded-products-table th:nth-child(2),
body.gyalux-corporate .discarded-products-table td:nth-child(2) { width: 13%; }
body.gyalux-corporate .discarded-products-table th:nth-child(3),
body.gyalux-corporate .discarded-products-table td:nth-child(3) { width: 9%; }
body.gyalux-corporate .discarded-products-table th:nth-child(4),
body.gyalux-corporate .discarded-products-table td:nth-child(4) { width: 11%; }
body.gyalux-corporate .discarded-products-table th:nth-child(5),
body.gyalux-corporate .discarded-products-table td:nth-child(5) { width: 24%; }
body.gyalux-corporate .discarded-products-table th:nth-child(6),
body.gyalux-corporate .discarded-products-table td:nth-child(6) { width: 10%; }

@media (max-width: 900px) {
  body.gyalux-corporate .gx-row-actions {
    flex-wrap: wrap;
    white-space: normal;
  }

  body.gyalux-corporate .product-main-cell-inner {
    grid-template-columns: 70px minmax(0,1fr);
  }

  body.gyalux-corporate .product-main-cell .product-thumb,
  body.gyalux-corporate .product-thumb-cell .product-thumb {
    width: 64px;
    height: 64px;
  }
}


/* =========================================================
   v0.8.5 · Ajustes de margen y legibilidad del Dashboard
   ========================================================= */

/* Margen: importe y porcentaje dentro del mismo indicador compacto. */
body.gyalux-corporate .product-margin-cell {
  white-space: nowrap;
}

body.gyalux-corporate .product-margin {
  min-width: 62px;
  min-height: 34px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
}

body.gyalux-corporate .product-margin > span {
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.05;
}

body.gyalux-corporate .product-margin > small,
body.gyalux-corporate .product-margin-cell .product-margin small {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.05;
}

/* Dashboard: tipografía limpia, algo mayor y sin pesos pesados. */
body.gyalux-corporate.section-dashboard .gx-dashboard,
body.gyalux-corporate.section-dashboard .gx-dashboard p,
body.gyalux-corporate.section-dashboard .gx-dashboard span,
body.gyalux-corporate.section-dashboard .gx-dashboard small,
body.gyalux-corporate.section-dashboard .gx-dashboard a {
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard :is(h2, h3, strong) {
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel header span {
  font-size: .70rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel header h2 {
  font-size: 1.20rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel header p {
  font-size: .78rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel header > a {
  font-size: .77rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-funnel-stage small,
body.gyalux-corporate.section-dashboard .gx-dashboard-funnel-stage span {
  font-size: .72rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-funnel-stage strong {
  font-size: 1.62rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-task-code {
  font-size: .68rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-task-copy strong {
  font-size: .86rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-task-copy p {
  font-size: .75rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-task > a {
  font-size: .75rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-validation-summary span,
body.gyalux-corporate.section-dashboard .gx-dashboard-process-counts span {
  font-size: .70rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-validation-summary strong,
body.gyalux-corporate.section-dashboard .gx-dashboard-process-counts strong {
  font-size: 1.28rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-reason-row > div {
  font-size: .74rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-reason-row > div strong {
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-panel-note {
  font-size: .70rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-process-main span,
body.gyalux-corporate.section-dashboard .gx-dashboard-process-main p {
  font-size: .74rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-process-main strong {
  font-size: .96rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-process-badge {
  font-size: .69rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-technical-row > span {
  font-size: .75rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-technical-row > strong,
body.gyalux-corporate.section-dashboard .gx-dashboard-technical-row > strong.is-roadmap {
  font-size: .73rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-empty-note {
  font-size: .78rem;
  font-weight: 400;
}


body.gyalux-corporate.section-dashboard .gx-dashboard-metric-icon {
  font-size: .68rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric small {
  font-size: .76rem;
  font-weight: 400;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric strong {
  font-size: 1.80rem;
  font-weight: 500;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric p {
  font-size: .74rem;
  font-weight: 400;
}


/* =========================================================
   v0.8.7 · Estados de conciliación, margen y métricas
   ========================================================= */

/* Conciliación: estados semánticos completos. */
body.gyalux-corporate .supplier-table-status.is-discarded {
  border-color: #efc8c2;
  background: #fff0ee;
  color: #a43c34;
}

body.gyalux-corporate .supplier-table-status.is-suggested {
  border-color: #ead9a4;
  background: #fff6d9;
  color: #896317;
}

body.gyalux-corporate .supplier-table-status.is-unassigned {
  border-color: #c9dced;
  background: #edf5fc;
  color: #285f91;
}

/* Margen: línea interior sutil entre importe y porcentaje. */
body.gyalux-corporate .product-margin > small,
body.gyalux-corporate .product-margin-cell .product-margin small {
  width: calc(100% + 6px);
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid rgba(40,112,81,.20);
}

body.gyalux-corporate .product-margin.is-negative > small,
body.gyalux-corporate .product-margin-cell .product-margin.is-negative small {
  border-top-color: rgba(166,61,54,.20);
}

/* Dashboard: títulos de métricas en dos líneas uniformes. */
body.gyalux-corporate.section-dashboard .gx-dashboard-metric-label {
  display: grid;
  min-height: 2.25em;
  align-content: start;
  gap: 0;
  line-height: 1.12;
}

body.gyalux-corporate.section-dashboard .gx-dashboard-metric-label > span {
  display: block;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

/* =========================================================
   v0.8.8 · Formularios, fichas y conciliación unificados
   ========================================================= */
body.gyalux-corporate .gx-entity-page {
  display: grid;
  gap: 18px;
}

body.gyalux-corporate .gx-entity-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 164px;
  padding: 24px 28px;
  border: 1px solid #dbe4ee;
  border-left: 4px solid var(--gx-gold, #d3a01f);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 18%, rgba(213,168,50,.13), transparent 27%),
    linear-gradient(120deg, #ffffff 0%, #fbfcfe 68%, #f8f4e9 100%);
  box-shadow: 0 16px 34px rgba(16,38,70,.08);
}

body.gyalux-corporate .gx-entity-hero-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

body.gyalux-corporate .gx-entity-logo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e1ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17,45,80,.07);
}

body.gyalux-corporate .gx-entity-logo img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

body.gyalux-corporate .gx-entity-logo-fallback,
body.gyalux-corporate .gx-entity-symbol span {
  color: #17365e;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .04em;
}

body.gyalux-corporate .gx-entity-hero-copy {
  min-width: 0;
}

body.gyalux-corporate .gx-entity-eyebrow {
  margin: 0 0 5px;
  color: #b47f00;
  font-size: .70rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.gyalux-corporate .gx-entity-hero h1 {
  margin: 0;
  color: #17365e;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
}

body.gyalux-corporate .gx-entity-hero-copy > p:not(.gx-entity-eyebrow) {
  max-width: 760px;
  margin: 7px 0 0;
  color: #60718a;
  font-size: .91rem;
  line-height: 1.5;
}

body.gyalux-corporate .gx-entity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

body.gyalux-corporate .gx-meta-chip {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
}

body.gyalux-corporate .gx-meta-chip small {
  color: #76859a;
  font-size: .66rem;
  font-weight: 400;
}

body.gyalux-corporate .gx-meta-chip b {
  color: #203d62;
  font-size: .76rem;
  font-weight: 500;
}

body.gyalux-corporate .gx-status-text.is-active { color: #2b7b56; }
body.gyalux-corporate .gx-status-text.is-inactive { color: #a34a43; }

body.gyalux-corporate .gx-entity-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}

body.gyalux-corporate .gx-entity-actions--wrap { flex-wrap: wrap; }

body.gyalux-corporate .gx-editor-grid,
body.gyalux-corporate .gx-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.gyalux-corporate .gx-editor-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body.gyalux-corporate .gx-content-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,45,80,.055);
}

body.gyalux-corporate .gx-content-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 17px 20px;
  border-bottom: 1px solid #e4ebf2;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

body.gyalux-corporate .gx-content-card-head h2 {
  margin: 0;
  color: #17365e;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -.015em;
}

body.gyalux-corporate .gx-content-card-head p {
  margin: 4px 0 0;
  color: #6b7b91;
  font-size: .78rem;
  line-height: 1.4;
}

body.gyalux-corporate .gx-content-card-body {
  padding: 18px 20px 20px;
}

body.gyalux-corporate .gx-editor-page .supplier-form-fields {
  gap: 14px 12px;
}

body.gyalux-corporate .gx-editor-page .supplier-form-field label {
  margin-bottom: 6px;
  color: #365271;
  font-size: .77rem;
  font-weight: 400;
}

body.gyalux-corporate .gx-editor-page input:not([type="checkbox"]),
body.gyalux-corporate .gx-editor-page select,
body.gyalux-corporate .gx-editor-page textarea {
  border-color: #ccd9e7;
  background: #fff;
}

body.gyalux-corporate .gx-editor-page textarea {
  min-height: 148px;
  resize: vertical;
}

body.gyalux-corporate .gx-toggle-list {
  display: grid;
  gap: 11px;
}

body.gyalux-corporate .gx-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 15px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #f8fafc;
}

body.gyalux-corporate .gx-toggle-row > span {
  display: grid;
  gap: 4px;
}

body.gyalux-corporate .gx-toggle-row b {
  color: #213e63;
  font-size: .82rem;
  font-weight: 500;
}

body.gyalux-corporate .gx-toggle-row small {
  color: #718198;
  font-size: .73rem;
  line-height: 1.35;
}

body.gyalux-corporate .gx-toggle-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: #255a91;
}

body.gyalux-corporate .gx-info-stack {
  display: grid;
  gap: 10px;
}

body.gyalux-corporate .gx-info-stack > div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid #e0e7ef;
  border-radius: 11px;
  background: #fafbfd;
}

body.gyalux-corporate .gx-info-stack b {
  color: #254567;
  font-size: .80rem;
  font-weight: 500;
}

body.gyalux-corporate .gx-info-stack span {
  color: #687a92;
  font-size: .74rem;
  line-height: 1.42;
}

body.gyalux-corporate .gx-detail-grid--balanced,
body.gyalux-corporate .gx-detail-grid--tariff {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body.gyalux-corporate .gx-description-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 0;
}

body.gyalux-corporate .gx-description-grid > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e1e8f0;
  border-radius: 11px;
  background: #fbfcfe;
}

body.gyalux-corporate .gx-description-grid > div.is-wide { grid-column: 1 / -1; }

body.gyalux-corporate .gx-description-grid dt {
  margin: 0 0 5px;
  color: #77869b;
  font-size: .68rem;
  font-weight: 400;
}

body.gyalux-corporate .gx-description-grid dd {
  margin: 0;
  color: #234263;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

body.gyalux-corporate .gx-stat-grid,
body.gyalux-corporate .gx-value-grid {
  display: grid;
  gap: 10px;
}

body.gyalux-corporate .gx-stat-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
body.gyalux-corporate .gx-value-grid--four { grid-template-columns: repeat(4, minmax(0,1fr)); }
body.gyalux-corporate .gx-value-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }

body.gyalux-corporate .gx-stat-card,
body.gyalux-corporate .gx-value-grid > div {
  display: grid;
  align-content: center;
  min-height: 82px;
  padding: 13px 14px;
  border: 1px solid #dfe7ef;
  border-radius: 11px;
  background: #fbfcfe;
}

body.gyalux-corporate .gx-stat-card span,
body.gyalux-corporate .gx-value-grid span {
  color: #718098;
  font-size: .69rem;
  line-height: 1.25;
}

body.gyalux-corporate .gx-stat-card strong,
body.gyalux-corporate .gx-value-grid strong {
  margin-top: 5px;
  color: #17365e;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.1;
}

body.gyalux-corporate .gx-value-grid > div.is-highlight {
  border-color: #d8c480;
  background: #fffaf0;
}

body.gyalux-corporate .gx-notes-box {
  min-height: 125px;
  padding: 14px;
  border: 1px solid #e0e7ef;
  border-radius: 11px;
  background: #fbfcfe;
  color: #596d86;
  font-size: .80rem;
  line-height: 1.55;
}

body.gyalux-corporate .gx-flow-steps-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,45,80,.05);
}

body.gyalux-corporate .gx-flow-steps-card .guided-steps {
  margin: 0;
  border: 0;
  border-radius: 0;
}

body.gyalux-corporate .gx-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e5ebf2;
}

body.gyalux-corporate .gx-file-row:last-child { border-bottom: 0; }

body.gyalux-corporate .gx-file-row-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

body.gyalux-corporate .gx-file-row-main > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.gyalux-corporate .gx-file-row strong {
  color: #244362;
  font-size: .81rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

body.gyalux-corporate .gx-file-row small {
  color: #74849a;
  font-size: .70rem;
}

body.gyalux-corporate .gx-file-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf4fb;
  color: #315f8d;
  font-size: .62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.gyalux-corporate .gx-file-badge.is-base {
  background: #eaf6ef;
  color: #2d7855;
}

body.gyalux-corporate .gx-empty-inline {
  padding: 14px;
  border: 1px dashed #d7e1eb;
  border-radius: 11px;
  color: #75859a;
  font-size: .77rem;
}

body.gyalux-corporate .gx-action-list {
  display: grid;
  gap: 9px;
}

body.gyalux-corporate .gx-action-list a {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid #dfe7ef;
  border-radius: 11px;
  background: #fbfcfe;
  text-decoration: none;
}

body.gyalux-corporate .gx-action-list a:hover {
  border-color: #c7d7e7;
  background: #f5f8fc;
}

body.gyalux-corporate .gx-action-list span {
  color: #234363;
  font-size: .80rem;
  font-weight: 500;
}

body.gyalux-corporate .gx-action-list small {
  color: #74849a;
  font-size: .70rem;
}

body.gyalux-corporate .gx-tariff-files-card { grid-row: span 2; }

body.gyalux-corporate .gx-product-detail-grid {
  grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr);
}

body.gyalux-corporate .gx-product-media-card { grid-row: span 1; }
body.gyalux-corporate .gx-product-price-card,
body.gyalux-corporate .gx-product-category-card { min-height: 100%; }

body.gyalux-corporate .gx-product-hero-thumb {
  background: #f8fafc;
}

body.gyalux-corporate .gx-product-hero-thumb .product-thumb,
body.gyalux-corporate .gx-product-detail-media .product-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.gyalux-corporate .gx-product-hero-thumb .product-thumb img,
body.gyalux-corporate .gx-product-detail-media .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.gyalux-corporate .gx-product-detail-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

body.gyalux-corporate .gx-audit-card { margin-top: 0; }
body.gyalux-corporate .gx-audit-card .product-detail-audit { border: 0; }
body.gyalux-corporate .gx-audit-card .product-detail-audit-head { display: none; }

body.gyalux-corporate .category-decision-summary {
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
  padding: 12px 14px 16px;
}

body.gyalux-corporate .category-decision-summary .new-category-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
  padding: 12px 14px;
}

body.gyalux-corporate .category-decision-summary .new-category-summary-card span {
  max-width: none;
  color: #526983;
  font-size: .76rem;
  line-height: 1.2;
  white-space: nowrap;
}

body.gyalux-corporate .category-decision-summary .new-category-summary-card strong {
  flex: 0 0 auto;
  color: #17365e;
  font-size: 1.35rem;
  font-weight: 500;
}

body.gyalux-corporate .category-decision-notice { display: none; }

@media (max-width: 1100px) {
  body.gyalux-corporate .gx-entity-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  body.gyalux-corporate .gx-entity-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  body.gyalux-corporate .gx-value-grid--four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.gyalux-corporate .category-decision-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  body.gyalux-corporate .gx-editor-grid,
  body.gyalux-corporate .gx-detail-grid,
  body.gyalux-corporate .gx-detail-grid--balanced,
  body.gyalux-corporate .gx-detail-grid--tariff,
  body.gyalux-corporate .gx-product-detail-grid {
    grid-template-columns: 1fr;
  }
  body.gyalux-corporate .gx-entity-hero-main { align-items: flex-start; }
  body.gyalux-corporate .gx-stat-grid--three,
  body.gyalux-corporate .gx-value-grid--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.gyalux-corporate .category-decision-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.gyalux-corporate .category-decision-summary .new-category-summary-card span { white-space: normal; }
}

@media (max-width: 560px) {
  body.gyalux-corporate .gx-entity-hero { padding: 20px 18px; }
  body.gyalux-corporate .gx-entity-hero-main { flex-direction: column; }
  body.gyalux-corporate .gx-entity-logo { width: 62px; height: 62px; flex-basis: 62px; }
  body.gyalux-corporate .gx-entity-actions > * { flex: 1 1 auto; }
  body.gyalux-corporate .gx-description-grid,
  body.gyalux-corporate .gx-stat-grid--three,
  body.gyalux-corporate .gx-value-grid--four,
  body.gyalux-corporate .gx-value-grid--three,
  body.gyalux-corporate .category-decision-summary { grid-template-columns: 1fr; }
  body.gyalux-corporate .gx-description-grid > div.is-wide { grid-column: auto; }
  body.gyalux-corporate .category-decision-summary .new-category-summary-card span { white-space: normal; }
}


/* =========================================================
   v0.8.9 · Ajustes finos de fichas y acciones de producto
   ========================================================= */
body.gyalux-corporate .gx-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.gyalux-corporate .gx-detail-column {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
}

body.gyalux-corporate .gx-action-menu-list :is(a, button, span) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

body.gyalux-corporate .gx-action-menu-list form {
  display: block;
  width: 100%;
  margin: 0;
}

body.gyalux-corporate .supplier-form-field input[type="file"]::file-selector-button {
  font-weight: 400;
}

body.gyalux-corporate .gx-collapsible-card {
  margin-top: 0;
}

body.gyalux-corporate .gx-collapsible-card > summary {
  list-style: none;
}

body.gyalux-corporate .gx-collapsible-card > summary::-webkit-details-marker {
  display: none;
}

body.gyalux-corporate .gx-collapsible-card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 17px 20px;
  cursor: pointer;
  background: #fafbfd;
}

body.gyalux-corporate .gx-collapsible-card-summary:hover {
  background: #f6f8fb;
}

body.gyalux-corporate .gx-collapsible-card-summary h2 {
  margin: 0 0 5px;
  color: #17365e;
  font-size: 1rem;
  font-weight: 500;
}

body.gyalux-corporate .gx-collapsible-card-summary p {
  margin: 0;
  color: #6f8096;
  font-size: .76rem;
}

body.gyalux-corporate .gx-collapsible-card-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d5dfe9;
  border-radius: 9px;
  background: #fff;
  color: #244363;
  font-size: .74rem;
  font-weight: 400;
}


body.gyalux-corporate .gx-collapsible-card-state .is-open { display: none; }
body.gyalux-corporate .gx-collapsible-card[open] .gx-collapsible-card-state .is-closed { display: none; }
body.gyalux-corporate .gx-collapsible-card[open] .gx-collapsible-card-state .is-open { display: inline; }

body.gyalux-corporate .gx-collapsible-card-state::after {
  content: "+";
  color: #bf8d16;
  font-size: 1rem;
  line-height: 1;
}

body.gyalux-corporate .gx-collapsible-card[open] .gx-collapsible-card-state::after {
  content: "−";
}

body.gyalux-corporate .gx-collapsible-card[open] .gx-collapsible-card-state {
  background: #fffaf0;
  border-color: #dfc979;
}

@media (max-width: 820px) {
  body.gyalux-corporate .gx-detail-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.gyalux-corporate .gx-collapsible-card-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v0.9.0 · navegación preparada para módulos futuros */
@media (min-width: 901px) {
  body.gyalux-corporate .gx-module-nav { gap: 2px; }
  body.gyalux-corporate .gx-module-nav a { padding-inline: 10px; font-size: 12px; white-space: nowrap; }
}
body.gyalux-corporate .gx-entity-actions > form { margin: 0; display: inline-flex; }


/* =========================================================
   v0.9.1 · Cabecera preparada para múltiples tiendas y usuario
   ========================================================= */
body.gyalux-corporate .gx-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 1101px) {
  body.gyalux-corporate .gx-header-inner {
    width: min(100% - 40px, 1400px);
    max-width: 1400px;
    grid-template-columns: 196px minmax(0, 1fr) 292px;
    gap: 24px;
  }

  body.gyalux-corporate .gx-module-nav {
    justify-content: center;
    gap: 5px;
    overflow: visible;
  }

  body.gyalux-corporate .gx-module-nav a {
    padding-inline: 12px;
    font-size: 12px;
  }
}

body.gyalux-corporate .gx-header-actions {
  position: relative;
  gap: 9px;
  min-width: 0;
}

body.gyalux-corporate .gx-store-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 1 166px;
  min-width: 142px;
  margin: 0;
}

body.gyalux-corporate .gx-store-switcher::before {
  content: "▣";
  position: absolute;
  left: 12px;
  z-index: 1;
  color: #b98519;
  font-size: 11px;
  pointer-events: none;
}

body.gyalux-corporate .gx-store-switcher select {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 31px 0 30px;
  border: 1px solid var(--gx-line-strong);
  border-radius: 11px;
  background:
    linear-gradient(45deg, transparent 50%, #5d6d82 50%) calc(100% - 16px) 17px / 5px 5px no-repeat,
    linear-gradient(135deg, #5d6d82 50%, transparent 50%) calc(100% - 12px) 17px / 5px 5px no-repeat,
    #fff;
  color: #263d5b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
}

body.gyalux-corporate .gx-store-switcher select:hover,
body.gyalux-corporate .gx-store-switcher select:focus {
  border-color: #9dafc3;
  background-color: #f8fafc;
  outline: none;
}

body.gyalux-corporate .gx-account-menu {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

body.gyalux-corporate .gx-account-menu > summary {
  list-style: none;
}

body.gyalux-corporate .gx-account-menu > summary::-webkit-details-marker {
  display: none;
}

body.gyalux-corporate .gx-account-trigger {
  min-width: 92px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--gx-line-strong);
  border-radius: 11px;
  background: #f8fafc;
  color: #263d5b;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: .18s ease;
}

body.gyalux-corporate .gx-account-trigger:hover,
body.gyalux-corporate .gx-account-menu[open] .gx-account-trigger {
  border-color: #9dafc3;
  background: #fff;
  box-shadow: 0 7px 18px rgba(16, 42, 76, .09);
}

body.gyalux-corporate .gx-account-name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.gyalux-corporate .gx-account-caret {
  color: #79889b;
  font-size: 12px;
  transition: transform .18s ease;
}

body.gyalux-corporate .gx-account-menu[open] .gx-account-caret {
  transform: rotate(180deg);
}

body.gyalux-corporate .gx-account-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 140;
  width: 190px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d5dee9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(14, 39, 72, .16);
}

body.gyalux-corporate .gx-account-menu-caption {
  display: block;
  padding: 7px 9px 5px;
  color: #7b899b;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.gyalux-corporate .gx-account-logout {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e2b9b1;
  border-radius: 9px;
  background: #fff;
  color: #a84838;
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
}

body.gyalux-corporate .gx-account-logout:hover {
  border-color: #d48c7f;
  background: #fff7f5;
}

body.gyalux-corporate .supplier-table-actions-cell .gx-row-actions > form {
  display: inline-flex;
  margin: 0;
}

@media (max-width: 1100px) and (min-width: 901px) {
  body.gyalux-corporate .gx-header-inner {
    width: min(100% - 28px, 1180px);
    max-width: 1180px;
    grid-template-columns: 170px minmax(0,1fr) 255px;
    gap: 12px;
  }

  body.gyalux-corporate .gx-module-nav {
    gap: 1px;
  }

  body.gyalux-corporate .gx-module-nav a {
    padding-inline: 8px;
    font-size: 11px;
  }

  body.gyalux-corporate .gx-store-switcher {
    flex-basis: 142px;
    min-width: 128px;
  }
}

@media (max-width: 900px) {
  body.gyalux-corporate .gx-store-switcher {
    display: none;
  }

  body.gyalux-corporate .gx-account-trigger {
    min-width: 78px;
  }
}

@media (max-width: 480px) {
  body.gyalux-corporate .gx-account-trigger {
    min-width: 0;
    padding-inline: 10px;
  }

  body.gyalux-corporate .gx-account-name {
    max-width: 62px;
  }
}


body.gyalux-corporate .gx-mobile-store-switcher {
  display: none;
}

@media (max-width: 900px) {
  body.gyalux-corporate .gx-mobile-store-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid #d7e0ea;
    border-radius: 11px;
    background: #f8fafc;
  }

  body.gyalux-corporate .gx-mobile-store-switcher > span {
    color: #68788d;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  body.gyalux-corporate .gx-mobile-store-switcher select {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #cdd8e5;
    border-radius: 9px;
    background: #fff;
    color: #263d5b;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
  }
}


/* =========================================================
   v0.9.2 · Navegación principal más legible y equilibrada
   - fuente mayor
   - separación contenida
   - bloque desplazado hacia la izquierda
   ========================================================= */
@media (min-width: 1251px) {
  body.gyalux-corporate .gx-header-inner {
    width: min(100% - 32px, 1480px);
    max-width: 1480px;
    grid-template-columns: 184px minmax(0, 1fr) 286px;
    gap: 16px;
  }

  body.gyalux-corporate .gx-module-nav {
    justify-content: flex-start;
    gap: 2px;
    overflow: visible;
  }

  body.gyalux-corporate .gx-module-nav a {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 1250px) and (min-width: 1101px) {
  body.gyalux-corporate .gx-header-inner {
    width: min(100% - 28px, 1220px);
    max-width: 1220px;
    grid-template-columns: 172px minmax(0, 1fr) 270px;
    gap: 12px;
  }

  body.gyalux-corporate .gx-module-nav {
    justify-content: flex-start;
    gap: 1px;
  }

  body.gyalux-corporate .gx-module-nav a {
    padding-inline: 8px;
    font-size: 12px;
  }
}


/* =========================================================
   v0.9.3 · Cabecera centrada y menús integrados
   - mismo ancho que los contenedores principales
   - navegación centrada de verdad
   - selector de tienda y cuenta dentro del sistema visual
   ========================================================= */
@media (min-width: 1101px) {
  body.gyalux-corporate .gx-header-inner {
    width: min(100% - 48px, var(--gx-max));
    max-width: var(--gx-max);
    grid-template-columns: 252px minmax(0, 1fr) 252px;
    gap: 12px;
    margin-inline: auto;
  }

  body.gyalux-corporate .gx-brand-line {
    justify-self: start;
  }

  body.gyalux-corporate .gx-module-nav {
    width: max-content;
    max-width: 100%;
    justify-self: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
  }

  body.gyalux-corporate .gx-module-nav a {
    min-height: 40px;
    padding-inline: 9px;
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
  }

  body.gyalux-corporate .gx-header-actions {
    width: 252px;
    justify-self: end;
    justify-content: flex-end;
    gap: 7px;
  }
}

body.gyalux-corporate .gx-header-context-menu {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

body.gyalux-corporate .gx-header-context-menu > summary {
  list-style: none;
}

body.gyalux-corporate .gx-header-context-menu > summary::-webkit-details-marker {
  display: none;
}

body.gyalux-corporate .gx-header-context-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--gx-line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--gx-blue);
  box-shadow: 0 5px 14px rgba(17, 47, 83, .055);
  cursor: pointer;
  user-select: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.gyalux-corporate .gx-store-menu .gx-header-context-trigger {
  width: 147px;
}

body.gyalux-corporate .gx-account-menu .gx-header-context-trigger {
  width: 98px;
}

body.gyalux-corporate .gx-header-context-trigger:hover,
body.gyalux-corporate .gx-header-context-menu[open] > .gx-header-context-trigger {
  border-color: rgba(190, 143, 37, .52);
  background: linear-gradient(180deg, #fffdf7 0%, #fbf5e7 100%);
  box-shadow: 0 9px 22px rgba(31, 54, 86, .11);
  transform: translateY(-1px);
}

body.gyalux-corporate .gx-header-context-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7e0eb;
  border-radius: 9px;
  background: #f2f6fb;
  color: #244a73;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

body.gyalux-corporate .gx-header-context-icon.is-store {
  border-color: #ead9a9;
  background: #fff8e5;
  color: #9e7316;
}

body.gyalux-corporate .gx-header-context-icon.is-user {
  border-color: #cddbec;
  background: #edf4fb;
  color: #153f70;
}

body.gyalux-corporate .gx-header-context-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

body.gyalux-corporate .gx-header-context-copy small {
  color: #78879a;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .075em;
  text-transform: uppercase;
}

body.gyalux-corporate .gx-header-context-copy strong {
  max-width: 91px;
  overflow: hidden;
  color: #29435f;
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.gyalux-corporate .gx-account-menu .gx-header-context-copy strong {
  max-width: 45px;
}

body.gyalux-corporate .gx-header-context-caret {
  margin-left: auto;
  color: #7b899a;
  font-size: 11px;
  line-height: 1;
  transition: transform .18s ease;
}

body.gyalux-corporate .gx-header-context-menu[open] .gx-header-context-caret {
  transform: rotate(180deg);
}

body.gyalux-corporate .gx-header-context-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 160;
  width: 242px;
  display: grid;
  gap: 6px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(23, 54, 93, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 20px 48px rgba(14, 39, 72, .18);
}

body.gyalux-corporate .gx-header-context-list::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gx-gold), #e3bf67 58%, transparent);
}

body.gyalux-corporate .gx-header-context-caption {
  display: block;
  padding: 8px 9px 4px;
  color: #7b899a;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.gyalux-corporate .gx-header-context-option,
body.gyalux-corporate .gx-header-account-summary {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background: #fff;
  color: #2c435f;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
}

body.gyalux-corporate button.gx-header-context-option {
  cursor: pointer;
}

body.gyalux-corporate .gx-header-context-option:hover {
  border-color: #c9d5e2;
  background: #f7f9fc;
}

body.gyalux-corporate .gx-header-context-option.is-active {
  border-color: #dfc87c;
  background: #fffaf0;
}

body.gyalux-corporate .gx-header-context-option.is-disabled {
  opacity: .62;
  cursor: default;
}

body.gyalux-corporate .gx-header-context-option.is-danger {
  border-color: #ebc9c2;
  color: #a94737;
}

body.gyalux-corporate .gx-header-context-option.is-danger:hover {
  border-color: #dda69a;
  background: #fff7f5;
}

body.gyalux-corporate .gx-header-context-option-icon {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f5fa;
  color: #315578;
  font-size: 10px;
  font-weight: 500;
}

body.gyalux-corporate .gx-header-context-option > span:nth-child(2),
body.gyalux-corporate .gx-header-account-summary > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.gyalux-corporate .gx-header-context-option strong,
body.gyalux-corporate .gx-header-account-summary strong {
  color: inherit;
  font-size: 11px;
  font-weight: 500;
}

body.gyalux-corporate .gx-header-context-option small,
body.gyalux-corporate .gx-header-account-summary small {
  color: #7a899b;
  font-size: 9px;
  font-weight: 400;
}

body.gyalux-corporate .gx-header-context-check {
  color: #3d8a5b;
  font-size: 13px;
}

body.gyalux-corporate .gx-header-account-summary {
  grid-template-columns: 31px minmax(0, 1fr);
  border-color: transparent;
  background: #f7f9fc;
}

@media (max-width: 1100px) and (min-width: 901px) {
  body.gyalux-corporate .gx-header-inner {
    width: min(100% - 28px, var(--gx-max));
    max-width: var(--gx-max);
    grid-template-columns: 162px minmax(0, 1fr) 228px;
    gap: 8px;
  }

  body.gyalux-corporate .gx-module-nav {
    justify-self: center;
    justify-content: center;
    gap: 0;
  }

  body.gyalux-corporate .gx-module-nav a {
    padding-inline: 6px;
    font-size: 11px;
  }

  body.gyalux-corporate .gx-header-actions {
    gap: 5px;
  }

  body.gyalux-corporate .gx-store-menu .gx-header-context-trigger {
    width: 126px;
  }

  body.gyalux-corporate .gx-account-menu .gx-header-context-trigger {
    width: 90px;
  }
}

@media (max-width: 900px) {
  body.gyalux-corporate .gx-store-menu {
    display: none;
  }

  body.gyalux-corporate .gx-account-menu .gx-header-context-trigger {
    width: auto;
    min-width: 78px;
  }
}

/* ============================================================
   Catalog Manager v0.10.0 · Motor maestro del asistente
   ============================================================ */
.gx-assistant-shell{
  width:min(100%,1200px);
  margin:0 auto;
  display:grid;
  gap:18px;
}
.gx-assistant-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px;
  border:1px solid var(--gx-border,#dfe5ec);
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(13,42,69,.98),rgba(17,56,91,.95)),
    radial-gradient(circle at top right,rgba(211,169,74,.22),transparent 38%);
  box-shadow:0 14px 34px rgba(17,38,61,.10);
  color:#fff;
}
.gx-assistant-hero h1{margin:5px 0 7px;font-size:clamp(1.7rem,2.3vw,2.35rem);line-height:1.12;font-weight:720;letter-spacing:-.025em;color:#fff}
.gx-assistant-hero p{margin:0;max-width:790px;color:rgba(255,255,255,.78);font-size:1rem;line-height:1.55}
.gx-assistant-hero .gx-kicker{color:#e6c36c}
.gx-assistant-version{flex:0 0 auto;padding:7px 11px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08);font-size:.78rem;font-weight:700;color:#f6e4a9}
.gx-assistant-progress{
  display:grid;
  grid-template-columns:repeat(11,minmax(84px,1fr));
  overflow-x:auto;
  padding:10px;
  border:1px solid var(--gx-border,#dfe5ec);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 22px rgba(17,38,61,.06);
  scrollbar-width:thin;
}
.gx-assistant-step{position:relative;min-width:84px;display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:12px;color:#718093}
.gx-assistant-step:not(:last-child)::after{content:"";position:absolute;right:-3px;top:50%;width:6px;height:1px;background:#d8e0e8}
.gx-assistant-step>span{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;border:1px solid #ccd6e0;background:#f7f9fb;font-size:.75rem;font-weight:750}
.gx-assistant-step strong{display:block;font-size:.76rem;line-height:1.12;font-weight:700;white-space:nowrap}
.gx-assistant-step small{display:block;margin-top:3px;font-size:.62rem;line-height:1;color:#9aa6b2;white-space:nowrap}
.gx-assistant-step.is-active{background:#f2f6fa;color:#123653}
.gx-assistant-step.is-active>span{border-color:#d4ad4c;background:#f6e8bd;color:#755716}
.gx-assistant-step.is-complete{color:#1d6b4e}
.gx-assistant-step.is-complete>span{border-color:#a9d6c3;background:#e9f7f0;color:#1d6b4e}
.gx-assistant-step.is-skipped{color:#856927}
.gx-assistant-step.is-skipped>span{border-color:#e2cf9c;background:#fff8e6;color:#856927}
.gx-assistant-step.is-future{opacity:.52}
.gx-assistant-body{display:grid;gap:18px}
.gx-assistant-form,.gx-assistant-section,.gx-structure-card,.gx-consolidation-card,.gx-consolidation-base,.gx-optional-banner,.gx-assistant-complete,.gx-next-stage-card{
  border:1px solid var(--gx-border,#dfe5ec);
  border-radius:16px;
  background:#fff;
  box-shadow:0 9px 24px rgba(17,38,61,.06);
}
.gx-assistant-form{padding:24px}
.gx-assistant-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.gx-assistant-form-grid label{display:grid;gap:7px}
.gx-assistant-form-grid label>span,.gx-structure-settings label>span,.gx-relation-grid label>span{font-size:.85rem;font-weight:650;color:#223b50}
.gx-assistant-form-grid label>small,.gx-upload-field small{font-size:.78rem;font-weight:400;color:#738293;line-height:1.45}
.gx-assistant-form-grid .is-wide{grid-column:1/-1}
.gx-upload-field{padding:16px;border:1px dashed #c9d5df;border-radius:13px;background:#fafcfd}
.gx-upload-field span em{margin-left:6px;font-style:normal;font-size:.68rem;font-weight:700;color:#876a24;text-transform:uppercase;letter-spacing:.04em}
.gx-upload-field input[type=file]{padding:9px 0;font-size:.9rem;font-weight:400;background:transparent;border:0}
.gx-upload-field input[type=file]::file-selector-button{margin-right:12px;padding:9px 13px;border:1px solid #cbd6df;border-radius:9px;background:#fff;color:#183b59;font:inherit;font-weight:600;cursor:pointer}
.gx-assistant-optional{border:1px solid #dde5ec;border-radius:12px;background:#fbfcfd;padding:0 14px}
.gx-assistant-optional summary{cursor:pointer;padding:13px 0;font-size:.88rem;font-weight:650;color:#24445e}
.gx-assistant-optional summary span{margin-left:6px;font-size:.67rem;text-transform:uppercase;color:#8a98a5}
.gx-assistant-optional textarea{width:100%;margin:0 0 14px}
.gx-assistant-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px;padding-top:20px;border-top:1px solid #e4eaf0}
.gx-assistant-footer--split>div{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.gx-assistant-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gx-assistant-choice-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:280px;padding:28px;border:1px solid #dce4eb;border-radius:17px;background:#fff;box-shadow:0 10px 26px rgba(17,38,61,.06);overflow:hidden}
.gx-assistant-choice-card.is-primary{border-color:#d6bd7a;background:linear-gradient(145deg,#fff,#fffaf0)}
.gx-assistant-choice-number{position:absolute;right:20px;top:12px;font-size:3.2rem;line-height:1;font-weight:800;color:rgba(24,59,89,.07)}
.gx-assistant-choice-card h2{margin:18px 0 8px;font-size:1.25rem;color:#173b59}
.gx-assistant-choice-card p{margin:0 0 22px;color:#6c7d8c;line-height:1.55}
.gx-assistant-choice-card form{display:grid;gap:12px;width:100%;margin-top:auto}
.gx-assistant-choice-card>a{margin-top:auto}
.gx-assistant-info{display:flex;align-items:flex-start;gap:10px;padding:15px 17px;border:1px solid #cbdbe8;border-left:4px solid #3b759e;border-radius:12px;background:#f3f8fb;color:#31526a}
.gx-assistant-info strong{display:block;flex:0 0 auto}
.gx-assistant-info span{color:#60788a;line-height:1.45}
.gx-structure-list,.gx-consolidation-list,.gx-relation-list{display:grid;gap:15px}
.gx-structure-card{padding:20px}
.gx-structure-card>header,.gx-consolidation-card>header,.gx-assistant-section>header,.gx-consolidation-base{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.gx-structure-card h2,.gx-consolidation-base h2{margin:8px 0 4px;font-size:1.08rem;color:#183b59}
.gx-structure-card p,.gx-consolidation-card p,.gx-assistant-section header p{margin:0;color:#728291;font-size:.84rem;line-height:1.45}
.gx-structure-status,.gx-relation-score{flex:0 0 auto;padding:6px 9px;border-radius:999px;font-size:.72rem;font-weight:700;background:#eef3f7;color:#5e7487}
.gx-structure-card.is-ok .gx-structure-status,.gx-relation-score.is-ok{background:#e8f5ee;color:#1d6c4f}
.gx-structure-card.is-warning .gx-structure-status,.gx-relation-score.is-warning{background:#fff5dc;color:#86661b}
.gx-structure-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.gx-structure-settings label,.gx-relation-grid label{display:grid;gap:6px}
.gx-column-preview{padding:13px 14px;border-radius:11px;background:#f7f9fb}
.gx-column-preview>strong{display:block;margin-bottom:9px;font-size:.76rem;color:#51687a;text-transform:uppercase;letter-spacing:.04em}
.gx-column-preview>div,.gx-consolidation-fields{display:flex;gap:7px;flex-wrap:wrap}
.gx-column-preview span,.gx-consolidation-fields span{padding:6px 9px;border:1px solid #d9e2e9;border-radius:8px;background:#fff;font-size:.76rem;color:#3c566b}
.gx-structure-card details{margin-top:14px}
.gx-structure-card summary{cursor:pointer;font-size:.82rem;font-weight:650;color:#315d7e}
.gx-structure-preview{margin-top:12px;max-height:330px;overflow:auto}
.gx-assistant-section{overflow:hidden}
.gx-assistant-section>header{padding:18px 20px;border-bottom:1px solid #e5ebf0}
.gx-assistant-section>header h2{margin:0 0 4px;font-size:1.08rem;color:#183b59}
.gx-required-legend,.gx-optional-chip{padding:6px 9px;border-radius:999px;background:#f4f6f8;font-size:.7rem;font-weight:700;color:#607386}
.gx-field-map-list{display:grid}
.gx-field-map-row{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(250px,1.15fr);align-items:center;gap:20px;padding:13px 20px;border-bottom:1px solid #edf1f4}
.gx-field-map-row:last-child{border-bottom:0}
.gx-field-map-row>span{display:flex;align-items:center;justify-content:space-between;gap:10px}
.gx-field-map-row strong{font-size:.86rem;color:#29485f}
.gx-field-map-row small{font-size:.68rem;font-weight:650;color:#8a98a5;text-transform:uppercase}
.gx-relation-card{padding:18px;border:1px solid #dfe6ec;border-radius:13px;background:#fbfcfd}
.gx-relation-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.gx-relation-card h3{margin:7px 0 0;font-size:1rem;color:#24445e}
.gx-relation-grid{display:grid;grid-template-columns:.7fr 1fr 1fr;gap:12px;margin:16px 0 10px}
.gx-assistant-empty{display:grid;gap:5px;padding:24px;border:1px dashed #cfd9e2;border-radius:13px;background:#fafcfd;text-align:center;color:#6f7f8e}
.gx-assistant-empty strong{color:#34546c}
.gx-consolidation-base{align-items:center;padding:20px}
.gx-consolidation-base p{margin:0;color:#6f8090}
.gx-consolidation-card{padding:20px}
.gx-consolidation-card.is-error{border-color:#e7b5b5;background:#fff9f9}
.gx-consolidation-card h3{margin:7px 0 0;font-size:1rem;color:#24445e}
.gx-consolidation-stats,.gx-summary-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.gx-consolidation-stats>div,.gx-summary-metrics>div{padding:13px 14px;border:1px solid #e0e7ed;border-radius:11px;background:#f9fbfc}
.gx-consolidation-stats span,.gx-summary-metrics span{display:block;font-size:.72rem;color:#748494}
.gx-consolidation-stats strong,.gx-summary-metrics strong{display:block;margin-top:3px;font-size:1.2rem;color:#183b59}
.gx-consolidation-columns{display:flex;gap:8px;flex-wrap:wrap}
.gx-consolidation-columns>span{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:8px;background:#eef4f7;font-size:.77rem;color:#31546d}
.gx-consolidation-columns small{color:#7c8d9b}
.gx-optional-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;background:linear-gradient(135deg,#fffaf0,#fff)}
.gx-optional-banner span{font-size:.68rem;font-weight:750;color:#8a6b1e;letter-spacing:.08em}
.gx-optional-banner h2{margin:5px 0 5px;font-size:1.15rem;color:#28465d}
.gx-optional-banner p{margin:0;color:#728291}
.gx-optional-banner>strong{font-size:2rem;color:#b4882d;text-align:center}
.gx-optional-banner>strong small{display:block;font-size:.7rem;color:#8a98a5;font-weight:650}
.gx-summary-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}
.gx-summary-files,.gx-summary-status-list{display:grid;padding:4px 18px 12px}
.gx-summary-file{display:flex;align-items:center;gap:12px;padding:13px 2px;border-bottom:1px solid #edf1f4}
.gx-summary-file:last-child{border-bottom:0}
.gx-summary-file strong,.gx-summary-file small{display:block}
.gx-summary-file strong{font-size:.86rem;color:#29485f}
.gx-summary-file small{margin-top:3px;font-size:.75rem;color:#7b8995}
.gx-summary-status-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px;border-bottom:1px solid #edf1f4;font-size:.84rem;color:#52697a}
.gx-summary-status-list>div:last-child{border-bottom:0}
.gx-summary-status-list strong.is-ok{color:#1d6c4f}
.gx-summary-status-list strong.is-warning{color:#8b6a1a}
.gx-assistant-complete{padding:40px 28px;text-align:center}
.gx-assistant-complete-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 15px;border-radius:50%;background:#e7f6ee;color:#1d6c4f;font-size:2rem;font-weight:800}
.gx-assistant-complete h2{margin:8px 0;font-size:1.75rem;color:#183b59}
.gx-assistant-complete p{max-width:680px;margin:0 auto;color:#6d7e8d;line-height:1.55}
.gx-assistant-complete-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.gx-next-stage-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-style:dashed;background:#f9fafb}
.gx-next-stage-card.is-disabled{opacity:.7}
.gx-next-stage-card span{font-size:.68rem;font-weight:750;color:#8a98a5;letter-spacing:.08em}
.gx-next-stage-card h2{margin:5px 0;font-size:1.12rem;color:#29485f}
.gx-next-stage-card p{margin:0;color:#7b8995}
.gx-next-stage-card button[disabled]{cursor:not-allowed;filter:grayscale(.35)}

@media (max-width:1100px){
  .gx-assistant-progress{grid-template-columns:repeat(11,minmax(100px,1fr))}
  .gx-structure-settings,.gx-relation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:780px){
  .gx-assistant-hero{padding:22px;flex-direction:column}
  .gx-assistant-choice-grid,.gx-assistant-form-grid,.gx-summary-grid{grid-template-columns:1fr}
  .gx-assistant-form-grid .is-wide{grid-column:auto}
  .gx-structure-settings,.gx-relation-grid{grid-template-columns:1fr}
  .gx-field-map-row{grid-template-columns:1fr;gap:8px}
  .gx-consolidation-stats,.gx-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gx-assistant-footer,.gx-assistant-footer--split,.gx-optional-banner,.gx-next-stage-card,.gx-consolidation-base{align-items:stretch;flex-direction:column}
  .gx-assistant-footer>a,.gx-assistant-footer>button,.gx-assistant-footer>div,.gx-assistant-footer>div>*{width:100%}
  .gx-assistant-footer--split>div{display:grid}
}
.gx-assistant-dashboard-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:22px 24px;border:1px solid #d7c184;border-radius:16px;background:linear-gradient(135deg,#fffaf0,#fff);box-shadow:0 9px 24px rgba(17,38,61,.06)}
.gx-assistant-dashboard-cta span{font-size:.7rem;font-weight:750;letter-spacing:.08em;color:#8a6a1c}
.gx-assistant-dashboard-cta h2{margin:5px 0;font-size:1.2rem;color:#183b59}
.gx-assistant-dashboard-cta p{margin:0;color:#6f8090;line-height:1.5}
@media (max-width:780px){.gx-assistant-dashboard-cta{align-items:stretch;flex-direction:column}.gx-assistant-dashboard-cta .gx-btn{width:100%}}

/* ============================================================
   v0.10.1 - Asistente maestro reconstruido
   Mantiene el sistema visual corporativo validado.
   ============================================================ */
.gx-assistant-shell--v0101{gap:16px}
.gx-assistant-shell--v0101 .gx-assistant-hero{padding:24px 26px;background:linear-gradient(120deg,#102f58 0%,#173f6c 60%,#244d76 100%)}
.gx-assistant-shell--v0101 .gx-assistant-hero h1{color:#fff!important;text-shadow:0 1px 0 rgba(0,0,0,.08)}
.gx-assistant-shell--v0101 .gx-assistant-hero p{color:rgba(255,255,255,.78)!important}
.gx-assistant-progress-wrap{display:grid;gap:0;border:1px solid #dbe4ec;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(17,38,61,.055);overflow:hidden}
.gx-assistant-progress-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 7px;color:#728394}
.gx-assistant-progress-heading span{font-size:.66rem;font-weight:760;letter-spacing:.09em;color:#8b6a1d}
.gx-assistant-progress-heading strong{font-size:.72rem;color:#526b7e}
.gx-assistant-shell--v0101 .gx-assistant-progress{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:5px 8px 10px;overflow:visible;border:0;border-radius:0;box-shadow:none}
.gx-assistant-shell--v0101 .gx-assistant-step{min-width:0;gap:6px;padding:8px 7px;border-radius:10px}
.gx-assistant-shell--v0101 .gx-assistant-step:not(:last-child)::after{display:none}
.gx-assistant-shell--v0101 .gx-assistant-step>span{width:24px;height:24px;flex-basis:24px;font-size:.7rem}
.gx-assistant-shell--v0101 .gx-assistant-step strong{font-size:.72rem;overflow:hidden;text-overflow:ellipsis}
.gx-assistant-shell--v0101 .gx-assistant-step small{font-size:.59rem}
.gx-assistant-future-rail{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 14px;border-top:1px solid #edf1f4;background:#fafbfc;color:#788794}
.gx-assistant-future-rail>span{font-size:.62rem;font-weight:760;letter-spacing:.08em;color:#8796a3}
.gx-assistant-future-rail>div{display:flex;align-items:center;gap:9px}
.gx-assistant-future-rail b{font-size:.72rem;color:#31516a}
.gx-assistant-future-rail i{font-style:normal;color:#b5c0c9}
.gx-assistant-future-rail div span{display:flex;align-items:center;gap:5px}
.gx-assistant-future-rail div span b{color:#8796a3}
.gx-assistant-future-rail div span small{font-size:.58rem;color:#acb6bf}
.gx-assistant-card-kicker{display:block;font-size:.66rem;font-weight:760;letter-spacing:.09em;color:#a77d1b}
.gx-assistant-choice-card .gx-assistant-card-kicker{margin-top:4px}
.gx-assistant-choice-card form button{justify-content:center}
.gx-assistant-resume{padding:20px;border:1px solid #dce4eb;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(17,38,61,.05)}
.gx-assistant-resume header h2{margin:0 0 4px;font-size:1.05rem;color:#173b59}
.gx-assistant-resume header p{margin:0;color:#758594;font-size:.82rem}
.gx-assistant-resume>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.gx-assistant-resume a{display:grid;gap:3px;padding:13px 14px;border:1px solid #e0e7ed;border-radius:11px;background:#fafcfd;text-decoration:none}
.gx-assistant-resume a:hover{border-color:#cfaa48;background:#fffaf0}
.gx-assistant-resume a span{font-size:.67rem;font-weight:750;letter-spacing:.06em;color:#8a6a1c}
.gx-assistant-resume a strong{font-size:.86rem;color:#24465f}
.gx-assistant-resume a small{font-size:.72rem;color:#7b8a97}
.gx-assistant-provider-context{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #dce5ec;border-radius:13px;background:#f9fbfc}
.gx-assistant-provider-avatar{display:grid;place-items:center;width:42px;height:42px;border:1px solid #d3b464;border-radius:12px;background:#fff8e7;color:#8a6513;font-weight:760}
.gx-assistant-provider-context div span,.gx-assistant-provider-context div strong,.gx-assistant-provider-context div small{display:block}
.gx-assistant-provider-context div span{font-size:.62rem;font-weight:760;letter-spacing:.08em;color:#9b761e}
.gx-assistant-provider-context div strong{margin-top:2px;font-size:.95rem;color:#21445e}
.gx-assistant-provider-context div small{margin-top:2px;color:#788896}
.gx-assistant-document-set{display:grid;gap:16px;margin-top:18px;padding:20px;border:1px solid #dfe6ec;border-radius:15px;background:#fbfcfd}
.gx-assistant-document-set>header h2{margin:5px 0 4px;font-size:1.12rem;color:#183b59}
.gx-assistant-document-set>header p{margin:0;color:#728291;line-height:1.5}
.gx-assistant-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gx-document-upload{display:grid;align-content:start;gap:7px;min-height:190px;padding:18px;border:1px dashed #cbd8e2;border-radius:14px;background:#fff;cursor:pointer}
.gx-document-upload:hover{border-color:#c7a24a;background:#fffdf7}
.gx-document-upload.is-required{border-style:solid;border-color:#d8bf7f;background:linear-gradient(145deg,#fff,#fffaf0)}
.gx-document-upload strong{font-size:1rem;color:#21445e}
.gx-document-upload p{margin:0 0 7px;color:#728291;font-size:.82rem;line-height:1.45}
.gx-document-upload input[type=file]{font-weight:400!important;font-size:.84rem}
.gx-document-upload input[type=file]::file-selector-button{font-weight:500!important}
.gx-document-upload small{margin-top:auto;color:#84929e;font-size:.72rem;font-weight:400}
.gx-assistant-form-grid--compact{margin-top:16px}
.gx-assistant-form--flush{padding:0;background:transparent;border:0;box-shadow:none}
.gx-assistant-step-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;border:1px solid #dce4eb;border-radius:15px;background:linear-gradient(135deg,#fffaf0,#fff);box-shadow:0 8px 22px rgba(17,38,61,.05)}
.gx-assistant-step-intro h2{margin:5px 0 4px;font-size:1.16rem;color:#24465f}
.gx-assistant-step-intro p{margin:0;color:#718291;line-height:1.5}
.gx-assistant-step-intro>strong{font-size:1.8rem;line-height:1;color:#ae8523;text-align:center}
.gx-assistant-step-intro>strong small{display:block;margin-top:5px;font-size:.65rem;color:#8795a1}
.gx-assistant-diagnostic-status{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:999px;font-size:.69rem;font-weight:720;white-space:nowrap}
.gx-assistant-diagnostic-status.is-ok{background:#e8f5ee;color:#1d6b4e}
.gx-assistant-diagnostic-status.is-warning{background:#fff3d2;color:#866313}
.gx-assistant-diagnostic-status.is-error{background:#fff0ef;color:#a74037}
.gx-structure-card.is-ok{border-color:#dce6e1}
.gx-structure-card.is-warning{border-color:#e7d49f;background:#fffdf8}
.gx-structure-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.gx-assistant-diagnostic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:16px 0}
.gx-assistant-diagnostic-grid>div{padding:11px 12px;border:1px solid #e1e8ee;border-radius:10px;background:#f9fbfc}
.gx-assistant-diagnostic-grid span,.gx-assistant-diagnostic-grid strong{display:block}
.gx-assistant-diagnostic-grid span{font-size:.68rem;color:#778896}
.gx-assistant-diagnostic-grid strong{margin-top:3px;font-size:.91rem;color:#24465f}
.gx-assistant-diagnostic-message{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:10px}
.gx-assistant-diagnostic-message.is-ok{background:#f0f8f4;color:#2c624e}
.gx-assistant-diagnostic-message.is-warning{background:#fff7e4;color:#73591c}
.gx-assistant-diagnostic-message strong{flex:0 0 auto;font-size:.8rem}
.gx-assistant-diagnostic-message ul{margin:0;padding-left:18px;font-size:.78rem;line-height:1.45}
.gx-assistant-correction{margin-top:14px;padding:0 13px;border:1px solid #e0e7ed;border-radius:10px;background:#fafcfd}
.gx-assistant-correction summary{padding:12px 0}
.gx-assistant-correction>p{margin:0 0 13px;color:#7d8b97;font-size:.76rem}
.gx-field-groups{display:grid;gap:12px}
.gx-field-group{border:1px solid #dfe6ec;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(17,38,61,.035)}
.gx-field-group>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;cursor:pointer;list-style:none}
.gx-field-group>summary::-webkit-details-marker{display:none}
.gx-field-group>summary span strong,.gx-field-group>summary span small{display:block}
.gx-field-group>summary span strong{font-size:.98rem;color:#24465f}
.gx-field-group>summary span small{margin-top:4px;color:#7c8b97;font-size:.76rem;font-weight:400}
.gx-field-group>summary>b{padding:5px 8px;border-radius:999px;background:#f0f4f7;color:#587084;font-size:.7rem}
.gx-field-group>div{display:grid;border-top:1px solid #e7edf2}
.gx-field-map-card{display:grid;grid-template-columns:minmax(0,.95fr) minmax(320px,1.05fr);align-items:center;gap:18px;padding:13px 16px;border-bottom:1px solid #edf1f4}
.gx-field-map-card:last-child{border-bottom:0}
.gx-field-map-card.is-missing{background:#fffaf0}
.gx-field-map-card.is-manual{background:#f6f9fb}
.gx-field-map-copy strong,.gx-field-map-copy small,.gx-field-map-copy em{display:block}
.gx-field-map-copy strong{font-size:.84rem;color:#29485f}
.gx-field-map-copy small{margin-top:2px;font-size:.62rem;font-weight:760;text-transform:uppercase;color:#8b6a1b}
.gx-field-map-copy em{margin-top:5px;font-size:.72rem;font-style:normal;color:#7a8995;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gx-field-map-control{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px}
.gx-field-map-control b{padding:5px 8px;border-radius:999px;background:#eaf5ef;color:#276b50;font-size:.65rem;white-space:nowrap}
.gx-field-map-card.is-missing .gx-field-map-control b{background:#fff0d2;color:#866313}
.gx-field-map-card.is-manual .gx-field-map-control b{background:#e9f1f7;color:#37647f}
.gx-assistant-section--relations{margin-top:14px}
.gx-assistant-section--relations .gx-relation-list{padding:16px}
.gx-relation-card{padding:18px;border:1px solid #dfe6ec;border-radius:13px;background:#fff}
.gx-relation-card.is-warning{border-color:#e4cc8c;background:#fffdf8}
.gx-relation-card.is-error{border-color:#e5b5b0;background:#fffafa}
.gx-relation-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.gx-relation-card h3{margin:7px 0 3px;font-size:.98rem;color:#24465f}
.gx-relation-card p{margin:0;color:#7a8995;font-size:.78rem}
.gx-relation-card-actions{display:flex;align-items:center;gap:8px}
.gx-assistant-diagnostic-grid--relation{margin:14px 0}
.gx-relation-accept{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:12px 13px;border:1px solid #e7d39d;border-radius:10px;background:#fff7e5}
.gx-relation-accept input{margin-top:3px}
.gx-relation-accept span strong,.gx-relation-accept span small{display:block}
.gx-relation-accept span strong{font-size:.78rem;color:#6f5518}
.gx-relation-accept span small{margin-top:2px;color:#876f38;font-size:.72rem}
.gx-assistant-warning-list{padding:14px 16px;border:1px solid #e7d39d;border-radius:12px;background:#fff8e8;color:#74591b}
.gx-assistant-warning-list strong{font-size:.82rem}
.gx-assistant-warning-list ul{margin:6px 0 0;padding-left:18px;font-size:.77rem;line-height:1.45}
.gx-assistant-footer-left{display:flex;align-items:center;gap:9px}
.gx-consolidation-card.is-warning{border-color:#e4cc8c;background:#fffdf8}
.gx-consolidation-card.is-ok{border-color:#dbe7e1}
.gx-consolidation-detail{margin-top:13px;border-top:1px solid #edf1f4;padding-top:11px}
.gx-consolidation-detail summary{cursor:pointer;color:#315d7e;font-size:.79rem;font-weight:650}
.gx-consolidation-detail .gx-data-table-wrap{margin-top:10px}
.gx-consolidation-skipped{display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none}
.gx-consolidation-skipped li{display:flex;justify-content:space-between;gap:16px;padding:8px 10px;border-radius:8px;background:#f7f9fb;font-size:.73rem}
.gx-consolidation-skipped li strong{color:#3b566b}
.gx-consolidation-skipped li span{color:#7b8995;text-align:right}
.gx-optional-banner--v0101{border-color:#dfc98b}
.gx-category-draft-table td strong,.gx-category-draft-table td small{display:block}
.gx-category-draft-table td small{margin-top:4px;max-width:320px;color:#7b8995;font-size:.69rem;line-height:1.35}
.gx-category-draft-table select{min-width:170px}
.gx-category-source-status{display:inline-flex;padding:5px 7px;border-radius:999px;background:#eef3f7;color:#5e7487;font-size:.66rem;font-weight:650;white-space:nowrap}
.gx-summary-grid--v0101{grid-template-columns:1fr 1fr}
.gx-assistant-section>header>a{font-size:.75rem;font-weight:650;color:#315d7e;text-decoration:none}
.gx-assistant-section>header>a:hover{text-decoration:underline}
.gx-summary-category-state{display:grid;gap:12px;padding:22px}
.gx-summary-category-state>strong{font-size:1.15rem;color:#24465f}
.gx-summary-category-state>div{display:flex;gap:8px;flex-wrap:wrap}
.gx-summary-category-state span{padding:7px 9px;border:1px solid #dfe6ec;border-radius:8px;background:#f8fafb;color:#5e7487;font-size:.73rem}
.gx-summary-warning-panel ul{display:grid;gap:8px;margin:0;padding:18px 34px;color:#6d571f;font-size:.78rem;line-height:1.45;background:#fffaf0}
.gx-product-impact-grid{display:grid;grid-template-columns:1.5fr .75fr .75fr;gap:12px;padding:18px}
.gx-product-impact-grid>div{padding:14px;border:1px solid #e0e7ed;border-radius:11px;background:#f9fbfc}
.gx-product-impact-grid>div>span{display:block;font-size:.7rem;color:#758695}
.gx-product-impact-grid>div>strong{display:block;margin-top:4px;font-size:1.35rem;color:#183b59}
.gx-product-impact-grid>div>small{display:block;margin-top:4px;color:#83919d;font-size:.7rem;line-height:1.35}
.gx-final-confirmation-note{display:flex;align-items:flex-start;gap:12px;margin-top:16px;padding:14px 16px;border:1px solid #e1c879;border-radius:11px;background:#fff8e4;color:#6f5518}
.gx-final-confirmation-note strong{flex:0 0 auto;font-size:.8rem}
.gx-final-confirmation-note span{font-size:.77rem;line-height:1.45}
.gx-assistant-complete--v0101{padding-bottom:28px}
.gx-complete-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:760px;margin:24px auto 0}
.gx-complete-metrics>div{padding:13px;border:1px solid #e0e7ed;border-radius:11px;background:#f9fbfc;text-align:left}
.gx-complete-metrics span,.gx-complete-metrics strong{display:block}
.gx-complete-metrics span{font-size:.68rem;color:#768695}
.gx-complete-metrics strong{margin-top:4px;font-size:1.15rem;color:#183b59}

@media (max-width:1180px){
  .gx-assistant-shell--v0101 .gx-assistant-progress{grid-template-columns:repeat(4,minmax(0,1fr))}
  .gx-assistant-future-rail{align-items:flex-start;flex-direction:column}
  .gx-assistant-diagnostic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gx-field-map-card{grid-template-columns:1fr}
  .gx-product-impact-grid{grid-template-columns:1fr 1fr}
  .gx-product-impact-grid>div:first-child{grid-column:1/-1}
}
@media (max-width:780px){
  .gx-assistant-shell--v0101 .gx-assistant-progress{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gx-assistant-future-rail>div{flex-wrap:wrap}
  .gx-assistant-document-grid,.gx-assistant-resume>div,.gx-summary-grid--v0101,.gx-product-impact-grid,.gx-complete-metrics{grid-template-columns:1fr}
  .gx-product-impact-grid>div:first-child{grid-column:auto}
  .gx-assistant-step-intro{align-items:flex-start;flex-direction:column}
  .gx-field-map-control{grid-template-columns:1fr}
  .gx-assistant-diagnostic-grid{grid-template-columns:1fr 1fr}
  .gx-relation-card>header{flex-direction:column}
  .gx-relation-card-actions{width:100%;justify-content:space-between}
  .gx-assistant-footer-left{display:grid;width:100%}
  .gx-assistant-footer-left>*{width:100%}
  .gx-category-draft-table select{min-width:140px}
}
