/* ===== assets/style.css ===== */
:root {
  --red: #E23B33;
  --red-dark: #b8291f;
  --ink: #1b1f24;
  --ink-soft: #3a4048;
  --green: #157a3d;
  --grey-700: #5a6069;
  --grey-400: #a8aeb6;
  --grey-300: #dcdfe4;
  --grey-100: #f4f5f7;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 24, 30, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--grey-100);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------- Topbar ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--grey-300); box-shadow: var(--shadow); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand img { height: 58px; width: auto; display: block; }
.brand-fallback { display: none; align-items: center; gap: 10px; }
.brand-mark { background: var(--red); color: var(--white); font-weight: 800; font-size: 15px; padding: 9px 11px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; }
.brand-text small { font-size: 11.5px; color: var(--grey-700); letter-spacing: 0.4px; }

.cart-toggle {
  display: flex; align-items: center; gap: 9px;
  background: var(--red); border: none; color: var(--white);
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.cart-toggle:hover { background: var(--red-dark); }
.cart-count {
  background: var(--white); color: var(--red); font-size: 12px; font-weight: 800;
  border-radius: 999px; min-width: 21px; height: 21px;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
}

/* ---------- Hero ---------- */
.hero { padding: 44px 0 8px; }
.hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.3px; }
.hero p { color: var(--grey-700); font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 700px; }

/* ---------- Selector ---------- */
.selector-card {
  background: var(--white); border: 1px solid var(--grey-300);
  border-radius: var(--radius); padding: 22px; margin: 26px 0; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.field select, .field input, .field textarea {
  padding: 13px 15px; border: 1px solid var(--grey-300); border-radius: 9px;
  font-size: 15.5px; background: var(--white); color: var(--ink); font-family: inherit;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--red); }

/* ---------- Liquids ---------- */
.liquids { margin: 0 0 26px; }
.liquids h2 { font-size: 19px; margin: 0 0 12px; }
.liquids-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.liquid-card {
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: flex-start; gap: 15px; box-shadow: var(--shadow);
}
.liquid-icon { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; position: relative; }
.liquid-icon.oil { background: #fdf1d9; }
.liquid-icon.coolant { background: #e2f0fb; }
.liquid-icon::after {
  content: ""; position: absolute; inset: 9px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}
.liquid-icon.oil::after { background: #d99b1c; }
.liquid-icon.coolant::after { background: #2b8fd4; }
.liquid-info { min-width: 0; }
.liquid-info h3 { margin: 0 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--red); font-weight: 800; }
.liquid-main { margin: 0; font-size: 17px; font-weight: 700; }
.liquid-main.consult { font-size: 14px; font-weight: 600; color: var(--grey-700); font-style: italic; }
.liquid-sub { margin: 3px 0 0; font-size: 13px; color: var(--grey-700); }

/* ---------- Results ---------- */
.results { margin: 0 0 56px; }
.results-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.results-header h2 { margin: 0; font-size: 23px; }
.results-hint { font-size: 12.5px; color: var(--grey-700); }

.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.part-card {
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius);
  padding: 17px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.part-card h3 { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--red); font-weight: 800; }
.part-note { font-size: 14px; color: var(--grey-700); font-style: italic; margin: 0; }
.part-note.warn { color: var(--red-dark); font-style: normal; font-weight: 600; font-size: 13px; }

.line-item { border-top: 1px solid var(--grey-100); padding-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.line-item:first-of-type { border-top: none; padding-top: 0; }
.li-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.li-code { font-size: 15px; font-weight: 700; letter-spacing: -0.1px; word-break: break-word; }
.li-variant { display: block; font-size: 11px; color: var(--grey-700); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.li-price { font-size: 15px; font-weight: 800; color: var(--green); white-space: nowrap; }
.li-price.missing { font-size: 12px; font-weight: 700; color: var(--red-dark); }
.li-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; border: 1px solid var(--grey-300); border-radius: 8px; overflow: hidden; }
.stepper button {
  width: 30px; height: 34px; border: none; background: var(--grey-100);
  cursor: pointer; font-size: 17px; line-height: 1; color: var(--ink-soft);
}
.stepper button:hover { background: var(--grey-300); }
.stepper input { width: 46px; height: 34px; text-align: center; border: none; font-size: 14.5px; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.btn-add {
  flex: 1; min-width: 108px; height: 34px; border: 1px solid var(--red); background: var(--white);
  color: var(--red); border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.btn-add:hover { background: var(--red); color: var(--white); }
.btn-add.in-cart { background: #eef8f1; border-color: var(--green); color: var(--green); }
.li-copy { background: none; border: none; color: var(--grey-700); font-size: 11.5px; cursor: pointer; padding: 0; text-decoration: underline; align-self: flex-start; }
.li-copy:hover { color: var(--red); }

.disclaimer { margin-top: 26px; font-size: 12.5px; line-height: 1.6; color: var(--grey-700); border-top: 1px solid var(--grey-300); padding-top: 16px; }
.empty-state { text-align: center; color: var(--grey-700); padding: 40px 20px 90px; font-size: 14.5px; }
.footer { border-top: 1px solid var(--grey-300); background: var(--white); padding: 18px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--grey-700); font-size: 12.5px; }

/* ---------- Buttons ---------- */
.btn-primary { background: var(--red); border: none; color: var(--white); padding: 12px 18px; border-radius: 9px; font-size: 14px; cursor: pointer; font-weight: 700; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--white); border: 1px solid var(--grey-300); color: var(--ink); padding: 12px 16px; border-radius: 9px; font-size: 14px; cursor: pointer; font-weight: 600; }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { background: none; border: none; color: var(--grey-700); font-size: 13px; cursor: pointer; text-decoration: underline; }
.btn-ghost:hover { color: var(--red-dark); }
.btn-icon { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--grey-700); line-height: 1; padding: 0 6px; }
.btn-icon:hover { color: var(--red); }

/* ---------- Cart ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(16, 20, 26, 0.5); display: flex; justify-content: flex-end; z-index: 100; }
.cart-panel { background: var(--white); width: 100%; max-width: 500px; height: 100%; overflow-y: auto; padding: 22px 24px 30px; display: flex; flex-direction: column; gap: 18px; }
.cart-panel-header { display: flex; align-items: center; justify-content: space-between; }
.cart-panel-header h2 { margin: 0; font-size: 21px; }
.cart-items { display: flex; flex-direction: column; gap: 9px; }
.cart-item { border: 1px solid var(--grey-300); border-radius: 10px; padding: 12px 13px; display: flex; flex-direction: column; gap: 7px; }
.ci-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ci-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey-700); font-weight: 700; }
.ci-code { font-size: 14.5px; font-weight: 700; }
.ci-model { font-size: 11.5px; color: var(--grey-700); }
.ci-line { font-size: 14px; font-weight: 800; white-space: nowrap; }
.ci-line.missing { font-size: 11.5px; color: var(--red-dark); font-weight: 700; }
.ci-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ci-unit { font-size: 11.5px; color: var(--grey-700); }
.cart-empty { text-align: center; color: var(--grey-700); font-size: 14px; padding: 34px 10px; border: 1px dashed var(--grey-300); border-radius: 10px; }

.cart-customer h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--grey-700); }
.cart-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.cart-customer input, .cart-customer textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--grey-300); border-radius: 8px;
  font-size: 13.5px; font-family: inherit; color: var(--ink);
}
.cart-customer input:focus, .cart-customer textarea:focus { outline: none; border-color: var(--red); }
.cart-customer textarea { resize: vertical; }

.cart-summary { border-top: 1px solid var(--grey-300); padding-top: 16px; margin-top: auto; }
.totals { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.totals-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.totals-row.total { border-top: 1px solid var(--grey-300); padding-top: 9px; margin-top: 3px; font-size: 17px; font-weight: 800; color: var(--ink); }
.cart-note { font-size: 11.5px; line-height: 1.5; color: var(--grey-700); margin: 0 0 10px; }
.cart-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

@media (max-width: 560px) {
  .cart-fields { grid-template-columns: 1fr; }
  .hero h1 { font-size: 25px; }
  .cart-toggle-label { display: none; }
}

/* ---------- Print sheet ---------- */
#print-sheet { display: none; }

@media print {
  @page { size: A4; margin: 14mm 14mm 12mm; }
  body { background: var(--white); }
  body > *:not(#print-sheet) { display: none !important; }
  #print-sheet { display: block !important; }

  .ps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--red); padding-bottom: 10px; }
  .ps-head img { height: 40px; width: auto; }
  .ps-brand-txt { font-size: 13px; font-weight: 800; }
  .ps-brand-txt small { display: block; font-weight: 400; font-size: 10px; color: #555; }
  .ps-title { text-align: right; }
  .ps-title h1 { margin: 0; font-size: 17px; letter-spacing: 0.5px; text-transform: uppercase; }
  .ps-title p { margin: 3px 0 0; font-size: 10.5px; color: #444; }

  .ps-meta { display: flex; gap: 26px; flex-wrap: wrap; margin: 12px 0 14px; font-size: 10.5px; }
  .ps-meta div { line-height: 1.5; }
  .ps-meta span { display: block; text-transform: uppercase; letter-spacing: 0.5px; color: #777; font-size: 8.5px; font-weight: 700; }
  .ps-meta strong { font-size: 11px; font-weight: 700; }

  table.ps-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
  table.ps-table thead th {
    background: #f2f3f5; text-align: left; padding: 6px 7px; font-size: 8.5px;
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #c9ccd1; color: #333;
  }
  table.ps-table td { padding: 6px 7px; border-bottom: 1px solid #e6e8eb; vertical-align: top; }
  table.ps-table .num { text-align: right; white-space: nowrap; }
  table.ps-table .ref { font-weight: 700; }
  table.ps-table .sub { display: block; font-size: 9px; color: #666; }
  table.ps-table tr { page-break-inside: avoid; }

  .ps-totals { margin-top: 12px; margin-left: auto; width: 54%; font-size: 11px; }
  .ps-totals div { display: flex; justify-content: space-between; padding: 4px 7px; }
  .ps-totals .grand { border-top: 1.5px solid var(--red); margin-top: 3px; padding-top: 6px; font-size: 13.5px; font-weight: 800; }

  .ps-notes { margin-top: 16px; border-top: 1px solid #dcdfe4; padding-top: 8px; font-size: 8.8px; line-height: 1.55; color: #555; }
  .ps-notes strong { color: #333; }
  .ps-obs { margin-top: 10px; font-size: 10px; }
  .ps-obs span { text-transform: uppercase; font-size: 8.5px; letter-spacing: 0.5px; color: #777; font-weight: 700; display: block; }
}

.liquid-products { margin-top: 12px; display: grid; gap: 8px; }
.liquid-product {
  border-top: 1px solid var(--grey-300); padding-top: 9px;
}
.liquid-product .lp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.liquid-product .lp-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.liquid-product .lp-ref { display: block; margin-top: 2px; font-size: 11px; color: var(--grey-700); }
.liquid-product .lp-price { color: var(--green); font-size: 13px; font-weight: 800; white-space: nowrap; }
.liquid-product .lp-price.missing { color: var(--grey-700); font-weight: 600; font-size: 11.5px; }
.liquid-product .lp-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px;
}
.liquid-product .stepper { margin: 0; }
.liquid-product .btn-add {
  padding: 7px 11px; font-size: 12px;
}


/* PVP líquidos mismo verde que artículos */
.liquid-products .li-price {
  color: var(--green) !important;
}


/* Iconos de líquidos */
.liquid-icon-svg {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(18, 112, 76, .08);
}
.liquid-icon-svg svg {
  width: 36px;
  height: 36px;
  fill: var(--green);
}
.liquid-icon-svg.coolant-svg {
  background: rgba(18, 112, 76, .08);
}

.footer-custom {
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .liquid-icon-svg { width: 50px; height: 50px; flex-basis: 50px; }
  .liquid-icon-svg svg { width: 31px; height: 31px; }
}


/* Despiece Yanmar */
.exploded-parts { margin: 18px 0 6px; }
.exploded-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(18,112,76,.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.035);
}
.exploded-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(18,112,76,.08);
}
.exploded-icon svg { width: 30px; height: 30px; fill: var(--green); }
.exploded-copy { flex: 1; min-width: 0; }
.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.exploded-copy h2 { margin: 0 0 5px; font-size: 18px; }
.exploded-copy p { margin: 0; color: var(--grey-700); font-size: 13px; }
.exploded-action { flex: 0 0 auto; }
.exploded-download.disabled {
  cursor: default;
  opacity: .55;
  pointer-events: none;
}

.suggestion-note { color: var(--grey-700); font-size: 12px; }

/* Buzón de sugerencias */
.suggestions-section { margin: 34px 0 0; }
.suggestions-card {
  padding: 24px;
  border: 1px solid rgba(18,112,76,.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
}
.suggestions-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.suggestions-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(18,112,76,.08);
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}
.suggestions-heading h2 { margin: 0 0 5px; font-size: 20px; }
.suggestions-heading p { margin: 0; color: var(--grey-700); line-height: 1.5; }
.suggestion-form label { display: grid; gap: 7px; }
.suggestion-form label > span {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
.suggestion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.suggestion-form input,
.suggestion-form select,
.suggestion-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.suggestion-form textarea { resize: vertical; min-height: 120px; }
.suggestion-message { margin-top: 14px; }
.suggestion-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .exploded-card { align-items: flex-start; flex-wrap: wrap; }
  .exploded-action { width: 100%; }
  .exploded-action .btn-primary { width: 100%; box-sizing: border-box; }
  .suggestion-grid { grid-template-columns: 1fr; }
}


/* Iconos v2: aceite y refrigerante */
.liquid-icon-svg.icon-v2 svg {
  width: 38px;
  height: 38px;
  fill: var(--green);
}


/* =========================================================
   RESPONSIVE · MÓVIL / TABLET / ESCRITORIO
   La misma web se adapta automáticamente al ancho disponible.
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-left: auto;
  margin-right: auto;
}

/* Tablet */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 28px, 920px);
  }

  .topbar-inner {
    gap: 16px;
  }

  .brand img,
  #brand-logo {
    max-width: 300px;
    height: auto;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.12;
  }

  .hero p {
    max-width: 760px;
  }

  .liquids-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exploded-card,
  .suggestions-card {
    max-width: 100%;
  }

  .cart-panel {
    width: min(92vw, 520px);
  }
}

/* Móvil */
@media (max-width: 640px) {
  :root {
    --mobile-gap: 14px;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .topbar-inner {
    min-height: 72px;
    gap: 10px;
    align-items: center;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand img,
  #brand-logo {
    width: auto;
    max-width: min(58vw, 230px);
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
  }

  .brand-fallback {
    transform: scale(.9);
    transform-origin: left center;
  }

  .cart-toggle {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    gap: 7px;
  }

  .cart-toggle-label {
    font-size: 12px;
  }

  .cart-count {
    min-width: 22px;
    height: 22px;
    font-size: 12px;
  }

  main.container {
    padding-bottom: 24px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.55;
  }

  .selector-card {
    padding: 16px;
    border-radius: 16px;
  }

  .field label {
    font-size: 13px;
  }

  .field select {
    min-height: 50px;
    font-size: 16px; /* evita zoom automático en iPhone */
    padding-left: 14px;
    padding-right: 42px;
  }

  .liquids {
    margin-top: 26px;
  }

  .liquids h2,
  .results-header h2 {
    font-size: 20px;
  }

  .liquids-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .liquid-card {
    padding: 16px;
    border-radius: 16px;
    align-items: flex-start;
    gap: 12px;
  }

  .liquid-icon-svg {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 13px;
  }

  .liquid-icon-svg.icon-v2 svg,
  .liquid-icon-svg svg {
    width: 30px;
    height: 30px;
  }

  .liquid-info {
    min-width: 0;
    width: 100%;
  }

  .liquid-info h3 {
    font-size: 12px;
    line-height: 1.2;
  }

  .liquid-main {
    font-size: 19px;
  }

  .liquid-sub {
    font-size: 12px;
  }

  .liquid-product {
    padding-top: 12px;
  }

  .liquid-product .lp-head {
    gap: 10px;
    align-items: flex-start;
  }

  .liquid-product .lp-name {
    font-size: 13px;
    line-height: 1.3;
  }

  .liquid-product .lp-price {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .liquid-product .lp-controls {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
    align-items: stretch;
  }

  .stepper {
    width: 100%;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
  }

  .stepper button,
  .stepper input {
    min-height: 42px;
  }

  .stepper input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .btn-add,
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    min-height: 42px;
    touch-action: manipulation;
  }

  .exploded-parts {
    margin-top: 18px;
  }

  .exploded-card {
    padding: 16px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: start;
  }

  .exploded-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .exploded-copy h2 {
    font-size: 17px;
  }

  .exploded-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .exploded-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .exploded-action .btn-primary,
  .exploded-download {
    width: 100%;
    display: flex;
    box-sizing: border-box;
  }

  .results {
    margin-top: 22px;
  }

  .results-header {
    display: block;
    margin-bottom: 12px;
  }

  .results-header h2 {
    margin-bottom: 6px;
  }

  .results-hint {
    display: block;
    font-size: 12px;
    line-height: 1.4;
  }

  .parts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .part-card {
    padding: 16px;
    border-radius: 16px;
  }

  .part-card h3 {
    font-size: 15px;
  }

  .line-item {
    padding: 12px 0;
  }

  .li-head {
    gap: 8px;
    align-items: flex-start;
  }

  .li-code {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .li-price {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .li-controls {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
  }

  .li-copy {
    min-height: 36px;
  }

  .disclaimer {
    font-size: 11px;
    line-height: 1.45;
  }

  .suggestions-section {
    margin-top: 24px;
  }

  .suggestions-card {
    padding: 17px;
    border-radius: 16px;
  }

  .suggestions-heading {
    gap: 12px;
  }

  .suggestions-heading h2 {
    font-size: 19px;
  }

  .suggestions-heading p {
    font-size: 13px;
  }

  .suggestion-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .suggestion-form input,
  .suggestion-form select,
  .suggestion-form textarea {
    font-size: 16px; /* evita zoom iOS */
  }

  .suggestion-footer {
    align-items: stretch;
  }

  .suggestion-footer .btn-primary {
    width: 100%;
    box-sizing: border-box;
  }

  .suggestions-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .footer-inner {
    display: grid;
    gap: 6px;
    text-align: center;
    justify-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 11px;
  }

  /* Carrito móvil: ocupa la pantalla completa */
  .cart-overlay {
    align-items: stretch;
  }

  .cart-panel {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .cart-panel-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .cart-panel-header h2 {
    font-size: 21px;
  }

  .cart-items {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cart-item {
    padding: 14px 0;
  }

  .ci-top {
    gap: 10px;
  }

  .ci-code {
    overflow-wrap: anywhere;
  }

  .ci-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .ci-bottom .stepper {
    min-width: 0;
  }

  .ci-unit {
    grid-column: 1 / -1;
  }

  .cart-customer,
  .cart-summary {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cart-fields {
    grid-template-columns: 1fr;
  }

  .cart-fields input,
  .cart-customer textarea {
    font-size: 16px;
  }

  .cart-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cart-actions button {
    width: 100%;
  }

  #print-sheet {
    display: none;
  }
}

/* Móviles muy estrechos */
@media (max-width: 390px) {
  .container {
    width: calc(100% - 18px);
  }

  .hero h1 {
    font-size: 24px;
  }

  .cart-toggle-label {
    display: none;
  }

  .cart-toggle {
    width: 46px;
    justify-content: center;
    padding: 0;
  }

  .liquid-product .lp-controls,
  .li-controls {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: 42px 1fr 42px;
  }
}

/* Horizontal móvil */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .topbar {
    position: static;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .cart-panel {
    height: 100dvh;
  }
}

/* Respeta usuarios con menos animación */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Envío de pedido por WhatsApp */
.btn-whatsapp {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: #25D366;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-whatsapp:hover { filter: brightness(.96); }
.btn-whatsapp:active { transform: translateY(1px); }
.wa-icon {
  font-size: 17px;
  line-height: 1;
}
.whatsapp-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .btn-whatsapp { width: 100%; box-sizing: border-box; }
}


/* Icono real de WhatsApp */
.btn-whatsapp .wa-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
}
.btn-whatsapp .wa-icon svg {
  width:20px;
  height:20px;
  fill:currentColor;
  display:block;
}


/* =========================================================
   PESTAÑAS PRINCIPALES + BUSCADOR PVP
   ========================================================= */
.tool-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 24px 0 4px;
  padding: 5px;
  border: 1px solid var(--grey-300);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.035);
}
.tool-tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tool-tab:hover {
  background: #f5f6f7;
  color: var(--ink);
}
.tool-tab.active {
  background: var(--red);
  color: #fff;
}
.tool-tab-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}
.tool-tab-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pvp-view {
  padding-top: 26px;
  min-height: 460px;
}
.pvp-hero {
  max-width: 850px;
  margin-bottom: 24px;
}
.pvp-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.pvp-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--grey-700);
  line-height: 1.6;
}

.pvp-search-card {
  position: relative;
  z-index: 8;
  padding: 22px;
  border: 1px solid var(--grey-300);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.pvp-search-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.pvp-search-box {
  position: relative;
}
.pvp-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--grey-700);
  pointer-events: none;
}
.pvp-search-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
#pvp-search {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  border: 1px solid var(--grey-300);
  border-radius: 12px;
  padding: 0 52px 0 48px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}
#pvp-search:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,59,51,.08);
}
.pvp-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 4;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #f2f3f4;
  color: var(--ink-soft);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.pvp-clear:hover {
  background: #eceeef;
  color: var(--red);
}

.pvp-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  z-index: 30;
  max-height: 430px;
  overflow-y: auto;
  border: 1px solid var(--grey-300);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
}
.pvp-suggestion {
  width: 100%;
  min-height: 68px;
  border: 0;
  border-bottom: 1px solid #eceef0;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pvp-suggestion:last-child {
  border-bottom: 0;
}
.pvp-suggestion:hover,
.pvp-suggestion.active {
  background: #f7f8f8;
}
.pvp-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.pvp-suggestion-copy strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: .01em;
}
.pvp-suggestion-copy small {
  color: var(--grey-700);
  font-size: 12.5px;
  line-height: 1.35;
}
.pvp-suggestion-price {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.pvp-suggestion-price.missing {
  color: var(--red-dark);
  font-size: 11px;
}
.pvp-no-results {
  padding: 18px;
  color: var(--grey-700);
  font-size: 13px;
}

.pvp-search-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 9px;
  color: var(--grey-700);
  font-size: 11.5px;
}
#pvp-catalog-count {
  white-space: nowrap;
}

.pvp-selected {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(21,122,61,.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(21,122,61,.035), #fff 46%);
  box-shadow: 0 8px 24px rgba(0,0,0,.035);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  align-items: center;
}
.pvp-selected-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
}
.pvp-selected-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: .01em;
}
.pvp-selected-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}
.pvp-selected-price {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}
.pvp-selected-price.missing {
  color: var(--red-dark);
  font-size: 14px;
}
.pvp-selected-models {
  margin: 10px 0 0;
  color: var(--grey-700);
  font-size: 11.5px;
  line-height: 1.45;
}
.pvp-selected-actions {
  min-width: 250px;
  display: grid;
  gap: 12px;
}
.pvp-qty-block {
  display: grid;
  gap: 6px;
}
.pvp-qty-block > span {
  color: var(--grey-700);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pvp-stepper {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
}
.pvp-stepper input {
  width: 100%;
  min-width: 0;
}
.pvp-add {
  width: 100%;
}
.pvp-add.in-cart {
  background: var(--green);
}

.pvp-info-note {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f5f6f7;
  color: var(--grey-700);
  font-size: 11.5px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .tool-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    box-sizing: border-box;
    margin-top: 14px;
  }
  .tool-tab {
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    justify-content: center;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.2;
  }
  .pvp-view {
    padding-top: 22px;
  }
  .pvp-hero h1 {
    font-size: 27px;
  }
  .pvp-search-card {
    padding: 16px;
    border-radius: 16px;
  }
  #pvp-search {
    min-height: 52px;
    font-size: 16px;
  }
  .pvp-search-meta {
    display: grid;
    gap: 3px;
  }
  .pvp-suggestions {
    max-height: 360px;
  }
  .pvp-suggestion {
    min-height: 74px;
    gap: 9px;
  }
  .pvp-suggestion-price {
    font-size: 12px;
  }
  .pvp-selected {
    grid-template-columns: 1fr;
    padding: 17px;
    gap: 17px;
  }
  .pvp-selected-head {
    display: grid;
    gap: 10px;
  }
  .pvp-selected-price {
    font-size: 20px;
  }
  .pvp-selected-actions {
    min-width: 0;
  }
}

@media print {
  .tool-tabs,
  #pvp-view {
    display: none !important;
  }
}


/* Identificación de la tarifa en el Buscador PVP */
.pvp-source-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(21,122,61,.08);
  color: var(--green);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
}


/* =========================================================
   SISTEMA DE USUARIOS / LOGIN / ADMIN
   ========================================================= */
body.auth-loading,
body.auth-guest {
  min-height: 100vh;
}
body.auth-loading .protected-content,
body.auth-guest .protected-content {
  display: none !important;
}
body.authenticated #auth-gate {
  display: none !important;
}

.auth-gate {
  min-height: 100vh;
  padding: 42px 18px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 12%, rgba(226,59,51,.07), transparent 30%),
    linear-gradient(180deg, #f7f8f9, #eef1f3);
}
.auth-shell {
  width: min(100%, 830px);
}
.auth-brand {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.auth-brand img {
  width: min(320px, 60vw);
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}
.auth-brand > span {
  color: var(--grey-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth-card {
  padding: 30px;
  border: 1px solid var(--grey-300);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.09);
}
.auth-heading h1 {
  margin: 5px 0 10px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.1;
}
.auth-heading p {
  margin: 0;
  max-width: 680px;
  color: var(--grey-700);
  line-height: 1.55;
}
.auth-tabs {
  margin: 25px 0 20px;
  padding: 4px;
  border-radius: 12px;
  background: #f2f3f4;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-tab {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.auth-tab.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 3px 12px rgba(0,0,0,.07);
}
.auth-form {
  display: grid;
  gap: 15px;
}
.auth-form label {
  display: grid;
  gap: 7px;
}
.auth-form label > span,
.change-password-form label > span {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
.auth-form input,
.auth-form select,
.change-password-form input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.auth-form input:focus,
.auth-form select:focus,
.change-password-form input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,59,51,.07);
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 72px;
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  background: #f2f3f4;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.register-wide {
  grid-column: 1 / -1;
}
.auth-consent {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 9px !important;
  color: var(--grey-700);
  font-size: 12px;
  line-height: 1.45;
}
.auth-consent input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
}
.auth-submit {
  width: 100%;
  min-height: 48px;
}
.auth-help {
  margin: -3px 0 0;
  color: var(--grey-700);
  font-size: 11px;
  line-height: 1.45;
}
.auth-message,
.inline-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.auth-message.success,
.inline-message.success { background: #edf8f0; color: #157a3d; }
.auth-message.warning { background: #fff6df; color: #805c00; }
.auth-message.error,
.inline-message.error { background: #fff0ef; color: var(--red-dark); }
.auth-message.info { background: #eef4fa; color: #315b7d; }
.auth-server-warning {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #fff6df;
  color: #6f5200;
  font-size: 12px;
  line-height: 1.5;
}

/* Cuenta en cabecera */
.topbar-inner {
  position: relative;
}
.account-zone {
  position: relative;
  margin-left: auto;
}
.account-toggle {
  min-height: 44px;
  border: 1px solid var(--grey-300);
  border-radius: 12px;
  padding: 5px 11px 5px 6px;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(226,59,51,.10);
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}
.account-copy {
  display: grid;
  text-align: left;
  line-height: 1.15;
}
.account-copy strong {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}
.account-copy small {
  margin-top: 2px;
  color: var(--green);
  font-size: 9.5px;
  font-weight: 800;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 100;
  width: 180px;
  padding: 6px;
  border: 1px solid var(--grey-300);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(0,0,0,.13);
}
.account-menu button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.account-menu button:hover { background: #f3f4f5; }

/* Mi cuenta */
.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  padding: 20px;
  background: rgba(18,22,27,.55);
  display: grid;
  place-items: center;
}
.account-panel {
  width: min(100%, 720px);
  max-height: min(90vh, 820px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
}
.account-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.account-panel h2 { margin: 3px 0 0; }
.account-profile-data {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.account-profile-data > div {
  padding: 11px 12px;
  border-radius: 10px;
  background: #f6f7f8;
  display: grid;
  gap: 4px;
}
.account-profile-data span {
  color: var(--grey-700);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.account-profile-data strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.account-discount-card {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(21,122,61,.2);
  border-radius: 12px;
  background: rgba(21,122,61,.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account-discount-card span { color: var(--grey-700); font-size: 12px; }
.account-discount-card strong { color: var(--green); font-size: 24px; }
.change-password-form {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--grey-300);
  display: grid;
  gap: 12px;
}
.change-password-form h3 { margin: 0 0 3px; }

/* Admin */
.admin-view {
  padding-top: 26px;
  padding-bottom: 20px;
}
.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.admin-header h1 {
  margin: 4px 0 6px;
  font-size: clamp(27px,3.4vw,38px);
}
.admin-header p {
  margin: 0;
  color: var(--grey-700);
}
.admin-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}
.admin-stat {
  padding: 16px;
  border: 1px solid var(--grey-300);
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 5px;
}
.admin-stat span {
  color: var(--grey-700);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-stat strong { font-size: 26px; }
.admin-filters {
  margin: 16px 0 12px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
}
.admin-filters input,
.admin-filters select {
  min-height: 44px;
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.admin-users {
  display: grid;
  gap: 12px;
}
.admin-user-card {
  padding: 17px;
  border: 1px solid var(--grey-300);
  border-radius: 15px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0,1fr) 370px;
  gap: 20px;
}
.admin-user-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-user-title > div { display: grid; gap: 3px; }
.admin-user-title strong { font-size: 16px; }
.admin-user-title span:not(.status-badge) { color: var(--grey-700); font-size: 11px; }
.status-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
}
.status-pending { background: #fff4d6; color: #765500; }
.status-approved { background: #eaf7ee; color: #157a3d; }
.status-disabled { background: #eceeef; color: #555; }
.status-rejected { background: #fff0ef; color: var(--red-dark); }
.admin-user-details {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.admin-user-details > div {
  display: grid;
  gap: 2px;
}
.admin-user-details span {
  color: var(--grey-700);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-user-details strong {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.admin-user-controls {
  padding-left: 18px;
  border-left: 1px solid var(--grey-300);
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-content: start;
}
.admin-user-controls label {
  display: grid;
  gap: 5px;
}
.admin-user-controls label > span {
  color: var(--grey-700);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-user-controls input,
.admin-user-controls select {
  width: 100%;
  min-height: 39px;
  box-sizing: border-box;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.admin-notes { grid-column: 1 / -1; }
.admin-action-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-self-note {
  grid-column: 1 / -1;
  color: var(--grey-700);
  font-size: 11px;
}
.admin-empty {
  padding: 25px;
  border: 1px dashed var(--grey-300);
  border-radius: 14px;
  color: var(--grey-700);
  text-align: center;
}
.admin-empty.error { color: var(--red-dark); }

/* Descuento */
.discount-row span:last-child {
  color: var(--green);
  font-weight: 800;
}
.ci-line small {
  display: block;
  margin-top: 2px;
  color: var(--grey-700);
  font-size: 9px;
  font-weight: 500;
}
.pvp-selected-price {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.pvp-selected-price small {
  color: var(--grey-700);
  font-size: 10px;
  font-weight: 600;
}
.pvp-selected-price strong {
  color: var(--green);
  font-size: 20px;
}

@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-user-card { grid-template-columns: 1fr; }
  .admin-user-controls {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--grey-300);
  }
}

@media (max-width: 640px) {
  .auth-gate { padding: 18px 10px; align-items: start; }
  .auth-brand { margin-top: 8px; }
  .auth-brand > span { display: none; }
  .auth-card { padding: 18px; border-radius: 17px; }
  .register-grid { grid-template-columns: 1fr; }
  .register-wide { grid-column: auto; }

  .account-copy { display: none; }
  .account-toggle { padding: 5px; }
  .account-zone { margin-left: auto; }

  .account-profile-data { grid-template-columns: 1fr; }

  .admin-header { align-items: flex-start; }
  .admin-header .btn-secondary { flex: 0 0 auto; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-user-details { grid-template-columns: 1fr; }
  .admin-user-controls { grid-template-columns: 1fr; }
  .admin-notes, .admin-action-row { grid-column: auto; }
}

@media print {
  #auth-gate,
  .account-overlay,
  #admin-view {
    display: none !important;
  }
}


/* =========================================================
   PERFIL EDITABLE + ADMIN COMPLETO + HISTORIAL DE PEDIDOS
   ========================================================= */
.profile-edit-form {
  margin-top: 18px;
}
.profile-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.profile-section-title h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.profile-section-title p {
  margin: 0;
  color: var(--grey-700);
  font-size: 11px;
}
.profile-lock-note {
  max-width: 285px;
  color: var(--grey-700);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}
.profile-locked-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.profile-locked-grid > div {
  padding: 11px 12px;
  border: 1px solid #e2e5e8;
  border-radius: 10px;
  background: #f5f6f7;
  display: grid;
  gap: 4px;
}
.profile-locked-grid span,
.profile-edit-grid label > span {
  color: var(--grey-700);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.profile-locked-grid strong {
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
.profile-locked-grid small {
  color: var(--red-dark);
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px;
}
.profile-edit-grid label {
  display: grid;
  gap: 5px;
}
.profile-edit-grid input,
.profile-edit-grid select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--grey-300);
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.profile-wide {
  grid-column: 1 / -1;
}
.profile-save-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-save-row .inline-message {
  margin: 0;
}

/* Admin v2 */
.admin-user-card-v2 {
  display: block;
}
.admin-user-summary {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--grey-300);
}
.admin-user-mini {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--grey-700);
  font-size: 10px;
}
.admin-user-mini b {
  color: var(--ink);
}
.admin-edit-form {
  padding-top: 14px;
}
.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
}
.admin-edit-grid label {
  display: grid;
  gap: 5px;
}
.admin-edit-grid label > span {
  color: var(--grey-700);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.admin-edit-grid input,
.admin-edit-grid select {
  width: 100%;
  min-height: 39px;
  box-sizing: border-box;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11.5px;
}
.admin-wide {
  grid-column: span 2;
}
.admin-edit-form .admin-action-row {
  margin-top: 12px;
}

/* Historial */
.admin-order-history {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-300);
}
.order-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.order-history-head h3 {
  margin: 0;
  font-size: 16px;
}
.order-history-head span {
  color: var(--grey-700);
  font-size: 10px;
}
.order-history-list {
  display: grid;
  gap: 8px;
}
.order-history-item {
  border: 1px solid var(--grey-300);
  border-radius: 11px;
  background: #fafbfb;
  overflow: hidden;
}
.order-history-item summary {
  list-style: none;
  padding: 11px 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.order-history-item summary::-webkit-details-marker { display: none; }
.order-history-item summary > div:first-child {
  display: grid;
  gap: 3px;
}
.order-history-item summary strong {
  font-size: 12px;
}
.order-history-item summary span {
  color: var(--grey-700);
  font-size: 9.5px;
}
.order-history-total {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.order-history-total strong {
  color: var(--green);
  font-size: 14px !important;
}
.order-history-body {
  padding: 12px 13px 14px;
  border-top: 1px solid var(--grey-300);
  background: #fff;
}
.order-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  padding-bottom: 10px;
  color: var(--grey-700);
  font-size: 10px;
}
.order-history-customer {
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f5f6f7;
  display: grid;
  gap: 3px;
  color: var(--grey-700);
  font-size: 10px;
}
.order-history-lines {
  display: grid;
}
.order-history-line {
  padding: 8px 0;
  border-bottom: 1px solid #eceeef;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.order-history-line:last-child {
  border-bottom: 0;
}
.order-history-line > div {
  display: grid;
  gap: 2px;
}
.order-history-line > div:last-child {
  justify-items: end;
  flex: 0 0 auto;
}
.order-history-line strong {
  font-size: 10.5px;
}
.order-history-line span {
  color: var(--grey-700);
  font-size: 9.5px;
}
.order-history-notes {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--grey-300);
  color: var(--grey-700);
  font-size: 10px;
}
.order-history-empty {
  padding: 15px;
  border-radius: 9px;
  background: #f5f6f7;
  color: var(--grey-700);
  text-align: center;
  font-size: 11px;
}
.order-history-empty.error {
  background: #fff0ef;
  color: var(--red-dark);
}

@media (max-width: 900px) {
  .profile-locked-grid {
    grid-template-columns: 1fr;
  }
  .admin-edit-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .admin-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .profile-section-title {
    display: grid;
  }
  .profile-lock-note {
    max-width: none;
    text-align: left;
  }
  .profile-edit-grid,
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }
  .profile-wide,
  .admin-wide {
    grid-column: auto;
  }
  .profile-save-row {
    align-items: stretch;
    flex-direction: column;
  }
  .order-history-item summary {
    align-items: flex-start;
  }
}


/* Aprobación de cuentas */
.btn-approve-account {
  min-height: 39px;
  border: 1px solid #157a3d;
  border-radius: 8px;
  padding: 0 15px;
  background: #157a3d;
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 850;
  cursor: pointer;
}
.btn-approve-account:hover { filter: brightness(.96); }
.btn-approve-account:disabled { opacity: .65; cursor: wait; }
.account-active-note {
  min-height: 39px;
  padding: 0 13px;
  border-radius: 8px;
  background: #eaf7ee;
  color: #157a3d;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 850;
}

/* =========================================================
   PEDIDOS SEPARADOS + RECUPERACIÓN DE CONTRASEÑA
   ========================================================= */
.auth-login-help{margin-top:-3px;display:flex;justify-content:flex-end}.auth-link-button{border:0;padding:4px 0;background:transparent;color:var(--red);font:inherit;font-size:11px;font-weight:800;cursor:pointer}.auth-link-button:hover{text-decoration:underline}.auth-subheading h2{margin:0 0 6px;font-size:22px}.auth-subheading p{margin:0 0 7px;color:var(--grey-700);font-size:12px;line-height:1.5}.auth-back{width:100%}
.btn-order-submit{width:100%;min-height:48px;border:0;border-radius:10px;background:var(--red);color:#fff;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 8px 20px rgba(226,59,51,.16)}.btn-order-submit:hover{filter:brightness(.96)}.btn-order-submit:disabled{opacity:.6;cursor:wait}
.orders-view{padding-top:26px;padding-bottom:22px}.orders-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.orders-page-header h1{margin:4px 0 6px;font-size:clamp(27px,3.4vw,38px)}.orders-page-header p{margin:0;color:var(--grey-700)}
.orders-summary,.admin-orders-stats{margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-orders-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.orders-summary>div,.admin-orders-stats>div{padding:15px 16px;border:1px solid var(--grey-300);border-radius:13px;background:#fff;display:grid;gap:5px}.orders-summary span,.admin-orders-stats span{color:var(--grey-700);font-size:9.5px;font-weight:800;text-transform:uppercase}.orders-summary strong,.admin-orders-stats strong{font-size:21px}
.admin-orders-filter{margin:13px 0}.admin-orders-filter input{width:100%;min-height:44px;box-sizing:border-box;border:1px solid var(--grey-300);border-radius:10px;padding:0 12px;background:#fff;font:inherit}.orders-list{margin-top:14px;display:grid;gap:12px}.order-card{padding:17px;border:1px solid var(--grey-300);border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.025)}.order-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.order-ref{color:var(--red);font-size:10px;font-weight:900;letter-spacing:.04em}.order-card-head h3{margin:3px 0;font-size:16px}.order-card-head p{margin:0;color:var(--grey-700);font-size:10.5px}.order-card-total{display:grid;justify-items:end;gap:6px}.order-card-total>strong{color:var(--green);font-size:18px}.order-status-pill{padding:4px 7px;border-radius:999px;background:#eaf7ee;color:var(--green);font-size:9px;font-weight:900;text-transform:uppercase}.order-client-strip{margin-top:12px;padding:9px 10px;border-radius:9px;background:#f5f6f7;display:flex;gap:14px;flex-wrap:wrap;color:var(--grey-700);font-size:9.5px}.order-financials{margin-top:11px;padding:10px 0;border-top:1px solid #eceeef;border-bottom:1px solid #eceeef;display:flex;flex-wrap:wrap;gap:10px 18px;color:var(--grey-700);font-size:10px}.order-financials b{color:var(--ink)}.order-lines-details{margin-top:10px}.order-lines-details>summary{cursor:pointer;color:var(--ink);font-size:11px;font-weight:800}.order-lines-list{margin-top:7px;display:grid}.order-line-row{padding:8px 0;border-bottom:1px solid #eceeef;display:flex;justify-content:space-between;gap:15px}.order-line-row:last-child{border-bottom:0}.order-line-row>div{display:grid;gap:2px}.order-line-row>div:last-child{justify-items:end;flex:0 0 auto}.order-line-row strong{font-size:10.5px}.order-line-row span{color:var(--grey-700);font-size:9.5px}.order-extra{margin-top:9px;padding:9px 10px;border-radius:8px;background:#f7f8f8;display:grid;gap:4px;color:var(--grey-700);font-size:10px}.orders-empty{padding:24px;border:1px dashed var(--grey-300);border-radius:13px;background:#fff;color:var(--grey-700);text-align:center;font-size:11px}.orders-empty.error{color:var(--red-dark);background:#fff3f2}.status-active{background:#eaf7ee;color:#157a3d}.status-blocked{background:#fff0ef;color:var(--red-dark)}
@media(max-width:760px){.orders-page-header{align-items:flex-start}.orders-summary,.admin-orders-stats{grid-template-columns:1fr}.order-card-head{align-items:flex-start}.order-client-strip,.order-financials{display:grid;gap:5px}}


/* =========================================================
   SEPARACIÓN ESTRICTA DE ROLES · 20260827-role-v3
   ========================================================= */
[hidden] { display: none !important; }
body:not(.role-client) .client-only { display: none !important; }
body.role-admin .client-only { display: none !important; }
body:not(.role-admin) .admin-only { display: none !important; }
body.role-client .admin-only { display: none !important; }
body.role-client #admin-view,
body.role-client #admin-orders-view { display: none !important; }
body.role-admin #my-orders-view { display: none !important; }
body.auth-guest .admin-only,
body.auth-guest .client-only,
body.auth-loading .admin-only,
body.auth-loading .client-only { display: none !important; }
.app-version {
  display:inline-block; margin-left:10px; color:#8a9098; font-size:9px; font-weight:700;
  letter-spacing:.03em; white-space:nowrap;
}
.role-security-note {
  margin:10px 0 0; padding:9px 11px; border-radius:9px; background:#f5f6f7;
  color:var(--grey-700); font-size:10px; line-height:1.45;
}


/* =========================================================
   V5 · IVA POR CLIENTE + DIRECCIÓN DE ENVÍO + IMPRESIÓN PEDIDOS
   ========================================================= */
.account-commercial-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.account-commercial-grid .account-discount-card{margin-top:0}.account-vat-card{border-color:rgba(226,59,51,.18);background:rgba(226,59,51,.04)}.account-vat-card strong{color:var(--red)}
.profile-subsection-title{margin:18px 0 9px;padding-top:14px;border-top:1px solid var(--grey-300)}.profile-subsection-title h4{margin:0;font-size:14px}.profile-subsection-title p{margin:4px 0 0;color:var(--grey-700);font-size:10.5px}.profile-shipping-section{margin-top:8px}.shipping-same-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:8px!important;margin:8px 0 12px;font-size:11px;font-weight:700;color:var(--ink)}.shipping-same-check input{width:17px!important;min-height:17px!important;margin:0}.shipping-same-check span{text-transform:none!important;letter-spacing:0!important;font-size:11px!important;color:var(--ink)!important}
.cart-delivery-info{margin-top:10px;padding:10px 12px;border:1px solid rgba(226,59,51,.18);border-radius:10px;background:#fff8f7;display:grid;gap:3px}.cart-delivery-info>span{color:var(--red-dark);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.cart-delivery-info strong{font-size:11px;line-height:1.4}.cart-delivery-info small{color:var(--grey-700);font-size:9px}
.admin-shipping-box{margin-top:12px;padding:12px;border:1px solid var(--grey-300);border-radius:11px;background:#fafbfb}.admin-shipping-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}.admin-shipping-head strong{font-size:11px}.admin-shipping-head label{display:flex;align-items:center;gap:6px;color:var(--grey-700);font-size:10px}.admin-shipping-head input{width:15px;height:15px}.admin-shipping-fields{padding-top:5px}
.order-delivery-strip{margin:10px 0 0;padding:10px 12px;border-left:3px solid var(--red);border-radius:7px;background:#fff8f7;color:var(--ink);font-size:10.5px;line-height:1.4}.order-card-actions{display:flex;justify-content:flex-end;margin:10px 0}.order-card-actions .btn-secondary{min-height:36px;font-size:11px}
.ps-addresses{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}.ps-addresses>div{padding:10px 12px;border-radius:8px;background:#f5f6f7}.ps-addresses>div.delivery{border:1px solid rgba(226,59,51,.25);background:#fff8f7}.ps-addresses span{display:block;color:#777;font-size:9px;font-weight:800;text-transform:uppercase;margin-bottom:4px}.ps-addresses strong{font-size:11px;line-height:1.4}
@media(max-width:640px){.account-commercial-grid,.ps-addresses{grid-template-columns:1fr}.admin-shipping-head{align-items:flex-start;flex-direction:column}.order-card-actions{justify-content:stretch}.order-card-actions .btn-secondary{width:100%}}


/* =========================================================
   V6 · FLUJO DE PEDIDOS, ESTADOS Y DOCUMENTOS
   ========================================================= */
.orders-summary-v6 { grid-template-columns: repeat(6,minmax(0,1fr)); }
.admin-orders-stats-v6 { grid-template-columns: repeat(6,minmax(0,1fr)); }
.order-status-pill { font-weight:900; }
.order-status-pill.status-submitted { background:#eef2f5; color:#49545e; }
.order-status-pill.status-processing { background:#fff1cc; color:#7a5800; }
.order-status-pill.status-shipped { background:#e9f2ff; color:#245c9b; }
.order-status-pill.status-invoiced { background:#eaf7ee; color:#157a3d; }
.order-card.order-status-processing { border-left:4px solid #d7a600; }
.order-card.order-status-shipped { border-left:4px solid #3e7ec3; }
.order-card.order-status-invoiced { border-left:4px solid #157a3d; }
.order-doc-strip { margin-top:8px; padding:8px 10px; border-radius:8px; background:#f4f7fa; color:#4c5965; font-size:10.5px; }
.order-card-actions { flex-wrap:wrap; }
.order-card-actions .btn-primary,.order-card-actions .btn-secondary { min-height:38px; }
.doc-download { border-color:#bfd3c6 !important; }
@media (max-width:1000px){.orders-summary-v6,.admin-orders-stats-v6{grid-template-columns:repeat(3,1fr)}}
@media (max-width:640px){.orders-summary-v6,.admin-orders-stats-v6{grid-template-columns:repeat(2,1fr)}}

/* V7: email de acceso bloqueado visualmente en administración */
[data-admin-email][readonly]{background:#f2f3f4!important;color:#777!important;cursor:not-allowed;}
.profile-locked-grid-single{grid-template-columns:minmax(240px,360px)!important;}


/* =========================================================
   V8 · FILTROS DE PEDIDOS, CANCELACIONES Y ABONOS
   ========================================================= */
.orders-summary-v8,.admin-orders-stats-v8{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important}
.order-filter-card{cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;user-select:none}
.order-filter-card:hover{border-color:#b9bec4!important;box-shadow:0 6px 18px rgba(0,0,0,.055);transform:translateY(-1px)}
.order-filter-card.active{border-color:var(--red)!important;box-shadow:0 0 0 2px rgba(226,59,51,.08)}
.order-filter-card.active span{color:var(--red)!important}
.order-filter-card small,.orders-update-card small,.admin-metric-card small{color:var(--grey-700);font-size:8.5px;line-height:1.25;text-transform:none;font-weight:600}
.orders-filter-caption{margin:13px 0 -3px;color:var(--grey-700);font-size:10px;font-weight:700}
.status-stack{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.order-status-pill.status-cancelled{background:#fff0ef;color:var(--red-dark)}
.secondary-status{box-shadow:inset 0 0 0 1px rgba(21,122,61,.15)}
.order-cancel-strip{margin:10px 0 0;padding:10px 12px;border-left:3px solid var(--red);border-radius:7px;background:#fff0ef;color:var(--red-dark);font-size:10.5px}
.order-credit-strip{margin:9px 0 0;padding:9px 10px;border-radius:8px;background:#f6f2ff;color:#4c3d73;font-size:10px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.credit-pill{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800}
.credit-pending{background:#fff1cc;color:#7a5800}.credit-approved{background:#eaf7ee;color:#157a3d}.credit-rejected{background:#fff0ef;color:var(--red-dark)}
.btn-credit{min-height:38px;border:1px solid #7856a8;border-radius:9px;padding:0 13px;background:#f7f2ff;color:#573b7f;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.btn-credit:hover{background:#efe6fb}.btn-credit.approve{background:#573b7f;color:#fff}.btn-credit.approve:hover{background:#432e60}
.danger-soft{border-color:#efc5c2!important;color:var(--red-dark)!important;background:#fff8f7!important}
.danger-soft:hover{background:#fff0ef!important}
.order-card.order-status-cancelled{border-left:4px solid var(--red);opacity:.92}
@media(max-width:640px){.orders-summary-v8,.admin-orders-stats-v8{grid-template-columns:repeat(2,minmax(0,1fr))!important}.status-stack{justify-content:flex-start}.order-card-total{justify-items:start}.order-card-head{display:grid}.order-card-actions .btn-credit{width:100%}}


/* =========================================================
   V9 · SOLICITUDES DE ABONO PARCIALES
   ========================================================= */
.credit-request-overlay{position:fixed;inset:0;z-index:400;background:rgba(18,22,27,.62);padding:20px;display:grid;place-items:center}
.credit-request-modal{width:min(100%,820px);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 28px 80px rgba(0,0,0,.25)}
.credit-request-modal>header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid var(--grey-300);padding-bottom:14px}
.credit-request-modal h2{margin:3px 0 5px}.credit-request-modal header p{margin:0;color:var(--grey-700);font-size:12px}
.credit-modal-invoice{margin:14px 0;padding:11px 13px;border-radius:10px;background:#f5f6f7;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.credit-modal-invoice span{font-size:10px;text-transform:uppercase;color:var(--grey-700);font-weight:800}.credit-modal-invoice strong{font-size:13px}.credit-modal-invoice small{color:var(--grey-700)}
.credit-modal-lines{display:grid;gap:8px}.credit-select-line{display:grid;grid-template-columns:auto minmax(0,1fr) 110px;gap:12px;align-items:center;padding:11px;border:1px solid var(--grey-300);border-radius:11px;background:#fff}.credit-select-line>input{width:18px;height:18px}.credit-select-copy{display:grid;gap:3px}.credit-select-copy strong{font-size:12px}.credit-select-copy span,.credit-select-copy small{font-size:10px;color:var(--grey-700)}.credit-select-qty{display:grid;gap:4px}.credit-select-qty span{font-size:9px;text-transform:uppercase;color:var(--grey-700);font-weight:800}.credit-select-qty input{width:100%;min-height:38px;border:1px solid var(--grey-300);border-radius:8px;padding:6px 8px;box-sizing:border-box}.credit-select-qty input:disabled{background:#f2f3f4;color:#999}
.credit-modal-totals{margin:15px 0 0 auto;width:min(100%,360px);display:grid;gap:6px}.credit-modal-totals>div{display:flex;justify-content:space-between;gap:16px;font-size:11px}.credit-modal-totals .grand{margin-top:4px;padding-top:9px;border-top:2px solid #7856a8;font-size:15px}.credit-request-modal>footer{margin-top:16px;display:flex;justify-content:flex-end;gap:8px}
.credit-management-list{margin:12px 0;display:grid;gap:10px}.credit-request-card{border:1px solid #ddd;border-left:4px solid #c7a541;border-radius:11px;padding:12px;background:#fff}.credit-request-card.credit-approved{border-left-color:#157a3d}.credit-request-card.credit-rejected{border-left-color:#c33}
.credit-request-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.credit-request-head>div:first-child{display:grid;gap:3px}.credit-request-kicker{font-size:9px;text-transform:uppercase;color:var(--grey-700);font-weight:800}.credit-request-head strong{font-size:13px}.credit-request-head small{font-size:9.5px;color:var(--grey-700)}.credit-request-total{display:grid;justify-items:end;gap:2px}.credit-request-total strong{font-size:16px;color:#573b7f}.credit-request-total span{font-size:9.5px;color:var(--grey-700)}
.credit-request-lines{margin-top:10px;border-top:1px solid #eceeef}.credit-request-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eceeef}.credit-request-line>div{display:grid;gap:2px}.credit-request-line>div:last-child{justify-items:end;flex:0 0 auto}.credit-request-line strong{font-size:10.5px}.credit-request-line span{font-size:9.5px;color:var(--grey-700)}.credit-request-summary{display:flex;gap:14px;flex-wrap:wrap;margin-top:9px;font-size:9.5px;color:var(--grey-700)}.credit-request-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media(max-width:640px){.credit-request-overlay{padding:8px;align-items:end}.credit-request-modal{border-radius:17px 17px 0 0;max-height:94vh}.credit-select-line{grid-template-columns:auto minmax(0,1fr)}.credit-select-qty{grid-column:2}.credit-request-modal>footer{display:grid;grid-template-columns:1fr 1fr}.credit-request-head{display:grid}.credit-request-total{justify-items:start}}


/* =========================================================
   V11 · DESCUENTO POR TIPO DE PEDIDO
   ========================================================= */
.cart-order-type-box {
  margin: 12px 0 0;
  padding: 15px;
  border: 1px solid var(--grey-300);
  border-radius: 13px;
  background: #fff;
}
.cart-order-type-head h3 { margin: 3px 0 3px; font-size: 15px; }
.cart-order-type-head p { margin: 0 0 12px; color: var(--grey-700); font-size: 10.5px; line-height: 1.4; }
.cart-order-kicker { color: var(--green); font-size: 8.5px; font-weight: 900; letter-spacing: .07em; }
.cart-order-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-order-type-option {
  position: relative; min-width: 0; padding: 12px; border: 1px solid var(--grey-300); border-radius: 11px;
  background: #f8f9fa; cursor: pointer; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; align-items: center;
}
.cart-order-type-option:hover { border-color: #c6cbd0; background: #fff; }
.cart-order-type-option.selected { border-color: var(--red); background: #fff5f4; box-shadow: 0 0 0 2px rgba(226,59,51,.06); }
.cart-order-type-option input { margin: 0; accent-color: var(--red); }
.order-type-copy { display: grid; gap: 3px; min-width: 0; }
.order-type-copy strong { font-size: 11.5px; }
.order-type-copy small { color: var(--grey-700); font-size: 9px; }
.order-type-discount { display: grid; justify-items: end; gap: 1px; color: var(--green); }
.order-type-discount b { font-size: 17px; }
.order-type-discount small { font-size: 8px; text-transform: uppercase; font-weight: 800; }
.cart-order-type-selected { margin-top: 9px; padding: 8px 10px; border-radius: 8px; background: #f2f3f4; color: var(--grey-700); font-size: 9.5px; line-height: 1.35; }
.cart-order-type-selected.selected { background: #edf8f0; color: #157a3d; font-weight: 700; }
.account-commercial-grid-v11 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.account-discount-card small { color: var(--grey-700); font-size: 9px; }
.order-type-strip { margin-top: 9px; padding: 9px 11px; border-radius: 8px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 10px; }
.order-type-strip.order-type-urgent { background: #fff3ed; border-left: 3px solid #e56b31; }
.order-type-strip.order-type-stock { background: #edf8f0; border-left: 3px solid #157a3d; }
@media (max-width: 700px) {
  .cart-order-type-options, .account-commercial-grid-v11 { grid-template-columns: 1fr; }
  .cart-order-type-option { grid-template-columns: auto 1fr auto; }
}


/* =========================================================
   V12 · PORTES DE ENVÍO EN TRAMITACIÓN
   ========================================================= */
.cart-shipping-estimate-note{margin:10px 0 0;padding:11px 12px;border-radius:9px;border-left:3px solid #d59b22;background:#fff9e9;color:#6b5317;font-size:10px;line-height:1.45;display:grid;gap:3px}.cart-shipping-estimate-note strong{color:#4d3a0c;font-size:10.5px}.order-shipping-cost-strip{margin-top:8px;padding:9px 11px;border-radius:8px;font-size:10px}.order-shipping-cost-strip.pending{background:#fff8e7;border-left:3px solid #d59b22;color:#6b5317}.order-shipping-cost-strip.estimated{background:#eef6ff;border-left:3px solid #4b86d1;color:#244d7d}.shipping-cost-overlay{position:fixed;inset:0;z-index:420;padding:16px;background:rgba(18,22,27,.6);display:grid;place-items:center}.shipping-cost-modal{width:min(100%,620px);max-height:92vh;overflow:auto;border-radius:18px;background:#fff;padding:22px;box-shadow:0 28px 80px rgba(0,0,0,.24)}.shipping-cost-modal>header{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.shipping-cost-modal h2{margin:4px 0 5px;font-size:23px}.shipping-cost-modal header p{margin:0;color:var(--grey-700);font-size:11px}.shipping-cost-destination{margin-top:16px;padding:11px 12px;background:#fff6f5;border-left:3px solid var(--red);border-radius:8px;display:grid;gap:4px}.shipping-cost-destination span,.shipping-cost-input>span{color:var(--grey-700);font-size:9px;font-weight:800;text-transform:uppercase}.shipping-cost-destination strong{font-size:11px;line-height:1.4}.shipping-cost-input{margin-top:15px;display:grid;gap:6px}.shipping-cost-input>div{position:relative}.shipping-cost-input input{width:100%;box-sizing:border-box;min-height:52px;border:1px solid var(--grey-300);border-radius:10px;padding:8px 44px 8px 12px;font-size:20px;font-weight:700}.shipping-cost-input>div b{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:17px}.shipping-cost-input small{color:var(--grey-700);font-size:9.5px}.shipping-cost-breakdown{margin-top:15px;padding:12px 14px;border-radius:10px;background:#f6f7f8;display:grid;gap:8px}.shipping-cost-breakdown>div{display:flex;justify-content:space-between;gap:15px;font-size:11px}.shipping-cost-breakdown .grand{margin-top:3px;padding-top:9px;border-top:2px solid var(--red);font-size:15px}.shipping-cost-modal>footer{margin-top:16px;display:flex;justify-content:flex-end;gap:8px}.credit-shipping-line{background:#f3f8ff;border-color:#cddff4}.credit-request-shipping{background:#f3f8ff}@media(max-width:640px){.shipping-cost-overlay{padding:8px;align-items:end}.shipping-cost-modal{border-radius:17px 17px 0 0;max-height:94vh}.shipping-cost-modal>footer{display:grid;grid-template-columns:1fr 1fr}}


/* =========================================================
   V13 · FILTROS AVANZADOS DE PEDIDOS
   ========================================================= */
.orders-filter-panel {
  margin: 14px 0 12px;
  padding: 17px;
  border: 1px solid var(--grey-300);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.025);
}
.orders-filter-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.orders-filter-panel-head h3 {
  margin: 3px 0 0;
  font-size: 17px;
}
.orders-clear-filters {
  flex: 0 0 auto;
}
.orders-filter-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.orders-filter-grid-admin {
  grid-template-columns: repeat(5,minmax(0,1fr));
}
.orders-filter-grid label {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.orders-filter-grid label > span {
  color: var(--grey-700);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.orders-filter-grid input,
.orders-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--grey-300);
  border-radius: 9px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11.5px;
}
.orders-filter-grid input:focus,
.orders-filter-grid select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,59,51,.06);
}
.orders-filter-search {
  grid-column: span 2;
}
.orders-filter-footer {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #eceeef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.orders-active-filters {
  color: var(--grey-700);
  font-size: 10.5px;
  line-height: 1.45;
}
.orders-active-filters.has-filters {
  color: var(--ink);
  font-weight: 700;
}
.orders-filter-caption {
  margin: 10px 0 !important;
  color: var(--grey-700);
  font-size: 10.5px;
  font-weight: 700;
}
.orders-pagination {
  margin: 16px 0 2px;
  padding: 10px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 11px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.orders-pagination span {
  min-width: 190px;
  color: var(--grey-700);
  font-size: 10.5px;
  text-align: center;
}
.orders-pagination button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.order-filter-card {
  cursor: pointer;
}
.order-filter-card:focus-visible {
  outline: 3px solid rgba(226,59,51,.18);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .orders-filter-grid,
  .orders-filter-grid-admin {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .orders-filter-search {
    grid-column: span 2;
  }
}
@media (max-width: 720px) {
  .orders-filter-panel {
    padding: 13px;
  }
  .orders-filter-panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .orders-clear-filters {
    width: 100%;
  }
  .orders-filter-grid,
  .orders-filter-grid-admin {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .orders-filter-search {
    grid-column: 1 / -1;
  }
  .orders-pagination {
    justify-content: space-between;
    gap: 7px;
  }
  .orders-pagination span {
    min-width: 0;
  }
}
@media (max-width: 470px) {
  .orders-filter-grid,
  .orders-filter-grid-admin {
    grid-template-columns: 1fr;
  }
  .orders-filter-search {
    grid-column: auto;
  }
  .orders-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .orders-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}


/* =========================================================
   V15 · ARTÍCULOS Y SERIES
   ========================================================= */
.admin-page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:26px 0 18px}.admin-page-heading h1{margin:4px 0 6px;font-size:clamp(28px,3vw,38px)}.admin-page-heading p{margin:0;color:var(--grey-700);max-width:820px;line-height:1.5}
.pvp-selected-detail-grid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start}.pvp-selected-media{width:190px;height:160px;border:1px solid var(--grey-300);border-radius:13px;background:#f6f7f8;overflow:hidden;display:grid;place-items:center}.pvp-selected-media img{width:100%;height:100%;object-fit:contain}.pvp-selected-name{margin:3px 0 8px;font-size:17px}.pvp-selected-description{line-height:1.55}
.article-admin-search-card{position:relative;padding:18px;border:1px solid var(--grey-300);border-radius:15px;background:#fff}.article-admin-search-card label{display:block;margin-bottom:7px;font-size:12px;font-weight:800}.article-admin-search-card input{width:100%;min-height:48px;box-sizing:border-box;border:1px solid var(--grey-300);border-radius:10px;padding:0 13px;font:inherit}.article-admin-search-status{margin-top:7px;color:var(--grey-700);font-size:10.5px}.article-admin-suggestions{position:absolute;left:18px;right:18px;top:86px;z-index:30;max-height:430px;overflow:auto;border:1px solid var(--grey-300);border-radius:11px;background:#fff;box-shadow:0 18px 45px rgba(0,0,0,.14)}.article-admin-suggestions button{width:100%;border:0;border-bottom:1px solid #eceeef;padding:10px 12px;background:#fff;display:grid;grid-template-columns:180px 1fr auto;gap:12px;text-align:left;cursor:pointer}.article-admin-suggestions button:hover{background:#f6f7f8}.article-admin-suggestions span{color:var(--grey-700)}.article-admin-suggestions small{color:var(--green);font-weight:800}.article-admin-no-results{padding:16px;color:var(--grey-700)}
.article-admin-editor{margin-top:15px;padding:19px;border:1px solid var(--grey-300);border-radius:16px;background:#fff}.article-admin-editor-head,.article-internal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.article-admin-editor-head h2,.article-internal-head h3{margin:3px 0}.article-admin-public-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;margin-top:18px}.article-admin-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.article-admin-fields label,.article-admin-photo-box{display:grid;gap:5px}.article-admin-fields label span,.article-admin-photo-box .field-title,.article-alt-row label span{font-size:9.5px;font-weight:800;color:var(--grey-700);text-transform:uppercase}.article-admin-fields input,.article-admin-fields textarea,.article-alt-row input,.article-alt-row select{width:100%;box-sizing:border-box;border:1px solid var(--grey-300);border-radius:8px;padding:8px 9px;font:inherit}.article-wide{grid-column:1/-1}.article-photo-preview{height:190px;border:1px dashed var(--grey-300);border-radius:10px;background:#f6f7f8;display:grid;place-items:center;overflow:hidden;color:var(--grey-700)}.article-photo-preview img{width:100%;height:100%;object-fit:contain}.article-admin-photo-box small{color:var(--grey-700)}
.article-internal-section{margin-top:22px;padding-top:18px;border-top:2px solid #eceeef}.article-internal-head p{margin:3px 0;color:var(--grey-700);font-size:11px}.article-alt-list{display:grid;gap:8px;margin-top:13px}.article-alt-row{padding:11px;border:1px solid #e1e4e7;border-radius:11px;background:#f8f9fa;display:grid;grid-template-columns:140px 180px 1fr 120px 110px 1.2fr auto;gap:8px;align-items:end}.article-alt-row label{display:grid;gap:4px}.article-alt-empty{padding:17px;border:1px dashed var(--grey-300);border-radius:10px;color:var(--grey-700);text-align:center}.btn-danger-soft{border:1px solid #efc7c4;border-radius:8px;padding:9px 10px;background:#fff0ef;color:#a62c26;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.series-help-card{padding:13px 15px;border-radius:11px;background:#f4f6f8;color:var(--grey-700);line-height:1.5}.series-help-card code{background:#fff;padding:2px 5px;border-radius:4px;color:var(--ink)}.document-series-list{display:grid;gap:15px;margin-top:15px}.series-type-card{padding:17px;border:1px solid var(--grey-300);border-radius:15px;background:#fff}.series-type-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.series-type-head h2{margin:2px 0}.series-rows{display:grid;gap:10px}.series-row{padding:13px;border:1px solid #e2e5e8;border-radius:11px;background:#f9fafb}.series-row-top,.series-options,.series-preview{display:flex;align-items:center;justify-content:space-between;gap:12px}.series-default{font-weight:800}.series-fields{display:grid;grid-template-columns:1fr 1fr 2fr 1fr 1fr .7fr;gap:8px;margin:10px 0}.series-fields label{display:grid;gap:4px}.series-fields span{font-size:9px;font-weight:800;color:var(--grey-700);text-transform:uppercase}.series-fields input{min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--grey-300);border-radius:7px;padding:7px 8px;font:inherit}.series-options{justify-content:flex-start;flex-wrap:wrap;color:var(--grey-700);font-size:10px}.series-current{margin-left:auto}.series-preview{margin-top:10px;padding-top:10px;border-top:1px solid #e2e5e8;color:var(--grey-700);font-size:11px}.series-preview strong{color:var(--ink);font-family:monospace;font-size:13px}
@media(max-width:1100px){.article-alt-row{grid-template-columns:repeat(3,minmax(0,1fr))}.alt-observations{grid-column:span 2}.series-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.series-format{grid-column:span 2}}@media(max-width:760px){.admin-page-heading,.article-admin-editor-head,.article-internal-head{flex-direction:column;align-items:stretch}.article-admin-public-grid{grid-template-columns:1fr}.article-admin-fields{grid-template-columns:1fr 1fr}.article-wide{grid-column:1/-1}.article-alt-row{grid-template-columns:1fr 1fr}.alt-observations{grid-column:1/-1}.series-fields{grid-template-columns:1fr 1fr}.series-format{grid-column:1/-1}.pvp-selected-detail-grid{grid-template-columns:1fr}.pvp-selected-media{width:100%;height:220px}}@media(max-width:480px){.article-admin-fields,.article-alt-row,.series-fields{grid-template-columns:1fr}.article-wide,.alt-observations,.series-format{grid-column:auto}.series-row-top,.series-preview{align-items:stretch;flex-direction:column}}


/* V15 · artículos creados manualmente */
.article-origin{display:inline-flex;margin-top:7px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.02em;background:#f3f4f5;color:#60656b}
.article-origin-custom{background:#fff1ef;color:#a62a25;border:1px solid #f1cdc9}
.article-origin-tariff{background:#f3f4f5;color:#5d6268;border:1px solid #e1e4e7}
.article-custom-badge{display:inline-block;padding:2px 6px;border-radius:999px;background:#fff1ef;color:#a62a25;font-size:9px;font-weight:800}
.admin-articles-view .admin-page-heading{align-items:flex-end}
@media(max-width:720px){.admin-articles-view .admin-page-heading{align-items:stretch;flex-direction:column}#admin-article-create{width:100%}}


/* =========================================================
   V15 · RELOJ DIGITAL GLOBAL + ASISTENTE IA DE ARTÍCULOS
   ========================================================= */
.global-clock{
  position:fixed;left:14px;bottom:14px;z-index:245;
  display:flex;align-items:center;gap:8px;
  padding:7px 10px;border:1px solid rgba(205,209,214,.95);border-radius:11px;
  background:rgba(255,255,255,.94);backdrop-filter:blur(10px);
  box-shadow:0 7px 24px rgba(20,24,28,.10);color:#1b1f24;
  font-variant-numeric:tabular-nums;user-select:none;pointer-events:none;
}
.global-clock-dot{width:6px;height:6px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px rgba(226,59,51,.10)}
.global-clock-copy{display:grid;line-height:1}
.global-clock-copy strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:12.5px;letter-spacing:.04em}
.global-clock-copy small{margin-top:3px;color:var(--grey-700);font-size:7.5px;font-weight:700;letter-spacing:.08em;text-align:center}

.article-ai-assistant{margin:18px 0;padding:18px;border:1px solid var(--grey-300);border-radius:17px;background:linear-gradient(180deg,#fff 0%,#fbfbfc 100%);box-shadow:0 8px 28px rgba(20,24,28,.045)}
.article-ai-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.article-ai-title-wrap{display:flex;align-items:flex-start;gap:12px;min-width:0}
.article-ai-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#fff0ef;color:var(--red);font-size:20px;border:1px solid #f3d4d1}
.article-ai-title-wrap h2{margin:2px 0 4px;font-size:21px}.article-ai-title-wrap p{margin:0;max-width:720px;color:var(--grey-700);font-size:11px;line-height:1.5}
.article-ai-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.article-ai-status{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:#f1f3f4;color:#5f6871;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.article-ai-status.ready{background:#edf8f0;color:#17713a}.article-ai-status.offline{background:#fff2ef;color:#a64235}
.article-ai-clear{min-height:30px!important;padding:5px 9px!important;font-size:9px!important}
.article-ai-messages{height:min(310px,42vh);min-height:180px;overflow:auto;padding:14px;border:1px solid #e4e7e9;border-radius:13px;background:#f7f8f9;scroll-behavior:smooth}
.article-ai-message{display:flex;align-items:flex-start;gap:8px;margin:0 0 11px}.article-ai-message:last-child{margin-bottom:0}.article-ai-message.user{justify-content:flex-end}.article-ai-message.user .article-ai-avatar{order:2;background:#272d33;color:#fff}.article-ai-message.user .article-ai-bubble{background:#272d33;color:#fff;border-color:#272d33}
.article-ai-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:var(--red);color:#fff;font-size:8px;font-weight:900;letter-spacing:.04em}
.article-ai-bubble{max-width:min(82%,760px);padding:10px 12px;border:1px solid #e0e3e6;border-radius:4px 12px 12px 12px;background:#fff;color:#252a30;font-size:11px;line-height:1.55;overflow-wrap:anywhere}.article-ai-message.user .article-ai-bubble{border-radius:12px 4px 12px 12px}
.article-ai-message.thinking .article-ai-bubble{color:#737b83;font-style:italic}
.article-ai-sources{margin-top:8px;padding-top:7px;border-top:1px solid #eceeef;display:grid;gap:4px}.article-ai-sources a{color:#44515c;font-size:9px;text-decoration:underline;text-underline-offset:2px}
.article-ai-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.article-ai-suggestions button{border:1px solid #dfe2e5;background:#fff;border-radius:999px;padding:6px 9px;color:#4f5962;font:inherit;font-size:9px;cursor:pointer}.article-ai-suggestions button:hover{border-color:#d9a29d;color:#9f342c;background:#fff8f7}
.article-ai-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.article-ai-form textarea{width:100%;min-height:48px;max-height:140px;box-sizing:border-box;resize:vertical;border:1px solid var(--grey-300);border-radius:11px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit;font-size:11px;line-height:1.45}.article-ai-form textarea:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 3px rgba(226,59,51,.07)}.article-ai-form .btn-primary{min-height:48px;padding-inline:17px}
.article-ai-disclaimer{margin:9px 2px 0;color:#767f87;font-size:8.5px;line-height:1.45}.article-ai-disclaimer strong{color:#555d64}
@media(max-width:700px){.global-clock{left:8px;bottom:8px;padding:6px 8px}.global-clock-copy strong{font-size:11px}.article-ai-assistant{padding:13px}.article-ai-head{flex-direction:column}.article-ai-head-actions{width:100%;justify-content:space-between}.article-ai-form{grid-template-columns:1fr}.article-ai-form .btn-primary{width:100%;min-height:42px}.article-ai-bubble{max-width:88%}.article-ai-messages{height:270px}}
@media print{.global-clock,.article-ai-assistant{display:none!important}}


/* =========================================================
   V15 · ACCESO EXTERNO A CHATGPT
   ========================================================= */
.article-chatgpt-launcher{
  margin:18px 0;
  padding:17px 18px;
  border:1px solid var(--grey-300);
  border-radius:17px;
  background:linear-gradient(180deg,#fff 0%,#fbfbfc 100%);
  box-shadow:0 8px 28px rgba(20,24,28,.045);
}
.article-chatgpt-copy{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.article-chatgpt-icon{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:12px;
  background:#fff0ef;
  color:var(--red);
  border:1px solid #f3d4d1;
  font-size:20px;
}
.article-chatgpt-copy h2{margin:2px 0 4px;font-size:20px}
.article-chatgpt-copy p{
  margin:0;
  max-width:760px;
  color:var(--grey-700);
  font-size:11px;
  line-height:1.5;
}
.article-chatgpt-compose{
  margin-top:14px;
  padding:12px;
  border:1px solid #e4e7e9;
  border-radius:13px;
  background:#f7f8f9;
}
.article-chatgpt-compose textarea{
  width:100%;
  min-height:58px;
  box-sizing:border-box;
  resize:vertical;
  border:1px solid var(--grey-300);
  border-radius:11px;
  padding:10px 12px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:11px;
  line-height:1.45;
}
.article-chatgpt-compose textarea:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(226,59,51,.07);
}
.article-chatgpt-suggestions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin:9px 0 11px;
}
.article-chatgpt-suggestions button{
  border:1px solid #dfe2e5;
  background:#fff;
  border-radius:999px;
  padding:6px 9px;
  color:#4f5962;
  font:inherit;
  font-size:9px;
  cursor:pointer;
}
.article-chatgpt-suggestions button:hover{
  border-color:#d9a29d;
  color:#9f342c;
  background:#fff8f7;
}
.article-chatgpt-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.article-chatgpt-actions .btn-primary{min-height:42px}
.article-chatgpt-copy-status{
  color:#4f5962;
  font-size:9.5px;
  font-weight:700;
}
.article-chatgpt-helper{
  margin:9px 2px 0;
  color:#68717a;
  font-size:8.8px;
  line-height:1.45;
}
.article-chatgpt-disclaimer{
  margin:5px 2px 0;
  color:#767f87;
  font-size:8.5px;
  line-height:1.45;
}
.article-chatgpt-disclaimer strong{color:#555d64}
@media(max-width:700px){
  .article-chatgpt-launcher{padding:13px}
  .article-chatgpt-actions{align-items:stretch;flex-direction:column}
  .article-chatgpt-actions .btn-primary{width:100%}
}
@media print{
  .article-chatgpt-launcher{display:none!important}
}


/* =========================================================
   V15 · PRESUPUESTOS Y PERMISOS POR CLIENTE
   ========================================================= */
.pvp-dual-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pvp-add-budget{min-height:42px}.pvp-add-budget.in-cart{border-color:#2e7d4e;color:#23623d;background:#f1faf5}
.admin-budgets-view{padding-bottom:24px}.budget-workspace{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.budget-builder-card,.budget-history-card{background:#fff;border:1px solid var(--grey-300);border-radius:15px;padding:16px;box-shadow:0 5px 18px rgba(0,0,0,.025)}.budget-summary-card{grid-column:1/-1}.budget-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}.budget-section-head h2{margin:2px 0 0;font-size:18px}.budget-draft-state,.budget-lines-count{font-size:9px;font-weight:800;color:#737b82;background:#f4f5f6;border:1px solid #e2e4e7;border-radius:999px;padding:5px 8px}.budget-client-mode{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.budget-client-mode label{display:flex;gap:7px;align-items:center;border:1px solid #e1e4e7;border-radius:9px;padding:8px 10px;font-size:10.5px;font-weight:700;cursor:pointer}.budget-client-block{margin-bottom:12px}.budget-client-block label,.budget-form-grid label,.budget-commercial-grid label,.budget-notes{display:grid;gap:5px}.budget-client-block label>span,.budget-form-grid label>span,.budget-commercial-grid label>span,.budget-notes>span{font-size:9.5px;text-transform:uppercase;font-weight:800;color:#68717a}.budget-client-block select,.budget-form-grid input,.budget-commercial-grid input,.budget-commercial-grid select,.budget-notes textarea,.budget-history-filter input,.budget-article-search-wrap input{width:100%;box-sizing:border-box;border:1px solid var(--grey-300);border-radius:9px;background:#fff;padding:9px 10px;font:inherit;font-size:11px}.budget-client-summary{margin-top:8px;padding:9px 10px;border-radius:9px;background:#f7f8f9;color:#535d66;font-size:10px;line-height:1.5}.budget-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.budget-field-wide{grid-column:1/-1}.budget-manual-note,.budget-search-help{font-size:9px;color:#737b82;margin:8px 0 0}.budget-commercial-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:13px;padding-top:13px;border-top:1px solid #eceeef}.budget-article-search-wrap{position:relative}.budget-article-suggestions{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:30;background:#fff;border:1px solid #dfe2e5;border-radius:11px;box-shadow:0 12px 30px rgba(0,0,0,.12);max-height:300px;overflow:auto}.budget-article-suggestion{display:flex;width:100%;border:0;border-bottom:1px solid #edf0f2;background:#fff;padding:9px 10px;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}.budget-article-suggestion:hover{background:#fff7f6}.budget-article-suggestion strong{display:block;font-size:11px}.budget-article-suggestion small{display:block;color:#6d757d;font-size:9px;margin-top:2px}.budget-lines{margin-top:12px;display:grid;gap:7px}.budget-line{display:grid;grid-template-columns:minmax(0,1fr) 110px 110px 34px;gap:8px;align-items:center;border:1px solid #e4e7e9;border-radius:10px;padding:9px}.budget-line-copy strong{display:block;font-size:11px}.budget-line-copy small{display:block;color:#707981;font-size:9px;margin-top:2px}.budget-line input{width:100%;box-sizing:border-box;border:1px solid #dfe2e5;border-radius:8px;padding:7px;font:inherit;font-size:10px;text-align:center}.budget-line-price{text-align:right;font-size:10px;font-weight:800}.budget-line-remove{width:34px;height:34px;border-radius:8px;border:1px solid #f1d0cd;background:#fff7f6;color:#a43a32;cursor:pointer}.budget-empty-lines{padding:17px;border:1px dashed #d9dde0;border-radius:10px;color:#727b82;font-size:10px;text-align:center}.budget-totals{margin-left:auto;margin-top:14px;max-width:510px;display:grid;gap:7px}.budget-totals>div{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px}.budget-totals strong{font-size:12px}.budget-total-main{border-top:2px solid var(--red);padding-top:10px;margin-top:4px}.budget-total-main span,.budget-total-main strong{font-size:16px;font-weight:800}.budget-save-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:15px}.budget-save-row small{color:#717981;font-size:9px}.budget-history-card{margin-top:15px}.budget-history-filter{margin-bottom:10px}.budget-history-list{display:grid;gap:8px}.budget-history-item{border:1px solid #e2e5e7;border-radius:11px;padding:11px 12px}.budget-history-headline{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.budget-history-headline strong{font-size:12px}.budget-history-headline span{font-size:9px;color:#727a81}.budget-history-total{text-align:right}.budget-history-total strong{display:block;font-size:14px}.budget-history-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.budget-history-meta span{font-size:8.5px;background:#f5f6f7;border-radius:999px;padding:4px 7px;color:#5c656c}.budget-history-actions{display:flex;gap:8px;margin-top:9px}.budget-history-lines-detail{margin-top:8px;padding-top:8px;border-top:1px solid #eceeef;font-size:9px;color:#59636b;line-height:1.6}
.client-permissions-panel{margin:12px 0;border:1px solid #dfe2e5;border-radius:12px;background:#fbfbfc}.client-permissions-panel summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;cursor:pointer}.client-permissions-panel summary::-webkit-details-marker{display:none}.client-permissions-panel summary strong{display:block;font-size:11px}.client-permissions-panel summary span:not(.permissions-summary-pill){display:block;color:#737c83;font-size:9px;margin-top:2px}.permissions-summary-pill{white-space:nowrap;background:#eef1f3;border-radius:999px;padding:5px 8px;color:#5c666e;font-size:8.5px;font-weight:800}.client-permissions-groups{padding:0 12px 12px}.permission-group{padding:11px 0;border-top:1px solid #e8eaec}.permission-group h4{margin:0 0 8px;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#4d565d}.permission-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.permission-switch{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:start;border:1px solid #e5e7e9;border-radius:9px;padding:8px;background:#fff;cursor:pointer}.permission-switch input{position:absolute;opacity:0;pointer-events:none}.permission-switch-ui{position:relative;width:30px;height:17px;border-radius:999px;background:#c9cdd1;margin-top:2px;transition:.15s}.permission-switch-ui:after{content:'';position:absolute;width:13px;height:13px;border-radius:50%;background:#fff;left:2px;top:2px;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.15s}.permission-switch input:checked+.permission-switch-ui{background:#2f8a55}.permission-switch input:checked+.permission-switch-ui:after{transform:translateX(13px)}.permission-switch-copy strong{display:block;font-size:9.5px}.permission-switch-copy small{display:block;font-size:8px;color:#778087;line-height:1.35;margin-top:2px}.permissions-live-note{margin:10px 0 0;padding:8px 10px;background:#f1f7f3;border-radius:8px;color:#41604c;font-size:8.7px}
/* Permisos cliente: ocultación de interfaz. Las acciones críticas se validan también en PHP. */
body.role-client.perm-off-access-maintenance #maintenance-view,body.role-client.perm-off-access-maintenance [data-tool-tab="maintenance"]{display:none!important}body.role-client.perm-off-access-article-search #pvp-view,body.role-client.perm-off-access-article-search [data-tool-tab="pvp"]{display:none!important}body.role-client.perm-off-access-orders-panel #my-orders-view,body.role-client.perm-off-access-orders-panel [data-tool-tab="my-orders"]{display:none!important}body.role-client.perm-off-access-cart #cart-toggle,body.role-client.perm-off-access-cart #cart-overlay{display:none!important}body.role-client.perm-off-access-chatgpt #article-chatgpt-launcher{display:none!important}body.role-client.perm-off-access-exploded-parts #exploded-parts{display:none!important}body.role-client.perm-off-allow-place-orders #cart-submit-order{display:none!important}body.role-client.perm-off-allow-cancel-orders [data-order-action="cancel_client"]{display:none!important}body.role-client.perm-off-allow-credit-requests [data-order-action="request_credit_client"]{display:none!important}body.role-client.perm-off-allow-download-order [data-print-order]{display:none!important}body.role-client.perm-off-allow-download-delivery-note [data-download-doc="delivery_note"]{display:none!important}body.role-client.perm-off-allow-download-invoice [data-download-doc="invoice"]{display:none!important}body.role-client.perm-off-allow-download-credit-note [data-download-doc="credit_note"]{display:none!important}body.role-client.perm-off-allow-prepare-email #cart-send{display:none!important}body.role-client.perm-off-allow-prepare-whatsapp #cart-whatsapp{display:none!important}body.role-client.perm-off-allow-print-cart #cart-print{display:none!important}body.role-client.perm-off-show-prices .pvp-selected-price,body.role-client.perm-off-show-prices .pvp-suggestion-price,body.role-client.perm-off-show-prices .part-price,body.role-client.perm-off-show-prices .cart-price,body.role-client.perm-off-show-prices .cart-summary{display:none!important}body.role-client.perm-off-show-discounts #account-discount,body.role-client.perm-off-show-discounts #cart-discount-row,body.role-client.perm-off-show-discounts #cart-order-type-box .order-type-discount,body.role-client.perm-off-show-discounts .account-urgent-card,body.role-client.perm-off-show-discounts .account-stock-card{display:none!important}body.role-client.perm-off-show-vat #cart-vat-label,body.role-client.perm-off-show-vat #cart-iva{visibility:hidden!important}body.role-client.perm-off-show-vat .account-vat-card{display:none!important}body.role-client.perm-off-allow-urgent-orders [data-order-type-card="urgent"]{display:none!important}body.role-client.perm-off-allow-stock-orders [data-order-type-card="stock"]{display:none!important}
@media(max-width:900px){.budget-workspace{grid-template-columns:1fr}.budget-summary-card{grid-column:auto}.budget-commercial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-switches{grid-template-columns:1fr}}@media(max-width:580px){.budget-form-grid,.budget-commercial-grid{grid-template-columns:1fr}.budget-field-wide{grid-column:auto}.budget-line{grid-template-columns:1fr 74px 88px 34px}.budget-history-headline{flex-direction:column}.budget-history-total{text-align:left}}


/* V17 · descuentos de presupuesto por modalidad */
.budget-commercial-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.budget-commercial-grid input[readonly]{background:#f4f5f6;color:#49535b;font-weight:800;cursor:default}
.budget-discount-help{margin:8px 0 0;font-size:9px;color:#68717a;line-height:1.5}
.budget-client-discounts{display:inline-block;margin-top:3px;color:#505a62}
@media(max-width:1050px){.budget-commercial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* =========================================================
   V17 · SUITE COMERCIAL / CRM / PROCESOS
   ========================================================= */
.crm-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:14px 0 18px}.crm-stat{background:#fff;border:1px solid var(--grey-300);border-radius:14px;padding:13px 14px;box-shadow:0 5px 18px rgba(20,24,28,.035);display:flex;flex-direction:column;gap:4px}.crm-stat span{font-size:9px;text-transform:uppercase;letter-spacing:.045em;color:var(--grey-700);font-weight:800}.crm-stat strong{font-size:18px;color:var(--ink)}.crm-stat small{font-size:8.8px;color:var(--grey-700)}.crm-stat-grid.compact{grid-template-columns:repeat(auto-fit,minmax(105px,1fr));margin:9px 0}.crm-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.crm-panel{background:#fff;border:1px solid var(--grey-300);border-radius:16px;padding:16px;margin-bottom:14px}.crm-ranking{display:grid;gap:6px}.crm-ranking-row{width:100%;border:1px solid #e5e8ea;background:#fafbfb;border-radius:10px;padding:9px 10px;display:grid;grid-template-columns:1fr auto;gap:3px 10px;text-align:left;color:var(--ink);font:inherit}.crm-ranking-row button{cursor:pointer}.crm-ranking-row span{font-size:10px}.crm-ranking-row strong{font-size:10px}.crm-ranking-row small{grid-column:1/-1;font-size:8.5px;color:#6d747b}.crm-ranking button.crm-ranking-row{cursor:pointer}.crm-ranking button.crm-ranking-row:hover{border-color:#deb3b0;background:#fff7f6}

.quote-status{display:inline-flex!important;align-items:center;justify-content:center;border-radius:999px;padding:4px 8px!important;font-size:8px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.03em}.quote-status-issued{background:#eef2f5;color:#4f5962}.quote-status-sent{background:#eef5ff;color:#315c8f}.quote-status-accepted{background:#edf8ef;color:#26713c}.quote-status-rejected{background:#fff0ef;color:#a3332c}.quote-status-expired{background:#f3f0eb;color:#7c6848}.quote-status-converted{background:#edf8ef;color:#17642e}.budget-history-status,.budget-status-select{border:1px solid var(--grey-300);background:#fff;border-radius:9px;padding:7px 9px;font:inherit;font-size:9px;color:var(--ink)}.budget-history-filter{display:flex;gap:8px;align-items:center}.budget-history-filter input{flex:1}.budget-history-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.conversion-link{font-size:9px;color:#26713c;background:#edf8ef;border-radius:999px;padding:6px 8px}.client-quote-card details summary{cursor:pointer;font-size:9px;margin-top:8px}

.client-commercial-tools{margin:16px 0;padding:15px;border:1px solid var(--grey-300);background:#fff;border-radius:16px}.commercial-tools-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:12px}.commercial-tools-head h2{margin:2px 0 0;font-size:18px}.commercial-tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.commercial-tools-grid>div{background:#f8f9fa;border:1px solid #e7e9eb;border-radius:12px;padding:11px}.commercial-tools-grid h3{font-size:11px;margin:0 0 8px}.commercial-mini-list{display:grid;gap:6px}.commercial-mini-item{width:100%;border:1px solid #e2e5e7;background:#fff;border-radius:9px;padding:8px 9px;text-align:left;display:flex;flex-direction:column;gap:2px;font:inherit;cursor:pointer}.commercial-mini-item.static{cursor:default}.commercial-mini-item strong{font-size:9.5px}.commercial-mini-item span,.commercial-mini-item small{font-size:8.4px;color:#68717a}.commercial-mini-item:hover:not(.static){border-color:#d7aaa6;background:#fff9f8}

.client-assets-panel,.client-permissions-panel{margin-top:12px;border:1px solid #dfe3e5;border-radius:13px;background:#fbfcfc;overflow:hidden}.client-assets-panel summary,.client-permissions-panel summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}.client-assets-panel summary::-webkit-details-marker,.client-permissions-panel summary::-webkit-details-marker{display:none}.client-assets-panel summary>div,.client-permissions-panel summary>div{display:flex;flex-direction:column;gap:2px}.client-assets-panel summary strong{font-size:10px}.client-assets-panel summary span{font-size:8.5px;color:#6b737b}.client-assets-body{padding:0 13px 13px}.client-asset-row{display:grid;grid-template-columns:1fr .8fr 1fr 1fr 1.4fr auto;gap:7px;align-items:end;border-top:1px solid #eceeef;padding:10px 0}.client-asset-row label{display:flex;flex-direction:column;gap:4px}.client-asset-row label span{font-size:7.8px;font-weight:700;color:#5f676e}.client-asset-row input{width:100%;box-sizing:border-box;border:1px solid #d9dde0;border-radius:8px;padding:7px 8px;font:inherit;font-size:8.8px}.client-assets-empty{padding:10px 0;color:#747c83;font-size:9px}.client-360-launch{margin-top:12px}.client-360-panel{margin-top:9px;border:1px solid #dfe3e5;background:#fff;border-radius:14px;padding:14px}.client-360-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.client-360-head h3{margin:2px 0 0}.client-360-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.client-360-grid section{border:1px solid #e6e9eb;background:#fafbfb;border-radius:11px;padding:10px}.client-360-grid h4{font-size:9.5px;margin:0 0 7px;text-transform:uppercase;letter-spacing:.03em}.mini-data-card{display:flex;flex-direction:column;gap:2px;border-top:1px solid #eceeef;padding:6px 0}.mini-data-card:first-of-type{border-top:0}.mini-data-card strong{font-size:9px}.mini-data-card span,.mini-data-card small{font-size:8px;color:#697178}

.task-editor{border:1px solid #e1e5e7;background:#f8f9fa;border-radius:12px;padding:11px;margin-bottom:10px}.task-edit-grid{display:grid;grid-template-columns:2fr 1fr;gap:9px}.task-edit-grid label{display:flex;flex-direction:column;gap:4px}.task-edit-grid span{font-size:8px;font-weight:700}.task-edit-grid input,.task-edit-grid textarea{border:1px solid #d8dcdf;background:#fff;border-radius:8px;padding:8px;font:inherit;font-size:9px}.task-wide{grid-column:1/-1}.task-edit-actions{display:flex;gap:7px;margin-top:8px}.task-list{display:grid;gap:7px}.task-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e3e6e8;background:#fbfcfc;border-radius:11px;padding:9px 10px}.task-row>div:first-child{display:flex;flex-direction:column;gap:2px}.task-row strong{font-size:9.5px}.task-row span,.task-row small{font-size:8px;color:#68717a}.task-row.task-done{opacity:.65}.task-row-actions{display:flex;gap:6px}

.article-import-card{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;border:1px solid var(--grey-300);background:#fff;border-radius:16px;padding:15px;margin-bottom:14px}.article-import-card h2{font-size:17px;margin:2px 0 3px}.article-import-card p{font-size:9px;color:#677078;margin:0}.article-import-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.article-import-actions input{font-size:8px;max-width:260px}.article-margin-summary{margin-top:12px}.margin-comparator-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}.margin-comparator-head strong{font-size:9.5px}.margin-comparator-head span{font-size:8.5px;color:#666f77}.margin-comparator-table{display:grid;border:1px solid #e2e5e7;border-radius:10px;overflow:hidden}.margin-row{display:grid;grid-template-columns:1.1fr 1fr .8fr .55fr .85fr .8fr .7fr;gap:8px;padding:7px 8px;border-top:1px solid #eceeef;align-items:center}.margin-row:first-child{border-top:0}.margin-row span{font-size:8px}.margin-header{background:#f4f6f7;font-weight:800;color:#555e66}.margin-row.best-cost{background:#f0f8f1}.margin-row.best-cost span:first-child:after{content:' · mejor coste';font-size:7px;color:#297640}.price-history-list{display:grid;gap:5px}.price-history-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;border-bottom:1px solid #eceeef;padding:6px 0}.price-history-row span,.price-history-row strong,.price-history-row small{font-size:8.4px}

.settings-extra-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.settings-extra-card{border:1px solid var(--grey-300);background:#fff;border-radius:15px;padding:15px}.settings-extra-card h2{margin:2px 0 5px;font-size:17px}.settings-extra-card p{font-size:9px;color:#68717a}.staff-editor{border:1px solid #e1e4e7;background:#f8f9fa;border-radius:11px;padding:10px;margin:9px 0}.staff-new-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.staff-new-grid label,.staff-card>label{display:flex;flex-direction:column;gap:4px}.staff-new-grid span,.staff-card label>span{font-size:8px;font-weight:700}.staff-new-grid input,.staff-new-grid select,.staff-card select{border:1px solid #d8dcdf;border-radius:8px;background:#fff;padding:7px;font:inherit;font-size:8.8px}.staff-editor-actions{display:flex;gap:7px;margin-top:8px}.staff-list{display:grid;gap:8px;margin-top:10px}.staff-card{border:1px solid #e2e5e7;background:#fafbfb;border-radius:11px;padding:10px}.staff-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:8px}.staff-card-head>div{display:flex;flex-direction:column}.staff-card-head strong{font-size:9.5px}.staff-card-head span{font-size:8px;color:#68717a}.staff-permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:8px 0}

.pvp-commercial-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.pvp-commercial-pill{display:inline-flex;border:1px solid #e0e3e5;border-radius:999px;padding:4px 7px;background:#f7f8f9;font-size:8px;color:#596168}.pvp-commercial-pill.available{background:#eef8f0;color:#286c3b}.pvp-commercial-pill.replacement{background:#fff4e8;color:#805526}

@media(max-width:980px){.crm-dashboard-grid,.settings-extra-grid,.client-360-grid{grid-template-columns:1fr}.client-asset-row{grid-template-columns:1fr 1fr}.client-asset-row .asset-notes{grid-column:1/-1}.margin-row{grid-template-columns:1fr 1fr 1fr 1fr}.margin-row span:nth-child(n+5){grid-row:auto}.article-import-card{align-items:stretch;flex-direction:column}.article-import-actions{justify-content:flex-start}}
@media(max-width:650px){.task-edit-grid,.staff-new-grid,.staff-permission-grid{grid-template-columns:1fr}.client-asset-row{grid-template-columns:1fr}.budget-history-filter{flex-direction:column;align-items:stretch}.budget-history-actions>*{width:100%}.margin-comparator-table{overflow-x:auto}.margin-row{min-width:620px}.crm-stat-grid{grid-template-columns:1fr 1fr}}
.budget-margin-summary{margin-top:12px;border:1px dashed #cfd7d3;background:#f8fbf8;border-radius:12px;padding:11px}.budget-margin-head{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center}.budget-margin-head>div{display:flex;flex-direction:column;gap:2px}.budget-margin-head span{font-size:8px;color:#697178}.budget-margin-head strong{font-size:9.5px}.budget-margin-warning{font-size:8px;color:#875b2a;margin:7px 0}.budget-margin-summary details summary{cursor:pointer;font-size:8.5px;margin-top:7px}.budget-margin-lines{display:grid;gap:4px;margin-top:6px}.budget-margin-lines>div{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e5ebe6;padding-top:5px}.budget-margin-lines span,.budget-margin-lines strong{font-size:8px}.commercial-meta-pill{display:inline-flex;border:1px solid #e0e3e5;border-radius:999px;padding:4px 7px;background:#f7f8f9;font-size:8px;color:#596168}.commercial-meta-pill.replacement{background:#fff4e8;color:#805526}
@media(max-width:700px){.budget-margin-head{grid-template-columns:1fr}.budget-margin-lines>div{flex-direction:column;gap:2px}}

/* ===== V19 · Suite comercial y administrativa ===== */
.enterprise-top-tools{display:flex;align-items:center;gap:8px;position:relative;margin-left:auto;margin-right:8px}.enterprise-search-wrap{position:relative;min-width:320px}.enterprise-search-wrap>input{width:100%;height:38px;border:1px solid #d8dde5;border-radius:10px;padding:0 62px 0 12px;background:#fff;font-size:12px}.enterprise-search-wrap>kbd{position:absolute;right:8px;top:8px;border:1px solid #d7dce4;border-radius:6px;padding:3px 6px;background:#f7f8fa;color:#687080;font-size:9px}.enterprise-search-results{position:absolute;z-index:1200;top:44px;left:0;width:min(520px,80vw);max-height:68vh;overflow:auto;background:#fff;border:1px solid #dfe3e9;border-radius:12px;box-shadow:0 18px 50px rgba(10,20,35,.16);padding:8px}.enterprise-search-results section h4{margin:8px 8px 4px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#777}.enterprise-search-results button{width:100%;display:flex;flex-direction:column;gap:2px;text-align:left;border:0;background:transparent;padding:9px 10px;border-radius:8px}.enterprise-search-results button:hover{background:#f4f6f8}.enterprise-search-results strong{font-size:12px}.enterprise-search-results small{font-size:10px;color:#6c7480}.enterprise-bell{position:relative;width:38px;height:38px;border-radius:10px;border:1px solid #d8dde5;background:#fff;cursor:pointer}.enterprise-bell b{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;border-radius:9px;background:#d71f2b;color:#fff;display:grid;place-items:center;font-size:9px;padding:0 4px}.enterprise-notification-panel{position:absolute;z-index:1250;right:0;top:46px;width:min(410px,92vw);max-height:72vh;overflow:auto;background:#fff;border:1px solid #dfe3e9;border-radius:14px;box-shadow:0 20px 55px rgba(10,20,35,.18);padding:10px}.enterprise-notify-head,.enterprise-notify-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px}.enterprise-notify-head div{display:flex;flex-direction:column}.enterprise-notify-head small{color:#777}.enterprise-notification-panel article{display:flex;flex-direction:column;gap:3px;padding:10px 8px;border-top:1px solid #edf0f3}.enterprise-notification-panel article.read{opacity:.65}.enterprise-notification-panel article strong{font-size:11px}.enterprise-notification-panel article span,.enterprise-notification-panel article small{font-size:10px;color:#666}.enterprise-notify-head button,.enterprise-notify-foot button{border:1px solid #d8dde5;background:#fff;border-radius:8px;padding:6px 8px;font-size:10px}.enterprise-empty{padding:16px;text-align:center;color:#7a818b;font-size:11px}.enterprise-toast{position:fixed;z-index:9999;right:18px;bottom:18px;max-width:420px;padding:12px 16px;border-radius:10px;background:#171b22;color:#fff;box-shadow:0 12px 34px rgba(0,0,0,.25);transform:translateY(20px);opacity:0;pointer-events:none;transition:.2s}.enterprise-toast.show{transform:none;opacity:1}.enterprise-toast.success{background:#166534}.enterprise-toast.error{background:#991b1b}.enterprise-internal-note{border-left:3px solid #e1aa00;padding-left:12px}.budget-line-mini{display:flex;flex-direction:column;gap:2px}.budget-line-mini span{font-size:8px;color:#777}.budget-line-mini input{width:85px}.enterprise-dashboard{margin:18px 0 28px;background:#fff;border:1px solid #e1e5ea;border-radius:16px;padding:16px}.enterprise-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.enterprise-kpis article{padding:14px;border:1px solid #e5e8ec;border-radius:12px;background:#fafbfc;display:flex;flex-direction:column;gap:4px}.enterprise-kpis span{font-size:10px;color:#6b7280}.enterprise-kpis strong{font-size:19px}.enterprise-kpis small{font-size:9px;color:#777}.enterprise-analysis-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 10px}.enterprise-analysis-toolbar select,.enterprise-analysis-toolbar input{height:34px;border:1px solid #d7dce3;border-radius:8px;padding:0 8px}.enterprise-table{overflow:auto;border:1px solid #e4e7eb;border-radius:10px}.enterprise-table>div{display:grid;grid-template-columns:2fr repeat(5,1fr);gap:8px;padding:8px 10px;border-top:1px solid #edf0f2;font-size:10px;min-width:720px}.enterprise-table>div:first-child{border-top:0}.enterprise-table-head{font-weight:700;background:#f4f6f8}.enterprise-commercial-performance{margin-top:14px}.enterprise-commercial-performance summary{cursor:pointer;font-weight:700}.enterprise-settings-wide{grid-column:1/-1}.enterprise-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.enterprise-settings-form label{display:flex;flex-direction:column;gap:5px;font-size:10px}.enterprise-settings-form .wide{grid-column:1/-1}.enterprise-settings-form textarea{min-height:70px;resize:vertical}.enterprise-settings-form input,.enterprise-settings-form textarea,.settings-extra-card select{border:1px solid #d8dde5;border-radius:8px;padding:8px;background:#fff}.enterprise-inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.enterprise-check{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:10px}.enterprise-check small{color:#a16207}.enterprise-session{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #eceff2}.enterprise-session div{display:flex;flex-direction:column}.enterprise-session span,.enterprise-session small{font-size:9px;color:#737b86}.enterprise-select-record{display:flex;align-items:center;gap:5px;font-size:9px;color:#6b7280;margin-bottom:4px}.enterprise-order-tools{margin-top:10px;border-top:1px dashed #d8dde5;padding-top:8px}.enterprise-order-tools summary{cursor:pointer;font-weight:700;font-size:10px}.enterprise-order-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}.enterprise-order-grid textarea{width:100%;min-height:70px}.enterprise-order-grid button,.enterprise-payment-box button{border:1px solid #d6dce3;border-radius:7px;background:#fff;padding:6px 8px;cursor:pointer}.enterprise-timeline{display:flex;flex-direction:column;gap:7px;margin-top:7px}.enterprise-timeline div{display:grid;grid-template-columns:120px 1fr;gap:8px;font-size:9px}.enterprise-timeline time{color:#777}.enterprise-payment-box{display:flex;flex-direction:column;gap:7px}.enterprise-payment-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;padding:4px 0;font-size:9px}.enterprise-bulk-bar{position:sticky;top:6px;z-index:20;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 10px;margin-bottom:10px;border:1px solid #e1e5e9;border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 5px 16px rgba(0,0,0,.06)}.enterprise-bulk-bar select,.enterprise-bulk-bar button{height:32px;border:1px solid #d8dde5;border-radius:7px;background:#fff;padding:0 8px;font-size:9px}.enterprise-modal{position:fixed;z-index:10000;inset:0;background:rgba(8,13,20,.5);display:grid;place-items:center;padding:20px}.enterprise-modal>section{width:min(760px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:16px;padding:16px}.enterprise-modal header{display:flex;justify-content:space-between;align-items:flex-start}.enterprise-modal header button{border:0;background:transparent;font-size:24px;cursor:pointer}.enterprise-attachment{display:flex;justify-content:space-between;gap:10px;padding:9px;border-bottom:1px solid #edf0f2}.enterprise-attachment div:first-child{display:flex;flex-direction:column}.enterprise-attachment small{font-size:9px;color:#777}.enterprise-upload{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid #e8ebee}.enterprise-upload small{width:100%;color:#777}.enterprise-highlight{outline:3px solid rgba(215,31,43,.25);transition:.3s}
@media(max-width:900px){.enterprise-search-wrap{min-width:180px}.enterprise-kpis{grid-template-columns:1fr 1fr}.enterprise-order-grid{grid-template-columns:1fr}.enterprise-settings-form{grid-template-columns:1fr}.enterprise-settings-form .wide{grid-column:auto}.enterprise-top-tools{order:3;width:100%;margin:6px 0}.enterprise-search-wrap{flex:1}.enterprise-table>div{min-width:650px}}
@media(max-width:560px){.enterprise-kpis{grid-template-columns:1fr}.enterprise-search-wrap>kbd{display:none}.enterprise-search-wrap>input{padding-right:10px}}
.enterprise-mandatory-box{margin-top:14px;padding:14px;border:1px solid var(--border,#d8dde5);border-radius:12px;background:rgba(127,127,127,.04)}
.enterprise-mandatory-box>strong{display:block;margin-bottom:8px}
.budget-response-audit{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:10px;padding:9px 11px;border-radius:9px;background:rgba(20,110,72,.07);font-size:12px}
#ent-bulk-article-refs{width:100%;min-height:86px;margin:8px 0}

/* V19 · NOTIFICACIONES WEB PUSH / PWA */
.enterprise-push-status{margin-top:10px;border:1px solid #e2e5e8;border-radius:12px;background:#f8f9fa;padding:11px 12px;font-size:10px;color:#59636c;line-height:1.55}
.enterprise-push-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.enterprise-push-summary strong{font-size:11px;color:#252a2e}
.enterprise-push-device{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid #e7eaec}
.enterprise-push-device:first-of-type{border-top:0}
.enterprise-push-device small{display:block;color:#788088;margin-top:2px}
.enterprise-cron-help{margin-top:10px;padding-top:10px;border-top:1px solid #e1e5e8}
.enterprise-cron-help code{display:block;margin-top:6px;padding:8px 9px;border-radius:8px;background:#fff;border:1px solid #dfe3e6;color:#333;font-size:9px;overflow-wrap:anywhere;word-break:break-all;user-select:all}
@media(max-width:700px){.enterprise-push-device{align-items:flex-start;flex-direction:column}}
/* V20 · Compras */
.purchase-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.purchase-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:18px 0}.purchase-kpis article,.purchase-card,.purchase-order-card{background:#fff;border:1px solid #e2e5ea;border-radius:14px;padding:16px}.purchase-kpis span,.purchase-card small,.purchase-order-card small{display:block;color:#69717d;font-size:.82rem}.purchase-kpis strong{display:block;font-size:1.45rem;margin-top:6px}.purchase-section{margin:24px 0}.purchase-section>header{display:flex;align-items:end;justify-content:space-between;margin-bottom:10px}.purchase-table{overflow:auto;border:1px solid #e2e5ea;border-radius:12px}.purchase-table>div{display:grid;grid-template-columns:42px minmax(220px,2fr) repeat(6,minmax(90px,1fr));gap:8px;padding:10px 12px;border-bottom:1px solid #edf0f3;align-items:center;min-width:950px}.purchase-table.history>div{grid-template-columns:150px 1.4fr 1.5fr 70px 120px 120px;min-width:800px}.purchase-table .head{font-weight:700;background:#f6f7f9}.purchase-table small{display:block;color:#737b86}.purchase-card{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.purchase-order-card{margin-bottom:12px}.purchase-order-card header,.purchase-order-card footer{display:flex;justify-content:space-between;gap:8px;align-items:center}.purchase-order-card footer{justify-content:flex-end;margin-top:12px}.purchase-lines{margin-top:10px;border-top:1px solid #eee}.purchase-lines>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #f0f1f3}.purchase-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.purchase-form-grid label,.purchase-modal>label{display:flex;flex-direction:column;gap:5px}.purchase-form-grid .wide{grid-column:1/-1}.purchase-form-grid input,.purchase-form-grid textarea,.purchase-modal input,.purchase-modal select,.purchase-modal textarea{padding:10px;border:1px solid #ccd2d9;border-radius:8px}.purchase-create-lines>div{display:grid;grid-template-columns:1.5fr .7fr 1fr 1fr;gap:10px;align-items:end;padding:10px 0;border-bottom:1px solid #eee}.purchase-modal footer{margin-top:14px;display:flex;justify-content:flex-end}@media(max-width:760px){.purchase-form-grid{grid-template-columns:1fr}.purchase-form-grid .wide{grid-column:auto}.purchase-create-lines>div{grid-template-columns:1fr 1fr}.purchase-order-card header,.purchase-lines>div{align-items:flex-start;flex-direction:column}}

/* V20 JSON · personalización documental unificada */
.enterprise-doc-intro{margin:8px 0 10px;line-height:1.55}.enterprise-doc-scope{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 14px}.enterprise-doc-scope span{display:inline-flex;align-items:center;border:1px solid #e0e4e9;background:#f7f8fa;border-radius:999px;padding:6px 10px;font-size:9px;font-weight:700}.enterprise-doc-logo-row{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:center;padding:13px;border:1px solid #e1e5e9;background:#fafbfc;border-radius:12px;margin-bottom:12px}.enterprise-doc-logo-preview{height:105px;background:#fff;border:1px solid #dfe3e8;border-radius:10px;display:flex;align-items:center;justify-content:center;position:relative;padding:12px}.enterprise-doc-logo-preview img{max-width:100%;max-height:72px;object-fit:contain}.enterprise-doc-logo-preview span{position:absolute;left:8px;bottom:6px;font-size:8px;color:#7b838e}.enterprise-doc-file-label{display:flex;flex-direction:column;gap:6px;font-size:10px}.enterprise-doc-file-label small,.enterprise-settings-form label small{font-size:9px;color:#6f7782;line-height:1.4}.enterprise-doc-help{margin:12px 0;padding:12px 14px;border-left:4px solid #e23b33;background:#fff7f6;border-radius:8px;font-size:10px}.enterprise-doc-help ol{margin:7px 0 0 18px;padding:0;line-height:1.55}.enterprise-doc-save-state{display:inline-block;margin-left:10px;font-size:9px;color:#5f6874}.enterprise-settings-form label strong{font-size:10px}.enterprise-settings-form textarea{line-height:1.45}
@media(max-width:700px){.enterprise-doc-logo-row{grid-template-columns:1fr}.enterprise-doc-logo-preview{height:90px}.enterprise-doc-save-state{display:block;margin:8px 0 0}}

/* V20 JSON R2 · submenús y Compras reorganizado */
.module-subnav{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 18px;padding:7px;background:#fff;border:1px solid #dfe3e8;border-radius:12px;position:sticky;top:58px;z-index:18;box-shadow:0 4px 16px rgba(0,0,0,.03)}
.module-subnav button{border:0;background:transparent;border-radius:8px;padding:9px 12px;font:inherit;font-size:10px;font-weight:800;cursor:pointer;color:#4c5660}.module-subnav button:hover{background:#f4f5f7}.module-subnav button.active{background:var(--red);color:#fff}.module-subpanel.hidden{display:none!important}.admin-purchases-view{padding-bottom:28px}.purchase-page-heading{margin-bottom:0}
.purchase-dashboard-help{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.purchase-dashboard-help article{background:#fff;border:1px solid #e1e5e9;border-radius:14px;padding:15px;display:flex;flex-direction:column;gap:8px}.purchase-dashboard-help strong{font-size:13px}.purchase-dashboard-help span{font-size:10px;color:#66707b;line-height:1.5;flex:1}.purchase-dashboard-help button{align-self:flex-start}
.purchase-section>header p{margin:4px 0 0;font-size:10px;color:#6b7480;max-width:720px;line-height:1.45}.purchase-manual-note{background:#fff7f6;border-left:4px solid var(--red);padding:10px 12px;border-radius:8px;font-size:10px;line-height:1.5;margin:0 0 14px}.purchase-manual-lines-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 7px;padding-top:12px;border-top:1px solid #eceff2}.purchase-manual-lines-head small{display:block;color:#737c87;margin-top:2px}.purchase-manual-line{display:grid;grid-template-columns:1.1fr 2fr 80px 110px 90px 36px;gap:7px;align-items:end;padding:9px 0;border-bottom:1px solid #edf0f3}.purchase-manual-line label{display:grid;gap:4px;font-size:9px;font-weight:700;color:#626c77}.purchase-manual-line input{width:100%;box-sizing:border-box}.purchase-manual-line [data-remove-line]{height:38px;border:1px solid #efcecb;background:#fff7f6;color:#a43a32;border-radius:8px;font-size:18px;cursor:pointer}.purchase-modal footer{gap:8px}.purchase-receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.purchase-receipt-grid>section{background:#fff;border:1px solid #e2e5ea;border-radius:14px;padding:14px}.purchase-receipt-grid h3{margin:0 0 10px}.purchase-receipt-grid article{padding:9px 0;border-bottom:1px solid #edf0f3}.purchase-receipt-grid article strong,.purchase-receipt-grid article span,.purchase-receipt-grid article small{display:block}.purchase-receipt-grid article span{font-size:10px;margin-top:2px}.purchase-receipt-grid article small{font-size:9px;color:#707985;margin-top:3px}
@media(max-width:900px){.purchase-dashboard-help{grid-template-columns:1fr}.purchase-manual-line{grid-template-columns:1fr 1.5fr 70px 90px 80px 36px}.purchase-receipt-grid{grid-template-columns:1fr}.module-subnav{position:static}}
@media(max-width:650px){.purchase-manual-line{grid-template-columns:1fr 1fr}.purchase-manual-line .desc{grid-column:1/-1}.purchase-manual-line [data-remove-line]{width:100%}}
.purchase-catalog-picker{margin:12px 0 14px;padding:12px;border:1px solid #dfe3e8;border-radius:10px;background:#f8fafb;position:relative}.purchase-catalog-picker label{display:grid;gap:6px}.purchase-catalog-picker input{width:100%;box-sizing:border-box}.purchase-catalog-picker>small{display:block;margin-top:7px;color:#69717b}.purchase-catalog-results{margin-top:8px;display:grid;gap:5px;max-height:260px;overflow:auto;border-top:1px solid #e2e5e8;padding-top:8px}.purchase-catalog-results button{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(180px,1.5fr) auto;gap:10px;align-items:center;width:100%;text-align:left;border:1px solid #e1e4e8;background:#fff;border-radius:8px;padding:8px 10px;cursor:pointer}.purchase-catalog-results button:hover{border-color:#e23b33;background:#fff8f7}.purchase-catalog-results button small{white-space:nowrap;color:#66707a}.purchase-catalog-results p{margin:4px 0;color:#69717b}@media(max-width:760px){.purchase-catalog-results button{grid-template-columns:1fr}.purchase-catalog-results button small{white-space:normal}}


/* V20 JSON R4 · reorganización de interfaz */
.admin-client-filters{grid-template-columns:minmax(260px,1fr) 190px 260px;align-items:center}.admin-client-list-help{margin:-2px 0 10px;display:flex;justify-content:space-between;gap:12px;color:var(--grey-700);font-size:10px}.admin-client-list-help span:first-child{font-weight:900;color:var(--ink)}.admin-user-card-v2{padding:0;overflow:hidden}.admin-user-card-v2>summary.admin-user-summary{padding:11px 14px;border:0;cursor:pointer;list-style:none;transition:background .15s ease}.admin-user-card-v2>summary.admin-user-summary::-webkit-details-marker{display:none}.admin-user-card-v2>summary.admin-user-summary:hover{background:#f8f9fa}.admin-user-card-v2[open]>summary.admin-user-summary{background:#fafafa;border-bottom:1px solid var(--grey-300)}.admin-user-card-v2 .admin-user-title{align-items:center}.admin-user-card-v2 .admin-user-title strong{font-size:14px}.admin-user-card-v2 .admin-user-mini{margin-top:5px;gap:8px 16px;font-size:9.5px;align-items:center}.admin-user-expand-hint{margin-left:auto;color:var(--red-dark)!important;font-weight:800}.admin-user-card-v2[open] .admin-user-expand-hint{font-size:0}.admin-user-card-v2[open] .admin-user-expand-hint:after{content:'Cerrar ficha ▴';font-size:9.5px}.admin-user-card-v2 .admin-edit-form{padding:15px}.status-active{background:#eaf7ee;color:#157a3d}.status-blocked{background:#eceeef;color:#555}.settings-page-heading{margin-bottom:10px}.settings-subnav{margin-bottom:16px;position:sticky;top:72px;z-index:12;background:#f4f5f6;padding:7px;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.04)}.settings-extra-grid{align-items:start}.settings-group-panel.hidden{display:none!important}.series-selector-bar{margin:12px 0;padding:12px 14px;border:1px solid var(--grey-300);border-radius:12px;background:#fff;display:flex;align-items:end;justify-content:space-between;gap:14px}.series-selector-bar label{display:grid;gap:5px;min-width:300px}.series-selector-bar label span{font-size:10px;font-weight:900;text-transform:uppercase;color:var(--grey-700)}.series-selector-bar select{min-height:42px;border:1px solid var(--grey-300);border-radius:9px;padding:0 10px;background:#fff;font:inherit}.series-selector-bar small{color:var(--grey-700)}.document-config-tabs{margin:16px 0 12px;display:flex;gap:6px;overflow:auto;padding-bottom:2px}.document-config-tabs button{flex:0 0 auto;border:1px solid var(--grey-300);border-radius:999px;background:#fff;padding:8px 11px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.document-config-tabs button.active{background:var(--red);border-color:var(--red);color:#fff}.enterprise-doc-shared-note{grid-column:1/-1;padding:11px 13px;border-radius:9px;background:#f5f6f7;color:var(--grey-700);font-size:10px}#enterprise-document-settings-card .enterprise-settings-form.hidden{display:none!important}#admin-dashboard-view .suggestions-section{margin-top:24px}#admin-purchases-view{padding-top:0}
@media(max-width:900px){.admin-client-filters{grid-template-columns:1fr 1fr}.admin-client-filters #admin-search{grid-column:1/-1}.settings-subnav{position:static}}@media(max-width:640px){.admin-client-filters{grid-template-columns:1fr}.admin-client-filters #admin-search{grid-column:auto}.admin-client-list-help{display:grid}.admin-user-mini{display:grid!important;grid-template-columns:1fr 1fr}.admin-user-expand-hint{margin-left:0}.series-selector-bar{display:grid}.series-selector-bar label{min-width:0}}

/* V20 JSON R4 · compras y precios */
.purchase-supplier-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.purchase-supplier-inline label{margin:0}.purchase-supplier-inline .btn-secondary{white-space:nowrap;min-height:38px}.sales-price-line{grid-template-columns:1.05fr 2fr 80px 120px 36px}.sales-price-line [data-sale-remove]{height:38px;border:1px solid #efcecb;background:#fff7f6;color:#a43a32;border-radius:8px;font-size:18px;cursor:pointer}@media(max-width:760px){.purchase-supplier-inline{grid-template-columns:1fr}.sales-price-line{grid-template-columns:1fr 1fr}.sales-price-line .desc{grid-column:1/-1}}

/* V20 JSON R6: layout persistente + stock */
html,body{min-height:100%;}
body{min-height:100vh;display:flex;flex-direction:column;}
main.container{flex:1 0 auto;width:100%;}
.footer{margin-top:auto;flex:0 0 auto;}
.permission-hidden{display:none!important;}
.stock-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 180px auto;gap:10px;margin:14px 0}.stock-toolbar input,.stock-toolbar select,.stock-bulk-bar input{min-height:40px;border:1px solid var(--grey-300);border-radius:9px;padding:8px 10px;background:#fff;font:inherit}.stock-bulk-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#fff;border:1px solid var(--grey-300);border-radius:12px;padding:11px;margin-bottom:12px}.stock-bulk-bar input[type=number]{width:130px}.stock-bulk-bar input[type=text]{min-width:260px;flex:1}.stock-summary{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.stock-summary span{background:#fff;border:1px solid var(--grey-300);border-radius:999px;padding:7px 10px;font-size:10px;font-weight:800}.stock-list{background:#fff;border:1px solid var(--grey-300);border-radius:14px;overflow:auto}.stock-row{display:grid;grid-template-columns:34px minmax(220px,2fr) 90px 90px 90px 90px 130px;gap:8px;align-items:center;padding:9px 12px;border-bottom:1px solid #edf0f3;min-width:850px}.stock-row.head{font-weight:900;background:#f6f7f9;font-size:10px}.stock-row strong{display:block}.stock-row small{display:block;color:#737b86}.stock-number{font-weight:800;text-align:center}.stock-inline{display:flex;gap:5px}.stock-inline input{width:70px;border:1px solid var(--grey-300);border-radius:7px;padding:6px}.stock-inline button{border:1px solid var(--grey-300);background:#fff;border-radius:7px;cursor:pointer}.stock-low{background:#fff9e9}.stock-zero{color:#9b342d}@media(max-width:760px){.stock-toolbar{grid-template-columns:1fr}.stock-bulk-bar{align-items:stretch}.stock-bulk-bar input[type=text],.stock-bulk-bar input[type=number]{width:100%;min-width:0}}

.stock-movements-card{margin-top:12px;background:#fff;border:1px solid var(--grey-300);border-radius:12px;padding:12px}.stock-movements-card summary{font-weight:900;cursor:pointer}.stock-movement{display:grid;grid-template-columns:160px 170px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #edf0f3;font-size:10px}.stock-movement small{color:#737b86}

/* V20 JSON R6 · stock y trazabilidad */
.stock-toolbar{grid-template-columns:minmax(320px,1fr) 160px auto auto auto}.stock-search-wrap,.stock-issue-search{position:relative}.stock-search-wrap>input{width:100%}.stock-search-results{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 5px);background:#fff;border:1px solid var(--grey-300);border-radius:10px;box-shadow:0 14px 34px rgba(22,28,36,.16);max-height:340px;overflow:auto}.stock-search-results button{width:100%;display:grid;grid-template-columns:150px 1fr auto;gap:8px;text-align:left;align-items:center;border:0;border-bottom:1px solid #edf0f3;background:#fff;padding:10px 12px;cursor:pointer}.stock-search-results button:hover{background:#fff7f6}.stock-search-results span,.stock-search-results small{font-size:10px;color:#68717d}.stock-search-empty{padding:14px;color:#737b86;font-size:10px}.stock-issue-search{margin:12px 0}.stock-issue-search label{display:grid;gap:5px}.stock-issue-search input{padding:10px;border:1px solid #ccd2d9;border-radius:8px}.stock-issue-lines{border:1px solid #e2e5ea;border-radius:10px;margin:10px 0 14px}.stock-issue-line{display:grid;grid-template-columns:1fr 130px 38px;gap:10px;align-items:end;padding:10px;border-bottom:1px solid #edf0f3}.stock-issue-line:last-child{border-bottom:0}.stock-issue-line strong,.stock-issue-line small{display:block}.stock-issue-line small{color:#737b86}.stock-issue-line label{display:grid;gap:4px;font-size:9px;font-weight:700}.stock-issue-line input{padding:8px;border:1px solid #ccd2d9;border-radius:7px}.stock-issue-line button{height:36px;border:1px solid #efcecb;border-radius:7px;background:#fff7f6;color:#a43a32;cursor:pointer}.purchase-needs-table>div{grid-template-columns:42px minmax(220px,2fr) repeat(6,minmax(90px,1fr));}.stock-movement b{font-weight:900}.stock-low{background:#fff9e9}@media(max-width:900px){.stock-toolbar{grid-template-columns:1fr 1fr}.stock-search-wrap{grid-column:1/-1}.stock-search-results button{grid-template-columns:1fr}.stock-issue-line{grid-template-columns:1fr 100px 38px}}@media(max-width:620px){.stock-toolbar{grid-template-columns:1fr}.stock-search-wrap{grid-column:auto}}

/* V20 JSON R7 · navegador completo de artículos */
.article-catalog-browser{margin-top:15px;padding:18px;border:1px solid var(--grey-300);border-radius:16px;background:#fff}
.article-catalog-browser-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.article-catalog-browser-head h2{margin:3px 0 4px}.article-catalog-browser-head p{margin:0;color:var(--grey-700);font-size:12px}
.article-catalog-filters{display:grid;grid-template-columns:2fr repeat(5,minmax(130px,1fr)) auto;gap:9px;align-items:end;padding:12px;border:1px solid var(--grey-200);border-radius:12px;background:#f8f9fa}
.article-catalog-filters label{display:grid;gap:5px}.article-catalog-filters label span{font-size:9.5px;font-weight:800;text-transform:uppercase;color:var(--grey-700)}
.article-catalog-filters input,.article-catalog-filters select{width:100%;min-height:38px;box-sizing:border-box;border:1px solid var(--grey-300);border-radius:8px;padding:6px 9px;background:#fff;font:inherit}
.article-catalog-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 2px 8px;color:var(--grey-700);font-size:11px}.article-catalog-summary strong{color:var(--black)}
.article-catalog-table-wrap{overflow:auto;border:1px solid var(--grey-300);border-radius:12px}
.article-catalog-table{width:100%;border-collapse:collapse;min-width:980px;background:#fff}.article-catalog-table th{position:sticky;top:0;z-index:1;background:#f3f4f5;text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:.02em;padding:9px 10px;border-bottom:1px solid var(--grey-300)}
.article-catalog-table td{padding:8px 10px;border-bottom:1px solid #eceeef;font-size:11px;vertical-align:middle}.article-catalog-table tbody tr:hover{background:#fafafa}.article-catalog-table tbody tr:last-child td{border-bottom:0}
.article-catalog-table td small{display:block;margin-top:2px;color:var(--grey-700);font-size:9.5px}.article-catalog-table .numeric{text-align:right;white-space:nowrap}.article-catalog-table .is-low{background:#fff4dc;color:#7f4c00}
.article-availability-pill,.article-origin-pill{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:999px;background:#f0f2f3;font-size:9px;font-weight:800;white-space:nowrap}.article-origin-pill.custom{background:#edf8ef;color:#16753a}.article-origin-pill.tariff{background:#f1f3f5;color:#495057}.availability-in_stock{background:#edf8ef;color:#16753a}.availability-low_stock{background:#fff4dc;color:#7f4c00}.availability-on_order{background:#eef4ff;color:#285ea8}.availability-discontinued{background:#f9ecec;color:#9f2d2d}
.article-list-edit{min-height:30px;padding:4px 10px;font-size:10px;white-space:nowrap}
.article-catalog-pagination{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:13px;flex-wrap:wrap}.article-page-buttons{display:flex;gap:5px;align-items:center}.article-page-buttons button{min-width:32px;height:32px;border:1px solid var(--grey-300);border-radius:8px;background:#fff;font:inherit;cursor:pointer}.article-page-buttons button.active{background:var(--red);border-color:var(--red);color:#fff;font-weight:800}.article-page-buttons span{padding:0 3px;color:var(--grey-700)}
@media(max-width:1250px){.article-catalog-filters{grid-template-columns:2fr repeat(3,minmax(135px,1fr))}.article-catalog-filters .wide{grid-column:span 2}}
@media(max-width:760px){.article-catalog-browser-head{flex-direction:column}.article-catalog-filters{grid-template-columns:1fr 1fr}.article-catalog-filters .wide{grid-column:1/-1}.article-catalog-summary{align-items:flex-start;flex-direction:column}.article-catalog-pagination>.btn-ghost{display:none}}
@media(max-width:480px){.article-catalog-filters{grid-template-columns:1fr}.article-catalog-filters .wide{grid-column:auto}}


/* R8 · PEDIDOS COMPACTOS / DESPLEGABLES */
.order-card-collapsible{padding:0;overflow:hidden}
.order-card-collapsible>summary{list-style:none}
.order-card-collapsible>summary::-webkit-details-marker{display:none}
.order-card-summary{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 16px;cursor:pointer;user-select:none}
.order-card-summary:hover{background:#fafbfc}
.order-summary-main{min-width:0;display:grid;gap:2px}
.order-summary-main h3{margin:1px 0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-summary-main p{margin:0;color:var(--grey-700);font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-card-summary .order-card-total{grid-template-columns:auto;align-items:end;min-width:150px}
.order-card-summary .order-card-total>strong{font-size:15px}
.order-expand-hint{font-size:9px;color:var(--grey-700);font-weight:700}
.order-expand-hint:before{content:'▸ ';font-size:10px}
.order-card-collapsible[open] .order-expand-hint:before{content:'▾ '}
.order-card-collapsible[open] .order-expand-hint{color:var(--red)}
.order-card-expanded{padding:0 16px 16px;border-top:1px solid #eceeef}
.order-card-collapsible[open] .order-card-summary{background:#fbfbfc}
@media(max-width:760px){.order-card-summary{align-items:flex-start}.order-card-summary .order-card-total{min-width:110px}.order-summary-main p{white-space:normal}.order-card-summary .status-stack{justify-content:flex-end}}

/* R9 · emails documentales, autocompletado y medias reales */
.orders-filter-search small{display:block;margin-top:4px;color:var(--grey-700);font-size:8.5px}.article-average-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.article-average-grid>div{border:1px solid var(--grey-300);background:#fff;border-radius:10px;padding:12px;display:grid;gap:4px}.article-average-grid span{font-size:9px;text-transform:uppercase;font-weight:800;color:var(--grey-700)}.article-average-grid strong{font-size:18px}.article-average-grid small{font-size:9px;color:var(--grey-700)}@media(max-width:760px){.article-average-grid{grid-template-columns:1fr}}

/* V20 JSON R10 · Artículos unificados + editor modal + sustituciones */
body.modal-open{overflow:hidden}
.article-editor-dialog{width:min(1180px,96vw)!important;max-height:90vh!important;overflow:auto!important;margin:0!important;padding:20px!important}
.article-editor-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.article-subnav{margin-top:8px}
#article-stock-panel .admin-page-heading{margin-top:0}
.replacement-manager-form{display:grid;grid-template-columns:minmax(240px,1fr) 38px minmax(240px,1fr) auto;gap:10px;align-items:end;padding:14px;border:1px solid var(--grey-200);border-radius:12px;background:#f8f9fa;margin:12px 0}
.replacement-manager-form label{display:grid;gap:5px;position:relative}.replacement-manager-form label>span{font-size:9.5px;font-weight:800;text-transform:uppercase;color:var(--grey-700)}
.replacement-manager-form input{width:100%;box-sizing:border-box;min-height:40px;border:1px solid var(--grey-300);border-radius:8px;padding:7px 10px;background:#fff;font:inherit}
.replacement-arrow{height:40px;display:grid;place-items:center;font-size:24px;font-weight:900;color:var(--red)}
.replacement-help{display:grid;gap:5px;padding:12px 14px;margin-bottom:14px;border-left:3px solid var(--red);background:#fff7f6;border-radius:8px;font-size:11px}.replacement-help strong{font-size:12px}.replacement-help span{color:var(--grey-700)}
.replacement-table{min-width:760px}.replacement-table td:last-child{white-space:nowrap}
@media(max-width:850px){.replacement-manager-form{grid-template-columns:1fr}.replacement-arrow{height:auto;transform:rotate(90deg)}.article-editor-dialog{width:96vw!important;padding:14px!important}}

/* V20 JSON R11 · códigos internos + vista previa de pedidos proveedor */
.purchase-order-meta-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}
.purchase-order-meta-preview>div{border:1px solid #dfe3e8;border-radius:9px;background:#f8fafb;padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.purchase-order-meta-preview span{font-size:11px;font-weight:700;text-transform:uppercase;color:#68727d}
.purchase-order-meta-preview strong{font-size:15px;color:#18212b}
.purchase-order-meta-preview small{font-size:10px;color:#75808a;line-height:1.35}
.purchase-form-grid label small{display:block;margin-top:4px;color:#6c7680;font-size:10px;line-height:1.3}
@media(max-width:700px){.purchase-order-meta-preview{grid-template-columns:1fr}}

/* V20 JSON R12 · stock paginado y control masivo */
.stock-filter-grid{display:grid;grid-template-columns:minmax(260px,2fr) repeat(5,minmax(130px,1fr)) auto auto;gap:9px;align-items:end;margin:14px 0}.stock-filter-grid label{display:grid;gap:5px;font-size:9px;font-weight:800;text-transform:uppercase}.stock-filter-grid label.wide{grid-column:span 2}.stock-filter-grid input,.stock-filter-grid select{min-height:40px;border:1px solid var(--grey-300);border-radius:9px;padding:8px 10px;background:#fff;font:inherit;text-transform:none}.stock-action-row{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:10px}.btn-danger{border:1px solid #df4a42;background:#fff;color:#b4312b;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer}.btn-danger:hover{background:#fff1f0}.stock-select-all-results{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:800}.stock-value-positive{color:#147a3c!important}.stock-value-nonpositive{color:#c3322d!important}.stock-pagination{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0}.stock-row{grid-template-columns:var(--stock-grid-columns,34px minmax(250px,2fr) 90px 90px 90px 90px 135px)}.stock-row.stock-low{box-shadow:inset 4px 0 0 #e8b02f}@media(max-width:1200px){.stock-filter-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}.stock-filter-grid label.wide{grid-column:span 2}}@media(max-width:720px){.stock-filter-grid{grid-template-columns:1fr}.stock-filter-grid label.wide{grid-column:auto}.stock-action-row>*{flex:1 1 auto}}

/* =========================================================
   V20 JSON R13 · RESPONSIVE GLOBAL, MENU Y FOOTER
   ========================================================= */

/* Aprovecha mejor el espacio disponible sin perder márgenes cómodos. */
.container{
  width:min(calc(100% - 32px),1320px);
  max-width:1320px;
  margin-inline:auto;
  padding-inline:0;
}
main.container{flex:1 0 auto;width:min(calc(100% - 32px),1320px)}

/* Menú principal centrado en escritorio. */
.tool-tabs{
  display:flex;
  width:max-content;
  max-width:100%;
  margin:24px auto 10px;
  justify-content:center;
  align-items:stretch;
  flex-wrap:wrap;
}
.tool-tab{
  justify-content:center;
  text-align:center;
  white-space:normal;
}

/* El pie es una unidad centrada. */
.footer{
  width:100%;
  margin-top:auto;
  padding:16px 0 14px;
}
.footer-inner.footer-custom{
  width:min(calc(100% - 32px),1320px);
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:8px 22px;
  margin-inline:auto;
}
.footer-inner.footer-custom>span{flex:0 1 auto;text-align:center}
.app-version{
  display:block;
  width:min(calc(100% - 32px),1320px);
  margin:7px auto 0;
  text-align:center;
  white-space:normal;
  line-height:1.35;
}

/* El reloj no tapa el footer: JS calcula la altura real cuando el pie entra en pantalla. */
.global-clock{
  left:max(12px,env(safe-area-inset-left));
  bottom:max(12px,env(safe-area-inset-bottom));
  transition:bottom .18s ease,transform .18s ease;
}
body.clock-clear-footer .global-clock{
  bottom:calc(var(--footer-visible-height,58px) + 12px + env(safe-area-inset-bottom));
}

/* Protecciones globales ante desbordes. */
.tab-view,.module-subpanel,.purchase-section,.settings-panel,.admin-section,
.admin-view,.admin-orders-view,.admin-articles-view{min-width:0;max-width:100%}
input,select,textarea,button{max-width:100%}
.article-catalog-list,.stock-list,.purchase-needs-table,.purchase-orders-table,
.admin-orders-list,.admin-users-list{max-width:100%}

/* TABLET */
@media(max-width:1100px){
  .container,main.container,.footer-inner.footer-custom,.app-version{width:min(calc(100% - 28px),1000px)}
  .tool-tabs{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .tool-tab{padding:8px 9px;min-width:0;min-height:48px;font-size:11px;line-height:1.15}
  .tool-tab-icon{flex:0 0 16px;width:16px;height:16px}.tool-tab-icon svg{width:16px;height:16px}
  .topbar-inner{width:min(calc(100% - 28px),1000px);flex-wrap:wrap;justify-content:center}
  .brand{margin-right:auto}.account-zone{margin-left:auto}
}

/* TABLET PEQUEÑA / MÓVIL GRANDE */
@media(max-width:760px){
  .container,main.container,.footer-inner.footer-custom,.app-version{width:calc(100% - 24px)}
  .topbar{position:sticky;top:0;z-index:90}
  .topbar-inner{width:calc(100% - 20px);padding:10px 0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
  .brand{min-width:0;margin:0}.brand img,#brand-logo{max-width:min(45vw,190px);max-height:48px}
  .account-zone{margin:0}.account-copy{display:none}.account-toggle{padding:5px;min-width:44px;justify-content:center}
  .cart-toggle{padding:0 10px;min-width:44px;justify-content:center}.cart-toggle-label{display:none}

  .tool-tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px auto 12px;padding:5px;gap:5px;border-radius:12px}
  .tool-tab{font-size:10px;padding:7px 6px;gap:5px;min-height:50px}
  .tool-tab-icon{display:none}

  .module-subnav{
    position:static;
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:thin;
    justify-content:flex-start;
    padding:6px;
  }
  .module-subnav button{flex:0 0 auto;min-height:40px;padding:8px 11px}

  .admin-page-heading,.purchase-section>header,.orders-page-header,.article-catalog-browser-head{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  .admin-page-heading .btn-primary,.purchase-section>header .btn-primary{width:100%}

  /* Modales utilizables con teclado y barras del navegador móvil. */
  .article-editor-overlay,.purchase-modal-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay{
    padding:8px!important;
    align-items:flex-end!important;
  }
  .article-editor-dialog,.purchase-modal,.account-panel,.credit-request-modal,.shipping-cost-modal{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 16px)!important;
    border-radius:18px 18px 0 0!important;
  }

  /* Footer centrado y reloj por encima del pie en pantallas estrechas. */
  .footer-inner.footer-custom{flex-direction:column;gap:5px;font-size:10.5px}
  .app-version{font-size:8px;margin-top:5px}
  .global-clock{left:8px;padding:5px 7px;transform:scale(.9);transform-origin:left bottom}

  /* Tablas anchas: se desplazan dentro de su bloque, nunca toda la página. */
  .stock-list,.article-catalog-table-wrap,.purchase-needs-table,.purchase-orders-table,
  .purchase-receipts-table,.enterprise-table,.admin-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* MÓVIL */
@media(max-width:520px){
  .container,main.container,.footer-inner.footer-custom,.app-version{width:calc(100% - 18px)}
  .topbar-inner{width:calc(100% - 14px);grid-template-columns:minmax(0,1fr) 42px 42px;gap:5px}
  .brand img,#brand-logo{max-width:min(54vw,170px);max-height:43px}
  .account-toggle,.cart-toggle{min-width:40px;min-height:40px;height:40px}
  .account-avatar{width:29px;height:29px}
  .tool-tabs{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .tool-tab{min-height:46px;font-size:9.5px;padding:6px 5px}
  .hero{padding-top:20px}.hero h1,.admin-page-heading h1{font-size:clamp(24px,8vw,30px)}
  .selector-card,.suggestions-card,.purchase-section,.settings-card{padding:14px!important}
  .btn-primary,.btn-secondary{min-height:42px}
  .cart-panel{width:100vw;max-width:none;padding:16px 14px 24px}
  .global-clock-copy strong{font-size:10.5px}.global-clock-copy small{font-size:7px}
}

/* Teléfonos muy estrechos: menú a una columna si hace falta. */
@media(max-width:350px){
  .tool-tabs{grid-template-columns:1fr 1fr}
  .tool-tab{font-size:9px}
  .brand img,#brand-logo{max-width:150px}
}

@media print{
  .tool-tabs,.footer,.global-clock{display:none!important}
}

/* V20 JSON R14 · productividad, vistas personales y auditoría */
.productivity-mount{margin-top:10px}.productivity-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #dde2e7;border-radius:10px;background:#fafbfc}.productivity-view-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.productivity-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#35704b}.productivity-toolbar select{min-width:170px}.productivity-toolbar button{white-space:nowrap}.productivity-filter-grid{display:grid;grid-template-columns:minmax(190px,1fr) repeat(3,minmax(120px,auto));gap:8px;align-items:center;margin:10px 0}.compact-page-size{display:inline-flex;align-items:center;gap:6px}.compact-page-size select{min-width:72px}
.productivity-columns-modal .purchase-modal{max-width:620px}.productivity-column-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.productivity-column-grid label{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e1e5e9;border-radius:9px;background:#fff}.productivity-column-grid input{width:auto}.productivity-columns-modal footer{display:flex;justify-content:flex-end;gap:8px}
.recent-activity-panel{margin-top:16px}.recent-activity-list{display:grid;gap:0}.activity-item{display:grid;grid-template-columns:12px 1fr;gap:10px;padding:10px 2px;border-bottom:1px solid #edf0f2}.activity-item:last-child{border-bottom:0}.activity-dot{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#25894d}.activity-item strong{display:block;font-size:12px}.activity-item span,.activity-item small{display:block;color:#67717c;font-size:10px;margin-top:2px}.audit-change-list{margin:6px 0 0;padding:6px 8px;background:#f7f8fa;border-radius:7px;list-style:none}.audit-change-list li{display:flex;justify-content:space-between;gap:12px;padding:3px 0;font-size:9px}.audit-change-list li strong{font-size:9px}.audit-change-list li span{text-align:right;color:#56616c}
.audit-settings-card{grid-column:1/-1}.audit-list{display:grid;gap:8px;margin-top:10px}.audit-row{border:1px solid #e0e4e8;border-radius:10px;padding:10px;background:#fff}.audit-row header,.audit-row-meta{display:flex;justify-content:space-between;gap:12px;align-items:center}.audit-row header strong{font-size:12px}.audit-row header span,.audit-row-meta,.audit-row p{font-size:9px;color:#65707b}.audit-row p{margin:6px 0 0}.audit-row-meta{margin-top:4px}.audit-row-meta b{color:#26313b}
.invoice-table-wrap{overflow:auto;border:1px solid #dfe3e7;border-radius:11px;background:#fff}.invoice-table{width:100%;border-collapse:collapse;min-width:980px}.invoice-table th{padding:9px 8px;text-align:left;background:#f5f7f8;font-size:9px;text-transform:uppercase}.invoice-table td{padding:9px 8px;border-top:1px solid #eef0f2;font-size:10px}.invoice-table .numeric{text-align:right}.invoice-pay-status{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:8px;font-weight:800;text-transform:uppercase;background:#eef1f4}.invoice-pay-status.status-paid{background:#e6f6eb;color:#16733b}.invoice-pay-status.status-partial{background:#fff4da;color:#8a6200}.invoice-pay-status.status-pending{background:#fde8e6;color:#a8302a}.invoice-workspace-panel{margin-top:12px}
.article-quick-input{width:88px;min-width:0;padding:7px!important}.article-quick-input.small{width:68px}.article-quick-input.provider{width:120px;margin-right:4px}.article-quick-save{margin-right:4px}.purchase-pending-chip{margin-right:auto;font-size:9px;font-weight:700;color:#59636d}.purchase-order-card footer{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.purchase-order-filters{grid-template-columns:minmax(210px,1fr) repeat(3,minmax(135px,auto))}
.orders-pagination{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:10px}.orders-pagination span{margin-left:auto;font-size:9px;color:#66717c}.orders-pagination button.active{background:#e33f37;color:#fff;border-color:#e33f37}
@media(max-width:900px){.productivity-filter-grid,.purchase-order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.productivity-toolbar{align-items:flex-start;flex-direction:column}.productivity-column-grid{grid-template-columns:1fr}.article-quick-input.provider{width:105px}}
@media(max-width:600px){.productivity-filter-grid,.purchase-order-filters{grid-template-columns:1fr}.productivity-view-controls{width:100%}.productivity-view-controls select{flex:1;min-width:140px}.productivity-toolbar>button{width:100%}.audit-row header,.audit-row-meta{align-items:flex-start;flex-direction:column;gap:2px}.audit-change-list li{flex-direction:column;gap:1px}.audit-change-list li span{text-align:left}.orders-pagination span{width:100%;margin-left:0}.invoice-table{min-width:820px}}


/* =========================================================
   V20 JSON R15 · LEGIBILIDAD + SEPARACIÓN CATÁLOGO / ALMACÉN
   ========================================================= */
html { font-size: 17px; }
body { font-size: 16px; line-height: 1.48; }
.container, main.container { max-width: 1320px; }

/* Jerarquía tipográfica más legible en escritorio. */
h1, .hero h1, .admin-page-heading h1 { font-size: clamp(29px, 2.15vw, 38px) !important; line-height: 1.12; }
h2, .results-header h2, .purchase-section h2 { font-size: clamp(21px, 1.55vw, 28px) !important; line-height: 1.2; }
h3 { line-height: 1.25; }
p, .admin-page-heading p, .hero p { font-size: 15px; }
.eyebrow, [class*="eyebrow"] { font-size: 11px !important; letter-spacing: .075em; }

/* Navegación y subnavegación. */
.tool-tabs { max-width: 1320px; }
.tool-tab { font-size: 13px !important; min-height: 54px; padding: 10px 13px; }
.module-subnav button, [data-article-subtab], [data-purchase-subtab], [data-settings-tab], [data-budget-subtab] {
  font-size: 12.5px !important; min-height: 42px; padding: 9px 13px !important;
}

/* Formularios: texto y controles claramente visibles. */
label > span, .field-label, .form-label, .stock-filter-grid label span,
.article-catalog-filters label span, .purchase-form label span { font-size: 11px !important; }
input, select, textarea { font-size: 14px !important; min-height: 42px; }
textarea { line-height: 1.45; }
.btn-primary, .btn-secondary { font-size: 13.5px !important; min-height: 42px; padding: 10px 15px; }
.btn-ghost { font-size: 12.5px !important; }

/* Tablas y listados: se acabaron las letras de 8-10px en administración. */
.admin-table th, .article-catalog-table th, .invoice-table th,
.purchase-needs-table th, .purchase-orders-table th, .stock-table th { font-size: 10.5px !important; }
.admin-table td, .article-catalog-table td, .invoice-table td,
.purchase-needs-table td, .purchase-orders-table td, .stock-table td { font-size: 12.5px !important; }
.article-catalog-table strong, .stock-list strong, .purchase-order-card strong { font-size: 13px; }
.article-catalog-table small, .stock-list small, .purchase-order-card small { font-size: 10.5px; }

/* Tarjetas y metadatos. */
.crm-stat span { font-size: 10px !important; }
.crm-stat strong { font-size: 21px !important; }
.crm-stat small { font-size: 10px !important; }
.quote-status, .invoice-pay-status { font-size: 9.5px !important; }
.activity-item strong, .audit-row header strong { font-size: 13px !important; }
.activity-item span, .activity-item small, .audit-row header span, .audit-row-meta, .audit-row p { font-size: 10.5px !important; }

/* Ficha de artículo: stock visible, pero no editable desde Catálogo. */
.article-stock-readonly input[readonly] { background: #f4f6f7; color: #2b333a; font-weight: 800; cursor: default; }
.article-stock-readonly small { display:block; margin:5px 0 8px; color:#68717a; font-size:10.5px; line-height:1.35; }
.article-stock-readonly .btn-secondary { width:100%; }

/* Explica visualmente que Stock es Almacén, no una segunda ficha de artículo. */
#article-stock-panel .admin-page-heading { border-left: 4px solid var(--green); padding-left: 14px; }
#article-stock-panel .admin-page-heading p { max-width: 900px; }

/* Footer y texto auxiliar también legibles. */
.footer-inner.footer-custom { font-size: 12.5px !important; }
.app-version { font-size: 10px !important; }

@media (min-width: 1500px) {
  body { font-size: 17px; }
  .container, main.container, .tool-tabs, .topbar-inner { max-width: 1400px; }
  .tool-tab { font-size: 13.5px !important; }
  input, select, textarea { font-size: 14.5px !important; }
}

@media (max-width: 760px) {
  html { font-size: 16px; }
  body { font-size: 15px; }
  .tool-tab { font-size: 11px !important; min-height: 50px; }
  p, .admin-page-heading p, .hero p { font-size: 14px; }
  input, select, textarea { font-size: 16px !important; } /* evita zoom automático en iPhone */
  .btn-primary, .btn-secondary { font-size: 13px !important; }
  .footer-inner.footer-custom { font-size: 11px !important; }
}


/* R16 · Stock: catálogo completo, autocompletado y selección persistente */
.stock-search-label{position:relative}
.stock-main-search-results{top:calc(100% + 6px);z-index:160;max-height:420px}
.stock-suggestion-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-bottom:1px solid #edf0f3;background:#fff}
.stock-suggestion-row:last-child{border-bottom:0}
.stock-search-results .stock-suggestion-main{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(220px,1.7fr) auto;gap:10px;align-items:center;padding:11px 12px;border:0;background:#fff;text-align:left;cursor:pointer;width:100%}
.stock-search-results .stock-suggestion-main:hover{background:#fff7f6}
.stock-search-results .stock-suggestion-main strong{font-size:12px}
.stock-search-results .stock-suggestion-main span{font-size:11px;color:#353b43}
.stock-search-results .stock-suggestion-main small{font-size:10px;color:#737b86;white-space:nowrap}
.stock-search-results .stock-suggestion-select{width:auto;min-width:118px;border:0;border-left:1px solid #edf0f3;background:#fafbfc;padding:8px 11px;font-weight:800;cursor:pointer;color:#b4312b}
.stock-search-results .stock-suggestion-select:hover{background:#fff1f0}
.stock-selected-count{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:#f1f3f5;color:#4f5965;font-size:10px;font-weight:900;white-space:nowrap}
.stock-empty-state{display:grid;gap:5px;padding:28px;text-align:center;background:#fff;color:#65707c;border-radius:13px}
.stock-empty-state strong{font-size:15px;color:#252b32}
.stock-empty-state span{font-size:11px}
@media(max-width:760px){
  .stock-suggestion-row{grid-template-columns:1fr}
  .stock-search-results .stock-suggestion-main{grid-template-columns:1fr;gap:3px}
  .stock-search-results .stock-suggestion-select{border-left:0;border-top:1px solid #edf0f3;width:100%}
}

/* R18 · administración editable de mantenimiento y protección de series */
.maintenance-admin-tools{margin:14px 0;padding:16px 18px;border:1px solid #d8e5dd;border-left:4px solid #158044;border-radius:13px;background:#f8fcf9;display:flex;align-items:center;justify-content:space-between;gap:18px}.maintenance-admin-tools.hidden{display:none!important}.maintenance-admin-tools h2{margin:3px 0 5px}.maintenance-admin-tools p{margin:0;color:var(--grey-700)}.maintenance-admin-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.maintenance-editor-overlay,.series-pin-overlay{position:fixed;inset:0;background:rgba(20,25,30,.62);z-index:99990;display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}.maintenance-editor-dialog{width:min(1180px,96vw);max-height:94vh;background:#fff;border-radius:16px;box-shadow:0 20px 70px rgba(0,0,0,.32);display:flex;flex-direction:column;overflow:hidden}.maintenance-editor-head,.maintenance-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid var(--grey-300)}.maintenance-editor-footer{border-top:1px solid var(--grey-300);border-bottom:0;justify-content:flex-end}.maintenance-editor-footer .inline-message{margin-right:auto}.maintenance-editor-head h2{margin:2px 0}.maintenance-editor-head p{margin:4px 0 0;color:var(--grey-700)}.maintenance-editor-scroll{padding:16px 18px;overflow:auto}.maintenance-editor-section{padding:14px 0;border-bottom:1px solid #e7e9eb}.maintenance-editor-section:last-child{border-bottom:0}.maintenance-editor-section h3{margin:0 0 10px}.maintenance-general-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.maintenance-general-grid label,.maintenance-cat-body label{display:grid;gap:5px}.maintenance-general-grid label span,.maintenance-cat-body label span{font-weight:800;font-size:11px}.maintenance-general-grid input,.maintenance-cat-body select,.maintenance-item-row input,.maintenance-liquid-row input{min-height:40px;border:1px solid var(--grey-300);border-radius:8px;padding:7px 9px;font:inherit;box-sizing:border-box;width:100%}.maintenance-pdf-row{display:grid;grid-template-columns:minmax(120px,.5fr) 1fr auto;gap:10px;align-items:center}.maintenance-categories{display:grid;gap:8px}.maintenance-cat-editor{border:1px solid var(--grey-300);border-radius:10px;background:#fff;overflow:hidden}.maintenance-cat-editor summary{cursor:pointer;padding:10px 12px;display:flex;justify-content:space-between;gap:12px;background:#f8f9fa}.maintenance-cat-editor summary span{color:var(--grey-700);font-size:11px}.maintenance-cat-body{padding:12px}.maintenance-items{display:grid;gap:7px;margin:10px 0}.maintenance-item-row{display:grid;grid-template-columns:1.05fr 1.35fr 90px 110px 38px;gap:7px;align-items:center}.maintenance-liquid-row{display:grid;grid-template-columns:1fr .8fr 1.4fr 110px 38px;gap:7px;align-items:center;margin:8px 0}.series-pin-dialog{width:min(460px,94vw);background:#fff;border-radius:15px;padding:22px;box-shadow:0 18px 60px rgba(0,0,0,.32);position:relative}.series-pin-dialog h2{margin:4px 0 8px}.series-pin-dialog p{color:var(--grey-700);line-height:1.5}.series-pin-dialog label{display:grid;gap:6px;margin-top:15px}.series-pin-dialog label span{font-weight:900}.series-pin-dialog input{min-height:46px;border:1px solid var(--grey-300);border-radius:9px;padding:8px 12px;font:inherit;font-size:20px;letter-spacing:5px}.series-pin-dialog small{display:block;margin-top:8px;color:var(--grey-700)}.series-pin-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.series-pin-close{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:24px;cursor:pointer}.series-pin-dialog .inline-message{margin-top:10px}
@media(max-width:760px){.maintenance-admin-tools{display:grid}.maintenance-admin-actions{justify-content:stretch}.maintenance-admin-actions button{flex:1}.maintenance-editor-overlay{padding:0}.maintenance-editor-dialog{width:100vw;max-height:100vh;height:100vh;border-radius:0}.maintenance-general-grid{grid-template-columns:1fr}.maintenance-pdf-row{grid-template-columns:1fr}.maintenance-item-row{grid-template-columns:1fr 1fr}.maintenance-item-row [data-mi-qty],.maintenance-item-row [data-mi-price]{min-width:0}.maintenance-liquid-row{grid-template-columns:1fr 1fr}.maintenance-item-row .btn-danger-soft,.maintenance-liquid-row .btn-danger-soft{grid-column:2}.maintenance-editor-head,.maintenance-editor-footer{padding:12px}.maintenance-editor-scroll{padding:12px}}

/* =========================================================
   R19 · PÁGINA DE INICIO YANMAR
   ========================================================= */
.home-view{display:grid;gap:24px;padding-bottom:28px}.home-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.5fr);gap:24px;align-items:center;min-height:300px;padding:34px 38px;border-radius:24px;background:linear-gradient(120deg,#17191d 0%,#20242a 48%,#b71f1a 100%);box-shadow:0 18px 48px rgba(25,28,33,.16);color:#fff}.home-hero:after{content:'';position:absolute;right:-120px;top:-170px;width:430px;height:430px;border-radius:50%;border:68px solid rgba(255,255,255,.055)}.home-kicker{display:inline-block;margin-bottom:8px;color:#fff;font-size:11px;font-weight:900;letter-spacing:.14em}.home-hero h1{position:relative;z-index:1;margin:0;max-width:850px;font-size:clamp(30px,3.5vw,50px);line-height:1.04;letter-spacing:-.035em}.home-hero p{position:relative;z-index:1;max-width:760px;margin:16px 0 0;color:#e8eaed;font-size:16px;line-height:1.65}.home-quick-actions{position:relative;z-index:1;display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.home-action{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.09);color:#fff;border-radius:11px;padding:11px 15px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.home-action:hover{background:rgba(255,255,255,.16)}.home-action.primary{background:#e23b33;border-color:#e23b33}.home-hero-mark{position:relative;z-index:1;justify-self:end;width:235px;height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.2);border-radius:22px;background:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}.home-hero-mark span{font-size:35px;font-weight:1000;font-style:italic;letter-spacing:-.06em}.home-hero-mark b{margin-top:2px;color:#fff;font-size:18px;letter-spacing:.28em}.home-hero-mark small{margin-top:11px;color:#f4b9b5;font-size:10px;font-weight:800;letter-spacing:.18em}.home-section{min-width:0}.home-section-card{padding:20px;background:#fff;border:1px solid #dfe3e7;border-radius:18px;box-shadow:0 7px 24px rgba(24,28,33,.045)}.home-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:14px}.home-section-head h2{margin:3px 0 0;font-size:24px}.home-section-head p{margin:6px 0 0;color:#66717a;font-size:12px}.home-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-product-card{min-width:0;overflow:hidden;background:#fff;border:1px solid #e1e4e8;border-radius:17px;box-shadow:0 8px 25px rgba(22,26,31,.055);transition:transform .16s ease,box-shadow .16s ease}.home-product-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(22,26,31,.09)}.home-product-image{position:relative;height:170px;background:linear-gradient(145deg,#f6f7f8,#eceff1);display:grid;place-items:center;overflow:hidden}.home-product-image img{width:100%;height:100%;object-fit:contain;padding:13px;box-sizing:border-box}.home-product-placeholder{display:flex;flex-direction:column;align-items:center;color:#e23b33;font-weight:1000;font-style:italic;font-size:27px}.home-product-placeholder small{color:#858d95;font-size:9px;letter-spacing:.2em;font-style:normal}.home-product-badge{position:absolute;left:10px;top:10px;background:#181b20;color:#fff;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:900;text-transform:uppercase}.home-product-card.is-promo .home-product-badge{background:#e23b33}.home-product-copy{padding:14px}.home-product-copy>strong{color:#e23b33;font-size:10px;letter-spacing:.035em}.home-product-copy h3{min-height:38px;margin:5px 0 6px;font-size:14px;line-height:1.35}.home-product-copy p{min-height:34px;margin:5px 0;color:#6a747d;font-size:11px;line-height:1.45}.home-product-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.home-product-foot b{font-size:15px}.home-product-foot button{border:0;background:transparent;color:#bd2c26;font-size:10px;font-weight:900;cursor:pointer}.home-split-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.home-mini-product-list{display:grid;gap:7px}.home-moving-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;border:1px solid #e7e9ec;background:#fafbfb;border-radius:12px;padding:8px 10px;text-align:left;cursor:pointer}.home-moving-row:hover{border-color:#efb8b4;background:#fff7f6}.home-moving-thumb{width:42px;height:42px;border-radius:9px;background:#fff;border:1px solid #e5e8ea;display:grid;place-items:center;overflow:hidden}.home-moving-thumb img{width:100%;height:100%;object-fit:contain}.home-moving-thumb b{color:#e23b33;font-size:20px}.home-moving-row strong{display:block;font-size:11px}.home-moving-row small{display:block;color:#6d767e;font-size:10px;margin-top:2px}.home-moving-row em{font-style:normal;font-size:10px;font-weight:900;color:#657078}.home-announcement-list{display:grid;gap:9px}.home-announcement{display:grid;grid-template-columns:5px 1fr;gap:10px;border:1px solid #e3e6e9;border-radius:12px;background:#fafbfb;padding:10px}.home-announcement>span{display:block;border-radius:99px;background:#6c7780}.home-announcement.promo>span{background:#e23b33}.home-announcement.warning>span{background:#e49a25}.home-announcement.success>span{background:#278652}.home-announcement strong{font-size:12px}.home-announcement p{margin:3px 0 0;color:#626d76;font-size:11px;line-height:1.45}.home-system-notifications{margin-top:14px;padding-top:13px;border-top:1px solid #eceeef}.home-system-notifications h3{margin:0 0 8px;font-size:12px}.home-system-notifications article{display:grid;gap:2px;padding:7px 0;border-bottom:1px solid #f0f1f2}.home-system-notifications article strong{font-size:10.5px}.home-system-notifications article span{font-size:10px;color:#6c757d}.home-promotions-section{padding:22px;border-radius:19px;background:linear-gradient(180deg,#fff 0,#fff8f7 100%);border:1px solid #f0d9d7}.home-empty{grid-column:1/-1;padding:18px;border:1px dashed #d8dde1;border-radius:12px;color:#737d85;text-align:center;font-size:11px;background:#fafbfb}.home-community-grid{display:grid;gap:16px}.home-community-grid .suggestions-section{margin:0}.home-settings-panel{padding:0}.home-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.home-settings-promo-card{grid-column:1/-1}.home-settings-field{display:grid;gap:5px;margin-top:10px}.home-settings-field span{font-size:10px;font-weight:900}.home-settings-field input,.home-settings-field textarea,.home-settings-inline input,.home-settings-inline select,#home-announcement-text,#home-promo-text,#home-promo-search{width:100%;box-sizing:border-box;border:1px solid #d8dde1;border-radius:9px;padding:9px 10px;font:inherit}.home-settings-inline{display:grid;grid-template-columns:1fr 180px;gap:8px;margin:9px 0}.home-admin-list{display:grid;gap:7px;margin-top:12px}.home-admin-list article{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e4e7e9;border-radius:10px;padding:9px 10px}.home-admin-list strong{display:block;font-size:11px}.home-admin-list small{display:block;color:#6e7880;font-size:9px;margin-top:2px}.home-admin-list button{border:1px solid #efc8c5;background:#fff7f6;color:#a43731;border-radius:7px;padding:5px 8px;cursor:pointer}.home-promo-search-wrap{position:relative}.home-promo-suggestions{position:absolute;z-index:80;top:calc(100% + 4px);left:0;right:0;max-height:280px;overflow:auto;background:#fff;border:1px solid #dce0e3;border-radius:11px;box-shadow:0 15px 35px rgba(0,0,0,.13)}.home-promo-suggestions button{display:grid;width:100%;border:0;border-bottom:1px solid #eef0f2;background:#fff;padding:9px 10px;text-align:left;cursor:pointer}.home-promo-suggestions button:hover{background:#fff7f6}.home-promo-suggestions strong{font-size:10.5px}.home-promo-suggestions span{color:#6b757d;font-size:9.5px;margin-top:2px}
@media(max-width:1100px){.home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-hero{grid-template-columns:1fr}.home-hero-mark{display:none}.home-split-grid{grid-template-columns:1fr}.home-settings-grid{grid-template-columns:1fr}.home-settings-promo-card{grid-column:auto}}
@media(max-width:640px){.home-view{gap:16px}.home-hero{padding:24px 20px;min-height:0;border-radius:18px}.home-hero h1{font-size:31px}.home-hero p{font-size:14px}.home-quick-actions{display:grid;grid-template-columns:1fr}.home-product-grid{grid-template-columns:1fr}.home-product-image{height:190px}.home-section-head{align-items:flex-start;flex-direction:column}.home-section-card,.home-promotions-section{padding:14px}.home-settings-inline{grid-template-columns:1fr}}


/* =========================================================
   V20 JSON R20 · BANNER, MENÚ HORIZONTAL Y PIE LEGAL
   ========================================================= */
@media (min-width: 980px){
  main.container>.tool-tabs{
    width:fit-content!important;
    max-width:min(calc(100vw - 48px),1400px)!important;
    margin:20px auto 14px!important;
    transform:none!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
    padding:6px 8px;
  }
  main.container>.tool-tabs .tool-tab{
    flex:0 0 auto;
    min-height:48px!important;
    padding:8px 11px!important;
    font-size:11.5px!important;
    white-space:nowrap!important;
  }
  main.container>.tool-tabs .tool-tab-icon{width:16px;height:16px}
  main.container>.tool-tabs .tool-tab-icon svg{width:16px;height:16px}
}
.home-showcase{position:relative;overflow:hidden;min-height:390px;border-radius:26px;background:#14181c;box-shadow:0 18px 48px rgba(25,28,33,.16)}
.home-showcase-track{position:absolute;inset:0}
.home-showcase-slide{position:absolute;inset:0;opacity:0;transform:scale(1.02);transition:opacity .85s ease,transform 5.8s ease;background:#0b0f12;pointer-events:none;overflow:hidden}
.home-showcase-slide.active{opacity:1;transform:scale(1);z-index:2}
.home-showcase-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,12,15,.76) 0%,rgba(8,12,15,.25) 48%,rgba(8,12,15,.08) 100%),linear-gradient(0deg,rgba(0,0,0,.35),transparent 58%)}
.home-showcase-caption{position:absolute;z-index:3;left:38px;bottom:36px;display:grid;gap:6px;max-width:72%;color:#fff;text-shadow:0 2px 13px rgba(0,0,0,.35)}
.home-showcase-caption span{font-size:11px;font-weight:900;letter-spacing:.16em;color:#f4c3c0}
.home-showcase-caption strong{font-size:clamp(28px,3.25vw,48px);line-height:1.04;letter-spacing:-.025em}
.home-showcase-arrow{position:absolute;z-index:6;top:50%;transform:translateY(-50%);width:46px;height:46px;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:rgba(15,18,21,.38);backdrop-filter:blur(5px);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.home-showcase-arrow:hover{background:rgba(226,59,51,.85)}.home-showcase-arrow.prev{left:18px}.home-showcase-arrow.next{right:18px}
.home-showcase-dots{position:absolute;z-index:7;right:28px;bottom:24px;display:flex;gap:8px}.home-showcase-dot{width:9px;height:9px;border:0;border-radius:99px;padding:0;background:rgba(255,255,255,.5);cursor:pointer;transition:width .2s ease,background .2s ease}.home-showcase-dot.active{width:30px;background:#fff}
.home-settings-banner-card{grid-column:1/-1}.home-banner-settings{display:grid;gap:10px;margin-top:12px}.home-banner-setting-row{display:grid;grid-template-columns:34px minmax(260px,2fr) minmax(150px,.7fr) minmax(190px,1fr);gap:9px;align-items:end;padding:10px;border:1px solid #e4e7e9;border-radius:12px;background:#fafbfb}.home-banner-setting-index{width:30px;height:30px;border-radius:9px;background:#e23b33;color:#fff;display:grid;place-items:center;font-weight:900;align-self:center}.home-banner-setting-row label{display:grid;gap:5px}.home-banner-setting-row label span{font-size:10px;font-weight:900}.home-banner-setting-row input{width:100%;box-sizing:border-box}
.legal-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.legal-settings-grid textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:260px}
.footer{background:#e9e8e8!important;border-top:1px solid #dedcdc!important;padding-top:0!important}.footer-legal-nav{display:grid!important;grid-template-columns:repeat(4,1fr);align-items:center;width:min(calc(100% - 32px),1400px)!important;max-width:1400px!important;padding:20px 0 16px;border-bottom:1px solid rgba(0,0,0,.08)}.footer-legal-nav button{appearance:none;border:0;background:transparent;color:#16283c;font:inherit;font-size:13px;cursor:pointer;padding:8px 10px;text-align:center}.footer-legal-nav button:hover{text-decoration:underline;color:#b72d27}.footer-inner.footer-custom{padding-top:12px;color:#5e6267}.app-version{color:#777;padding-bottom:5px}
.legal-overlay{position:fixed;z-index:2400;inset:0;display:grid;place-items:center;padding:24px;background:rgba(13,17,21,.58);backdrop-filter:blur(5px)}.legal-overlay.hidden{display:none!important}.legal-dialog{width:min(900px,calc(100vw - 32px));max-height:min(82vh,850px);overflow:hidden;background:#fff;border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.28);display:grid;grid-template-rows:auto minmax(0,1fr)}.legal-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid #e5e7e9}.legal-dialog h2{margin:3px 0 0}.legal-dialog-content{overflow:auto;padding:24px 26px;color:#2d353c;line-height:1.7;font-size:14px}.legal-rich-text{white-space:normal}.legal-empty{padding:35px;border:1px dashed #d7dce0;border-radius:14px;text-align:center;background:#fafbfb}.legal-empty strong{display:block;font-size:17px}.legal-empty p{margin:7px 0 0;color:#69737b}.modal-open{overflow:hidden}
@media(max-width:1100px){.home-showcase{min-height:340px}.home-showcase-caption{left:30px;bottom:30px;max-width:75%}}
@media(max-width:900px){.home-showcase{min-height:300px}.home-banner-setting-row{grid-template-columns:34px 1fr}.home-banner-setting-row label{grid-column:2}.legal-settings-grid{grid-template-columns:1fr}.footer-legal-nav{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.home-showcase{min-height:250px;border-radius:18px}.home-showcase-caption{left:20px;bottom:22px;max-width:82%}.home-showcase-arrow{width:36px;height:36px}.home-showcase-dots{right:16px;bottom:14px}.footer-legal-nav{grid-template-columns:1fr;padding:12px 0}.footer-legal-nav button{padding:7px}.legal-overlay{padding:10px}.legal-dialog{width:100%;max-height:92vh;border-radius:15px}.legal-dialog-content{padding:18px}.home-banner-setting-row{grid-template-columns:30px 1fr}}

/* V20 JSON R21 · ficha completa de proveedores y certificados bancarios */
.enterprise-modal>section.purchase-modal{width:min(980px,96vw)}
.supplier-form-sections{display:grid;gap:14px;margin-top:14px}
.supplier-form-section{border:1px solid #e2e6ea;border-radius:14px;padding:15px;background:#fbfcfc}
.supplier-form-section h3{margin:0 0 12px;font-size:14px;color:#1e2832}
.supplier-bank-certificate{padding:12px;border:1px dashed #cbd3da;border-radius:10px;background:#fff}
.supplier-cert-list{display:grid;gap:7px;margin-top:9px}
.supplier-cert-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #e5e8eb;border-radius:9px;background:#f8f9fa}
.supplier-cert-row>div:first-child{display:grid;gap:2px;min-width:0}
.supplier-cert-row strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supplier-cert-row small,.supplier-cert-empty{font-size:10px;color:#6e7881}
.supplier-cert-row>div:last-child{display:flex;gap:6px;flex:0 0 auto}
.supplier-cert-row button{border:1px solid #d8dde2;border-radius:7px;background:#fff;padding:6px 8px;font-size:10px;cursor:pointer}
.purchase-supplier-card>div{min-width:0}.purchase-supplier-card small{margin-top:3px}
@media(max-width:760px){.supplier-form-section{padding:12px}.supplier-cert-row{align-items:flex-start;flex-direction:column}.supplier-cert-row>div:last-child{width:100%}.supplier-cert-row button{flex:1}}


/* R22 · permisos de cliente añadidos tras ampliación de Inicio y fichas de artículo */
body.role-client.perm-off-show-home-banner .home-showcase{display:none!important}
body.role-client.perm-off-show-home-top-products #home-top-products-section{display:none!important}
body.role-client.perm-off-show-home-movements #home-movements-section{display:none!important}
body.role-client.perm-off-show-home-announcements #home-announcements-section{display:none!important}
body.role-client.perm-off-show-home-promotions .home-promotions-section{display:none!important}
body.role-client.perm-off-access-suggestions .suggestions-section{display:none!important}
body.role-client.perm-off-show-article-images #pvp-selected-media,
body.role-client.perm-off-show-article-images .home-product-image,
body.role-client.perm-off-show-article-images .home-moving-thumb{display:none!important}
body.role-client.perm-off-show-article-descriptions #pvp-selected-description,
body.role-client.perm-off-show-article-descriptions .home-product-copy p{display:none!important}

body.role-client.perm-off-show-home-movements .home-split-grid,body.role-client.perm-off-show-home-announcements .home-split-grid{grid-template-columns:1fr!important}

/* R23 · exportación, clientes y documentos */
.admin-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.enterprise-report-filters{display:grid;grid-template-columns:1.35fr 1.35fr 1fr 1fr;gap:10px;margin:14px 0}
.enterprise-report-filters label{display:grid;gap:5px}.enterprise-report-filters label span{font-size:10px;font-weight:900}.enterprise-report-filters select,.enterprise-report-filters input{width:100%;box-sizing:border-box}
.admin-create-client-modal{width:min(980px,96vw)!important}.admin-create-client-modal .admin-edit-grid{padding:14px 0}.admin-create-client-modal textarea{width:100%;box-sizing:border-box}
#admin-delivery-panel,#admin-credits-panel{margin-top:12px}
@media(max-width:900px){.enterprise-report-filters{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.enterprise-report-filters{grid-template-columns:1fr}.admin-header-actions{width:100%;justify-content:stretch}.admin-header-actions button{flex:1}}

/* =========================================================
   R24 · RENTABILIDAD COMERCIAL Y MARGEN NETO
   ========================================================= */
.enterprise-profit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.enterprise-profit-head h2{margin:3px 0 6px}.enterprise-profit-head p{margin:0;color:#68727c;font-size:11px}.enterprise-traffic-legend{display:flex;gap:10px;flex-wrap:wrap;font-size:10px;font-weight:800}.enterprise-traffic-legend .green{color:#18864b}.enterprise-traffic-legend .amber{color:#b77900}.enterprise-traffic-legend .red{color:#c22f2f}.enterprise-profit-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.enterprise-net-kpi[data-traffic="green"]{border-color:#a7dbc0;background:#f3fbf6}.enterprise-net-kpi[data-traffic="amber"]{border-color:#ead49c;background:#fffaf0}.enterprise-net-kpi[data-traffic="red"]{border-color:#edb4b4;background:#fff5f5}.enterprise-profit-toolbar{align-items:end}.enterprise-profit-toolbar label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#5d6771}.enterprise-profit-toolbar label select,.enterprise-profit-toolbar label input{min-width:145px}.enterprise-profit-toolbar #ent-profit-client{min-width:230px}.enterprise-semaphore{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0 15px}.enterprise-semaphore button,.enterprise-semaphore-total{border:1px solid #e1e5e9;border-radius:11px;padding:11px 13px;background:#fff;text-align:left;display:flex;align-items:center;gap:9px}.enterprise-semaphore button{cursor:default}.enterprise-semaphore strong{font-size:20px}.enterprise-semaphore span{font-size:9px;color:#66717a}.enterprise-semaphore .green{border-left:5px solid #2f9b62;background:#f6fbf8}.enterprise-semaphore .amber{border-left:5px solid #d99a21;background:#fffaf0}.enterprise-semaphore .red{border-left:5px solid #d74a4a;background:#fff6f6}.enterprise-semaphore-total{border-left:5px solid #64748b}.enterprise-profit-table>div{grid-template-columns:minmax(180px,2fr) .65fr 1fr 1fr 1fr 1.2fr 1.2fr .8fr;min-width:980px}.enterprise-profit-table .profit-row>span:first-child{display:flex;align-items:center;gap:7px}.traffic-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:0 0 9px;background:#87919a}.traffic-green .traffic-dot{background:#2f9b62}.traffic-amber .traffic-dot{background:#d99a21}.traffic-red .traffic-dot{background:#d74a4a}.enterprise-profit-table small{display:block;color:#7a838b;font-size:8px}.enterprise-low-margin{margin-top:14px;border:1px solid #e4e7ea;border-radius:11px;padding:10px 12px;background:#fafbfb}.enterprise-low-margin summary{cursor:pointer;font-weight:800;font-size:10px}.enterprise-operation-list{display:grid;gap:7px;margin-top:10px}.enterprise-operation-list article{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #e6e9ec;border-radius:9px;padding:8px 10px;background:#fff}.enterprise-operation-list article div{display:grid;gap:2px}.enterprise-operation-list article strong{font-size:10px}.enterprise-operation-list article small{font-size:8.5px;color:#707982}.enterprise-operation-list article b{font-size:12px}.enterprise-direct-costs{grid-column:1/-1;border:1px solid #e2e6ea;border-radius:10px;padding:11px;background:#fafbfb;display:grid;gap:7px}.enterprise-direct-costs>small{font-size:9px;color:#6e7780}.enterprise-direct-cost-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.enterprise-direct-cost-grid label{display:grid;gap:4px;font-size:9px}.enterprise-direct-cost-grid input{width:100%;box-sizing:border-box;border:1px solid #d6dce3;border-radius:7px;padding:6px 7px;min-height:34px}.enterprise-direct-cost-grid .wide{grid-column:span 2}.enterprise-direct-costs>button{justify-self:start}
@media(max-width:1250px){.enterprise-profit-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.enterprise-direct-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.enterprise-profit-head{display:grid}.enterprise-profit-kpis{grid-template-columns:1fr 1fr}.enterprise-semaphore{grid-template-columns:1fr 1fr}.enterprise-profit-toolbar label,.enterprise-profit-toolbar label select,.enterprise-profit-toolbar label input,.enterprise-profit-toolbar #ent-profit-client{width:100%;min-width:0}.enterprise-profit-toolbar{display:grid;grid-template-columns:1fr 1fr}.enterprise-profit-toolbar button{grid-column:1/-1}.enterprise-direct-cost-grid{grid-template-columns:1fr}.enterprise-direct-cost-grid .wide{grid-column:auto}}
@media(max-width:480px){.enterprise-profit-kpis,.enterprise-semaphore,.enterprise-profit-toolbar{grid-template-columns:1fr}}

/* R25 · rentabilidad: coste desconocido nunca se presenta como margen positivo */
.enterprise-traffic-legend .incomplete{color:#64748b}.enterprise-net-kpi[data-traffic="incomplete"]{border-color:#cbd5e1;background:#f8fafc}.enterprise-semaphore{grid-template-columns:repeat(5,minmax(0,1fr))}.enterprise-semaphore .incomplete{border-left:5px solid #64748b;background:#f8fafc}.traffic-incomplete .traffic-dot{background:#64748b}.traffic-incomplete{background:#f8fafc!important}
@media(max-width:1050px){.enterprise-semaphore{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.enterprise-semaphore{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.enterprise-semaphore{grid-template-columns:1fr}}

/* =========================================================
   V20 SQL R26 ENTERPRISE · SERVICIO / CRM / INTELIGENCIA
   ========================================================= */
.r26-enterprise-view{display:grid;gap:16px;padding:22px 0 34px;min-width:0}.r26-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.r26-online-state{display:flex;align-items:center;gap:8px;min-height:38px;padding:8px 12px;border:1px solid #cfe4d7;border-radius:999px;background:#f4fbf6;color:#18713d;font-size:11px;white-space:nowrap}.r26-online-state>span{width:9px;height:9px;border-radius:50%;background:#25a45b;box-shadow:0 0 0 4px rgba(37,164,91,.12)}.r26-online-state.offline{border-color:#eadab5;background:#fffaf0;color:#94620b}.r26-online-state.offline>span{background:#dda126;box-shadow:0 0 0 4px rgba(221,161,38,.14)}
.r26-subnav{display:flex;gap:6px;overflow:auto;padding:5px;border:1px solid #dde2e6;border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(24,28,33,.035)}.r26-subnav button{flex:0 0 auto;border:0;border-radius:9px;background:transparent;padding:9px 12px;font:inherit;font-size:11px;font-weight:850;color:#44505a;cursor:pointer}.r26-subnav button:hover{background:#f5f6f7}.r26-subnav button.active{background:#e23b33;color:#fff}.r26-panel{min-width:0;display:grid;gap:15px}.r26-panel.hidden{display:none!important}
.r26-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.r26-toolbar h2{margin:0}.r26-toolbar p{margin:5px 0 0;color:#66717b;font-size:12px}.r26-toolbar>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.r26-filter-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px solid #e0e4e7;border-radius:13px;background:#fff}.r26-filter-row label{display:grid;gap:4px;min-width:190px}.r26-filter-row label>span{font-size:10px;font-weight:900}.r26-filter-row input,.r26-filter-row select{min-height:38px;border:1px solid #d8dde1;border-radius:8px;padding:7px 9px;background:#fff;font:inherit}
.r26-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.r26-kpi{display:grid;gap:5px;padding:16px;border:1px solid #e0e4e7;border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(24,28,33,.045);min-width:0}.r26-kpi span{font-size:10px;font-weight:900;color:#6d7780;text-transform:uppercase;letter-spacing:.045em}.r26-kpi strong{font-size:22px;line-height:1.05;color:#1c2329;overflow-wrap:anywhere}.r26-kpi small{font-size:10px;color:#68737c}.r26-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.r26-card{min-width:0;padding:16px;border:1px solid #e0e4e7;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(24,28,33,.04)}.r26-card>header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:10px}.r26-card h2,.r26-card h3{margin:2px 0 0}.r26-list{display:grid;gap:7px;min-width:0}.r26-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #e7eaed;border-radius:11px;background:#fafbfb;min-width:0}.r26-row.actionable{cursor:pointer}.r26-row.actionable:hover{border-color:#efbbb8;background:#fff8f7}.r26-row>div:first-child{min-width:0}.r26-row strong{display:block;font-size:12px;color:#20272d}.r26-row span,.r26-row small{display:block;margin-top:2px;color:#6b757e;font-size:10px;line-height:1.35}.r26-row>small{flex:0 0 auto;text-align:right}.r26-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.r26-row-actions button,.r26-table button{border:1px solid #d9dee2;border-radius:7px;background:#fff;padding:5px 7px;color:#39434b;font:inherit;font-size:9.5px;font-weight:800;cursor:pointer}.r26-row-actions button:hover,.r26-table button:hover{border-color:#e5aaa6;color:#ae312b;background:#fff7f6}.r26-empty{padding:20px;border:1px dashed #d7dce0;border-radius:11px;background:#fafbfb;text-align:center;color:#737d85;font-size:11px}
.r26-table-wrap{overflow:auto;border:1px solid #e0e4e7;border-radius:14px;background:#fff}.r26-table{width:100%;border-collapse:collapse;min-width:820px}.r26-table th{padding:9px 10px;border-bottom:1px solid #e2e6e9;background:#f5f7f8;text-align:left;color:#67717b;font-size:9.5px;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}.r26-table td{padding:10px;border-bottom:1px solid #edf0f2;font-size:11px;vertical-align:top}.r26-table tbody tr:last-child td{border-bottom:0}.r26-table td>small{display:block;margin-top:3px;color:#737c84;font-size:9px}.r26-status{display:inline-flex!important;align-items:center;width:max-content;padding:4px 7px!important;margin:0!important;border-radius:999px!important;background:#eef1f3;color:#59636c!important;font-size:8.5px!important;font-weight:900;text-transform:uppercase}.r26-status.open,.r26-status.active,.r26-status.approved,.r26-status.completed,.r26-status.closed,.r26-status.won{background:#e5f5eb;color:#1c7440!important}.r26-status.in_progress,.r26-status.scheduled,.r26-status.pending,.r26-status.waiting_parts,.r26-status.issued{background:#fff4da;color:#916106!important}.r26-status.rejected,.r26-status.cancelled,.r26-status.lost,.r26-status.overdue{background:#fde9e7;color:#ad332d!important}
.r26-stock-summary{display:grid;grid-template-columns:13px 42px 1fr;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e6e9eb;border-radius:10px}.r26-stock-summary b{font-size:16px}.r26-stock-summary small{color:#68727a}.r26-light{width:11px;height:11px;border-radius:50%}.r26-light.green{background:#2c9b58}.r26-light.amber{background:#e1a526}.r26-light.red{background:#d83d34}.r26-light.blue{background:#397dba}.r26-stock-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900}.r26-stock-pill.green{background:#e6f5ec;color:#1e7944}.r26-stock-pill.amber{background:#fff3d7;color:#916109}.r26-stock-pill.red{background:#fde9e7;color:#ae332d}.r26-stock-pill.blue{background:#e8f2fb;color:#266693}
.r26-modal{position:fixed;z-index:99995;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(17,22,27,.64);backdrop-filter:blur(4px)}.r26-modal-dialog{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(760px,96vw);max-height:94vh;overflow:hidden;border-radius:17px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.32)}.r26-modal-dialog.wide{width:min(1120px,97vw)}.r26-modal-dialog>header,.r26-modal-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border-bottom:1px solid #e2e5e8}.r26-modal-dialog>footer{justify-content:flex-end;border-top:1px solid #e2e5e8;border-bottom:0}.r26-modal-dialog>header h2{margin:2px 0}.r26-modal-dialog>header>[data-r26-close]{border:0;background:transparent;font-size:25px;cursor:pointer}.r26-modal-body{padding:16px 17px;overflow:auto}.r26-modal-msg{margin-right:auto;font-size:10px;color:#65717a}.r26-modal-msg.error{color:#b22f29}.r26-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.r26-form-grid label{display:grid;gap:5px}.r26-form-grid label.wide{grid-column:1/-1}.r26-form-grid label>span{font-size:10px;font-weight:900}.r26-form-grid input,.r26-form-grid select,.r26-form-grid textarea{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #d6dce0;border-radius:8px;padding:8px 9px;background:#fff;font:inherit}.r26-form-grid textarea{min-height:90px;resize:vertical}.r26-form-help{grid-column:1/-1;padding:9px 11px;border-radius:9px;background:#f6f8f9;color:#69737b;font-size:10px;line-height:1.45}
.r26-trace{display:grid;gap:12px}.r26-trace-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px;border-radius:13px;background:#171b20;color:#fff}.r26-trace-head strong{font-size:21px}.r26-trace-head span{display:block;color:#cdd2d6;font-size:10px}.r26-trace-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.r26-trace-stat{padding:11px;border:1px solid #e3e6e9;border-radius:10px;background:#fff}.r26-trace-stat span{display:block;color:#717a82;font-size:9px}.r26-trace-stat strong{display:block;margin-top:3px;font-size:15px}.r26-calendar-item{display:grid;grid-template-columns:115px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e2e6e9;border-radius:11px;background:#fff}.r26-calendar-item time{font-size:10px;font-weight:900;color:#b3332d}.r26-calendar-item strong{display:block;font-size:12px}.r26-calendar-item span{display:block;margin-top:2px;font-size:10px;color:#6d767e}.r26-toast{position:fixed;z-index:100000;right:20px;bottom:20px;max-width:390px;padding:11px 14px;border-radius:10px;background:#252a30;color:#fff;box-shadow:0 13px 38px rgba(0,0,0,.24);font-size:11px;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}.r26-toast.show{opacity:1;transform:translateY(0)}.r26-toast.success{background:#227744}.r26-toast.error{background:#ad302b}
@media(max-width:1250px){.r26-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.r26-trace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.r26-enterprise-view{padding-top:14px}.r26-heading,.r26-toolbar{display:grid}.r26-online-state{width:max-content}.r26-toolbar>div:last-child{justify-content:start}.r26-grid-2,.r26-form-grid{grid-template-columns:1fr}.r26-form-grid label.wide{grid-column:auto}.r26-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.r26-kpi strong{font-size:18px}.r26-filter-row{display:grid}.r26-filter-row label{min-width:0}.r26-modal{padding:0}.r26-modal-dialog,.r26-modal-dialog.wide{width:100vw;max-height:100vh;height:100vh;border-radius:0}.r26-calendar-item{grid-template-columns:1fr}.r26-trace-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.r26-kpi-grid,.r26-trace-grid{grid-template-columns:1fr}}

/* R26 Enterprise · ajustes finales de permisos, valoración y acciones */
.permission-hidden{display:none!important}
.r26-stock-value{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin:0 0 9px;border:1px solid #e1e5e8;border-radius:10px;background:#f7f9fa}.r26-stock-value strong{font-size:12px}.r26-stock-value span{font-size:10px;color:#68737c}
.r26-valuation-badge{display:grid;gap:2px;min-width:180px;padding:9px 11px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.08);text-align:right}.r26-valuation-badge span,.r26-valuation-badge small{font-size:9px;color:#cdd2d6}.r26-valuation-badge strong{font-size:16px;color:#fff}
.r26-row-actions button.danger,.r26-table button.danger{border-color:#efc4c1;color:#a9342e}.r26-row-actions button.danger:hover,.r26-table button.danger:hover{background:#fff0ef;border-color:#df8882}
@media(max-width:760px){.r26-stock-value{align-items:flex-start;flex-direction:column}.r26-valuation-badge{min-width:0;width:100%;text-align:left}}

/* R33 · Orden de trabajo económica */
.r33-work{display:grid;gap:14px}.r33-inline-select{display:flex;gap:6px}.r33-inline-select select{flex:1}.r33-inline-select button{white-space:nowrap}.r33-section,.r33-summary,.r33-quick-panel{border:1px solid #dfe4e8;border-radius:12px;padding:12px;background:#fff}.r33-section>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.r33-section>header small{display:block;color:#68717e;margin-top:2px}.r33-cost-row,.r33-material-row{display:grid;grid-template-columns:1.4fr 1fr .55fr .7fr auto;gap:7px;align-items:end;padding:8px 0;border-bottom:1px solid #edf0f2}.r33-material-row{grid-template-columns:1fr 2fr .55fr .75fr .65fr .75fr auto}.r33-cost-row label,.r33-material-row label{font-size:10px;font-weight:700;text-transform:uppercase;color:#53606d}.r33-cost-row input,.r33-cost-row select,.r33-material-row input{width:100%;margin-top:3px}.r33-cost-row .grow,.r33-material-row .grow{min-width:0}.r33-search{position:relative;margin-bottom:8px}.r33-search>input{width:100%}.r33-results{position:absolute;z-index:20;left:0;right:0;top:100%;max-height:260px;overflow:auto;background:#fff;border:1px solid #ccd3da;border-radius:8px;box-shadow:0 10px 30px #0002}.r33-results button{display:grid;width:100%;grid-template-columns:1fr 2fr 1fr;text-align:left;padding:8px;border:0;border-bottom:1px solid #eee;background:#fff}.r33-results button:hover{background:#f5f7f8}.r33-summary{background:#f7faf8;border-color:#cbded0}.r33-summary [data-summary]{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.r33-summary [data-summary]>div{padding:8px;background:#fff;border-radius:8px;border:1px solid #e0e6e2}.r33-summary [data-summary] span{display:block;font-size:10px;color:#657064}.r33-summary [data-summary] b{font-size:15px}.r33-summary [data-summary] .total{border:2px solid #207a3a}.r33-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:8px}.wide-note{grid-column:1/-1;color:#68717e}.purchase-target-badge{margin:4px 0 8px;padding:5px 8px;border-radius:6px;background:#eef7f0;color:#176b32;font-size:11px;font-weight:700}@media(max-width:900px){.r33-material-row,.r33-cost-row,.r33-quick-grid{grid-template-columns:1fr 1fr}.r33-summary [data-summary]{grid-template-columns:1fr 1fr}}

/* R34 */
.r34-work-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.r34-warehouse-tools{display:flex;gap:8px;align-items:center;margin:10px 0}.r34-warehouse-tools input{min-width:320px;flex:1}.article-list-trash{font-size:16px;padding:7px 9px}.r26-modal-dialog{user-select:text}.r26-modal{cursor:default}
/* R34 · Modales: solo cerrar con la X de cabecera */
.r26-modal-dialog>footer [data-r26-close],
.enterprise-modal footer [data-close],
.enterprise-modal footer [data-credit-modal-close],
.purchase-modal>footer [data-close],
.stock-issue-modal>footer [data-close]{display:none!important}

/* R35 · Gestión de empleados */
.employee-view{display:grid;gap:16px;padding-bottom:34px}.employee-heading{align-items:center}.employee-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 170px 170px auto;gap:10px;align-items:center}.employee-toolbar input,.employee-toolbar select{min-height:42px;border:1px solid var(--grey-300);border-radius:9px;background:#fff;padding:0 11px;font:inherit}.employee-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.employee-kpi{background:#fff;border:1px solid var(--grey-300);border-radius:12px;padding:14px}.employee-kpi span{display:block;font-size:10px;font-weight:900;text-transform:uppercase;color:var(--grey-700)}.employee-kpi strong{display:block;font-size:24px;margin-top:5px}.employee-list{display:grid;gap:10px}.employee-card{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--grey-300);border-radius:13px;padding:13px}.employee-avatar{width:64px;height:64px;border-radius:12px;background:#f1f3f5;display:grid;place-items:center;overflow:hidden;font-weight:900;font-size:22px}.employee-avatar img{width:100%;height:100%;object-fit:cover}.employee-main h3{margin:0 0 4px;font-size:15px}.employee-meta{display:flex;gap:8px 16px;flex-wrap:wrap;color:var(--grey-700);font-size:10px}.employee-hours{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.employee-chip{background:#f4f5f6;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800}.employee-chip.hours{background:#eaf7ee;color:#14733a}.employee-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.employee-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.employee-modal-grid label{display:grid;gap:5px;font-size:10px;font-weight:800}.employee-modal-grid .wide{grid-column:1/-1}.employee-modal-grid input,.employee-modal-grid select,.employee-modal-grid textarea{width:100%;border:1px solid var(--grey-300);border-radius:8px;padding:9px;font:inherit}.employee-section{border-top:1px solid var(--grey-300);padding-top:12px;margin-top:12px}.employee-doc-list{display:grid;gap:7px;margin-top:10px}.employee-doc{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#f7f8f9;border-radius:8px}.employee-labor-list{max-height:240px;overflow:auto}.employee-labor-row{display:grid;grid-template-columns:90px 120px minmax(0,1fr) 70px;gap:8px;padding:7px 0;border-bottom:1px solid #eee;font-size:10px}.employee-photo-preview{width:110px;height:110px;border-radius:12px;background:#f3f4f5;overflow:hidden;display:grid;place-items:center}.employee-photo-preview img{width:100%;height:100%;object-fit:cover}@media(max-width:760px){.employee-toolbar,.employee-kpis,.employee-modal-grid{grid-template-columns:1fr}.employee-card{grid-template-columns:56px 1fr}.employee-avatar{width:52px;height:52px}.employee-actions{grid-column:1/-1;justify-content:flex-start}.employee-modal-grid .wide{grid-column:auto}.employee-labor-row{grid-template-columns:72px 96px 1fr 55px}}

/* =========================================================
   R35.1 · MENÚ PRINCIPAL RESPONSIVE SIN SCROLL HORIZONTAL
   En escritorio el menú ocupa todo el ancho útil y se reparte
   en dos filas equilibradas. Evita la barra horizontal y
   mantiene todos los módulos visibles de un vistazo.
   ========================================================= */
@media (min-width: 1100px){
  main.container>.tool-tabs{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    max-width:1320px!important;
    margin:20px auto 16px!important;
    padding:7px!important;
    overflow:visible!important;
    flex-wrap:unset!important;
    justify-content:stretch!important;
    scrollbar-width:none!important;
  }
  main.container>.tool-tabs::-webkit-scrollbar{display:none!important}
  main.container>.tool-tabs .tool-tab{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    padding:8px 9px!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:normal!important;
    line-height:1.2!important;
  }
}

@media (min-width: 760px) and (max-width:1099px){
  main.container>.tool-tabs{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    margin:16px auto 14px!important;
    padding:6px!important;
    overflow:visible!important;
  }
  main.container>.tool-tabs .tool-tab{
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:normal!important;
  }
}


/* =========================================================
   R35.6 · AJUSTES UI: menú horizontal, carrusel alto, empleados e imágenes locales
   ========================================================= */
.employee-profile-head{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center;margin:-2px 0 18px;padding:18px;border:1px solid var(--grey-300);border-radius:14px;background:linear-gradient(135deg,#fff 0%,#f7f8f9 100%)}
.employee-photo-preview-head{width:140px;height:140px;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.10)}
.employee-profile-head-copy{display:grid;align-content:center;justify-items:start;gap:5px;min-width:0}.employee-profile-head-copy h2{margin:0;font-size:24px}.employee-profile-head-copy p{margin:0 0 7px;color:var(--grey-700)}.employee-profile-head-copy small{display:block;color:var(--grey-700)}
.employee-photo-upload{display:inline-flex!important;margin-top:4px}

.home-showcase{height:clamp(520px,48vw,660px)!important;min-height:520px!important}
.home-banner-setting-row{grid-template-columns:42px 150px minmax(190px,.9fr) minmax(150px,.7fr) minmax(210px,1fr)!important;align-items:center!important}
.home-banner-upload-preview{width:150px;height:92px;border-radius:10px;background:#e9ecef center/cover no-repeat;border:1px solid var(--grey-300);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.home-banner-file-label{align-self:stretch;display:grid!important;align-content:center;gap:6px!important}.home-banner-upload-button{display:inline-flex!important;width:max-content;cursor:pointer}.home-banner-file-label small{font-size:9px;color:var(--grey-700);font-weight:600;text-transform:none}

@media (min-width:760px){
  main.container>.tool-tabs{display:flex!important;flex-wrap:nowrap!important;width:100%!important;max-width:1320px!important;overflow:visible!important;gap:4px!important;padding:6px!important;margin:18px auto 15px!important;justify-content:stretch!important}
  main.container>.tool-tabs .tool-tab{flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:48px!important;padding:7px 5px!important;font-size:clamp(9px,.72vw,12px)!important;line-height:1.12!important;white-space:normal!important;justify-content:center!important;text-align:center!important;gap:4px!important}
  main.container>.tool-tabs .tool-tab-icon{width:15px!important;height:15px!important;flex:0 0 15px!important}
  main.container>.tool-tabs .tool-tab-icon svg{width:15px!important;height:15px!important}
}
@media (max-width:1050px) and (min-width:760px){main.container>.tool-tabs .tool-tab-icon{display:none!important}main.container>.tool-tabs .tool-tab{font-size:10px!important;padding-inline:3px!important}}
@media (max-width:759px){main.container>.tool-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;overflow:visible!important}.home-showcase{height:390px!important;min-height:390px!important}.employee-profile-head{grid-template-columns:100px minmax(0,1fr);padding:13px;gap:14px}.employee-photo-preview-head{width:96px;height:96px}.employee-profile-head-copy h2{font-size:19px}.home-banner-setting-row{grid-template-columns:36px 100px 1fr!important}.home-banner-upload-preview{width:100px;height:70px}.home-banner-setting-row>label:nth-of-type(2),.home-banner-setting-row>label:nth-of-type(3){grid-column:2/-1}}

/* R35.8 · Carrusel con imagen real y gestión de foto de empleado */
.home-showcase-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 42%;display:block;z-index:0}
.home-showcase-image.is-error{display:none}
.home-showcase-shade{z-index:1}.home-showcase-caption{z-index:2}
.employee-photo-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:4px}
.employee-photo-actions .employee-photo-upload{margin-top:0!important}

/* R35 OT/client/date filters + employee labor billing client */
.r26-work-filters label:first-child{min-width:260px;flex:1 1 260px}.r26-work-filters label:nth-child(2){min-width:230px}.r26-work-filters label:nth-child(4),.r26-work-filters label:nth-child(5){min-width:145px}
.employee-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.employee-section-title h3{margin:0 0 4px}.employee-section-title p{margin:0;color:var(--grey-700);font-size:10px;max-width:720px}.employee-labor-filters{display:grid;grid-template-columns:160px 160px minmax(220px,1fr) auto;gap:8px;align-items:end;margin:10px 0}.employee-labor-filters label{display:grid;gap:4px;font-size:10px;font-weight:800}.employee-labor-filters input,.employee-labor-filters select{min-height:38px;border:1px solid var(--grey-300);border-radius:8px;padding:7px 9px;background:#fff;font:inherit}.employee-labor-table{min-width:720px}.employee-labor-row{grid-template-columns:90px 120px minmax(150px,.9fr) minmax(220px,1.5fr) 70px;align-items:center}.employee-labor-row.employee-labor-head{position:sticky;top:0;background:#fff;z-index:1;font-weight:900;color:var(--grey-700);border-bottom:1px solid var(--grey-300)}.employee-labor-client{font-weight:800;color:#2f3a44}
@media(max-width:760px){.employee-labor-filters{grid-template-columns:1fr 1fr}.employee-labor-filters label:nth-child(3),.employee-labor-filters button{grid-column:1/-1}.employee-labor-list{overflow:auto}.employee-labor-row{grid-template-columns:82px 100px 150px 220px 60px}}

/* R35.9 · paginación y rendimiento de órdenes de trabajo */
.r26-work-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px 2px;color:var(--grey-700);font-size:11px}.r26-work-pagination>div{display:flex;align-items:center;gap:8px}.r26-work-pagination button{min-height:34px;padding:6px 10px}.r26-work-pagination button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:680px){.r26-work-pagination{align-items:stretch;flex-direction:column}.r26-work-pagination>div{justify-content:space-between}}

/* R35.7 · Configuración > Actualizaciones */
.enterprise-update-version{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.enterprise-update-version>div{padding:14px 16px;border:1px solid var(--border,#d9dee7);border-radius:14px;background:rgba(255,255,255,.72)}.enterprise-update-version small{display:block;color:var(--muted,#687386);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}.enterprise-update-version strong{display:block;margin-top:4px;font-size:1.15rem}.enterprise-update-info{margin:14px 0;padding:14px 16px;border-radius:14px;background:rgba(15,23,42,.04)}.enterprise-update-info:empty{display:none}.enterprise-update-info ul{margin:.5rem 0 0 1.2rem;padding:0}@media(max-width:720px){.enterprise-update-version{grid-template-columns:1fr}}
.license-module-hidden{display:none!important}


/* 36.6.1 · hotfix centrado, menú de cuenta y cabecera */
.topbar{display:flex;justify-content:center;overflow:visible}
.topbar-inner{width:min(calc(100% - 32px),1320px);margin:0 auto;overflow:visible}
.account-zone{display:flex;justify-content:flex-end;overflow:visible}
.account-menu{right:0;left:auto;min-width:190px;max-width:min(92vw,240px)}
main.container{width:min(calc(100% - 32px),1320px);margin-left:auto;margin-right:auto}
@media (max-width:759px){
  .topbar-inner,main.container{width:calc(100% - 18px)!important}
  .account-menu{right:0;left:auto;transform:none}
}


/* 36.6.13 · cambio de contraseña obligatorio */
body.password-change-required .tool-tabs,body.password-change-required .cart-toggle,body.password-change-required .account-toggle{pointer-events:none;opacity:.45}
body.password-change-required .account-overlay{display:grid!important}


/* =========================================================
   36.6.13 · LEGIBILIDAD DE FORMULARIOS + ANCHO DE ESCRITORIO
   Cambios exclusivamente visuales. No modifica lógica de negocio.
   ========================================================= */
:root{--yanmar-desktop-shell:1200px}

/* Mi perfil: el contenido dinámico ya no queda encerrado en media columna. */
.account-profile-data{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0}
.account-profile-data>.profile-edit-form{width:100%;min-width:0}
.profile-edit-form,.profile-edit-grid,.profile-edit-grid label{min-width:0}
.profile-locked-grid-single{grid-template-columns:minmax(0,1fr)!important}
.profile-edit-grid input,.profile-edit-grid select{min-width:0;text-overflow:clip}

/* Presupuestos: controles suficientemente anchos para mostrar sus valores. */
.budget-commercial-grid{grid-template-columns:repeat(3,minmax(150px,1fr))!important;align-items:end}
.budget-commercial-grid label{min-width:0}
.budget-commercial-grid label>span{white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.budget-commercial-grid input,.budget-commercial-grid select{min-width:0;padding-right:30px}
.budget-commercial-grid input:not([type="number"]){padding-right:10px}

/* Escritorio algo más estrecho para dejar laterales libres. */
@media (min-width:901px){
  main.container,.topbar-inner,.footer-inner.footer-custom,.app-version{
    width:min(calc(100% - 48px),var(--yanmar-desktop-shell))!important;
    max-width:var(--yanmar-desktop-shell)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  main.container>.tool-tabs{
    width:100%!important;
    max-width:var(--yanmar-desktop-shell)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
@media (max-width:1050px) and (min-width:701px){
  .budget-commercial-grid{grid-template-columns:repeat(2,minmax(160px,1fr))!important}
}
@media (max-width:700px){
  .budget-commercial-grid{grid-template-columns:1fr!important}
  .profile-edit-grid,.profile-locked-grid{grid-template-columns:1fr!important}
  .profile-wide{grid-column:auto!important}
}


/* =========================================================
   36.6.18 · DENSIDAD VISUAL + NAVEGACIÓN HORIZONTAL CONTINUA
   Solo presentación. La lógica funcional permanece intacta.
   ========================================================= */
:root{--yanmar-desktop-shell:1060px}
body{font-size:13px;line-height:1.42}
h1{font-size:28px!important;line-height:1.12!important}
h2{font-size:20px!important;line-height:1.18!important}
h3{font-size:15px!important;line-height:1.22!important}
p,.field label,label,.admin-form label{font-size:12.5px}
input,select,textarea,button{font-size:12.5px!important}
small,.helper,.hint,.muted{font-size:10.5px}
.hero{padding-top:32px}.hero h1{font-size:27px!important}.hero p{font-size:13.5px!important}
.settings-page-heading,.page-heading{margin-bottom:8px!important}

@media (min-width:901px){
  main.container,.topbar-inner,.footer-inner.footer-custom,.app-version{
    width:min(calc(100% - 64px),var(--yanmar-desktop-shell))!important;
    max-width:var(--yanmar-desktop-shell)!important;
  }
}

/* Menú principal: una sola línea, cada botón conserva su texto completo. */
main.container>.tool-tabs{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:space-between!important;gap:2px!important;overflow-x:auto!important;
  overflow-y:hidden!important;padding:5px!important;scrollbar-width:thin;
}
main.container>.tool-tabs .tool-tab{
  flex:0 0 auto!important;width:auto!important;min-width:max-content!important;
  min-height:40px!important;padding:6px 7px!important;font-size:9.5px!important;
  line-height:1!important;white-space:nowrap!important;text-align:center!important;gap:3px!important;
}
main.container>.tool-tabs .tool-tab-icon,
main.container>.tool-tabs .tool-tab-icon svg{width:12px!important;height:12px!important;flex-basis:12px!important}

/* Submenús: siempre horizontales y sin partir etiquetas. */
.module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,.article-subnav,
[data-budget-subnav],.budget-subnav,.admin-subnav{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;
}
.module-subnav button,.settings-subnav button,.r26-subnav button,.document-config-tabs button,
.article-subnav button,[data-settings-tab],[data-budget-subtab],[data-article-subtab],[data-purchase-subtab]{
  flex:0 0 auto!important;min-width:max-content!important;white-space:nowrap!important;
  font-size:9.5px!important;line-height:1!important;padding:7px 9px!important;min-height:34px!important;
}
.settings-subnav{position:sticky!important;top:68px!important}

/* Formularios y tarjetas algo más compactos sin perder legibilidad. */
.admin-card,.card,.selector-card{padding:18px}
.field select,.field input,.field textarea{font-size:13px!important;padding:10px 12px}


/* =========================================================
   36.6.18 · MENÚ SIN RECORTE + ESTADO GLOBAL + VERSIÓN CENTRADA
   ========================================================= */
@media (min-width:901px){
  main.container>.tool-tabs{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
    justify-content:space-between!important;gap:1px!important;
    overflow:visible!important;padding:5px 4px!important;
  }
  main.container>.tool-tabs .tool-tab{
    flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
    min-height:38px!important;padding:6px 3px!important;font-size:8.6px!important;
    line-height:1!important;white-space:nowrap!important;overflow:visible!important;
    text-overflow:clip!important;gap:2px!important;
  }
  main.container>.tool-tabs .tool-tab-icon,
  main.container>.tool-tabs .tool-tab-icon svg{
    width:10px!important;height:10px!important;flex:0 0 10px!important;
  }
}
@media (max-width:900px){
  main.container>.tool-tabs{overflow-x:auto!important;overflow-y:hidden!important;justify-content:flex-start!important}
  main.container>.tool-tabs .tool-tab{white-space:nowrap!important;min-width:max-content!important}
}

/* Indicador de conectividad global: simétrico al reloj, abajo a la derecha. */
.global-connectivity{
  position:fixed!important;right:max(12px,env(safe-area-inset-right))!important;left:auto!important;
  bottom:max(12px,env(safe-area-inset-bottom))!important;z-index:245!important;
  min-height:34px!important;padding:7px 10px!important;margin:0!important;
  box-shadow:0 7px 24px rgba(20,24,28,.10)!important;backdrop-filter:blur(10px);
  background:rgba(244,251,246,.95)!important;pointer-events:none!important;
  transition:bottom .18s ease,transform .18s ease!important;
}
.global-connectivity.offline{background:rgba(255,250,240,.96)!important}
body.clock-clear-footer .global-connectivity{
  bottom:calc(var(--footer-visible-height,58px) + 12px + env(safe-area-inset-bottom))!important;
}
@media(max-width:700px){
  .global-connectivity{right:8px!important;bottom:8px!important;padding:6px 8px!important;font-size:9.5px!important}
  body.clock-clear-footer .global-connectivity{bottom:calc(var(--footer-visible-height,58px) + 8px + env(safe-area-inset-bottom))!important}
}
@media print{.global-connectivity{display:none!important}}

/* Versión: siempre centrada respecto a toda la página. */
.footer .app-version{
  display:block!important;width:100%!important;max-width:none!important;
  margin:8px auto 0!important;padding:0 12px 7px!important;
  text-align:center!important;align-self:center!important;justify-self:center!important;
  font-size:9.5px!important;line-height:1.3!important;color:#70757b!important;
}


/* =========================================================
   36.6.19 · UNIFICACION TIPOGRAFICA + SUBMENUS RESPONSIVE
   Correccion visual global sobre 36.6.18 estable.
   ========================================================= */
:root{
  --yanmar-desktop-shell:1200px;
  --yanmar-ui-font:13px;
  --yanmar-ui-small:11px;
  --yanmar-subnav-font:11.5px;
}
body{font-size:var(--yanmar-ui-font)!important;line-height:1.42}
input,select,textarea,button{font-size:12.5px!important}
small,.helper,.hint,.muted{font-size:10.5px!important}

/* Ancho de trabajo suficiente en escritorio; nunca permitir que un bloque hijo
   ensanche la pagina completa. */
@media (min-width:901px){
  main.container,.topbar-inner,.footer-inner.footer-custom,.app-version{
    width:min(calc(100% - 48px),var(--yanmar-desktop-shell))!important;
    max-width:var(--yanmar-desktop-shell)!important;
  }
}
main.container,.admin-card,.card,.selector-card,.module-subpanel{min-width:0}

/* Menú principal legible: no volver a reducirlo a 8-9px. Si el viewport no
   permite una sola línea, el propio contenedor desplaza horizontalmente. */
main.container>.tool-tabs{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:flex-start!important;gap:4px!important;padding:6px!important;
  overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;
}
main.container>.tool-tabs .tool-tab{
  flex:1 1 auto!important;min-width:max-content!important;min-height:40px!important;
  padding:7px 8px!important;font-size:10.5px!important;line-height:1.15!important;
  white-space:nowrap!important;text-align:center!important;gap:4px!important;
}
main.container>.tool-tabs .tool-tab-icon,
main.container>.tool-tabs .tool-tab-icon svg{width:12px!important;height:12px!important;flex:0 0 12px!important}

/* Todos los submenús de módulos comparten exactamente la misma métrica. */
.module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,.article-subnav,
.purchase-subnav,.order-workspace-subnav,[data-budget-subnav],.budget-subnav,.admin-subnav{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  gap:5px!important;max-width:100%!important;min-width:0!important;
  overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;
  padding:6px!important;
}
.module-subnav button,.settings-subnav button,.r26-subnav button,.document-config-tabs button,
.article-subnav button,.purchase-subnav button,.order-workspace-subnav button,
[data-budget-subnav] button,.budget-subnav button,.admin-subnav button,
[data-settings-tab],[data-budget-subtab],[data-article-subtab],[data-purchase-subtab]{
  flex:0 0 auto!important;min-width:max-content!important;min-height:36px!important;
  padding:8px 11px!important;font-size:var(--yanmar-subnav-font)!important;
  line-height:1.15!important;white-space:nowrap!important;font-weight:800!important;
}

/* Stock: la fila de filtros nunca puede salirse de la tarjeta. En escritorio
   caben los siete controles principales; Limpiar filtros queda en segunda línea. */
.stock-filter-grid{
  width:100%!important;max-width:100%!important;min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(250px,2fr) repeat(4,minmax(105px,1fr)) minmax(170px,1.35fr) 76px!important;
  gap:9px!important;align-items:end!important;
}
.stock-filter-grid label{min-width:0!important;font-size:10.5px!important;line-height:1.2!important}
.stock-filter-grid label.wide{grid-column:auto!important}
.stock-filter-grid input,.stock-filter-grid select{width:100%!important;min-width:0!important;max-width:100%!important}
#stock-clear-filters{grid-column:1/-1!important;justify-self:start!important;min-height:32px!important;padding:6px 10px!important}

@media (max-width:1179px){
  .stock-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .stock-filter-grid label.wide{grid-column:span 2!important}
  #stock-clear-filters{grid-column:1/-1!important}
}
@media (max-width:820px){
  .stock-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .stock-filter-grid label.wide{grid-column:1/-1!important}
}
@media (max-width:560px){
  .stock-filter-grid{grid-template-columns:1fr!important}
  .stock-filter-grid label.wide,#stock-clear-filters{grid-column:auto!important}
  main.container>.tool-tabs .tool-tab{font-size:11px!important}
}
\n\n/* =========================================================
   36.6.21 · RESPONSIVE GLOBAL + MENÚ SIN SCROLL + SEMÁFORO
   ========================================================= */
:root{
  --yanmar-desktop-shell:1328px;
  --yanmar-ui-red:#E23B33;
  --yanmar-ui-bg:#f4f5f7;
  --yanmar-ui-line:#dcdfe4;
}
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%}
main.container,.topbar-inner,.footer-inner.footer-custom,.app-version{
  width:min(calc(100% - 32px),var(--yanmar-desktop-shell))!important;
  max-width:var(--yanmar-desktop-shell)!important;
  margin-left:auto!important;margin-right:auto!important;
}

/* Escritorio ancho: una sola línea y sin barra de desplazamiento. */
@media (min-width:1241px){
  main.container>.tool-tabs{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
    justify-content:space-between!important;gap:2px!important;padding:6px!important;
    overflow:visible!important;width:100%!important;max-width:none!important;
  }
  main.container>.tool-tabs .tool-tab{
    flex:0 1 auto!important;min-width:0!important;width:auto!important;
    min-height:40px!important;padding:7px 7px!important;font-size:10.5px!important;
    line-height:1.12!important;white-space:nowrap!important;gap:3px!important;
  }
}

/* Ventanas medianas: el menú se reorganiza en filas, nunca crea scroll horizontal. */
@media (max-width:1240px){
  main.container>.tool-tabs{
    display:flex!important;flex-wrap:wrap!important;overflow:visible!important;
    justify-content:flex-start!important;gap:5px!important;padding:6px!important;
  }
  main.container>.tool-tabs .tool-tab{
    flex:1 1 135px!important;min-width:120px!important;max-width:none!important;
    min-height:40px!important;font-size:10.5px!important;padding:7px 9px!important;
    white-space:normal!important;line-height:1.15!important;
  }
}

/* Los submenús también responden al ancho en lugar de desplazarse. */
.module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,.article-subnav,
.purchase-subnav,.order-workspace-subnav,[data-budget-subnav],.budget-subnav,.admin-subnav{
  flex-wrap:wrap!important;overflow-x:visible!important;overflow-y:visible!important;
  width:100%!important;max-width:100%!important;
}
.module-subnav button,.settings-subnav button,.r26-subnav button,.document-config-tabs button,
.article-subnav button,.purchase-subnav button,.order-workspace-subnav button,
[data-budget-subnav] button,.budget-subnav button,.admin-subnav button,
[data-settings-tab],[data-budget-subtab],[data-article-subtab],[data-purchase-subtab]{
  flex:0 1 auto!important;min-width:0!important;font-size:11.5px!important;
}

/* Barras, cabeceras y herramientas: pueden saltar de línea sin desbordar. */
.admin-page-heading,.r26-heading,.r26-toolbar,.enterprise-top-tools,.stock-actions-row,
.article-admin-head,.section-head,.results-header{max-width:100%;min-width:0;flex-wrap:wrap!important}
.r34-warehouse-tools{display:flex!important;flex-wrap:wrap!important;max-width:100%}
.r34-warehouse-tools input{min-width:min(320px,100%)!important;flex:1 1 320px!important}
.r26-stock-value{flex-wrap:wrap!important}
.r26-table-wrap,.enterprise-table,.admin-table{max-width:100%;-webkit-overflow-scrolling:touch}

/* Semáforo: tarjetas accionables y estado seleccionado. */
button.r26-stock-summary{
  width:100%;margin:0;background:#fff!important;color:var(--ink)!important;
  text-align:left;cursor:pointer;font:inherit;border:1px solid #e6e9eb!important;
  box-shadow:none!important;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
button.r26-stock-summary:hover{border-color:#efaaa5!important;background:#fff9f8!important}
button.r26-stock-summary.active{
  border-color:var(--red)!important;background:#fff7f6!important;
  box-shadow:0 0 0 2px rgba(226,59,51,.10)!important;
}
button.r26-stock-summary:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.r26-stock-summary small{font-size:10.5px!important}

@media (max-width:1000px){
  main.container,.topbar-inner,.footer-inner.footer-custom,.app-version{width:calc(100% - 24px)!important}
  .topbar-inner{flex-wrap:wrap!important;gap:10px!important}
  .r26-grid-2{grid-template-columns:1fr!important}
}
@media (max-width:760px){
  main.container,.topbar-inner,.footer-inner.footer-custom,.app-version{width:calc(100% - 16px)!important}
  .hero h1,.admin-page-heading h1,.r26-heading h1{font-size:clamp(23px,7vw,28px)!important}
  main.container>.tool-tabs .tool-tab{flex:1 1 calc(50% - 5px)!important;min-width:0!important}
  .module-subnav button,.settings-subnav button,.r26-subnav button,.document-config-tabs button,
  .article-subnav button,.purchase-subnav button,.order-workspace-subnav button,
  [data-budget-subnav] button,.budget-subnav button,.admin-subnav button{
    flex:1 1 calc(50% - 5px)!important;text-align:center!important;
  }
  .r26-kpi-grid{grid-template-columns:1fr 1fr!important}
  .stock-filter-grid{grid-template-columns:1fr 1fr!important}
  .topbar-inner{padding-left:0!important;padding-right:0!important}
}
@media (max-width:480px){
  main.container>.tool-tabs .tool-tab{flex:1 1 100%!important}
  .module-subnav button,.settings-subnav button,.r26-subnav button,.document-config-tabs button,
  .article-subnav button,.purchase-subnav button,.order-workspace-subnav button,
  [data-budget-subnav] button,.budget-subnav button,.admin-subnav button{flex:1 1 100%!important}
  .r26-kpi-grid,.stock-filter-grid{grid-template-columns:1fr!important}
  .admin-card,.card,.selector-card,.r26-card{padding:13px!important}
}


/* =========================================================
   36.6.22 · AJUSTE SEMÁFORO + COSTE VALORADO
   ========================================================= */
/* El contador puede contener 6+ cifras sin invadir la etiqueta. */
.r26-stock-summary{
  grid-template-columns:13px minmax(64px,max-content) minmax(0,1fr)!important;
  column-gap:10px!important;min-width:0!important;
}
.r26-stock-summary b{
  min-width:64px!important;white-space:nowrap!important;
  font-variant-numeric:tabular-nums;line-height:1.1!important;
}
.r26-stock-summary small{
  min-width:0!important;overflow-wrap:anywhere;line-height:1.2!important;
}
.r26-cost-value{white-space:nowrap;color:#38414a}
.r26-cost-value:empty::after{content:'—';color:#8a929b}
@media(max-width:620px){
  .r26-stock-summary{grid-template-columns:13px minmax(54px,max-content) minmax(0,1fr)!important}
  .r26-stock-summary b{min-width:54px!important;font-size:15px!important}
}

/* =========================================================
   36.6.27 · TABLAS MANTENIMIENTO + SUMATORIO OT
   ========================================================= */
.maintenance-selector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 14px}
.maintenance-selector-grid .selector-card{margin:0;min-width:0}
.maintenance-drive-selector{border-left:4px solid #4d7ea8}
.maintenance-admin-action-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:min(620px,58%)}
.maintenance-admin-action-group{border:1px solid #dfe5e1;border-radius:10px;background:#fff;padding:10px 12px;display:grid;gap:8px}
.maintenance-admin-action-group>strong{font-size:11px;color:#44505a}
.maintenance-admin-action-group .maintenance-admin-actions{justify-content:flex-start}
.r26-table tfoot .r26-work-total-row td{background:#f7f8fa;border-top:2px solid #d9dde2;font-weight:800}
.r26-work-total-label{text-align:right!important;text-transform:uppercase;letter-spacing:.5px;color:#4f5963;font-size:10px}
.r26-work-total-cell strong{font-size:14px;display:block;color:#17202a}
.r26-work-total-cell small{display:block;color:#67717b;font-weight:600;margin-top:2px}
@media(max-width:900px){.maintenance-admin-tools{display:grid}.maintenance-admin-action-groups{min-width:0;width:100%}}
@media(max-width:760px){.maintenance-selector-grid,.maintenance-admin-action-groups{grid-template-columns:1fr}.maintenance-admin-action-group .maintenance-admin-actions{display:grid;grid-template-columns:1fr}.maintenance-admin-action-group .maintenance-admin-actions button{width:100%}}

/* 36.6.32 · trazabilidad y adjuntos */
.trace-modal{position:fixed;inset:0;z-index:10050;background:rgba(20,24,28,.46);display:flex;align-items:center;justify-content:center;padding:24px}.trace-dialog{width:min(920px,96vw);max-height:90vh;overflow:hidden;background:#fff;border:1px solid #dfe3e7;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.22);display:flex;flex-direction:column}.trace-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e7eaed}.trace-dialog>header h2{margin:2px 0 0}.trace-dialog>header button{border:0;background:transparent;font-size:25px;cursor:pointer}.trace-body{padding:20px 22px;overflow:auto}.trace-loading,.trace-empty,.trace-error{padding:22px;border-radius:10px;background:#f5f6f7;color:#5d6369}.trace-error{background:#fff1f1;color:#a12626}.trace-timeline{display:grid;gap:0}.trace-timeline article{position:relative;display:grid;grid-template-columns:22px 1fr;gap:12px;padding:0 0 18px}.trace-timeline article:before{content:"";position:absolute;left:7px;top:14px;bottom:-3px;width:1px;background:#d8dde1}.trace-timeline article:last-child:before{display:none}.trace-dot{width:15px;height:15px;border-radius:50%;background:#e23b33;margin-top:3px;z-index:1}.trace-timeline strong{display:block}.trace-timeline small{display:block;color:#6c737a;margin-top:3px}.trace-changes{margin:9px 0 0;padding:9px 12px 9px 28px;background:#f6f7f8;border-radius:8px}.trace-changes li{margin:4px 0}.trace-changes em{font-style:normal;padding:0 7px;color:#8b9298}.trace-upload{display:grid;grid-template-columns:180px minmax(260px,1fr) auto;gap:10px;align-items:end;margin-top:18px;padding-top:18px;border-top:1px solid #e5e8eb}.trace-upload label{display:grid;gap:5px}.trace-upload small{grid-column:1/-1;color:#697178}.trace-files{display:grid;gap:8px}.trace-file{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:11px 12px;border:1px solid #e3e6e9;border-radius:9px}.trace-file>div:first-child{min-width:0}.trace-file strong,.trace-file span{display:block;overflow-wrap:anywhere}.trace-file span{font-size:11px;color:#737a80;margin-top:3px}.trace-file>div:last-child{display:flex;gap:6px;flex-wrap:wrap}.trace-link{text-decoration:none;display:inline-flex;align-items:center}.r26-crm-followup-actions{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}.r26-task-badge{display:inline-block;margin-top:4px;padding:3px 7px;border-radius:999px;background:#eef1f3;font-size:10px}.r26-task-badge.done{background:#e8f6ec;color:#2c6f3b}.r26-task-badge.overdue{background:#fff0ef;color:#aa2c25}@media(max-width:760px){.trace-upload{grid-template-columns:1fr}.trace-upload small{grid-column:auto}.trace-file{align-items:flex-start;flex-direction:column}.trace-modal{padding:10px}}

/* =========================================================
   36.6.34 · SISTEMA VISUAL UNIFICADO WEB / CONTROL CENTER
   Modales, X de cierre y jerarquía de botones.
   ========================================================= */
:root{
  --ui-modal-overlay:rgba(17,22,27,.62);
  --ui-modal-line:#e2e5e8;
  --ui-modal-radius:17px;
  --ui-modal-shadow:0 24px 80px rgba(0,0,0,.30);
  --ui-modal-hover:#f2f3f4;
}

/* La misma capa visual para todas las ventanas flotantes. */
.enterprise-modal,
.r26-modal,
.trace-modal,
.maintenance-editor-overlay,
.series-pin-overlay,
.legal-overlay,
.account-overlay,
.credit-request-overlay,
.shipping-cost-overlay{
  background:var(--ui-modal-overlay)!important;
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
}

/* Una sola geometría de ventana. Se conserva el ancho específico de cada módulo. */
.enterprise-modal>section,
.r26-modal-dialog,
.trace-dialog,
.maintenance-editor-dialog,
.series-pin-dialog,
.legal-dialog,
.account-panel,
.credit-request-modal,
.shipping-cost-modal{
  border:1px solid var(--ui-modal-line)!important;
  border-radius:var(--ui-modal-radius)!important;
  background:#fff!important;
  box-shadow:var(--ui-modal-shadow)!important;
}

/* X común: neutra, sin círculo rojo y con hover gris. */
.modal-close-unified,
.enterprise-modal>section>header>button:last-child,
.r26-modal-dialog>header>[data-r26-close],
.trace-dialog>header>button,
.series-pin-close,
.legal-dialog>header .btn-icon,
.account-panel>header .btn-icon,
.credit-request-modal>header .btn-icon,
.shipping-cost-modal>header .btn-icon{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  flex:0 0 36px!important;
  display:inline-grid!important;
  place-items:center!important;
  padding:0!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:var(--ink)!important;
  font-size:25px!important;
  font-weight:500!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
.modal-close-unified:hover,
.enterprise-modal>section>header>button:last-child:hover,
.r26-modal-dialog>header>[data-r26-close]:hover,
.trace-dialog>header>button:hover,
.series-pin-close:hover,
.legal-dialog>header .btn-icon:hover,
.account-panel>header .btn-icon:hover,
.credit-request-modal>header .btn-icon:hover,
.shipping-cost-modal>header .btn-icon:hover{
  background:var(--ui-modal-hover)!important;
  color:var(--ink)!important;
  box-shadow:none!important;
}

/* Cabeceras: mismo ritmo y separación visual. */
.r26-modal-dialog>header,
.trace-dialog>header,
.maintenance-editor-head,
.legal-dialog>header{
  min-height:64px;
  padding:14px 17px!important;
  border-bottom:1px solid var(--ui-modal-line)!important;
}
.enterprise-modal>section>header{
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--ui-modal-line);
}
.account-panel>header,
.credit-request-modal>header,
.shipping-cost-modal>header{
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--ui-modal-line)!important;
}

/* Botones de acción dentro de modales: primaria roja, secundaria blanca. */
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.legal-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) .btn-primary{
  min-height:40px;
  padding:10px 15px;
  border:1px solid var(--red)!important;
  border-radius:9px!important;
  background:var(--red)!important;
  color:#fff!important;
  font-weight:800;
}
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.legal-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) .btn-primary:hover{
  border-color:var(--red-dark)!important;
  background:var(--red-dark)!important;
  color:#fff!important;
}
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.legal-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) .btn-secondary{
  min-height:40px;
  padding:10px 15px;
  border:1px solid var(--grey-300)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ink)!important;
  font-weight:700;
}
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.legal-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) .btn-secondary:hover{
  border-color:var(--red)!important;
  background:#fff!important;
  color:var(--red)!important;
}

/* Controles de formulario con la misma forma dentro de cualquier modal. */
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) input,
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) select,
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) textarea{
  border-radius:9px!important;
  border-color:var(--grey-300)!important;
}
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) input:focus,
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) select:focus,
:is(.enterprise-modal,.r26-modal,.trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay) textarea:focus{
  outline:none!important;
  border-color:var(--red)!important;
  box-shadow:0 0 0 2px rgba(226,59,51,.08)!important;
}

@media(max-width:640px){
  .enterprise-modal,.trace-modal,.legal-overlay,.account-overlay,.credit-request-overlay,.shipping-cost-overlay{padding:8px!important}
}

/* 36.6.35 · Clientes: separacion visual entre el bloque VISTAS y la linea de resumen/ayuda.
   No modifica el espaciado interno entre el contador y el texto "Vista compacta". */
#productivity-clients + .admin-client-list-help{margin-top:16px}


/* 36.6.36 · menu principal más ancho y preferencias de visibilidad */
@media (min-width:1180px){
  main.container>.tool-tabs{
    width:min(calc(100vw - 32px),1540px)!important;
    max-width:none!important;
    margin-left:50%!important;
    transform:translateX(-50%)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    padding:7px 8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:thin;
  }
  main.container>.tool-tabs .tool-tab{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:max-content!important;
    min-height:42px!important;
    padding:8px 10px!important;
    font-size:11px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    gap:5px!important;
  }
  main.container>.tool-tabs .tool-tab-icon,
  main.container>.tool-tabs .tool-tab-icon svg{width:14px!important;height:14px!important;flex:0 0 14px!important}
}
.menu-visibility-settings-panel{display:block}
.menu-visibility-note{display:flex;flex-direction:column;gap:4px;padding:12px 14px;margin-bottom:14px;border:1px solid #dfe4e8;border-radius:12px;background:#f8fafb}
.menu-visibility-note span{font-size:12px;color:#65727d}
.menu-visibility-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 16px}
.menu-visibility-option{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #dde3e7;border-radius:12px;background:#fff;cursor:pointer;min-height:62px}
.menu-visibility-option:hover{background:#f7f9fa;border-color:#cbd3d9}
.menu-visibility-option.fixed{background:#f4f6f7;cursor:default}
.menu-visibility-option input{width:18px;height:18px;accent-color:#E23B33;flex:0 0 auto}
.menu-visibility-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.menu-visibility-copy strong{font-size:13px;color:#202a32}
.menu-visibility-copy small{font-size:11px;color:#6b7780}
@media(max-width:900px){.menu-visibility-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.menu-visibility-options{grid-template-columns:1fr}}


/* =========================================================
   36.6.39 · MENÚ PRINCIPAL ANCHO REAL · SIN DESPLAZAMIENTO
   La barra usa prácticamente todo el viewport en escritorio.
   No se permite scroll horizontal: los botones se distribuyen
   dinámicamente según el número de opciones visibles.
   ========================================================= */
@media (min-width:1180px){
  main.container>.tool-tabs{
    width:calc(100vw - 16px)!important;
    max-width:1800px!important;
    margin-left:50%!important;
    margin-right:0!important;
    transform:translateX(-50%)!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    column-gap:8px!important;
    row-gap:0!important;
    padding:8px 10px!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scrollbar-width:none!important;
  }
  main.container>.tool-tabs::-webkit-scrollbar{display:none!important}
  main.container>.tool-tabs .tool-tab:not(.hidden){
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:42px!important;
    padding:8px 9px!important;
    font-size:10.5px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    gap:5px!important;
  }
  main.container>.tool-tabs .tool-tab-icon,
  main.container>.tool-tabs .tool-tab-icon svg{
    width:14px!important;height:14px!important;flex:0 0 14px!important;
  }
}


/* =========================================================
   36.7.5 M7 · NAVEGACIÓN MÓVIL ESTABLE + CABECERA CENTRADA
   ========================================================= */
.mobile-main-menu-toggle{display:none}
.scanner-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:820px){
  .mobile-main-menu-toggle{
    width:100%;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;
    margin:10px 0 8px;padding:11px 13px;border:1px solid var(--grey-300);border-radius:12px;background:#fff;color:var(--ink);
    box-shadow:var(--shadow);font:inherit;text-align:left;cursor:pointer;
  }
  .mobile-main-menu-toggle>span:first-child{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.45px;color:var(--red)}
  .mobile-main-menu-toggle strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;text-align:center}
  .mobile-main-menu-chevron{font-size:20px;line-height:1;transition:transform .15s ease}
  .mobile-main-menu-toggle[aria-expanded="true"] .mobile-main-menu-chevron{transform:rotate(180deg)}
  main.container>#main-tool-tabs.tool-tabs{
    display:none!important;width:100%!important;max-width:none!important;margin:0 0 12px!important;transform:none!important;
    padding:7px!important;gap:5px!important;border:1px solid var(--grey-300)!important;border-radius:12px!important;background:#fff!important;
    box-shadow:0 10px 28px rgba(20,24,30,.10)!important;overflow:visible!important;
    grid-template-columns:none!important;flex-direction:column!important;flex-wrap:nowrap!important;
  }
  main.container>#main-tool-tabs.tool-tabs.mobile-menu-open{display:flex!important}
  main.container>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
    display:flex!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:42px!important;
    flex:0 0 auto!important;justify-content:flex-start!important;text-align:left!important;white-space:normal!important;
    padding:9px 11px!important;font-size:12px!important;gap:8px!important;border-radius:9px!important;
  }
  main.container>#main-tool-tabs.tool-tabs .tool-tab-icon{display:flex!important;width:16px!important;height:16px!important;flex:0 0 16px!important}
  main.container>#main-tool-tabs.tool-tabs .tool-tab-icon svg{width:16px!important;height:16px!important}
  .topbar-inner{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:8px!important}
  .topbar-inner>.brand{grid-column:1;min-width:0}
  .topbar-inner>.account-zone{grid-column:2}
  .topbar-inner>.cart-toggle{grid-column:3}
  .topbar-inner>.enterprise-top-tools{grid-column:1/-1!important;grid-row:2;width:min(100%,620px)!important;justify-self:center!important;margin:4px auto 0!important;justify-content:center!important}
  .enterprise-top-tools>.enterprise-search-wrap{width:min(100%,540px)!important;max-width:540px!important;flex:1 1 360px!important;margin-inline:auto!important}
  .enterprise-search-wrap>input{width:100%!important}
  .scanner-heading-actions{width:100%;justify-content:stretch}
  .scanner-heading-actions .btn-secondary{flex:1 1 140px}
  .scanner-camera-panel{width:100%;overflow:hidden}
  #scanner-video{width:100%!important;max-height:62vh!important;object-fit:cover;border-radius:10px;background:#111}
}
@media(max-width:520px){
  .topbar-inner{grid-template-columns:minmax(0,1fr) auto!important}
  .topbar-inner>.brand{grid-column:1}
  .topbar-inner>.account-zone{grid-column:2}
  .topbar-inner>.cart-toggle{grid-column:1/-1;justify-self:center;min-width:150px;justify-content:center}
  .topbar-inner>.enterprise-top-tools{grid-row:auto}
  .brand img{max-width:150px;height:auto!important}
}


/* ===== assets/operations.css ===== */
.operations-view{padding-bottom:36px}.operations-heading{align-items:flex-start}.operations-toolbar{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;margin:14px 0 16px;padding:14px;border:1px solid #dfe4e8;background:#fff;border-radius:14px}.operations-toolbar label,.scanner-fields label,.scanner-quote-form label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:12px}.operations-toolbar select,.scanner-fields input,.scanner-actions select,.scanner-quote-form input,.scanner-quote-form select,.scanner-quote-form textarea,.scanner-code-row input{min-height:42px;border:1px solid #d5dce2;border-radius:10px;padding:9px 11px;background:#fff;color:#1e2933}.operations-kpis{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin-bottom:14px}.operations-kpis button{border:1px solid #dde3e7;background:#fff;border-radius:13px;padding:12px;text-align:left;display:flex;justify-content:space-between;align-items:center;color:#1d2730}.operations-kpis button:hover{background:#f2f3f4}.operations-kpis strong{font-size:20px}.operations-list{display:grid;gap:9px}.operations-item{display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:14px;align-items:center;background:#fff;border:1px solid #dfe4e8;border-radius:14px;padding:13px 14px}.operations-item.urgent{border-left:4px solid #E23B33}.operations-item-kind{text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.08em;color:#557}.operations-item-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.operations-item-copy strong{font-size:14px}.operations-item-copy span,.operations-item-copy small{color:#65727d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.operations-item-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;align-items:end}.wc-assign{display:grid;grid-template-columns:minmax(130px,180px) auto;gap:5px;align-items:end}.wc-assign span{grid-column:1/-1;font-size:10px;font-weight:800;color:#65727d;text-transform:uppercase;letter-spacing:.04em}.wc-assign select{min-height:36px;border:1px solid #d5dce2;border-radius:9px;padding:6px 9px;background:#fff;color:#1e2933}.wc-assign button{min-height:36px}.operations-empty{padding:32px;text-align:center;border:1px dashed #d4dce2;border-radius:14px;color:#687681;background:#fff}.scanner-mode-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.scanner-mode-tabs button{border:1px solid #d8dee3;background:#fff;border-radius:10px;padding:10px 14px;font-weight:800}.scanner-mode-tabs button.active{background:#E23B33;color:#fff;border-color:#E23B33}.scanner-capture-card,.scanner-article-card,.scanner-quote-cart{background:#fff;border:1px solid #dfe4e8;border-radius:16px;padding:16px;margin-bottom:14px}.scanner-code-label{display:flex;flex-direction:column;gap:7px;font-weight:800}.scanner-code-row{display:grid;grid-template-columns:1fr auto;gap:8px}.scanner-code-row input{font-size:18px}.scanner-code-label small,.scanner-hint{color:#687681;font-weight:400}.scanner-camera-status{display:block;margin-top:2px}.scanner-camera-status.available{color:#18794e}.scanner-camera-status.warning{color:#8a5a00}.scanner-camera-status.unavailable{color:#9b2c2c}.scanner-camera-panel{margin-top:14px}.scanner-camera-panel video{display:block;width:min(100%,520px);max-height:360px;background:#111;border-radius:14px;margin-bottom:10px}.scanner-article-main{display:flex;justify-content:space-between;gap:18px;align-items:center;border-bottom:1px solid #e5e9ec;padding-bottom:13px;margin-bottom:13px}.scanner-article-main h2{margin:3px 0}.scanner-article-main p{margin:0;color:#65727d}.scanner-stock-badge{min-width:120px;text-align:center;background:#f5f7f8;border-radius:12px;padding:10px}.scanner-stock-badge span,.scanner-stock-badge small{display:block;color:#65727d}.scanner-stock-badge strong{font-size:26px}.scanner-fields{display:grid;grid-template-columns:140px 1fr 1fr;gap:12px}.scanner-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:14px}.scanner-actions select{min-width:300px}.scanner-quote-cart header{display:flex;justify-content:space-between;align-items:center}.scanner-quote-lines{display:grid;gap:8px;margin:12px 0}.scanner-quote-line{display:grid;grid-template-columns:minmax(0,1fr) 110px 120px 42px;gap:8px;align-items:center;border:1px solid #e1e5e8;border-radius:11px;padding:9px}.scanner-quote-line>div{display:flex;flex-direction:column}.scanner-quote-line span{color:#6c7882}.scanner-quote-line input{width:70px}.scanner-quote-form{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-top:10px;border-top:1px solid #e5e9ec}.scanner-wide{grid-column:1/-1}.scanner-qr-print{background:#fff;color:#000;text-align:center;padding:20px}.scanner-qr-print #scanner-qr-code{width:180px;height:180px;margin:0 auto 10px}.scanner-qr-print strong,.scanner-qr-print span{display:block}.hidden{display:none!important}@media(max-width:900px){.operations-toolbar,.scanner-fields,.scanner-quote-form{grid-template-columns:1fr 1fr}.operations-kpis{grid-template-columns:1fr 1fr}.operations-item{grid-template-columns:75px minmax(0,1fr)}.operations-item-actions{grid-column:1/-1;justify-content:flex-start}.wc-assign{grid-template-columns:minmax(160px,1fr) auto}.scanner-quote-line{grid-template-columns:1fr 90px}.scanner-quote-line>strong,.scanner-quote-line>button{justify-self:start}}@media(max-width:600px){.operations-toolbar,.scanner-fields,.scanner-quote-form{grid-template-columns:1fr}.operations-kpis{grid-template-columns:1fr 1fr}.scanner-code-row{grid-template-columns:1fr}.scanner-actions select{min-width:0;width:100%}.scanner-article-main{align-items:flex-start}.scanner-stock-badge{min-width:95px}.wc-assign{width:100%;grid-template-columns:1fr auto}}@media print{body>*:not(#admin-scanner-view):not(#scanner-qr-print){display:none!important}.scanner-qr-print{display:block!important;position:fixed;inset:0}.scanner-qr-print #scanner-qr-code svg,.scanner-qr-print #scanner-qr-code canvas{max-width:180px;max-height:180px}}

/* 36.7.5 M7 · Escáner continuo y lote de almacén */
.scanner-video-wrap{position:relative;width:min(100%,620px);overflow:hidden;border-radius:14px;background:#111}.scanner-video-wrap video{width:100%;max-height:68vh;object-fit:cover;margin:0!important;border-radius:14px}.scanner-target{pointer-events:none;position:absolute;inset:50% auto auto 50%;width:min(78%,420px);height:34%;min-height:110px;transform:translate(-50%,-50%);border:2px solid rgba(255,255,255,.9);border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.2)}.scanner-target:before,.scanner-target:after,.scanner-target span:before,.scanner-target span:after{content:"";position:absolute;width:34px;height:34px;border-color:#E23B33;border-style:solid}.scanner-target:before{left:-3px;top:-3px;border-width:4px 0 0 4px;border-radius:12px 0 0 0}.scanner-target:after{right:-3px;top:-3px;border-width:4px 4px 0 0;border-radius:0 12px 0 0}.scanner-target span:before{left:-3px;bottom:-3px;border-width:0 0 4px 4px;border-radius:0 0 0 12px}.scanner-target span:after{right:-3px;bottom:-3px;border-width:0 4px 4px 0;border-radius:0 0 12px 0}.scanner-camera-tools{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:10px}.scanner-live-counter{font-size:12px;font-weight:800;color:#4a5965;background:#f3f5f6;border-radius:999px;padding:7px 10px}.scanner-unmatched-card{display:grid;gap:12px;background:#fff9e9;border:1px solid #f1d38a;border-radius:16px;padding:16px;margin-bottom:14px}.scanner-unmatched-card h2{margin:3px 0 5px;overflow-wrap:anywhere}.scanner-unmatched-card p{margin:0;color:#6f5b29}.scanner-unmatched-card label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800}.scanner-unmatched-card input{min-height:44px;border:1px solid #d5dce2;border-radius:10px;padding:10px 12px;background:#fff}.scanner-associate-suggestions{display:grid;gap:6px;max-height:260px;overflow:auto}.scanner-associate-suggestions button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:1px solid #dde3e7;background:#fff;border-radius:10px;padding:9px 11px}.scanner-associate-suggestions button:hover{background:#f3f5f6}.scanner-associate-suggestions span{font-size:12px;color:#63717c}.scanner-associate-empty{padding:10px;border:1px dashed #d3b568;border-radius:10px;color:#725f2f;background:#fff}.scanner-batch-card{background:#fff;border:1px solid #dfe4e8;border-radius:16px;padding:16px;margin-bottom:14px}.scanner-batch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #e5e9ec;padding-bottom:12px}.scanner-batch-head h2{margin:3px 0}.scanner-batch-head p{margin:0;color:#65727d}.scanner-batch-empty{padding:24px 14px;text-align:center;color:#687681;border:1px dashed #d4dce2;border-radius:12px;margin-top:12px;background:#fafbfb}.scanner-batch-lines{display:grid;gap:8px;margin:12px 0}.scanner-batch-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;border:1px solid #e1e5e8;border-radius:12px;padding:10px 11px}.scanner-batch-copy{display:flex;flex-direction:column;min-width:0}.scanner-batch-copy strong{overflow-wrap:anywhere}.scanner-batch-copy span,.scanner-batch-copy small{color:#687681;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scanner-batch-qty{display:grid;grid-template-columns:36px 64px 36px;align-items:center}.scanner-batch-qty button{height:38px;border:1px solid #d4dce2;background:#f7f8f9;font-weight:900;font-size:18px}.scanner-batch-qty button:first-child{border-radius:9px 0 0 9px}.scanner-batch-qty button:last-child{border-radius:0 9px 9px 0}.scanner-batch-qty input{height:38px;width:64px;border:1px solid #d4dce2;border-left:0;border-right:0;text-align:center;font-weight:800}.scanner-batch-price{min-width:90px;text-align:right}.scanner-batch-actions{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:end;padding-top:13px;border-top:1px solid #e5e9ec}.scanner-batch-actions label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800}.scanner-batch-actions input,.scanner-batch-actions select{min-height:42px;border:1px solid #d5dce2;border-radius:10px;padding:9px 11px;background:#fff}.scanner-quote-batch-actions{padding-top:13px;border-top:1px solid #e5e9ec}
@media(max-width:760px){.scanner-mode-tabs{display:grid;grid-template-columns:1fr 1fr}.scanner-mode-tabs button{width:100%;padding:10px 8px}.scanner-batch-line{grid-template-columns:minmax(0,1fr) auto}.scanner-batch-price{grid-column:1;justify-self:start}.scanner-batch-remove{grid-column:2;justify-self:end}.scanner-batch-actions{grid-template-columns:1fr}.scanner-camera-tools{align-items:stretch;flex-direction:column}.scanner-live-counter{text-align:center}.scanner-video-wrap{width:100%}.scanner-target{width:82%;height:30%}}
@media(max-width:480px){.scanner-mode-tabs{grid-template-columns:1fr 1fr;gap:6px}.scanner-capture-card,.scanner-article-card,.scanner-batch-card,.scanner-unmatched-card{padding:12px;border-radius:13px}.scanner-batch-head{flex-direction:column}.scanner-batch-head>.btn-ghost{width:100%}.scanner-batch-line{grid-template-columns:1fr}.scanner-batch-qty{justify-self:start}.scanner-batch-price,.scanner-batch-remove{grid-column:1;justify-self:start}.scanner-batch-remove{width:100%}.scanner-target{height:26%;min-height:95px}}


/* ===== assets/scanner-m75.css ===== */
/* YANMAR Web 36.7.5 M7.5 · flujo de alta desde escáner */
.scanner-create-divider{display:flex;align-items:center;gap:10px;color:#7a6841;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.scanner-create-divider:before,.scanner-create-divider:after{content:"";height:1px;flex:1;background:#ead9ad}
.scanner-create-panel{display:grid;gap:10px;padding:13px;border:1px solid #ead9ad;border-radius:12px;background:#fff}
.scanner-create-panel>strong{font-size:14px}
.scanner-create-panel>p{margin:0;color:#65727d;font-size:12px}
.scanner-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.scanner-create-grid label{display:flex;flex-direction:column;gap:6px}
.scanner-create-grid input{width:100%;min-height:42px;border:1px solid #d5dce2;border-radius:10px;padding:9px 11px;background:#fff}
.scanner-create-panel .scanner-create-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.scanner-create-panel .scanner-create-help{font-size:11px;color:#6b7780}
@media(max-width:640px){.scanner-create-grid{grid-template-columns:1fr}.scanner-create-panel .btn-secondary{width:100%}}


/* ===== assets/scanner-m77.css ===== */
/* 36.7.5 M7.7 · visor más cuadrado + prioridad OCR de referencia impresa */
.scanner-video-wrap{max-width:560px}
.scanner-target{width:min(72%,360px)!important;height:auto!important;min-height:0!important;aspect-ratio:1.24/1;border-radius:18px}
.scanner-target:after{border-radius:0 16px 0 0}
.scanner-target:before{border-radius:16px 0 0 0}
.scanner-target span:before{border-radius:0 0 0 16px}
.scanner-target span:after{border-radius:0 0 16px 0}
.scanner-target span{position:absolute;inset:0}
.scanner-target span::marker{display:none}
.scanner-target::marker{display:none}
@media(max-width:760px){.scanner-target{width:min(76%,350px)!important;aspect-ratio:1.20/1}}
@media(max-width:480px){.scanner-target{width:min(78%,330px)!important;aspect-ratio:1.18/1}}


/* ===== assets/scanner-m78.css ===== */
/* 36.7.5 M7.8 · auditoría escáner: visor sin franja negra + geometría estable */
.scanner-video-wrap{
  position:relative!important;
  width:min(100%,560px)!important;
  aspect-ratio:4/3!important;
  max-height:min(64vh,560px)!important;
  overflow:hidden!important;
  border-radius:14px!important;
  background:#111!important;
}
.scanner-video-wrap video,#scanner-video{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:14px!important;
  background:transparent!important;
}
.scanner-target{
  width:min(72%,340px)!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1.14/1!important;
  border-radius:18px!important;
}
.scanner-target:after{border-radius:0 16px 0 0!important}
.scanner-target:before{border-radius:16px 0 0 0!important}
.scanner-target span:before{border-radius:0 0 0 16px!important}
.scanner-target span:after{border-radius:0 0 16px 0!important}
.scanner-target span{position:absolute;inset:0}
@media(max-width:760px){
  .scanner-video-wrap{width:100%!important;aspect-ratio:4/3!important;max-height:min(58vh,520px)!important}
  .scanner-target{width:min(74%,330px)!important;aspect-ratio:1.10/1!important}
}
@media(max-width:480px){
  .scanner-video-wrap{aspect-ratio:4/3!important;max-height:min(54vh,460px)!important}
  .scanner-target{width:min(76%,315px)!important;aspect-ratio:1.08/1!important}
}


/* ===== assets/commercial-polish-m710.css ===== */
/* 36.7.5 M7.10 · acabado comercial */
/* Configuración: misma barra visual que Compras, siempre en una sola línea. */
#admin-settings-view .settings-subnav{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  gap:4px!important;
  margin:14px 0 18px!important;
  padding:6px!important;
  background:#fff!important;
  border:1px solid #dfe3e8!important;
  border-radius:12px!important;
  box-shadow:0 4px 16px rgba(0,0,0,.03)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
#admin-settings-view .settings-subnav button{
  flex:0 0 auto!important;
  min-width:max-content!important;
  min-height:36px!important;
  padding:8px 9px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#4c5660!important;
  font-size:10px!important;
  line-height:1.12!important;
  font-weight:800!important;
  white-space:nowrap!important;
  text-align:center!important;
}
#admin-settings-view .settings-subnav button:hover{background:#f4f5f7!important}
#admin-settings-view .settings-subnav button.active{background:var(--red)!important;color:#fff!important}
@media (min-width:1180px){
  #admin-settings-view .settings-subnav{justify-content:space-between!important;overflow-x:hidden!important}
  #admin-settings-view .settings-subnav button{flex:0 1 auto!important;min-width:0!important;padding-left:8px!important;padding-right:8px!important;font-size:9.6px!important}
}
@media (max-width:760px){
  #admin-settings-view .settings-subnav{position:static!important;justify-content:flex-start!important}
  #admin-settings-view .settings-subnav button{flex:0 0 auto!important;min-width:max-content!important;font-size:10.5px!important}
}


/* ===== assets/m717-visual-responsive.css ===== */
:root{--m717-gap-xs:6px;--m717-gap-sm:10px;--m717-gap-md:16px;--m717-gap-lg:24px;--m717-gap-xl:32px;--m717-radius:14px;--m717-border:#dfe4ea;--m717-soft:#f7f9fb;--m717-muted:#667085}.m717-client-card{position:relative}.m717-client-tabs{display:flex;align-items:center;gap:6px;width:100%;margin:18px 0 22px;padding:6px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;border:1px solid var(--m717-border);border-radius:14px;background:#fff;box-sizing:border-box;-webkit-overflow-scrolling:touch}.m717-client-tab{flex:0 0 auto;min-height:38px;padding:8px 13px;border:0;border-radius:9px;background:transparent;color:#24303f;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.m717-client-tab:hover{background:#f2f4f7}.m717-client-tab.active{background:#df4438;color:#fff}.m717-tab-hidden{display:none!important}.m717-client-card label{align-self:start}.m717-client-card label>span:first-child,.m717-client-card label>strong:first-child{line-height:1.25}.m717-client-card label small,.m717-client-card .muted,.m717-client-card .field-help{line-height:1.35}.m717-client-card input,.m717-client-card select,.m717-client-card textarea{box-sizing:border-box}.m717-profit-toolbar{display:grid!important;grid-template-columns:minmax(110px,.75fr) minmax(95px,.6fr) minmax(95px,.6fr) minmax(190px,1.35fr) minmax(130px,.85fr) auto;align-items:end!important;gap:12px!important;width:100%}.m717-profit-action{justify-self:end!important;align-self:end!important;margin-left:auto!important;white-space:nowrap}.m717-cart-host{box-sizing:border-box}.m717-cart-button{flex:0 0 auto}.m717-top-actions{display:flex!important;align-items:center!important;gap:10px!important}.m717-main-nav{box-sizing:border-box}.m717-main-nav>*{min-width:0}.m717-subtabs{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scrollbar-width:thin}.m717-subtabs>*{flex-shrink:0}footer.m717-footer,.m717-footer{position:static!important;inset:auto!important;display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;max-width:none;margin-top:42px!important;padding-top:26px!important;padding-bottom:26px!important;box-sizing:border-box;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 22px;overflow:visible!important}.m717-footer a{white-space:nowrap}.admin-empty,.home-empty,.empty-state{min-height:0!important;box-sizing:border-box}.admin-empty:not(:empty),.home-empty:not(:empty),.empty-state:not(:empty){padding-top:18px;padding-bottom:18px}.m717-action-row{display:flex!important;align-items:center!important;flex-wrap:wrap;gap:10px!important}.m717-action-row>.btn-primary:last-child,.m717-action-row>.btn-danger:last-child{margin-left:auto}@media(max-width:1279px){.m717-cart-host{display:flex!important;justify-content:flex-end!important;align-items:center!important;width:auto!important;margin-left:auto!important;margin-right:0!important}.m717-cart-button{margin-left:auto!important;margin-right:0!important;align-self:center!important}.m717-main-nav{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:5px 8px!important}.m717-main-nav>a,.m717-main-nav>button{flex:1 1 120px;min-width:105px;text-align:center}.m717-profit-toolbar{grid-template-columns:repeat(3,minmax(100px,1fr))}.m717-profit-action{grid-column:3;justify-self:end!important}footer.m717-footer,.m717-footer{display:flex!important}}@media(max-width:1023px){html,body{max-width:100%}.m717-client-tabs{margin-top:14px;margin-bottom:18px}.m717-client-tab{min-height:42px;padding-inline:14px}.m717-profit-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.m717-profit-action{grid-column:2;width:auto;min-width:180px}.m717-subtabs{display:flex!important;flex-wrap:nowrap!important;width:100%}footer.m717-footer,.m717-footer{flex-direction:column;text-align:center;gap:8px;padding-inline:18px!important}}@media(max-width:767px){.m717-client-tabs{border-radius:12px;padding:5px}.m717-client-tab{min-height:42px;font-size:12px}.m717-profit-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.m717-profit-toolbar>*{grid-column:1!important;width:100%!important;max-width:none!important}.m717-profit-action{justify-self:stretch!important;width:100%!important;margin-left:0!important}.m717-cart-host{margin-left:auto!important}.m717-main-nav{gap:5px!important}.m717-main-nav>a,.m717-main-nav>button{min-height:42px}.m717-action-row{align-items:stretch!important}footer.m717-footer,.m717-footer{margin-top:30px!important;padding:22px 14px!important}}@media(max-width:479px){.m717-client-tabs{margin-inline:0}.m717-client-tab{padding-inline:11px}.m717-main-nav>a,.m717-main-nav>button{flex-basis:100%}}


/* M7.19 RC7: route each client panel from the top tab bar. */
.m719-hidden-launch{display:none!important}
.m717-client-card .m719-client-history,
.m717-client-card .client-360-launch,
.m717-client-card .client-permissions-panel,
.m717-client-card .client-assets-panel{width:100%;max-width:100%;box-sizing:border-box}
.m717-client-card .m719-client-history:not(.m717-tab-hidden){display:block;min-height:80px}
.m717-client-card .m719-client-history .trace-timeline{padding:12px 16px;background:#fff;border:1px solid #dce3ec;border-radius:13px}
.m717-client-card .m719-client-history .trace-loading,
.m717-client-card .m719-client-history .trace-empty,
.m717-client-card .m719-client-history .trace-error{border:1px solid #dce3ec;border-radius:12px;padding:18px}
.m717-client-card .client-permissions-panel[data-m717-group="account"]{margin-top:0}
.m717-client-card .client-permissions-panel[data-m717-group="account"] > summary{display:none}
.m717-client-card .client-permissions-panel[data-m717-group="account"] .client-permissions-groups{display:block}
.m717-client-card .client-360-launch > .client-360-panel{margin-top:0}
.m717-client-card .m717-client-tabs [role="tab"]:focus-visible{outline:3px solid #2b70d3;outline-offset:2px}
@media(max-width:780px){
 .m717-client-card .m719-client-history .trace-timeline{padding:12px}
 .m717-client-tabs{gap:4px}
 .m717-client-tab{padding:10px 12px}
}


/* ===== assets/m719-supplier-ui.css ===== */
.m719-supplier-bulk{margin:16px 0;padding:16px;border:1px solid #dce3eb;border-radius:14px;background:#fff}
.m719-supplier-bulk h3{margin:4px 0 5px;font-size:17px}.m719-supplier-bulk p{color:#637085;font-size:12px;margin:0}
.m719-supplier-bulk-grid{display:grid;grid-template-columns:minmax(210px,1fr) auto auto;gap:12px;align-items:end;margin-top:12px}
.m719-supplier-bulk-grid label{min-width:0}.m719-supplier-bulk-grid select{width:100%;min-height:39px}
#m719-supplier-bulk-result{margin-top:12px;padding:12px;border:1px solid #e1e6ed;border-radius:10px;line-height:1.5}
#m719-supplier-bulk-result p{margin:7px 0}
#m719-supplier-bulk-apply:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:850px){.m719-supplier-bulk-grid{grid-template-columns:1fr}.m719-supplier-bulk-grid button{width:100%}}


/* ===== assets/m719-purchase-ui.css ===== */

/* M7.19 RC10 — compras y recepción documental */
.purchase-modal .m719-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.purchase-modal .m719-form-grid label{display:grid;gap:5px;min-width:0;font-size:12px;font-weight:700}
.purchase-modal .m719-form-grid input,.purchase-modal .m719-form-grid select,.purchase-modal .m719-form-grid textarea,
.purchase-modal .m719-line input{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #d4dce6;border-radius:9px}
.purchase-modal .m719-line-list{border:1px solid #dce3ec;border-radius:11px;overflow:auto;margin:14px 0}
.purchase-modal .m719-line-head,.purchase-modal .m719-line{display:grid;grid-template-columns:58px minmax(140px,1fr) 68px 92px 86px;gap:8px;align-items:center;min-width:580px;padding:9px 12px}
.purchase-modal .m719-line-head{background:#f8fafc;text-transform:uppercase;font-size:10px;color:#69778b;font-weight:850}
.purchase-modal .m719-line{border-top:1px solid #edf0f4;font-size:12px}
.purchase-modal .m719-receipt-actions,.m719-receipt-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.purchase-modal .m719-existing{border-top:1px solid #e2e8f0;padding-top:12px;margin-top:12px}
.purchase-modal .m719-existing h4{margin:0 0 9px}
.purchase-modal .m719-draft-option{display:block;width:100%;text-align:left;border:1px solid #dce3ec;border-radius:9px;background:#f8fafc;margin:5px 0;padding:9px;font-size:12px;cursor:pointer}
.purchase-modal .m719-muted{color:#64748b;font-size:12px}
.purchase-modal .m719-feedback{border:1px solid #b6dcc7;background:#effaf3;padding:11px 12px;border-radius:10px;color:#136940;font-size:12px}
.purchase-modal .m719-feedback.error,.purchase-modal .m719-warning{border:1px solid #f5c6bc;background:#fff1ef;color:#9e362a;padding:11px 12px;border-radius:10px;font-size:12px}
.purchase-modal .m719-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}
.purchase-modal .m719-metrics article{border:1px solid #dce3ec;border-radius:10px;padding:10px;background:#fff}
.purchase-modal .m719-metrics small{color:#64748b;display:block}
.purchase-modal .m719-metrics strong{font-size:19px;display:block;margin-top:5px}
.purchase-modal .m719-cost-table{border:1px solid #dce3ec;border-radius:11px;overflow:auto;margin-top:12px}
.purchase-modal .m719-cost-head,.purchase-modal .m719-cost-row{display:grid;grid-template-columns:1.4fr .65fr 50px .9fr 1.1fr;gap:10px;align-items:center;padding:10px;min-width:600px;font-size:12px;border-bottom:1px solid #e9eef3}
.purchase-modal .m719-cost-head{background:#f7f9fc;color:#667085;font-weight:850;font-size:10px;text-transform:uppercase}
.purchase-modal .m719-cost-row small{display:block;color:#64748b;font-size:10px}
.purchase-modal .m719-inline-link{font-size:11px;padding:5px 8px;margin-top:6px;white-space:normal}
@media(max-width:750px){.purchase-modal .m719-form-grid,.purchase-modal .m719-metrics{grid-template-columns:1fr}.purchase-modal .m719-line-list{max-width:100%}}

.m719-article-cost-widget{border:1px solid #dce3ec;border-radius:12px;background:#f8fafc;padding:14px;margin-top:13px}
.m719-article-cost-heading{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;margin-bottom:9px}
.m719-article-cost-heading strong{font-size:14px}
.m719-article-cost-heading span{color:#64748b;font-size:11px}
.m719-article-cost-widget .m719-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0}
.m719-article-cost-widget .m719-metrics article{border:1px solid #e0e6ee;background:#fff;border-radius:10px;padding:12px}
.m719-article-cost-widget .m719-metrics small{display:block;color:#667085;font-size:11px}
.m719-article-cost-widget .m719-metrics strong{display:block;font-size:20px;margin-top:4px}
.m719-article-cost-widget .m719-muted{font-size:11px;color:#657286}
.m719-article-cost-widget .m719-warning{border-radius:8px;background:#fff2ee;color:#9d3325;padding:10px;font-size:12px}
@media(max-width:750px){.m719-article-cost-widget .m719-metrics{grid-template-columns:1fr}}


/* ===== assets/m7171-login-kpi-fix.css ===== */
.m7171-login-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

.m7171-login-tabs > button,
.m7171-login-tabs > a,
.m7171-login-tabs > [role="button"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

.m7171-work-kpi-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 10px !important;
}

.m7171-work-kpi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 48px !important;
    padding: 10px 13px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.m7171-work-kpi-label {
    display: inline-flex !important;
    align-items: center !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.m7171-work-kpi-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 16px !important;
    margin-left: 1px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 1023px) {
    .m7171-login-tabs > button,
    .m7171-login-tabs > a,
    .m7171-login-tabs > [role="button"] {
        min-height: 44px !important;
    }

    .m7171-work-kpi-row {
        gap: 8px !important;
    }
}

@media (max-width: 767px) {
    .m7171-work-kpi-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
    }

    .m7171-work-kpi {
        width: 100% !important;
        justify-content: space-between !important;
    }
}


/* ===== assets/m7172-mobile-ui-fix.css ===== */
/*
 ============================================================
 M7.17.2 · MOBILE UI FIX
 Selectores reales de la aplicación:
 - .footer / .footer-legal-nav / [data-legal-page]
 - #account-toggle / #account-menu / .account-zone
 - #mobile-main-menu-toggle / .mobile-main-menu-chevron
 ============================================================
*/

/* ---------------------------------------------------------
   FOOTER LEGAL
   Debe formar parte del flujo normal en TODOS los tamaños.
   --------------------------------------------------------- */

.footer,
.footer.m717-footer,
footer.footer,
footer.m717-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin-top: 34px !important;
    box-sizing: border-box !important;
}

.footer-legal-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    width: min(calc(100% - 32px), 1400px) !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 18px 0 14px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
}

.footer-legal-nav button[data-legal-page] {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px !important;
    border: 0 !important;
    background: transparent !important;
    color: #16283c !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.footer-legal-nav button[data-legal-page]:hover {
    color: #b72d27 !important;
    text-decoration: underline;
}

.footer-inner.footer-custom,
.footer .app-version {
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-inner.footer-custom {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 22px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.footer .app-version,
.app-version.m7172-app-version {
    display: block !important;
    width: 100% !important;
    margin: 7px auto 0 !important;
    text-align: center !important;
    white-space: normal !important;
}


/* ---------------------------------------------------------
   MENÚ MÓVIL
   El problema era la posición visual del glifo, no el layout.
   --------------------------------------------------------- */

@media (max-width: 820px) {
    #mobile-main-menu-toggle {
        align-items: center !important;
    }

    #mobile-main-menu-toggle .mobile-main-menu-chevron {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        justify-self: center !important;
        width: 26px !important;
        height: 26px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 26px !important;
        position: relative;
        top: -1px;
        transform-origin: 50% 50% !important;
    }

    #mobile-main-menu-toggle[aria-expanded="true"] .mobile-main-menu-chevron {
        transform: rotate(180deg) !important;
    }

    .footer-legal-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: calc(100% - 24px) !important;
        padding: 14px 0 11px !important;
    }

    .footer-inner.footer-custom,
    .footer .app-version {
        width: calc(100% - 24px) !important;
    }
}

@media (max-width: 520px) {
    .footer {
        margin-top: 26px !important;
    }

    .footer-legal-nav {
        grid-template-columns: 1fr !important;
        width: calc(100% - 18px) !important;
        gap: 1px !important;
        padding: 10px 0 !important;
    }

    .footer-legal-nav button[data-legal-page] {
        min-height: 40px;
        padding: 9px 8px !important;
        font-size: 12px !important;
    }

    .footer-inner.footer-custom {
        width: calc(100% - 18px) !important;
        flex-direction: column !important;
        gap: 5px !important;
        font-size: 10.5px !important;
    }

    .footer .app-version {
        width: calc(100% - 18px) !important;
        font-size: 9px !important;
    }
}


/* ===== assets/m7179-account-menu-final-fix.css ===== */
/*
 * M7.17.9 · ACCOUNT MENU FINAL FIX
 *
 * Causa confirmada en DevTools:
 * class="account-menu m717-action-row"
 * popoverOpen=false, aria=false, display=flex
 *
 * El estado lógico se cerraba, pero m717-action-row imponía
 * display:flex!important y hacía visible el menú cerrado.
 */

/* El estado hidden SIEMPRE gana. */
#account-menu.hidden,
#account-menu.hidden.m717-action-row {
    display: none !important;
}

/* Si M7.17 vuelve a clasificarlo como action-row mientras está abierto,
   conservar el aspecto original del menú y no el de una toolbar. */
#account-menu.m717-action-row:not(.hidden) {
    display: block !important;
    flex-direction: initial !important;
    flex-wrap: initial !important;
    align-items: initial !important;
    justify-content: initial !important;
    gap: 0 !important;
}

#account-menu.account-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 7px) !important;
}

/* Neutralizar restos de experimentos anteriores si el navegador conserva DOM viejo. */
#m7174-account-backdrop,
#m7175-account-backdrop,
#m7178-account-dismiss-layer {
    display: none !important;
    pointer-events: none !important;
}


/* ===== assets/m718-final-audited.css ===== */
/* YANMAR 36.7.5 · M7.18.1 ARTICLE MASTER IMAGE FINAL
   Cambios deliberadamente encapsulados para no alterar componentes ajenos. */

/* Reloj: se conserva dentro de la aplicación y se oculta solo antes de autenticar. */
body:not(.authenticated) #global-clock{display:none!important}
body.authenticated #global-clock{display:flex!important}

/* Menú principal centrado en escritorio. */
@media(min-width:1180px){
  main.container>#main-tool-tabs.tool-tabs{justify-content:center!important;column-gap:8px!important}
}

/* Inicio: el banner alto aprobado ya existe en M7.17.9. Fotos de producto cuadradas y centradas. */
#home-view .home-product-card{display:flex;flex-direction:column;align-items:center;text-align:center}
#home-view .home-product-image{width:min(calc(100% - 28px),220px)!important;height:auto!important;aspect-ratio:1/1;margin:14px auto 0;border-radius:12px}
#home-view .home-product-image img{object-fit:contain!important;padding:12px!important}
#home-view .home-product-copy{width:100%;text-align:center;box-sizing:border-box}
#home-view .home-product-copy>strong,#home-view .home-product-copy h3,#home-view .home-product-copy p{text-align:center}
#home-view .home-product-copy h3{min-height:0}
#home-view .home-product-foot{justify-content:center;flex-wrap:wrap}

/* Buscador de artículos */
#pvp-selected{grid-template-columns:minmax(0,1fr) minmax(270px,310px);gap:22px;align-items:stretch}
#pvp-selected .pvp-selected-main{min-width:0;display:flex;flex-direction:column;justify-content:center}
#pvp-selected .pvp-selected-detail-grid{align-items:center;min-width:0}
#pvp-selected .pvp-selected-media{display:flex;align-items:center;justify-content:center;width:170px;min-width:170px;aspect-ratio:1/1;height:auto;min-height:0;padding:10px;box-sizing:border-box;border:1px solid #e0e5e2;border-radius:14px;background:#fff;overflow:hidden}
#pvp-selected .pvp-selected-media.hidden{display:none!important}
#pvp-selected .pvp-selected-media img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
#pvp-selected .pvp-selected-media.hidden + .pvp-selected-detail-copy{grid-column:1/-1;width:100%}
#pvp-selected.pvp-no-photo .pvp-selected-detail-grid{grid-template-columns:minmax(0,1fr)}
#pvp-selected .pvp-selected-actions{min-width:0;width:100%;align-self:stretch;box-sizing:border-box;padding:15px;border:1px solid #e2e7e4;border-radius:14px;background:#fbfcfb;display:grid;grid-template-rows:auto 1fr;gap:12px}
#pvp-selected .pvp-qty-block{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:11px;border-bottom:1px solid #e6eae7}
#pvp-selected .pvp-stepper{display:grid!important;grid-template-columns:56px!important;grid-template-rows:34px 42px 34px;gap:3px;width:56px;align-items:center}
#pvp-selected #pvp-qty-plus{order:1;grid-row:1}#pvp-selected #pvp-qty{order:2;grid-row:2;width:56px!important;min-width:56px!important;height:42px;padding:4px 2px!important;text-align:center;font-weight:850}#pvp-selected #pvp-qty-minus{order:3;grid-row:3}
#pvp-selected .pvp-stepper button{width:56px!important;height:34px!important;min-height:34px!important;padding:0!important;border-radius:8px;font-weight:900}
#pvp-selected .pvp-dual-actions{display:grid;gap:9px;align-content:start}#pvp-selected .pvp-dual-actions button{width:100%;min-height:42px;height:auto;margin:0}

/* Administración de mantenimiento: mismos botones/IDs, composición simétrica. */
#maintenance-admin-tools{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(520px,1.2fr);gap:18px;align-items:center}
#maintenance-admin-tools.hidden{display:none!important}
#maintenance-admin-tools .maintenance-admin-action-groups{width:100%;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#maintenance-admin-tools .maintenance-admin-action-group{min-width:0;padding:12px;border:1px solid #dfe5e1;border-radius:12px;background:#fff;display:grid;gap:9px}
#maintenance-admin-tools .maintenance-admin-action-group>strong{text-align:center;font-size:11px;color:#44505a}
#maintenance-admin-tools .maintenance-admin-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;justify-content:stretch}
#maintenance-admin-tools .maintenance-admin-actions button{width:100%;min-width:0;min-height:42px;height:auto;margin:0;padding:9px 10px;white-space:normal;line-height:1.2}
#maintenance-admin-message{grid-column:1/-1;margin:0}

/* Productos destacados / autocomplete */
.home-promo-search-wrap{position:relative}.home-promo-suggestions{max-height:250px;overflow:auto;border-radius:10px;box-shadow:0 12px 30px rgba(20,24,28,.12)}.home-promo-suggestions.hidden{display:none!important}.home-promo-suggestions button{min-height:48px;padding:9px 12px}.home-promo-suggestions button:last-child{border-bottom:0}

/* Dashboard */
.m718-dashboard-clients,.m718-discount-bulk{min-width:0}.m718-client-ranking{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'name total' 'meta meta';align-items:center!important;gap:4px 14px!important}.m718-client-ranking>span{grid-area:name;display:grid;text-align:left;min-width:0}.m718-client-ranking>strong{grid-area:total}.m718-client-ranking>small{grid-area:meta;text-align:left}.m718-client-ranking span small{display:block;margin-top:3px;color:#68736d;font-weight:500}.m718-discount-bulk{margin-top:18px}.m718-bulk-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) auto;gap:10px;align-items:end}.m718-bulk-grid label{display:grid;gap:5px}.m718-bulk-grid label span{font-size:11px;font-weight:850;color:#4b5650}.m718-bulk-grid input{min-height:42px;border:1px solid #ccd4cf;border-radius:9px;padding:8px 10px;font:inherit;box-sizing:border-box;width:100%}.m718-bulk-grid button{min-height:42px;white-space:nowrap}.m718-bulk-preview{margin-top:12px;padding:12px;border:1px solid #d9dee2;border-radius:12px;background:#fafbfb}.m718-bulk-preview.hidden{display:none!important}.m718-preview-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}.m718-preview-head span{font-size:11px;color:#66717a}.m718-preview-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e6e9ec;border-radius:9px;background:#fff;margin-top:6px}.m718-preview-row span{display:grid;min-width:0}.m718-preview-row small{font-size:10px;color:#6d7780}.m718-bulk-preview>.btn-primary{width:100%;margin-top:10px}

/* Stock: separación semántica manteniendo los IDs/listeners originales. */
#article-stock-panel .stock-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:10px;margin:16px 0 12px}#article-stock-panel .stock-action-row button{width:100%;min-height:42px}
#article-stock-panel .stock-bulk-bar{border-color:#b7d9c4;background:#f7fcf9;padding:13px;margin:0 0 12px}
.m718-stock-danger{margin:14px 0;border:1px solid #f0c0bb;border-radius:12px;background:#fff8f7;overflow:hidden}.m718-stock-danger>summary{cursor:pointer;padding:12px 14px;font-weight:900;color:#b42318}.m718-stock-danger-body{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:0 14px 14px}.m718-stock-danger-copy{display:grid;gap:3px}.m718-stock-danger-copy small{color:#66717a}.m718-stock-danger-actions{display:flex;gap:8px;flex-wrap:wrap}.m718-stock-danger-actions #stock-selected-zero,.m718-stock-danger-actions #stock-zero-all{border-color:#df4a42;color:#b4312b;background:#fff}

/* Inteligencia: pestañas visuales creadas alrededor de los nodos originales. */
.m718-intel-tabs{display:flex;gap:7px;overflow-x:auto;padding:5px;margin:0 0 12px;border:1px solid #dde2e6;border-radius:12px;background:#fff}.m718-intel-tabs button{flex:0 0 auto;border:0;border-radius:9px;background:transparent;padding:9px 12px;font:inherit;font-size:11px;font-weight:850;color:#44505a;cursor:pointer}.m718-intel-tabs button.active{background:#111827;color:#fff}.m718-intel-group{display:grid;gap:14px}.m718-intel-group.hidden{display:none!important}

/* Submenús largos: indicación visual sin cambiar su lógica. */
.settings-subnav.m718-scrollable,.r26-subnav.m718-scrollable,.module-subnav.m718-scrollable,.document-config-tabs.m718-scrollable,.article-subnav.m718-scrollable{mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 42px),transparent 100%);-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 42px),transparent 100%)}

/* Footer móvil 2x2 y carrito legible. */
@media(max-width:640px){.footer-legal-nav{grid-template-columns:1fr 1fr!important}.cart-toggle-label{display:inline!important}#cart-toggle{min-width:150px!important;gap:7px!important}.home-product-image{width:min(calc(100% - 24px),230px)!important}}

@media(max-width:1000px){#maintenance-admin-tools{grid-template-columns:1fr}#pvp-selected{grid-template-columns:minmax(0,1fr) 270px}.m718-bulk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.m718-bulk-grid button{grid-column:1/-1}}
@media(max-width:760px){#pvp-selected{grid-template-columns:1fr;gap:14px}#pvp-selected .pvp-selected-detail-grid{grid-template-columns:1fr}#pvp-selected .pvp-selected-media{width:min(100%,230px);min-width:0;justify-self:center}#pvp-selected .pvp-selected-media + .pvp-selected-detail-copy{grid-column:1}#maintenance-admin-tools .maintenance-admin-action-groups{grid-template-columns:1fr}#article-stock-panel .stock-action-row{grid-template-columns:1fr 1fr}.m718-client-ranking{min-width:0!important}.crm-dashboard-grid{min-width:0}.crm-panel{min-width:0}.crm-ranking{min-width:0;overflow-x:hidden}.m718-preview-row{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.m718-bulk-grid{grid-template-columns:1fr}#maintenance-admin-tools .maintenance-admin-actions{grid-template-columns:1fr}#article-stock-panel .stock-action-row{grid-template-columns:1fr}.m718-stock-danger-actions{display:grid;width:100%}.m718-stock-danger-actions button{width:100%}}


/* RC7 · ficha maestra de artículo e imágenes persistentes */
.article-default-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#e23b33;font-weight:1000;font-style:italic;font-size:30px;line-height:1}
.article-default-placeholder small{margin-top:5px;color:#858d95;font-size:9px;letter-spacing:.22em;font-style:normal}
#pvp-selected .pvp-selected-media .article-default-placeholder{width:100%;height:100%}
#pvp-selected .pvp-selected-media img.hidden,#pvp-selected .pvp-selected-media .article-default-placeholder.hidden{display:none!important}
.article-editor-section{margin-top:18px;padding-top:18px;border-top:1px solid #e7eaed}
.article-editor-section:first-of-type{border-top:0;padding-top:0}
.article-editor-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:13px}
.article-editor-section-head h3{margin:3px 0 0;font-size:18px}.article-editor-section-head p{margin:5px 0 0;color:#68727b;font-size:11px;line-height:1.45}
.article-admin-public-grid-rc7{grid-template-columns:minmax(0,1.65fr) minmax(270px,.7fr)!important;align-items:start}
.article-admin-commercial-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.article-master-photo-box{align-content:start;padding:13px;border:1px solid #e4e7ea;border-radius:13px;background:#fafbfb}
.article-master-photo-box .article-photo-preview{width:min(100%,300px);height:auto;aspect-ratio:1/1;margin:0 auto;border-style:solid;background:linear-gradient(145deg,#f6f7f8,#eceff1)}
.article-master-photo-box .article-photo-preview img{padding:10px;box-sizing:border-box}
.article-photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.article-photo-actions button{min-height:40px}
.article-stock-fields-rc7{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr) minmax(220px,.8fr);gap:10px;align-items:start}
.article-stock-fields-rc7>label,.article-stock-card-rc7 label{display:grid;gap:5px}.article-stock-fields-rc7>label>span,.article-stock-card-rc7 label>span{font-size:9.5px;font-weight:800;color:var(--grey-700);text-transform:uppercase}
.article-stock-fields-rc7 input{width:100%;box-sizing:border-box;border:1px solid var(--grey-300);border-radius:8px;padding:8px 9px;font:inherit}.article-stock-fields-rc7 small{color:var(--grey-700)}
.article-stock-card-rc7{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;padding:11px;border:1px solid #b8dbc6;border-radius:12px;background:#f7fcf9}.article-stock-card-rc7 .btn-secondary{min-height:42px}
.article-editor-internal-intro{margin-top:18px;padding-top:18px;border-top:1px solid #e7eaed}
.home-moving-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}.home-moving-placeholder b{font-size:8px!important;font-style:italic;color:#e23b33!important}.home-moving-placeholder small{font-size:5px!important;letter-spacing:.12em;color:#8a9299!important;margin-top:2px!important}
@media(max-width:900px){.article-admin-public-grid-rc7{grid-template-columns:1fr!important}.article-admin-commercial-fields{grid-template-columns:1fr 1fr!important}.article-stock-fields-rc7{grid-template-columns:1fr 1fr}.article-stock-card-rc7{grid-column:1/-1}}
@media(max-width:560px){.article-admin-commercial-fields,.article-stock-fields-rc7,.article-stock-card-rc7,.article-photo-actions{grid-template-columns:1fr!important}.article-master-photo-box .article-photo-preview{width:min(100%,240px)}}

/* M7.18.2 · ficha artículo alineada + notas internas administrativas */
.article-admin-commercial-fields{align-items:start!important;gap:14px 12px!important}
.article-admin-commercial-fields>.article-form-field-rc72{display:grid!important;grid-template-rows:28px 44px minmax(30px,auto);gap:6px!important;align-content:start!important;min-width:0}
.article-admin-commercial-fields>.article-form-field-rc72>span{display:flex;align-items:flex-end;min-height:28px}
.article-admin-commercial-fields>.article-form-field-rc72>input,.article-admin-commercial-fields>.article-form-field-rc72>select{height:44px!important;min-height:44px!important;margin:0!important;box-sizing:border-box}
.article-admin-commercial-fields>.article-form-field-rc72>small{display:block;min-height:30px;line-height:1.35;color:var(--grey-700)}
.article-textarea-field-rc72{display:grid!important;gap:6px!important}.article-textarea-field-rc72>textarea{width:100%;box-sizing:border-box;min-height:112px}
.article-internal-notes-rc72{margin-top:2px;padding:12px;border:1px solid #d9e4ff;border-radius:12px;background:#f7f9ff}
.article-internal-notes-rc72>textarea{min-height:118px;background:#fff}.article-internal-notes-rc72>small{color:#5f6f89!important}
.article-admin-only-badge-rc72{display:inline-flex!important;width:max-content!important;align-items:center!important;min-height:0!important;margin-bottom:2px;padding:4px 8px;border-radius:999px;background:#e8efff;color:#2349a0!important;font-size:9.5px!important;font-weight:900!important;letter-spacing:.02em!important;text-transform:uppercase!important}
.article-master-photo-box>.field-title{display:block;text-align:center}
.article-stock-fields-rc72{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:start!important}
.article-stock-field-rc72,.article-stock-action-rc72{display:grid!important;grid-template-rows:28px 44px minmax(30px,auto);gap:6px!important;align-content:start!important;min-width:0}
.article-stock-field-rc72>span,.article-stock-action-rc72>span{display:flex;align-items:flex-end;min-height:28px;font-size:9.5px;font-weight:800;color:var(--grey-700);text-transform:uppercase}
.article-stock-field-rc72>input,.article-stock-action-rc72>button{width:100%;height:44px!important;min-height:44px!important;margin:0!important;box-sizing:border-box}
.article-stock-field-rc72>small,.article-stock-action-rc72>small{display:block;min-height:30px;line-height:1.35;color:var(--grey-700)}
.article-stock-barcode-rc72{grid-column:1}
@media(max-width:900px){.article-stock-fields-rc72{grid-template-columns:1fr 1fr!important}.article-stock-barcode-rc72{grid-column:1}.article-admin-commercial-fields>.article-form-field-rc72{grid-template-rows:28px 44px minmax(30px,auto)}}
@media(max-width:560px){.article-stock-fields-rc72{grid-template-columns:1fr!important}.article-stock-barcode-rc72{grid-column:auto}.article-admin-commercial-fields>.article-form-field-rc72,.article-stock-field-rc72,.article-stock-action-rc72{grid-template-rows:auto 44px auto}.article-admin-commercial-fields>.article-form-field-rc72>small,.article-stock-field-rc72>small,.article-stock-action-rc72>small{min-height:0}}


/* ===== assets/commercial-bridge-m7.css ===== */
.m7-admin-order-panel{margin:12px 0;padding:14px;border:1px solid #d7dde5;border-radius:12px;background:#f8fafc}.m7-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.m7-head span{display:block;color:#d93025;font-size:11px;font-weight:800;letter-spacing:.08em}.m7-head strong{font-size:16px}.m7-head small{max-width:250px;color:#667085}.m7-admin-order-panel label{display:grid;gap:5px;font-size:12px;font-weight:700}.m7-admin-order-panel select,.m7-line-discount input{width:100%;min-height:38px;border:1px solid #cfd6df;border-radius:8px;background:#fff;padding:7px 9px}.m7-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.m7-client-discounts{padding:9px 10px;border-radius:8px;background:#fff;border:1px solid #e1e5eb;font-size:12px}.m7-help{margin-top:8px;color:#667085;font-size:12px}.m7-line-discount{min-width:145px;display:grid!important;gap:2px;font-size:11px;color:#475467}.m7-line-discount input{min-height:34px}.m7-line-discount small{font-size:10px;font-weight:400}.m7-add-budget{margin-left:8px;white-space:nowrap}@media(max-width:700px){.m7-head{display:block}.m7-head small{display:block;margin-top:6px}.m7-grid{grid-template-columns:1fr}.m7-line-discount{width:100%;margin-top:8px}.m7-add-budget{margin:8px 0 0;width:100%}}

/* M7.4 · Mantenimiento: Pedido + Presupuesto solo para Administrador */
#maintenance-view .li-controls.m74-dual-actions,
#maintenance-view .lp-controls.m74-dual-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important}
#maintenance-view .li-controls.m74-dual-actions .stepper,
#maintenance-view .lp-controls.m74-dual-actions .stepper{grid-column:1/-1;width:100%;display:grid;grid-template-columns:36px 1fr 36px}
#maintenance-view .li-controls.m74-dual-actions>.btn-add,
#maintenance-view .lp-controls.m74-dual-actions>.btn-add,
#maintenance-view .li-controls.m74-dual-actions>.m7-add-budget,
#maintenance-view .lp-controls.m74-dual-actions>.m7-add-budget{width:100%;min-width:0;min-height:38px;height:auto;margin:0!important;padding:8px 10px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.15;border:1px solid var(--red,#e23b33);background:var(--white,#fff);color:var(--red,#e23b33);border-radius:8px;font-size:12.5px;font-weight:700;cursor:pointer}
#maintenance-view .li-controls.m74-dual-actions>.m7-add-budget:hover,
#maintenance-view .lp-controls.m74-dual-actions>.m7-add-budget:hover{background:var(--red,#e23b33);color:#fff}
#maintenance-view .m7-add-budget.in-cart{background:#eef8f1!important;border-color:var(--green,#198754)!important;color:var(--green,#198754)!important}
@media(max-width:700px){#maintenance-view .li-controls.m74-dual-actions,#maintenance-view .lp-controls.m74-dual-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}#maintenance-view .li-controls.m74-dual-actions>.btn-add,#maintenance-view .lp-controls.m74-dual-actions>.btn-add,#maintenance-view .li-controls.m74-dual-actions>.m7-add-budget,#maintenance-view .lp-controls.m74-dual-actions>.m7-add-budget{font-size:11.5px;padding:8px 6px;min-height:44px}}


/* ===== assets/budget-maintenance-hotfix-m72.css ===== */
/* M7.2 · Presupuesto desde mantenimiento sin cambiar de ventana */
#maintenance-view .m7-add-budget.in-budget{
  background:#eef8f1!important;
  border-color:var(--green,#198754)!important;
  color:var(--green,#198754)!important;
}
.m72-budget-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.m72-budget-clear-all{min-height:36px;padding:7px 12px;border-color:#efc7c4!important;color:#b42318!important;background:#fff7f6!important}
.m72-budget-clear-all:hover:not(:disabled){background:#b42318!important;color:#fff!important;border-color:#b42318!important}
.m72-budget-clear-all:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){
  .m72-budget-head-actions{width:100%;justify-content:space-between;margin-top:8px}
  .m72-budget-clear-all{min-height:40px}
}


/* ===== assets/m719-fleet.css ===== */
/* M7.19 RC3 · ficha compartida de flota: no altera estilos del resto del ERP. */
.m719-profile-fleet{margin:16px 0;padding:15px;border:1px solid #d8e2eb;border-radius:15px;background:#fff;color:#162337}
.m719-head,.m719-line{display:flex;justify-content:space-between;align-items:center;gap:10px}
.m719-head strong{display:block;font-size:17px}.m719-head small,.m719-subtle,.m719-vessel small,.m719-item small{display:block;font-size:12px;color:#697688;line-height:1.5}
.m719-profile-fleet button,.m719-modal button{cursor:pointer}
.m719-btn{border:1px solid #ced7e1;background:#fff;color:#263a50;padding:8px 11px;border-radius:9px;font-size:12px;font-weight:750;white-space:nowrap}
.m719-btn.main{background:#df4338;color:#fff;border-color:#df4338}
.m719-columns{display:grid;grid-template-columns:minmax(190px,.85fr) minmax(0,1.55fr);gap:12px;margin-top:12px}
#m719-list,#m719-detail{min-width:0;border:1px solid #e2e8ee;border-radius:12px;padding:12px;background:#fbfcfd}
.m719-vessel{display:block;width:100%;text-align:left;padding:10px;background:white;border:1px solid #dfe5eb;border-radius:10px;color:#1d2f40;margin-bottom:8px}
.m719-vessel.chosen{background:#f0f9f3;border-color:#8bcba9}.m719-vessel strong{display:block;font-size:13px}
.m719-line{margin:6px 0 11px}.m719-line h3,.m719-line h4{margin:0;font-size:15px}
.m719-note{padding:10px 12px;background:#f0f8f4;border:1px solid #cbe7d7;border-radius:10px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.m719-note p{margin:5px 0 0;white-space:pre-wrap}
.m719-item{border:1px solid #e1e7ed;border-radius:10px;background:white;padding:10px;margin:8px 0;overflow-wrap:anywhere}
.m719-item strong{display:block;font-size:13px}.m719-item .m719-btn{margin-top:6px}
.m719-empty{text-align:center;border:1px dashed #ccd5df;border-radius:10px;padding:24px 12px;font-size:12px;color:#687586}
.m719-modal{position:fixed;inset:0;z-index:11000;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(17,29,44,.78)}
.m719-modal.hidden{display:none!important}.m719-dialog{width:100%;max-width:680px;max-height:92vh;overflow-y:auto;background:white;color:#19273a;border-radius:15px;padding:19px;box-shadow:0 25px 90px rgba(0,0,0,.22)}
.m719-dialog h3{margin:0 0 8px}.m719-form{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:12px}
.m719-form label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.025em;color:#5a6675;font-weight:750}
.m719-form label span{display:block;margin-bottom:5px}
.m719-form label.wide,.m719-form .wide{grid-column:1/-1}
.m719-form input,.m719-form select,.m719-form textarea{display:block;width:100%;background:white;color:#142034;font:13px/1.4 Inter,system-ui,Arial;border:1px solid #ccd6e0;border-radius:9px;padding:9px}
.m719-form textarea{min-height:95px;resize:vertical}.m719-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}
.m719-error{color:#a52323;background:#fff0f0;border:1px solid #f0bdbd;border-radius:9px;padding:9px;font-size:12px}
#m719-suggestions{max-height:170px;overflow:auto;border:1px solid #e4e9ef;border-radius:9px;margin-top:5px}
#m719-suggestions:empty{display:none}
#m719-suggestions button{display:block;width:100%;border:0;border-bottom:1px solid #eef1f4;text-align:left;background:white;color:#172b40;padding:8px;font-size:12px}
#m719-suggestions button:hover{background:#f1f5fa}
@media(max-width:700px){.m719-head,.m719-line{align-items:flex-start}.m719-columns,.m719-form{grid-template-columns:1fr}.m719-profile-fleet{padding:10px}.m719-modal{align-items:flex-start}.m719-dialog{max-height:calc(100vh - 28px)}}

/* M7.19.1 · Flota en navegación, controles y descuentos sin solapamientos */
#m719-my-fleet.tab-view{width:100%;max-width:none;margin:0 0 24px;padding:20px;min-width:0}
#m719-my-fleet.tab-view.hidden{display:none!important}
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar > div:last-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel],
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:144px;min-height:41px;padding:10px 15px;border-radius:10px;background:#fff;color:#273242;border:1px solid #d2dae5;font-weight:750;font-size:13px;box-shadow:none}
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel]:hover,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]:hover{border-color:var(--red,#e23b33)}
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel]:focus-visible,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]:focus-visible,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel]:active,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]:active{background:var(--red,#e23b33);border-color:var(--red,#e23b33);color:#fff}
.account-commercial-grid-v11 .account-discount-card{box-sizing:border-box;min-width:0;display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:16px;row-gap:10px;align-content:center;align-items:center;min-height:110px}
.account-commercial-grid-v11 .account-discount-card>span{min-width:0;line-height:1.45;overflow-wrap:anywhere;grid-column:1;grid-row:1}
.account-commercial-grid-v11 .account-discount-card>strong{font-size:24px;line-height:1.2;white-space:nowrap;grid-column:2;grid-row:1;justify-self:end}
.account-commercial-grid-v11 .account-discount-card>small{font-size:11px;line-height:1.45;white-space:normal;grid-column:1/-1;grid-row:2;justify-self:start}
@media(max-width:800px){.account-commercial-grid-v11{grid-template-columns:1fr!important}}
@media(max-width:400px){#admin-service-view [data-r26-panel="fleet"] .r26-toolbar > div:last-child{width:100%}#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel],#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]{flex:1;min-width:0}}

/* M7.19.3 · Botones de creación uniformes (cliente/admin) y búsqueda Flota */
#m719-my-fleet .m719-create-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}
#m719-my-fleet .m719-create-actions .m719-btn,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel],
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]{
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:144px;min-height:41px;padding:10px 15px;
 border:1px solid #d2dae5;border-radius:10px;background:#fff;color:#273242;font-size:13px;font-weight:750;box-shadow:none;
 transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;cursor:pointer;
}
#m719-my-fleet .m719-create-actions .m719-btn:hover:not(:disabled):not(.m719-create-selected):not(:active),
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel]:hover:not(:disabled):not(.m719-create-selected):not(:active),
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]:hover:not(:disabled):not(.m719-create-selected):not(:active){
 background:#f8fafc;border-color:#aebbc9;box-shadow:0 3px 12px rgba(24,39,56,.13);
}
#m719-my-fleet .m719-create-actions .m719-btn:active,
#m719-my-fleet .m719-create-actions .m719-btn.m719-create-selected,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel]:active,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]:active,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar .m719-create-selected{
 background:var(--red,#e23b33);border-color:var(--red,#e23b33);color:#fff;box-shadow:0 3px 12px rgba(226,59,51,.17);
}
#m719-my-fleet .m719-create-actions .m719-btn:focus-visible,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel]:focus-visible,
#admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]:focus-visible{outline:2px solid var(--red,#e23b33);outline-offset:2px}
#admin-service-view [data-r26-panel="fleet"] .r26-filter-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-search-group{position:relative;display:flex;flex-direction:column;gap:6px;width:min(100%,310px);min-width:205px}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-search-group>label{font-size:12px;font-weight:700;color:#374358}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-search-group>input{box-sizing:border-box;width:100%;height:42px;padding:9px 12px;border:1px solid #d2dae5;border-radius:9px;color:#273242;background:#fff;font:inherit;font-size:13px}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-search-group>input:focus{outline:2px solid #3670dd;outline-offset:0;border-color:#3670dd}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-suggestions{position:absolute;z-index:120;top:100%;left:0;right:0;max-height:260px;overflow-y:auto;border:1px solid #d2dae5;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(26,42,59,.16);padding:4px}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-suggestions[hidden]{display:none!important}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-suggestions button{display:block;width:100%;text-align:left;background:#fff;border:0;border-radius:6px;padding:9px 10px;cursor:pointer;color:#273242}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-suggestions button:hover,#admin-service-view [data-r26-panel="fleet"] .m719-fleet-suggestions button:focus-visible{background:#f1f5fa}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-suggestions button strong,#admin-service-view [data-r26-panel="fleet"] .m719-fleet-suggestions button small{display:block;line-height:1.4}
#admin-service-view [data-r26-panel="fleet"] .m719-fleet-suggestions button small{font-size:11px;color:#697688}
@media(max-width:560px){#m719-my-fleet .m719-create-actions{width:100%;justify-content:stretch}#m719-my-fleet .m719-create-actions .m719-btn{min-width:0;flex:1}#admin-service-view [data-r26-panel="fleet"] .m719-fleet-search-group{width:100%;min-width:0}}


/* M7.19.4 · Detalle legible, notas multilínea y acciones de creación coherentes */
#m719-my-fleet .m719-line>.m719-row-actions,
#m719-modal-content .m719-line>.m719-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-left:auto}
#m719-my-fleet .m719-item .m719-row-actions,
#m719-modal-content .m719-item .m719-row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
#m719-my-fleet .m719-row-actions .m719-btn,
#m719-modal-content .m719-row-actions .m719-btn{margin-top:0}
#m719-my-fleet .m719-item-description,
#m719-modal-content .m719-item-description{margin-top:4px;font-size:13px;line-height:1.5;color:#28394b;overflow-wrap:anywhere}
#m719-my-fleet .m719-item-notes,
#m719-modal-content .m719-item-notes{display:block;margin-top:8px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#m719-my-fleet .m719-item-notes b,
#m719-modal-content .m719-item-notes b{display:block;font-weight:700}
#m719-my-fleet .m719-item-notes span,
#m719-modal-content .m719-item-notes span{display:block;white-space:pre-wrap;overflow-wrap:anywhere}
#m719-my-fleet .m719-note p,
#m719-modal-content .m719-note p{white-space:pre-wrap;overflow-wrap:anywhere}
#m719-my-fleet .m719-btn.m719-create-inline,
#m719-modal-content .m719-btn.m719-create-inline{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;min-width:86px;min-height:36px;border:1px solid #d2dae5;border-radius:10px;background:#fff;color:#273242;font-weight:750;box-shadow:none;transition:background .15s,border-color .15s,color .15s,box-shadow .15s}
#m719-my-fleet .m719-btn.m719-create-inline:hover:not(.m719-create-selected):not(:active),
#m719-modal-content .m719-btn.m719-create-inline:hover:not(.m719-create-selected):not(:active){background:#f8fafc;border-color:#aebbc9;box-shadow:0 3px 12px rgba(24,39,56,.13)}
#m719-my-fleet .m719-btn.m719-create-inline:active,
#m719-my-fleet .m719-btn.m719-create-inline.m719-create-selected,
#m719-modal-content .m719-btn.m719-create-inline:active,
#m719-modal-content .m719-btn.m719-create-inline.m719-create-selected{background:var(--red,#e23b33);border-color:var(--red,#e23b33);color:#fff;box-shadow:0 3px 12px rgba(226,59,51,.17)}
#m719-my-fleet .m719-btn.m719-create-inline:focus-visible,
#m719-modal-content .m719-btn.m719-create-inline:focus-visible{outline:2px solid var(--red,#e23b33);outline-offset:2px}
@media(max-width:520px){#m719-my-fleet .m719-line>.m719-row-actions{gap:7px}}


/* ===== assets/m7196-layout-fix.css ===== */
/* M7.19.6: stable shell and navigation after visiting Pedidos (iPad/WebKit). */
html,body{width:100%;max-width:100%;min-width:0;overflow-x:clip}
body.authenticated{min-width:0}
main.container.protected-content{
  display:block!important;
  flex:1 0 auto!important;
  width:calc(100% - 32px)!important;
  max-width:1320px!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important;
}
main.container.protected-content>.tab-view:not(.hidden){
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
main.container.protected-content>#home-view:not(.hidden){display:grid!important}
main.container.protected-content>#main-tool-tabs.tool-tabs{
  width:100%!important;max-width:100%!important;
  min-width:0!important;height:auto!important;min-height:0!important;
  margin:18px 0 15px!important;transform:none!important;
  box-sizing:border-box!important;
  align-content:start!important;align-items:center!important;
  row-gap:6px!important;grid-auto-rows:minmax(42px,auto)!important;
}
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
  align-self:center!important;min-height:42px!important;
  height:auto!important;box-sizing:border-box!important;
}
#admin-orders-view,#my-orders-view,#home-view,#admin-employees-view,#admin-purchases-view{
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
#admin-orders-view .orders-filter-panel,#admin-orders-view .orders-filter-grid,
#admin-orders-view .admin-orders-stats,#admin-orders-view .order-workspace-subnav,
#admin-orders-view .orders-page-header{min-width:0;max-width:100%;box-sizing:border-box}
#admin-orders-view .orders-filter-grid>*{min-width:0}
/* M7.19.6.1: distribute the complete admin navigation into readable rows. */
@media (min-width:821px) and (max-width:1319px){
 main.container.protected-content>#main-tool-tabs.tool-tabs{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;justify-content:stretch!important;
 }
 main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
  width:100%!important;min-width:0!important;max-width:100%!important;
  padding:10px 8px!important;white-space:normal!important;
  overflow-wrap:break-word!important;justify-content:center!important;text-align:center!important;
 }
}
@media (min-width:1320px){
 main.container.protected-content>#main-tool-tabs.tool-tabs{
  display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
  grid-auto-flow:row!important;justify-content:stretch!important;
 }
 main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
  width:100%!important;min-width:0!important;max-width:100%!important;
  padding:10px 8px!important;white-space:normal!important;
  overflow-wrap:break-word!important;justify-content:center!important;text-align:center!important;
 }
}
@media (max-width:820px){
 main.container.protected-content{width:calc(100% - 18px)!important}
 main.container.protected-content>#main-tool-tabs.tool-tabs:not(.mobile-menu-open){display:none!important}
 main.container.protected-content>#main-tool-tabs.tool-tabs.mobile-menu-open{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;margin:0 0 12px!important;
 }
 main.container.protected-content>#main-tool-tabs.tool-tabs.mobile-menu-open .tool-tab:not(.hidden):not([hidden]){
  width:100%!important;max-width:100%!important;min-width:0!important;
 }
}
/* Global module cards remain inside their actual viewport, not half of it. */
main.container.protected-content>.tab-view:not(.hidden)>.orders-page-header,
main.container.protected-content>.tab-view:not(.hidden)>.orders-filter-panel,
main.container.protected-content>.tab-view:not(.hidden)>.admin-page-heading{max-width:100%;min-width:0}


/* ===== assets/m71962-cart-fix.css ===== */
/* M7.19.6.2: pedido: controles compartidos cliente y admin. */
#cart-overlay .m7-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important}
#cart-overlay .m7-grid>label,#cart-overlay .m7-grid>.m7-client-discounts{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important}
#cart-overlay .m7-client-discounts{display:flex;align-items:center;justify-content:flex-start;min-height:38px!important;padding:8px 10px!important;line-height:1.5;overflow-wrap:anywhere}
#cart-overlay .m7-head{display:block!important;margin-bottom:16px!important}
#cart-overlay .m7-head>div{display:grid;gap:7px!important}
#cart-overlay .m7-head span{line-height:1.35}
#cart-overlay .m7-head strong{display:block!important;line-height:1.4}
#cart-overlay #cart-items .ci-bottom{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:9px 12px!important}
#cart-overlay #cart-items .ci-bottom>.stepper{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:22px 24px 22px!important;width:60px!important;min-width:60px!important;max-width:60px!important;height:70px!important;min-height:0!important;flex:0 0 60px!important;margin:0!important;align-items:stretch!important;gap:0!important;overflow:hidden!important;border:1px solid var(--grey-300,#d5dbe4)!important;border-radius:9px!important}
#cart-overlay #cart-items .ci-bottom>.stepper [data-cstep="1"]{grid-row:1!important;grid-column:1!important}
#cart-overlay #cart-items .ci-bottom>.stepper [data-cstep="-1"]{grid-row:3!important;grid-column:1!important}
#cart-overlay #cart-items .ci-bottom>.stepper input[data-ckey]{grid-row:2!important;grid-column:1!important;width:100%!important;min-width:0!important;max-width:100%!important;height:24px!important;min-height:24px!important;padding:0!important;margin:0!important;text-align:center!important;align-self:center!important;justify-self:stretch!important;font-size:13px!important;line-height:24px!important;border:0!important;background:#fff!important;appearance:textfield;-moz-appearance:textfield}
#cart-overlay #cart-items .ci-bottom>.stepper button{width:100%!important;min-width:0!important;max-width:100%!important;height:22px!important;min-height:22px!important;padding:0!important;margin:0!important;line-height:20px!important;font-size:14px!important;text-align:center!important;border:0!important;border-radius:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
#cart-overlay #cart-items .ci-bottom>.stepper input::-webkit-inner-spin-button,#cart-overlay #cart-items .ci-bottom>.stepper input::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}
#cart-overlay #cart-items .ci-bottom>.ci-unit{grid-column:auto!important;flex:1 1 65px!important;min-width:0!important}
#cart-overlay #cart-items .ci-bottom>.m7-line-discount{margin-left:auto!important;min-width:min(125px,100%)!important;flex:1 1 125px!important;max-width:160px!important}
@media(max-width:380px){#cart-overlay .m7-grid{grid-template-columns:minmax(0,1fr)!important}}


/* ===== assets/m71963-ui-system.css ===== */
/* YANMAR M7.19.6.3 | Navigation and restrained spacing layer.
   Loaded LAST. Do not change module permissions, element ids or business logic.
   Desktop: one scrollable line. Tablet: maximum two rows. Mobile: disclosure. */
:root{
  --yanmar-space-1:4px;--yanmar-space-2:8px;--yanmar-space-3:12px;
  --yanmar-space-4:16px;--yanmar-space-6:24px;--yanmar-space-8:32px;
}
main.container.protected-content{min-width:0!important;box-sizing:border-box!important}
main.container.protected-content>.tab-view:not(.hidden){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
main.container.protected-content>#main-tool-tabs.tool-tabs{
  box-sizing:border-box!important;min-width:0!important;
  align-items:center!important;align-content:center!important;
  gap:6px!important;padding:7px!important;
  border-radius:14px!important;
}
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-height:44px!important;
  border-radius:10px!important;gap:6px!important;
  line-height:1.2!important;text-align:center!important;
  text-decoration:none!important;
}
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab-icon{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:15px!important;height:15px!important;flex:0 0 15px!important;
}
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab-icon svg{
  display:block!important;width:15px!important;height:15px!important;
}
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:focus-visible,
main.container.protected-content>#mobile-main-menu-toggle:focus-visible{
  outline:2px solid #e23b33!important;outline-offset:2px!important;
}
/* Desktop: never wrap navigation into a second row; scrolling is intentional at 1200-1500px. */
@media(min-width:1200px){
  main.container.protected-content>#mobile-main-menu-toggle{display:none!important}
  main.container.protected-content>#main-tool-tabs.tool-tabs{
    position:relative!important;left:50%!important;transform:translateX(-50%)!important;
    width:min(calc(100vw - 28px),1800px)!important;max-width:none!important;
    display:flex!important;flex-flow:row nowrap!important;grid-template-columns:none!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    overscroll-behavior-inline:contain!important;
    scrollbar-width:thin!important;scrollbar-color:#c6ccd6 transparent!important;
    scroll-snap-type:x proximity;
    height:auto!important;max-height:72px!important;
    margin:18px 0 15px!important;
  }
  main.container.protected-content>#main-tool-tabs.tool-tabs::-webkit-scrollbar{display:block!important;height:5px!important}
  main.container.protected-content>#main-tool-tabs.tool-tabs::-webkit-scrollbar-thumb{background:#c6ccd6;border-radius:10px}
  main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
    flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:max-content!important;
    padding:10px 12px!important;font-size:11.5px!important;
    white-space:nowrap!important;overflow-wrap:normal!important;
    scroll-snap-align:start;
  }
}
/* iPad/tablet (including 744px iPad mini): 7 slots x 2 rows for 14 admin actions. */
@media(min-width:720px) and (max-width:1199px){
  main.container.protected-content>#mobile-main-menu-toggle{display:none!important}
  main.container.protected-content>#main-tool-tabs.tool-tabs:not(.mobile-menu-open),
  main.container.protected-content>#main-tool-tabs.tool-tabs.mobile-menu-open{
    position:static!important;left:auto!important;transform:none!important;
    display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
    grid-auto-flow:row!important;grid-auto-rows:minmax(52px,auto)!important;
    flex-direction:unset!important;flex-wrap:unset!important;
    width:100%!important;max-width:100%!important;
    max-height:none!important;height:auto!important;
    margin:14px 0 18px!important;
    justify-content:stretch!important;align-content:start!important;
    overflow:visible!important;row-gap:7px!important;column-gap:5px!important;
  }
  main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
    display:flex!important;flex:initial!important;flex-direction:column!important;
    min-width:0!important;max-width:100%!important;width:100%!important;
    min-height:52px!important;padding:6px 4px!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
    font-size:10.5px!important;line-height:1.15!important;
  }
  main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab-icon,
  main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab-icon svg{
    display:inline-flex!important;width:15px!important;height:15px!important;flex:0 0 15px!important;
  }
  #admin-orders-view .orders-filter-panel,
  #admin-orders-view .orders-page-header,
  #admin-orders-view .admin-orders-stats{
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;
  }
}
/* Mobile disclosure, keeping the chevron physically on the middle grid track. */
@media(max-width:719px){
  main.container.protected-content>#mobile-main-menu-toggle{
    position:relative!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)!important;
    grid-template-rows:minmax(44px,auto)!important;
    width:100%!important;min-height:44px!important;box-sizing:border-box!important;
    align-items:center!important;gap:8px!important;margin:10px 0 8px!important;
    padding:6px 12px!important;
  }
  #mobile-main-menu-toggle>span:first-child{grid-column:1!important;grid-row:1!important;justify-self:start!important;min-width:0}
  #mobile-main-menu-toggle .mobile-main-menu-chevron{
    grid-column:2!important;grid-row:1!important;justify-self:center!important;
    align-self:center!important;display:block!important;
    width:28px!important;text-align:center!important;font-size:0!important;
    transform:none!important;
  }
  #mobile-main-menu-toggle .mobile-main-menu-chevron::before{
    content:"";display:block;width:8px;height:8px;margin:-3px auto 0;
    border-right:2px solid currentColor;border-bottom:2px solid currentColor;
    transform:rotate(45deg);transition:transform .15s ease;
  }
  #mobile-main-menu-toggle[aria-expanded="true"] .mobile-main-menu-chevron::before{
    margin-top:3px;transform:rotate(225deg);
  }
  #mobile-main-menu-toggle strong{
    grid-column:3!important;grid-row:1!important;justify-self:end!important;
    max-width:100%!important;min-width:0!important;text-align:right!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  main.container.protected-content>#main-tool-tabs.tool-tabs:not(.mobile-menu-open){display:none!important}
  main.container.protected-content>#main-tool-tabs.tool-tabs.mobile-menu-open{
    display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
    width:100%!important;max-width:100%!important;max-height:min(70vh,680px)!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    margin:0 0 12px!important;transform:none!important;left:auto!important;
  }
  main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
    flex:0 0 auto!important;flex-direction:row!important;
    justify-content:flex-start!important;text-align:left!important;
    min-height:44px!important;width:100%!important;max-width:100%!important;
    white-space:normal!important;font-size:12px!important;padding:9px 12px!important;
  }
}
/* Restrained typography/spacing cleanup; scoped, no geometry overrides to custom modules. */
main.container.protected-content .admin-page-heading{gap:16px!important;margin-bottom:24px!important;align-items:start!important}
main.container.protected-content .admin-page-heading h1{line-height:1.2!important;margin-block:7px 8px!important}
main.container.protected-content .admin-page-heading p{line-height:1.5!important}
main.container.protected-content .eyebrow{line-height:1.35!important;letter-spacing:.08em!important}
main.container.protected-content .module-subnav{gap:6px 8px!important;margin-bottom:20px!important}
main.container.protected-content .module-subnav button{min-height:38px!important}
main.container.protected-content .orders-filter-panel label,
main.container.protected-content .settings-group-panel label{line-height:1.4!important}
@media(max-width:719px){
  main.container.protected-content .admin-page-heading{gap:12px!important;margin-bottom:16px!important}
  main.container.protected-content .module-subnav{margin-bottom:16px!important}
}


/* ===== assets/m71964-audit-system.css ===== */
/* M7.19.6.4 · Sistema visual de auditoría. Capa final, sin cambios de negocio. */
:root{
  --y64-brand:#e23b33;--y64-action:#d5372f;--y64-action-hover:#bd302a;
  --y64-ink:#1b1f24;--y64-secondary:#535e6b;--y64-border:#d8dfe9;
  --y64-soft:#f5f7fa;--y64-white:#fff;--y64-radius:10px;
  --y64-s1:4px;--y64-s2:8px;--y64-s3:12px;--y64-s4:16px;--y64-s6:24px;--y64-s8:32px;
  --y64-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
/* Solo familia tipográfica: no restablecer de forma global alturas ni tamaños propios de un widget. */
body,button,input,select,textarea,option{font-family:var(--y64-font)!important}
body{color:var(--y64-ink)}
main.container.protected-content{min-width:0;max-width:1320px;margin-inline:auto;box-sizing:border-box}
main.container.protected-content :is(.tab-view,.admin-page-heading,.orders-page-header,.purchase-section,.admin-card,.card,.orders-filter-panel){min-width:0;box-sizing:border-box}
main.container.protected-content :is(.tab-view,.admin-page-heading,.orders-page-header) :is(h1,h2,h3,p){overflow-wrap:break-word}
/* Acción principal y secundaria: misma altura, paleta de estados reconocibles. */
:where(main.container.protected-content,#cart-overlay,.article-editor-overlay,.purchase-modal-overlay,.account-overlay,.r26-modal,.enterprise-modal)
:is(.btn-primary,.btn-secondary){box-sizing:border-box;min-height:42px;border-radius:var(--y64-radius);font-size:14px;line-height:1.35;font-weight:700;letter-spacing:normal}
:where(main.container.protected-content,#cart-overlay,.article-editor-overlay,.purchase-modal-overlay,.account-overlay,.r26-modal,.enterprise-modal)
.btn-primary{background:var(--y64-action)!important;border-color:var(--y64-action)!important;color:#fff!important}
:where(main.container.protected-content,#cart-overlay,.article-editor-overlay,.purchase-modal-overlay,.account-overlay,.r26-modal,.enterprise-modal)
.btn-primary:hover:not(:disabled){background:var(--y64-action-hover)!important;border-color:var(--y64-action-hover)!important;box-shadow:0 3px 11px rgba(156,37,34,.13)}
:where(main.container.protected-content,#cart-overlay,.article-editor-overlay,.purchase-modal-overlay,.account-overlay,.r26-modal,.enterprise-modal)
.btn-secondary{background:#fff!important;border:1px solid var(--y64-border)!important;color:#283544!important}
:where(main.container.protected-content,#cart-overlay,.article-editor-overlay,.purchase-modal-overlay,.account-overlay,.r26-modal,.enterprise-modal)
.btn-secondary:hover:not(:disabled){background:var(--y64-soft)!important;border-color:#aeb9ca!important;box-shadow:0 3px 10px rgba(31,41,55,.07);color:#263341!important}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #b82e28;outline-offset:2px}
button:disabled{cursor:not-allowed;opacity:.58}
/* Botones de módulos que no utilizan .btn-primary/.btn-secondary. No tocar stepper, cerrar-modal ni iconos. */
#admin-purchases-view :is(.purchase-toolbar,.purchase-section>header,.purchase-dashboard-actions) button,
#admin-purchases-view :is(#purchase-refresh,#purchase-export),
#admin-articles-view :is(#admin-article-import,#admin-article-list-refresh,#admin-article-page-first,#admin-article-page-prev,#admin-article-page-next,#admin-article-page-last),
#admin-scanner-view :is(.scanner-heading-actions,.scanner-batch-head) button{
  box-sizing:border-box;min-height:40px!important;padding:8px 13px!important;
  border-radius:var(--y64-radius)!important;font-size:13px!important;line-height:1.3!important;
}
#admin-purchases-view :is(#purchase-refresh,#purchase-export):hover:not(:disabled),
#admin-articles-view :is(#admin-article-import,#admin-article-list-refresh):hover:not(:disabled){background:var(--y64-soft)!important;border-color:#aeb9ca!important;box-shadow:0 2px 8px rgba(31,41,55,.07)!important}
/* Jerarquía, controles y metadatos: no aplastar los formatos de SKU, precios ni fechas. */
main.container.protected-content :is(.admin-page-heading,.orders-page-header,.article-catalog-browser-head,.purchase-section>header){gap:16px!important;margin-bottom:20px}
main.container.protected-content :is(.admin-page-heading,.orders-page-header,.article-catalog-browser-head) h1{line-height:1.22;margin-block:6px 8px}
main.container.protected-content :is(.admin-page-heading,.orders-page-header,.article-catalog-browser-head) p{line-height:1.52}
main.container.protected-content :is(.eyebrow,.field-help,.form-help,.auth-help,.admin-client-list-help,.purchase-help){line-height:1.45}
main.container.protected-content :is(.field-help,.form-help,.admin-client-list-help,.article-ai-title-wrap p){font-size:12px!important;color:var(--y64-secondary)}
main.container.protected-content :is(.m718-bulk-grid,.purchase-supplier-inline,.admin-client-filters,.orders-filter-grid,.article-catalog-filters) label{min-width:0;row-gap:6px;line-height:1.38}
main.container.protected-content :is(.m718-bulk-grid,.purchase-supplier-inline,.admin-client-filters,.orders-filter-grid,.article-catalog-filters) :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-height:40px;font-size:14px}
/* Pestañas y submenús: tipografía legible y estados homogéneos sin cambiar selección funcional. */
main.container.protected-content :is(.module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,.article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav){gap:6px!important;padding:6px!important;max-width:100%!important;box-sizing:border-box}
main.container.protected-content :is(.module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,.article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav) button{
  box-sizing:border-box;min-height:40px!important;padding:9px 12px!important;font-size:12.5px!important;
  line-height:1.25!important;border-radius:9px!important;white-space:nowrap!important;
}
main.container.protected-content :is(.module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,.article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav) button:hover:not(.active):not(:disabled){background:#f0f3f7!important;box-shadow:0 2px 7px rgba(31,41,55,.07)!important}
main.container.protected-content :is(.module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,.article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav) button.active{background:var(--y64-action)!important;color:#fff!important}
/* La navegación principal conserva una fila y usa la misma alineación que las tarjetas de escritorio. */
@media(min-width:1200px){main.container.protected-content>#main-tool-tabs.tool-tabs{
  left:auto!important;transform:none!important;width:100%!important;max-width:100%!important;
  margin-inline:auto!important;overflow-x:auto!important;overflow-y:hidden!important;
}}
@media(min-width:720px) and (max-width:1199px){
  main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
    font-size:11.5px!important;line-height:1.27!important;min-height:58px!important;padding:7px 4px!important;
  }
}
@media(max-width:719px){main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){font-size:13px!important;line-height:1.35!important}}
/* Pedidos: ocho KPI en cuatro columnas a tablet, dos en móvil. */
@media(min-width:600px) and (max-width:1000px){
  #admin-orders-view #admin-orders-stats.admin-orders-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
  #admin-orders-view #admin-orders-stats>*{min-width:0!important}
}
@media(max-width:599px){#admin-orders-view #admin-orders-stats.admin-orders-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}}
#admin-orders-view #admin-orders-stats :is(.order-filter-card,.admin-metric-card) small{font-size:12px!important;line-height:1.38!important}
#admin-orders-view #admin-orders-stats :is(.order-filter-card,.admin-metric-card) span{font-size:11.5px!important;line-height:1.3!important}
/* Acciones de Flota: mantener blanco > hover > rojo pulsado según especificación. */
:is(#my-fleet-view,#admin-service-view) :is(.m719-create-button,[data-m719-add-vessel],[data-m719-add-engine]){min-height:40px;border-radius:10px}
/* Pequeños paneles administrativos, sin elevar todo small a la fuerza. */
main.container.protected-content :is(.article-ai-status,.m718-client-ranking small,.m718-preview-row small,.admin-user-card-v2 .admin-user-mini,.series-selector-bar small){font-size:12px!important;line-height:1.38!important}
@media(max-width:1199px){
  main.container.protected-content :is(.module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,.article-subnav,.purchase-subnav){
    flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;
    scrollbar-width:thin!important;scrollbar-color:#bdc7d3 transparent!important;
  }
  :is(.article-editor-overlay,.purchase-modal-overlay,.account-overlay,.r26-modal) :is(.modal-actions,.form-actions,.action-row){gap:10px;flex-wrap:wrap}
}
@media(max-width:719px){
  #admin-purchases-view :is(#purchase-refresh,#purchase-export),
  #admin-articles-view :is(#admin-article-import,#admin-article-list-refresh,#admin-article-page-first,#admin-article-page-prev,#admin-article-page-next,#admin-article-page-last),
  #admin-scanner-view :is(.scanner-heading-actions,.scanner-batch-head) button{min-height:44px!important}
  #my-fleet-view #m719-add-vessel{min-width:0!important;white-space:normal!important;overflow-wrap:normal!important;line-height:1.3!important;padding:8px 10px!important;min-height:44px!important}
  main.container.protected-content :is(.admin-card,.card,.selector-card){min-width:0}
}
/* Indicadores de estado en una zona propia en tablet y móvil: nunca sobre formularios. */
main.container.protected-content>.yanmar64-status-dock{display:contents}
@media(max-width:1199px){
  body.authenticated main.container.protected-content>.yanmar64-status-dock{
    display:flex!important;position:relative!important;min-width:0!important;
    flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;
    gap:10px!important;margin:24px 0 12px!important;padding:0 0 env(safe-area-inset-bottom)!important;
  }
  body.authenticated main.container.protected-content>.yanmar64-status-dock #global-clock,
  body.authenticated main.container.protected-content>.yanmar64-status-dock #r26-online-state{
    position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    transform:none!important;z-index:auto!important;max-width:100%!important;box-sizing:border-box!important;
    margin:0!important;min-height:36px!important;font-size:12px!important;
  }
  body.authenticated main.container.protected-content>.yanmar64-status-dock #global-clock small{font-size:10px!important}
}
/* Tablas muy anchas desplazan su contenido, no expanden el documento. */
@media(max-width:1199px){
  :is(.article-catalog-table-wrap,.purchase-needs-table,.purchase-orders-table,.purchase-receipts-table,.enterprise-table,.admin-table){
    max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;
  }
}
@media(prefers-reduced-motion:reduce){button,.tool-tab,.module-subnav button{transition:none!important}}
/* Ajustes encontrados al recorrer las 16 vistas estáticas después de la primera capa. */
#admin-purchases-view .purchase-dashboard-help button{
  box-sizing:border-box;min-height:40px!important;padding:9px 13px!important;
  border-radius:var(--y64-radius)!important;font-size:13px!important;line-height:1.3!important;
}
#admin-purchases-view .purchase-dashboard-help button:hover:not(:disabled){
  background:var(--y64-soft)!important;border-color:#aeb9ca!important;box-shadow:0 2px 8px rgba(31,41,55,.07)!important;
}
#pvp-view .article-chatgpt-suggestions button{min-height:36px!important;padding:7px 12px!important;font-size:12.5px!important;line-height:1.35!important}
#admin-articles-view #admin-article-list-clear{
  display:inline-flex;align-items:center;justify-content:center;min-height:36px!important;
  font-size:13px!important;padding:8px 11px!important;line-height:1.3!important;
}
:is(#m719-my-fleet .m719-head,#admin-orders-view .orders-filter-search,
  #admin-budgets-view .budget-save-row,#admin-scanner-view .scanner-code-label) small{
  font-size:12px!important;line-height:1.48!important;color:var(--y64-secondary)!important;
}
@media(max-width:719px){
  #admin-purchases-view .purchase-dashboard-help button,
  #pvp-view .article-chatgpt-suggestions button,
  #admin-articles-view #admin-article-list-clear{min-height:44px!important}
}
/* Estados activos uniformes; las acciones de alta de Flota mantienen su blanco en reposo. */
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab.active,
main.container.protected-content .m717-client-tabs .m717-client-tab.active{
  background:var(--y64-action)!important;border-color:var(--y64-action)!important;color:#fff!important;
}


/* ===== assets/m71965-ui-fix.css ===== */
/* YANMAR M7.19.6.5: un solo nivel en escritorio, sin scroll ni aplastamiento. */
:root{--y65-border:#cfd8e5;--y65-hover:#f1f4f8;--y65-red:#d5372f;--y65-text:#253241}
@media(min-width:1200px){
main.container.protected-content>#main-tool-tabs.tool-tabs,
main.container.protected-content>#main-tool-tabs.tool-tabs:not(.mobile-menu-open){
 display:flex!important;position:relative!important;left:auto!important;transform:none!important;
 flex-flow:row nowrap!important;align-items:stretch!important;justify-content:stretch!important;
 width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;
 min-height:66px!important;max-height:none!important;overflow:visible!important;
 overflow-x:visible!important;overflow-y:visible!important;scroll-snap-type:none!important;
 scrollbar-width:none!important;gap:3px!important;padding:6px!important;margin:18px auto 16px!important;
}
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
 display:flex!important;flex:1 1 0!important;flex-direction:column!important;min-width:0!important;
 max-width:none!important;width:0!important;min-height:54px!important;height:auto!important;
 padding:7px 2px!important;gap:4px!important;align-self:stretch!important;justify-content:center!important;
 font-size:clamp(10.5px,.74vw,12px)!important;line-height:1.16!important;
 white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
 hyphens:auto!important;text-align:center!important;scroll-snap-align:none!important;
}
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab-icon,
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab-icon svg{
 display:inline-flex!important;width:15px!important;height:15px!important;flex:0 0 15px!important;
}
}
@media(min-width:720px) and (max-width:1199px){
 main.container.protected-content>#main-tool-tabs.tool-tabs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-auto-flow:row!important;overflow:visible!important;max-height:none!important}
 main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){min-width:0!important;overflow-wrap:break-word!important;white-space:normal!important;font-size:clamp(10px,1.1vw,12px)!important}
}
@media(max-width:719px){
 #mobile-main-menu-toggle .mobile-main-menu-chevron{justify-self:center!important;align-self:center!important}
 main.container.protected-content>#main-tool-tabs.tool-tabs:not(.mobile-menu-open){display:none!important}
}
/* Unificar solo títulos de cabecera de vista, nunca subtítulos de tarjetas ni modales. */
main.container.protected-content>.tab-view>:is(.pvp-hero,.hero,.admin-page-heading,.admin-header,.orders-page-header) h1{
 font-size:clamp(25px,2.1vw,30px)!important;font-weight:800!important;letter-spacing:-.028em!important;
 line-height:1.17!important;margin:5px 0 9px!important;
}
main.container.protected-content>.tab-view>:is(.pvp-hero,.hero,.admin-page-heading,.admin-header,.orders-page-header) p{line-height:1.5!important;margin-top:0!important}
@media(max-width:719px){main.container.protected-content>.tab-view>:is(.pvp-hero,.hero,.admin-page-heading,.admin-header,.orders-page-header) h1{font-size:25px!important}}
/* Los descuentos ocupan exactamente la misma altura que el select, alineados por abajo. */
#cart-overlay #m7-admin-order-panel .m7-grid{align-items:end!important;grid-auto-rows:auto!important}
#cart-overlay #m7-admin-order-panel .m7-grid>label{align-self:end!important;min-width:0!important}
#cart-overlay #m7-admin-order-panel #m7-order-discount-mode{
 display:block!important;box-sizing:border-box!important;height:38px!important;min-height:38px!important;
 max-height:38px!important;line-height:normal!important;padding-block:0!important;
}
#cart-overlay #m7-admin-order-panel #m7-client-discounts{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;align-self:end!important;
 justify-content:flex-start!important;width:100%!important;height:38px!important;
 min-height:38px!important;max-height:38px!important;padding:0 10px!important;margin:0!important;
 line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;
 text-overflow:ellipsis!important;font-size:12px!important;
}
#cart-overlay #m7-admin-order-panel #m7-client-discounts strong{display:inline!important;margin-inline:3px!important}
@media(max-width:380px){#cart-overlay #m7-admin-order-panel #m7-client-discounts{white-space:normal!important;font-size:11px!important}}
/* Botones X: misma geometría y estados; su lógica de cierre se conserva. */
button.y65-modal-close{
 appearance:none!important;box-sizing:border-box!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;flex:0 0 38px!important;
 width:38px!important;min-width:38px!important;max-width:38px!important;
 height:38px!important;min-height:38px!important;max-height:38px!important;
 margin:0!important;padding:0!important;border:1px solid var(--y65-border)!important;
 border-radius:10px!important;background:#fff!important;color:var(--y65-text)!important;
 font:600 22px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;
 text-align:center!important;text-decoration:none!important;box-shadow:none!important;
 transition:background .14s ease,border-color .14s ease,box-shadow .14s ease!important;
}
button.y65-modal-close:hover:not(:disabled){background:var(--y65-hover)!important;border-color:#a9b9ca!important;box-shadow:0 2px 8px rgba(31,41,55,.09)!important;color:var(--y65-text)!important}
button.y65-modal-close:active{background:var(--y65-red)!important;color:#fff!important;border-color:var(--y65-red)!important}
button.y65-modal-close:focus-visible{outline:2px solid var(--y65-red)!important;outline-offset:2px!important}
button.y65-modal-close span{font:inherit!important;line-height:1!important}
@media(max-width:719px){button.y65-modal-close{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;flex-basis:44px!important}}

#scanner-camera-panel .scanner-camera-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}


/* ===== assets/m71966-nav-buttons.css ===== */
/* M7.19.6.6 — states shared by native buttons in existing and dynamic views.
   Only visual properties: no display, event, role, width or data changes. */
:root{--y66-ink:#263440;--y66-edge:#d3ddea;--y66-hover:#eff3f8;--y66-red:#d5372f;--y66-red-hover:#b92e28;--y66-shadow:0 3px 10px rgba(30,45,64,.09)}
body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a[role="button"]):not(#y66-specificity-guard):not(:disabled):not([aria-disabled="true"]){
 background-color:#fff!important;color:var(--y66-ink)!important;border-color:var(--y66-edge)!important;
 box-shadow:none!important;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important;
}
body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a[role="button"]):not(#y66-specificity-guard):not(:disabled):not([aria-disabled="true"]):hover:not(.active):not(.is-active):not([aria-selected="true"]):not([aria-pressed="true"]):not([data-state="active"]){
 background-color:var(--y66-hover)!important;border-color:#aab9ca!important;color:var(--y66-ink)!important;box-shadow:var(--y66-shadow)!important;
}
body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a[role="button"]):not(#y66-specificity-guard):is(.active,.is-active,[aria-selected="true"],[aria-pressed="true"],[data-state="active"],:active):not(:disabled):not([aria-disabled="true"]){
 background-color:var(--y66-red)!important;border-color:var(--y66-red)!important;color:#fff!important;box-shadow:0 2px 9px rgba(175,40,33,.14)!important;
}
body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a[role="button"]):not(#y66-specificity-guard):is(.active,.is-active,[aria-selected="true"],[aria-pressed="true"],[data-state="active"]):hover:not(:disabled){
 background-color:var(--y66-red-hover)!important;border-color:var(--y66-red-hover)!important;color:#fff!important;
}
body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a[role="button"]):not(#y66-specificity-guard):disabled,
body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a[role="button"]):not(#y66-specificity-guard)[aria-disabled="true"]{
 background-color:#f3f5f8!important;border-color:#e0e6ee!important;color:#8a97a5!important;box-shadow:none!important;cursor:not-allowed!important;
}
body :is(button,input[type="button"],input[type="submit"],input[type="reset"],a[role="button"]):not(#y66-specificity-guard):focus-visible{outline:2px solid #a52c26!important;outline-offset:3px!important}
body :is(button[class*="danger"],button[class*="delete"],button[id*="delete"],button[id*="remove"],button[data-action*="delete"]):not(.active):not(:active):not(:disabled){color:#b02d26!important;border-color:#e5b4b0!important}
body :is(button[class*="danger"],button[class*="delete"],button[id*="delete"],button[id*="remove"],button[data-action*="delete"]):hover:not(.active):not(:active):not(:disabled){background-color:#fff2f1!important;border-color:#c4554d!important;color:#a5251d!important}
@media(prefers-reduced-motion:reduce){body button{transition:none!important}}
/* Unified spacing below the navigation, original heading style restored. */
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs{margin-top:16px!important;margin-bottom:20px!important}
body.authenticated main.container.protected-content>.tab-view.active{margin-top:0!important;padding-top:0!important}
body.authenticated main.container.protected-content>.tab-view.active>:first-child{margin-top:0!important}
body.authenticated main.container.protected-content>.tab-view :is(.pvp-hero,.hero,.admin-page-heading,.admin-header,.orders-page-header,.r26-page-header,.r26-hero) h1,
body.authenticated main.container.protected-content>.tab-view>h1{
 font-family:var(--y64-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif)!important;
 font-size:clamp(24px,2vw,29px)!important;font-weight:700!important;letter-spacing:-.018em!important;line-height:1.2!important;margin:5px 0 9px!important;
}
/* Desktop: one spacious row, icon and full label side by side; overflow moves into More. */
@media(min-width:1200px){
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  justify-content:space-between!important;gap:4px!important;padding:8px!important;
  width:calc(100vw - 32px)!important;max-width:1900px!important;min-width:0!important;
  position:relative!important;left:50%!important;transform:translateX(-50%)!important;
  box-sizing:border-box!important;height:62px!important;min-height:62px!important;max-height:62px!important;
  overflow:visible!important;overflow-x:visible!important;overflow-y:visible!important;
  scroll-snap-type:none!important;scrollbar-width:none!important;
 }
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.tool-tab:not(.hidden):not([hidden]){
  display:inline-flex!important;flex:1 0 auto!important;flex-direction:row!important;align-items:center!important;
  justify-content:center!important;gap:6px!important;width:auto!important;max-width:none!important;min-width:max-content!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  padding:7px 10px!important;font-size:clamp(11.5px,.79vw,13px)!important;line-height:1.15!important;
  white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
 }
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab-icon,
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab-icon svg{
  display:inline-flex!important;width:15px!important;height:15px!important;flex:0 0 15px!important;
 }
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.y66-more{position:relative;display:flex;flex:0 0 auto;align-self:center;min-width:0}
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.y66-more[hidden]{display:none!important}
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .y66-more-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;white-space:nowrap;font-size:12px;font-weight:700;border:1px solid var(--y66-edge);border-radius:9px;cursor:pointer
 }
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .y66-more-panel{
  position:absolute;display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:5px;z-index:200;
  top:calc(100% + 10px);right:0;width:min(440px,calc(100vw - 40px));max-height:min(65vh,520px);overflow-y:auto;
  background:#fff;border:1px solid var(--y66-edge);border-radius:12px;padding:9px;
  box-shadow:0 12px 30px rgba(25,41,61,.18)
 }
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .y66-more-panel[hidden]{display:none!important}
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .y66-more-panel>.tool-tab:not(.hidden):not([hidden]){
  display:inline-flex!important;width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:42px!important;
  flex-direction:row!important;justify-content:flex-start!important;gap:8px!important;
  font-size:12.5px!important;line-height:1.25!important;white-space:nowrap!important;padding:9px!important;
 }
}
@media(max-width:1199px){body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.y66-more{display:none!important}}
@media(max-width:719px){
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs{margin-top:10px!important;margin-bottom:16px!important}
 body.authenticated main.container.protected-content>.tab-view :is(.pvp-hero,.hero,.admin-page-heading,.admin-header,.orders-page-header,.r26-page-header,.r26-hero) h1{font-size:24px!important}
}

/* M7.19.6.6 system button states. */


/* ===== assets/m71967-restored-controls.css ===== */
/* M7.19.6.7: corrections targeted to the native nav and intentional UI exceptions.
   Keep M7.19.6.6 generic button states for ordinary controls; restore purposeful branded controls. */
@media (min-width:1200px){
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs{
   display:flex!important; flex-flow:row nowrap!important; align-items:center!important;
   justify-content:space-between!important; width:calc(100vw - 28px)!important;
   max-width:1720px!important; min-width:0!important; margin-left:auto!important; margin-right:auto!important; box-sizing:border-box!important;
   left:50%!important;transform:translateX(-50%)!important;
   gap:1px!important; padding:6px 7px!important; height:62px!important;
   min-height:62px!important;max-height:62px!important;
   overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important;
 }
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>button.tool-tab:not(.hidden):not([hidden]){
   display:inline-flex!important;flex:1 1 auto!important;align-items:center!important;
   justify-content:center!important;flex-direction:row!important;gap:3px!important;
   min-width:0!important;max-width:none!important;width:auto!important;
   padding:7px 4px!important;height:43px!important;min-height:43px!important;max-height:43px!important;
   box-sizing:border-box!important;white-space:nowrap!important;overflow-wrap:normal!important;
   word-break:normal!important;hyphens:none!important;
   font-size:clamp(9.5px,.72vw,11.7px)!important;font-weight:500!important;line-height:1.1!important;
 }
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>button.tool-tab .tool-tab-icon,
 body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>button.tool-tab .tool-tab-icon svg{
   display:inline-flex!important;width:clamp(10px,.66vw,13px)!important;height:clamp(10px,.66vw,13px)!important;
   flex:0 0 clamp(10px,.66vw,13px)!important;
 }
 body.authenticated #main-tool-tabs.tool-tabs .y66-more{display:none!important}
}
/* Restore the intentionally branded order cart, instead of turning every action white. */
body.authenticated header.topbar #cart-toggle.cart-toggle:not(#y67-guard){
 background:var(--red,#e23b33)!important;border:1px solid var(--red,#e23b33)!important;
 color:#fff!important;border-radius:999px!important;box-shadow:0 3px 9px rgba(195,50,42,.15)!important;
}
body.authenticated header.topbar #cart-toggle.cart-toggle:hover:not(#y67-guard){
 background:var(--red-dark,#b8291f)!important;border-color:var(--red-dark,#b8291f)!important;color:#fff!important;
}
body.authenticated header.topbar #cart-toggle #cart-count.cart-count{
 background:#fff!important;color:var(--red,#e23b33)!important;border-radius:999px!important;
}
/* The cart action buttons preserve their original functional visual hierarchy. */
body.authenticated #cart-overlay #cart-submit-order.btn-order-submit:not(:disabled):not(#y67-guard),
body.authenticated #cart-overlay #cart-send.btn-primary:not(:disabled):not(#y67-guard){
 background:var(--red,#e23b33)!important;border-color:var(--red,#e23b33)!important;
 color:#fff!important;box-shadow:0 3px 9px rgba(195,50,42,.12)!important;
}
body.authenticated #cart-overlay #cart-submit-order.btn-order-submit:hover:not(:disabled):not(#y67-guard),
body.authenticated #cart-overlay #cart-send.btn-primary:hover:not(:disabled):not(#y67-guard){
 background:var(--red-dark,#b8291f)!important;border-color:var(--red-dark,#b8291f)!important;color:#fff!important;
}
body.authenticated #cart-overlay #cart-whatsapp.btn-whatsapp:not(:disabled):not(#y67-guard){
 background:#25d366!important;border-color:#25d366!important;color:#fff!important;box-shadow:none!important;
}
body.authenticated #cart-overlay #cart-whatsapp.btn-whatsapp:hover:not(:disabled):not(#y67-guard){
 background:#1fad54!important;border-color:#1fad54!important;color:#fff!important;box-shadow:0 3px 9px rgba(24,150,74,.13)!important;
}
body.authenticated #cart-overlay #cart-print.btn-secondary:not(:disabled):not(#y67-guard){
 background:#fff!important;border:1px solid #d3ddea!important;color:#263440!important;
}
body.authenticated #cart-overlay #cart-clear.btn-ghost:not(:disabled):not(#y67-guard){
 background:transparent!important;border-color:transparent!important;color:var(--grey-700,#5a6069)!important;
 box-shadow:none!important;text-decoration:underline!important;
}
body.authenticated #cart-overlay #cart-clear.btn-ghost:hover:not(:disabled):not(#y67-guard){color:var(--red-dark,#b8291f)!important;background:transparent!important;box-shadow:none!important}
/* Footer links are not cards or primary buttons. Preserve a transparent flat footer. */
body.authenticated footer.footer .footer-legal-nav button[data-legal-page]:not(#y67-guard),
body.authenticated footer.footer .footer-legal-nav button[data-legal-page]:is(:hover,:focus-visible,:active):not(#y67-guard){
 background:transparent!important;border:0!important;border-color:transparent!important;
 border-radius:0!important;box-shadow:none!important;color:#16283c!important;
}
body.authenticated footer.footer .footer-legal-nav button[data-legal-page]:hover:not(#y67-guard){
 color:#b72d27!important;text-decoration:underline!important;
}
/* Responsive nav from M7.19.6.4 stays in place: <=1199 is two lines or mobile drop-down. */

/* M7.19.6.7 revised: reinstate original maintenance action layout instead of stacked full-width actions.
   These selectors are restricted to the maintenance editor launcher: no form or business logic changes. */
#maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:9px!important;align-items:stretch!important;justify-content:stretch!important;
}
#maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button:not(#m71967-rev-guard){
 width:100%!important;min-width:0!important;min-height:40px!important;height:auto!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 padding:8px 10px!important;border-radius:9px!important;line-height:1.25!important;
 font-size:12px!important;font-weight:600!important;text-align:center!important;
 white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;
}
#maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-secondary:not(:disabled):not(#m71967-rev-guard){
 background:#fff!important;border:1px solid #d3ddea!important;color:#263440!important;box-shadow:none!important;
}
#maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-secondary:hover:not(:disabled):not(#m71967-rev-guard){
 background:#eff3f8!important;border-color:#aab9ca!important;box-shadow:0 3px 10px rgba(30,45,64,.09)!important;
}
#maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-primary:not(:disabled):not(#m71967-rev-guard){
 background:#d5372f!important;border:1px solid #d5372f!important;color:#fff!important;box-shadow:none!important;
}
#maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-primary:hover:not(:disabled):not(#m71967-rev-guard){
 background:#b92e28!important;border-color:#b92e28!important;box-shadow:0 3px 10px rgba(175,40,33,.14)!important;
}
@media(max-width:520px){
 #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions{grid-template-columns:1fr!important;}
}


/* ===== assets/m71969-role-menu.css ===== */
/* M7.19.6.9: role visibility is mandatory, never overridden by responsive button styling. */
#main-tool-tabs.tool-tabs > .tool-tab[hidden],
#main-tool-tabs.tool-tabs > .tool-tab.hidden,
#main-tool-tabs.tool-tabs > .tool-tab[aria-hidden="true"],
body.role-admin #main-tool-tabs.tool-tabs > .tool-tab.client-only,
body.role-staff #main-tool-tabs.tool-tabs > .tool-tab.client-only,
body.role-client #main-tool-tabs.tool-tabs > .tool-tab.admin-only {
  display:none!important;
  visibility:hidden!important;
}
/* Do not change the menu's width, colours or intended tab layout. */


/* ===== assets/m719610-login-nav-visual.css ===== */
/* YANMAR M7.19.6.10 — conservative visual repair on top of M7.19.6.9.
   Never changes modules, access roles, route handling or interactive bindings. */

/* The base guest gate used only .auth-loading/.auth-guest. An intermediate state
   can lack either class; always fail closed until authentication is confirmed.
   This hides the ENTIRE app area, not just its nav buttons. */
body:not(.authenticated) .protected-content,
body:not(.authenticated) main.container.protected-content,
body:not(.authenticated) header.topbar.protected-content,
body:not(.authenticated) footer.footer.protected-content {
  display:none!important;
  visibility:hidden!important;
}

/* M7.19.6.6 global button normalization has higher specificity than .btn-primary.
   Restore the original red SIGN-IN action, including the hover state. */
body #auth-gate #login-form #login-submit:not(:disabled) {
  display:block!important;
  width:100%!important;
  min-height:48px!important;
  background:#d5372f!important;
  background-color:#d5372f!important;
  border:1px solid #d5372f!important;
  border-color:#d5372f!important;
  color:#fff!important;
  box-shadow:none!important;
}
body #auth-gate #login-form #login-submit:is(:hover,:focus-visible):not(:disabled) {
  background:#b92e28!important;
  background-color:#b92e28!important;
  border-color:#b92e28!important;
  color:#fff!important;
  box-shadow:none!important;
}
body #auth-gate #login-form #login-submit:active:not(:disabled) {
  background:#a92924!important;
  background-color:#a92924!important;
  border-color:#a92924!important;
  color:#fff!important;
  box-shadow:none!important;
}

/* Legal navigation is a row of text links, never raised button cards.
   Two inert ID guards make these rules stronger than generic M7.19.6.6 :hover/:active. */
body.authenticated footer.footer .footer-legal-nav button[data-legal-page]:not(#y610-guard-a):not(#y610-guard-b),
body.authenticated footer.footer .footer-legal-nav button[data-legal-page]:is(:hover,:focus-visible,:active):not(#y610-guard-a):not(#y610-guard-b) {
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  border-color:transparent!important;
  box-shadow:none!important;
  text-shadow:none!important;
  border-radius:0!important;
}

/* Uniform visual weight for main navigation regardless of responsive layout,
   selected state or whether the navigation is collapsed. Keep responsive sizes. */
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab,
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:is(:hover,:focus-visible,:active,.active,[aria-selected="true"]),
body.authenticated main.container.protected-content>#mobile-main-menu-toggle.mobile-main-menu-toggle,
body.authenticated main.container.protected-content>#mobile-main-menu-toggle.mobile-main-menu-toggle>span:first-child,
body.authenticated main.container.protected-content>#mobile-main-menu-toggle.mobile-main-menu-toggle>strong {
  font-family:var(--y64-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif)!important;
  font-weight:500!important;
  font-synthesis:none!important;
}

/* Actual module subnavigation selectors used by the existing UI. Apply only
   typography: not width, flex rules, display, colors or button interactions. */
body.authenticated main.container.protected-content :is(
  .module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,
  .article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav,
  .budget-subnav,[data-budget-subnav],.m717-client-tabs
) :is(button,[role="tab"]),
body.authenticated main.container.protected-content :is(
  .module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,
  .article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav,
  .budget-subnav,[data-budget-subnav],.m717-client-tabs
) :is(button,[role="tab"]):is(:hover,:focus-visible,:active,.active,[aria-selected="true"]),
body.authenticated main.container.protected-content :is(
  [data-settings-tab],[data-budget-subtab],[data-article-subtab],[data-purchase-subtab],
  .m717-client-tab
) {
  font-family:var(--y64-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif)!important;
  font-weight:500!important;
  font-synthesis:none!important;
}
/* Text nested in an active tab may be <strong> in modules or mobile menu. */
body.authenticated main.container.protected-content :is(
  .module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,
  .article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav,
  .budget-subnav,[data-budget-subnav],.m717-client-tabs
) :is(button,[role="tab"]) :is(strong,b),
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab :is(strong,b) {
  font-weight:500!important;
}


/* ===== assets/m719611-visual-system.css ===== */
/* YANMAR M7.19.6.10 — CANDIDATO VISUAL ACUMULATIVO (FASE 8).
   ÚNICAMENTE PREPRODUCCIÓN: NO INSTALAR SOBRE LA WEB EN SERVICIO.
   CSS auditado por fases: selector de activación mediante clases audit-phase* en body.
   No reordenar reglas: su precedencia reproduce las previsualizaciones aprobadas.
   El marcado original y los scripts funcionales no se modifican en este candidato. */

/* ========= Fase 1 · Mantenimiento ========= */
/* PROPUESTA VISUAL DE LABORATORIO SOBRE HTML REAL M7.19.6.10.
 * NO es un parche de produccion. Mantiene IDs, etiquetas, eventos y roles.
 * Alcance: cuatro botones de administracion de tablas de mantenimiento. */
body.audit-phase1.authenticated{
  --audit-brand:#d5372f;
  --audit-brand-hover:#b92e28;
  --audit-text:#243140;
  --audit-line:#d7e0ea;
  --audit-surface:#fff;
  --audit-focus:#aa2c27;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-groups{
  width:100%!important;min-width:0!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;align-items:stretch!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group{
  display:grid!important;grid-template-rows:auto 1fr!important;
  min-width:0!important;gap:12px!important;
  padding:14px!important;border:1px solid var(--audit-line)!important;
  border-radius:12px!important;background:var(--audit-surface)!important;
  box-shadow:none!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group>strong{
  font-family:var(--y64-font,system-ui,sans-serif)!important;
  text-align:center!important;font-size:13px!important;
  font-weight:600!important;line-height:1.3!important;color:var(--audit-text)!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;gap:10px!important;width:100%!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-primary:not(#audit-preview-guard),
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-secondary:not(#audit-preview-guard){
  box-sizing:border-box!important;margin:0!important;width:100%!important;min-width:0!important;
  height:100%!important;min-height:52px!important;padding:10px 12px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;white-space:normal!important;overflow-wrap:break-word!important;
  line-height:1.3!important;font-size:13px!important;font-weight:600!important;
  border-radius:10px!important;box-shadow:none!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-secondary:not(#audit-preview-guard){
  color:var(--audit-text)!important;background:#fff!important;border:1px solid #cbd6e4!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-primary:not(#audit-preview-guard){
  color:#fff!important;background:var(--audit-brand)!important;border:1px solid var(--audit-brand)!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-secondary:not(#audit-preview-guard):hover{
  background:#f2f5f9!important;border-color:#9cacc0!important;box-shadow:none!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-primary:not(#audit-preview-guard):hover{
  background:var(--audit-brand-hover)!important;border-color:var(--audit-brand-hover)!important;box-shadow:none!important;
}
body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button:focus-visible{
  outline:2px solid var(--audit-focus)!important;outline-offset:3px!important;
}
@media (max-width:760px){
  body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-groups{grid-template-columns:1fr!important;}
}
@media (max-width:520px){
  body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions{grid-template-columns:1fr!important;}
  body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-primary:not(#audit-preview-guard),
  body.audit-phase1.authenticated #maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-secondary:not(#audit-preview-guard){min-height:46px!important;}
}



/* ========= Fase 2.2 · Retícula, tipografía y cierre ========= */
/* AUDITORIA FASE 2 M7.19.6.10. SOLO PREVISUALIZACION, NUNCA EN PRODUCCION.
   No toca auth, display de roles, eventos, API ni almacenamiento.
   Los selectores son intencionalmente locales para validar un sistema visual. */
body.audit-phase2.authenticated{
  --audit-ink:#203042;
  --audit-muted:#526275;
  --audit-line:#d7e1ed;
  --audit-brand:#d5372f;
  --audit-brand-hover:#b92e28;
  --audit-surface:#fff;
  --audit-canvas:#f7f9fc;
  --audit-unit:8px;
  --audit-radius:12px;
  color:var(--audit-ink);
}
/* Misma caja de contenido para todas las vistas, conservando el responsive base. */
body.audit-phase2.authenticated main.container.protected-content{
  width:min(calc(100% - 32px),1320px)!important;
  max-width:1320px!important;
  margin-inline:auto!important;
  padding-inline:0!important;
  min-width:0!important;
}
body.audit-phase2.authenticated main.container.protected-content>.tab-view:not(.hidden){
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;min-height:clamp(460px,62vh,720px)!important;
  margin-inline:auto!important;
}
/* Unificar jerarquia encabezados sin alterar contenidos ni la disposicion de cada modulo. */
body.audit-phase2.authenticated main.container.protected-content :is(
 .admin-page-heading,.orders-page-header,.pvp-hero,.hero,.r26-heading
){
  gap:16px!important;margin-bottom:24px!important;
}
body.audit-phase2.authenticated main.container.protected-content :is(
 .admin-page-heading,.orders-page-header,.pvp-hero,.hero,.r26-heading
) h1{
 font-family:var(--y64-font,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif)!important;
 font-size:clamp(23px,2.6vw,30px)!important;line-height:1.16!important;
 font-weight:700!important;letter-spacing:-.025em!important;color:var(--audit-ink)!important;
 margin:5px 0 8px!important;text-wrap:balance;
}
body.audit-phase2.authenticated main.container.protected-content :is(
 .admin-page-heading,.orders-page-header,.pvp-hero,.hero,.r26-heading
) p{
 font-size:14px!important;line-height:1.55!important;color:var(--audit-muted)!important;
 max-width:78ch!important;margin:0!important;
}
/* Controles principales de los encabezados: misma altura, no alterar IDs ni handler. */
body.audit-phase2.authenticated main.container.protected-content :is(
 .admin-page-heading,.orders-page-header
)>button:is(.btn-primary,.btn-secondary){
 min-height:44px!important;min-width:124px!important;max-width:100%!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 white-space:normal!important;text-align:center!important;line-height:1.25!important;
 font-size:13px!important;font-weight:600!important;
 padding:10px 16px!important;border-radius:10px!important;
 box-shadow:none!important;
}

/* Colores semanticos en acciones de encabezado: no heredar una tarjeta blanca para el primario. */
body.audit-phase2.authenticated main.container.protected-content :is(.admin-page-heading,.orders-page-header)>button.btn-primary:not(:disabled){
 background:var(--audit-brand)!important;border:1px solid var(--audit-brand)!important;color:#fff!important;
}
body.audit-phase2.authenticated main.container.protected-content :is(.admin-page-heading,.orders-page-header)>button.btn-primary:not(:disabled):hover{
 background:var(--audit-brand-hover)!important;border-color:var(--audit-brand-hover)!important;color:#fff!important;
}
body.audit-phase2.authenticated main.container.protected-content :is(.admin-page-heading,.orders-page-header)>button.btn-secondary{
 background:#fff!important;border:1px solid #cbd7e7!important;color:var(--audit-ink)!important;
}

/* Submenus existentes: tipografia igual en los dos roles y en todos los estados. */
body.audit-phase2.authenticated main.container.protected-content .module-subnav button,
body.audit-phase2.authenticated main.container.protected-content .module-subnav button:is(.active,:hover,:focus-visible){
 min-height:40px!important;padding:9px 13px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 font-size:12px!important;line-height:1.25!important;font-weight:500!important;
 text-align:center!important;white-space:normal!important;
 border-radius:9px!important;box-shadow:none!important;
}
body.audit-phase2.authenticated main.container.protected-content .module-subnav{
 border-color:var(--audit-line)!important;box-shadow:none!important;
 padding:6px!important;gap:6px!important;
}
/* Distintas familias de CERRAR, un solo idioma de diseño. SOLO cierre con icono. */
body.audit-phase2.authenticated :is(
 #admin-article-close,#cart-close,#account-close,
 #m719-modal-close,[data-legal-close],.modal-close-unified,
 .series-pin-close,[data-r26-close]
){
 box-sizing:border-box!important;width:40px!important;height:40px!important;
 min-width:40px!important;min-height:40px!important;flex:0 0 40px!important;
 display:inline-grid!important;place-items:center!important;
 padding:0!important;border:1px solid transparent!important;border-radius:10px!important;
 background:transparent!important;color:var(--audit-ink)!important;
 box-shadow:none!important;font:500 25px/1 var(--y64-font,Arial,sans-serif)!important;
 text-align:center!important;cursor:pointer!important;
}
body.audit-phase2.authenticated :is(
 #admin-article-close,#cart-close,#account-close,
 #m719-modal-close,[data-legal-close],.modal-close-unified,
 .series-pin-close,[data-r26-close]
):hover{
 background:#edf1f6!important;color:var(--audit-ink)!important;box-shadow:none!important;
}
body.audit-phase2.authenticated :is(
 #admin-article-close,#cart-close,#account-close,
 #m719-modal-close,[data-legal-close],.modal-close-unified,
 .series-pin-close,[data-r26-close]
):focus-visible{
 outline:2px solid var(--audit-brand)!important;outline-offset:2px!important;
}
body.audit-phase2.authenticated #m719-modal-close{font-size:0!important}
body.audit-phase2.authenticated #m719-modal-close::before{content:'×';font-size:25px;line-height:1;}
/* Responsive: no cambiar reglas de visibilidad ni menu; solo la caja de contenido. */
@media(max-width:719px){
 body.audit-phase2.authenticated main.container.protected-content{
   width:calc(100% - 18px)!important;
 }
 body.audit-phase2.authenticated main.container.protected-content>.tab-view:not(.hidden){
   min-height:clamp(420px,58vh,680px)!important;
 }
 body.audit-phase2.authenticated main.container.protected-content :is(
 .admin-page-heading,.orders-page-header,.pvp-hero,.hero,.r26-heading
 ){margin-bottom:16px!important}
 body.audit-phase2.authenticated main.container.protected-content :is(
 .admin-page-heading,.orders-page-header
 )>button:is(.btn-primary,.btn-secondary){width:auto!important;min-width:116px!important}
}
/* AJUSTE FASE 2.2 — NO INSTALAR.
   Alineación geométrica y óptica del icono en estado cerrado y abierto.
   Mantiene el breakpoint del menú (hasta 719px) y el comportamiento ARIA. */
@media(max-width:719px){
  body.audit-phase2.authenticated main.container.protected-content #mobile-main-menu-toggle .mobile-main-menu-chevron{
    position:relative!important;top:0!important;margin:0!important;padding:0!important;
    display:grid!important;place-items:center!important;align-self:center!important;justify-self:center!important;
    width:28px!important;height:28px!important;line-height:0!important;
    transform:none!important;
  }
  body.audit-phase2.authenticated main.container.protected-content #mobile-main-menu-toggle .mobile-main-menu-chevron::before{
    box-sizing:border-box!important;display:block!important;position:static!important;
    width:8px!important;height:8px!important;margin:0!important;
    transform:translateY(2px) rotate(45deg)!important;
    transform-origin:50% 50%!important;
  }
  body.audit-phase2.authenticated main.container.protected-content #mobile-main-menu-toggle[aria-expanded="true"] .mobile-main-menu-chevron::before{
    margin:0!important;transform:translateY(7px) rotate(225deg)!important;
  }
}
/* Caja de cierre más delicada. Mismos IDs, mismo texto, mismos handlers y foco. */
body.audit-phase2.authenticated :is(
 #admin-article-close,#cart-close,#account-close,#m719-modal-close,[data-legal-close],
 .modal-close-unified,.series-pin-close,[data-r26-close]
){
 width:36px!important;height:36px!important;
 min-width:36px!important;min-height:36px!important;flex:0 0 36px!important;
 border-radius:9px!important;font-size:23px!important;line-height:1!important;
}
body.audit-phase2.authenticated #m719-modal-close{font-size:0!important}
body.audit-phase2.authenticated #m719-modal-close::before{font-size:23px!important;line-height:1!important}



/* ========= Fase 3 · Formularios y módulos ========= */
/* YANMAR WEB — Auditoría visual Fase 3. EXCLUSIVAMENTE PREVISUALIZACIÓN.
   Se añade a Fase 2.2 (no la sustituye). Solo presentación: NO modifica
   visibilidad de roles, rutas, datos, IDs, listeners, estados o back-end. */
body.audit-phase3.authenticated{
 --a3-space-1:8px;--a3-space-2:16px;--a3-space-3:24px;
 --a3-line:#d7e1ed;--a3-ink:#203042;--a3-sub:#526275;
 --a3-red:#d5372f;--a3-canvas:#f7f9fc;
}
/* Paneles de filtros de Pedidos y Mis pedidos: mismo ritmo, distinto contenido. */
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-panel{
 border:1px solid var(--a3-line)!important;border-radius:14px!important;
 background:#fff!important;box-shadow:none!important;
 padding:clamp(14px,1.6vw,22px)!important;
}
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-panel-head{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:14px!important;margin-bottom:18px!important;
}
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-panel-head h3{
 margin:4px 0 0!important;line-height:1.3!important;letter-spacing:-.012em!important;
 font-weight:650!important;color:var(--a3-ink)!important;
}
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid{
 gap:12px!important;align-items:end!important;
}
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid>label{
 min-width:0!important;gap:6px!important;
}
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid>label>span{
 font-size:12px!important;font-weight:600!important;line-height:1.25!important;
 color:var(--a3-ink)!important;
}
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) :is(.orders-filter-grid,.orders-filter-footer) :is(input:not([type=checkbox]),select){
 box-sizing:border-box!important;width:100%!important;min-width:0!important;
 min-height:42px!important;padding:9px 12px!important;
 border:1px solid #cbd7e7!important;border-radius:9px!important;
 background-color:#fff!important;color:var(--a3-ink)!important;
 font-size:13px!important;line-height:1.3!important;box-shadow:none!important;
}
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-footer{
 gap:12px!important;margin-top:16px!important;padding-top:13px!important;
 border-top:1px solid #e6ebf2!important;
}
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-panel-head .orders-clear-filters{
 min-height:40px!important;min-width:118px!important;padding:9px 13px!important;
 align-items:center!important;justify-content:center!important;text-align:center!important;
 border:1px solid #cbd7e7!important;border-radius:9px!important;
 color:var(--a3-ink)!important;background:#fff!important;box-shadow:none!important;
}
/* Presupuesto: espaciado y controles solo dentro del editor existente. */
body.audit-phase3.authenticated #admin-budgets-view .budget-builder-card{
 box-sizing:border-box!important;min-width:0!important;
 padding:clamp(16px,1.8vw,24px)!important;
 margin-bottom:16px!important;border:1px solid var(--a3-line)!important;
 border-radius:14px!important;background:#fff!important;box-shadow:none!important;
}
body.audit-phase3.authenticated #admin-budgets-view .budget-section-head{
 align-items:center!important;gap:12px!important;margin-bottom:18px!important;
 padding-bottom:13px!important;border-bottom:1px solid #e7edf4!important;
}
body.audit-phase3.authenticated #admin-budgets-view .budget-section-head h2{
 margin:4px 0 0!important;line-height:1.26!important;color:var(--a3-ink)!important;
}
body.audit-phase3.authenticated #admin-budgets-view .budget-builder-card :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
 box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
 min-height:42px!important;border:1px solid #cbd7e7!important;border-radius:9px!important;
 background-color:#fff!important;color:var(--a3-ink)!important;
 font-size:13px!important;line-height:1.35!important;box-shadow:none!important;
}
body.audit-phase3.authenticated #admin-budgets-view .budget-builder-card :is(input,select,textarea):focus-visible,
body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid :is(input,select):focus-visible{
 outline:2px solid var(--a3-red)!important;outline-offset:2px!important;
}
/* Compras: cabeceras y acciones reales del DOM. */
body.audit-phase3.authenticated #admin-purchases-view .purchase-section{
 min-width:0!important;padding:clamp(16px,1.8vw,24px)!important;
 border-radius:14px!important;border:1px solid var(--a3-line)!important;
 background:#fff!important;box-shadow:none!important;
}
body.audit-phase3.authenticated #admin-purchases-view .purchase-section>header{
 display:flex!important;gap:14px!important;align-items:center!important;
 justify-content:space-between!important;margin-bottom:18px!important;
}
body.audit-phase3.authenticated #admin-purchases-view .purchase-section>header h2{
 font-weight:700!important;color:var(--a3-ink)!important;line-height:1.28!important;
 margin:4px 0 5px!important;
}
body.audit-phase3.authenticated #admin-purchases-view .purchase-section>header p{
 color:var(--a3-sub)!important;line-height:1.5!important;margin:0!important;
}
/* Flota, Taller y CRM comparten barra de título, pero no se tocan los paneles ocultos. */
body.audit-phase3.authenticated #admin-service-view .r26-toolbar{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:16px!important;margin-bottom:18px!important;
}
body.audit-phase3.authenticated #admin-service-view .r26-toolbar h2{
 color:var(--a3-ink)!important;font-weight:700!important;line-height:1.25!important;
 margin:0 0 5px!important;
}
body.audit-phase3.authenticated #admin-service-view .r26-toolbar p{
 line-height:1.5!important;color:var(--a3-sub)!important;margin:0!important;
}
body.audit-phase3.authenticated #admin-service-view :is(.r26-toolbar,.r26-filter-row) > :is(button,.r26-inline-actions) :is(.btn-primary,.btn-secondary),
body.audit-phase3.authenticated #admin-service-view .r26-toolbar button:is(.btn-primary,.btn-secondary){
 min-height:42px!important;white-space:normal!important;line-height:1.25!important;
 padding:9px 15px!important;border-radius:9px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 text-align:center!important;box-shadow:none!important;
}
body.audit-phase3.authenticated #admin-service-view .r26-filter-row{
 align-items:end!important;gap:12px!important;
}
body.audit-phase3.authenticated #admin-service-view .r26-filter-row :is(input,select){
 box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
 min-height:42px!important;border-radius:9px!important;
 border:1px solid #cbd7e7!important;background-color:#fff!important;
 box-shadow:none!important;
}
/* Estado vacío de presupuestos cliente: no inyectar registros ni alterar cargas. */
body.audit-phase3.authenticated #my-quotes-view .budget-history-list>.admin-empty{
 border:1px dashed #cbd7e7!important;background:var(--a3-canvas)!important;
 border-radius:12px!important;padding:24px!important;text-align:center!important;
 line-height:1.55!important;color:var(--a3-sub)!important;
}
@media(max-width:719px){
 body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-panel-head{
  flex-wrap:wrap!important;align-items:flex-start!important;
 }
 body.audit-phase3.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-panel-head>.orders-clear-filters{
  width:100%!important;
 }
 body.audit-phase3.authenticated #admin-purchases-view .purchase-section>header,
 body.audit-phase3.authenticated #admin-service-view .r26-toolbar{
  flex-wrap:wrap!important;align-items:flex-start!important;
 }
 body.audit-phase3.authenticated #admin-service-view .r26-toolbar>div:last-child:has(button){
  display:flex!important;gap:8px!important;flex-wrap:wrap!important;
 }
}
/* Refinamiento observado sobre la captura de Flota y CRM (DOM real extraído). */
body.audit-phase3.authenticated #admin-service-view .r26-toolbar button.btn-primary{
 background:var(--a3-red)!important;border:1px solid var(--a3-red)!important;
 color:#fff!important;box-shadow:none!important;
}
body.audit-phase3.authenticated #admin-service-view .r26-toolbar button.btn-secondary{
 background:#fff!important;border:1px solid #cbd7e7!important;
 color:var(--a3-ink)!important;box-shadow:none!important;
}
body.audit-phase3.authenticated #admin-service-view .r26-filter-row .m719-fleet-search-group{
 box-sizing:border-box!important;min-width:0!important;width:100%!important;
 max-width:100%!important;flex:1 1 240px!important;
}
body.audit-phase3.authenticated #admin-service-view .r26-filter-row .m719-fleet-search-group input{
 box-sizing:border-box!important;width:100%!important;max-width:100%!important;
 min-width:0!important;
}



/* ========= Fase 3.1 · Acciones, filtros y CRM ========= */
/* YANMAR AUDITORÍA VISUAL FASE 3.1 — SOLO PREVISUALIZACIÓN, NO INSTALAR.
   Reglas aisladas al documento de auditoría. No cambian contenido, IDs, rutas, eventos ni roles. */
body.audit-phase31.authenticated{--a31-red:#d13b34;--a31-red-hover:#ba302b;--a31-line:#cdd8e5;--a31-ink:#243347;--a31-wash:#f1f4f8;}
/* Flota + CRM: misma cápsula visual que la barra de navegación; ambos en neutro, rojo solo al pulsar. */
body.audit-phase31.authenticated #admin-service-view#admin-service-view :is([data-r26-panel="fleet"],[data-r26-panel="crm"]) .r26-toolbar>div:last-child{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;}
body.audit-phase31.authenticated #admin-service-view#admin-service-view :is([data-r26-panel="fleet"],[data-r26-panel="crm"]) .r26-toolbar button:is(.btn-primary,.btn-secondary){
 appearance:none!important; box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:40px!important;min-width:122px!important;width:auto!important;max-width:100%!important;padding:9px 14px!important;
 border:1px solid var(--a31-line)!important;border-radius:9px!important;background:#fff!important;
 color:var(--a31-ink)!important;box-shadow:none!important;text-align:center!important;vertical-align:middle!important;
 font:500 12px/1.25 var(--y64-font,system-ui,sans-serif)!important;white-space:normal!important;
 transition:background-color .16s ease,border-color .16s ease,color .16s ease!important;
}
body.audit-phase31.authenticated #admin-service-view#admin-service-view :is([data-r26-panel="fleet"],[data-r26-panel="crm"]) .r26-toolbar button:is(.btn-primary,.btn-secondary):hover:not(:disabled){background:var(--a31-wash)!important;background-color:var(--a31-wash)!important;border-color:#aebdd0!important;color:var(--a31-ink)!important;}
body.audit-phase31.authenticated #admin-service-view#admin-service-view :is([data-r26-panel="fleet"],[data-r26-panel="crm"]) .r26-toolbar button:is(.btn-primary,.btn-secondary):active:not(:disabled){background:var(--a31-red)!important;background-color:var(--a31-red)!important;border-color:var(--a31-red)!important;color:#fff!important;}
body.audit-phase31.authenticated #admin-service-view#admin-service-view :is([data-r26-panel="fleet"],[data-r26-panel="crm"]) .r26-toolbar button:is(.btn-primary,.btn-secondary):focus-visible{outline:2px solid var(--a31-red)!important;outline-offset:3px!important;}
/* Pedidos proveedor: llamada principal visible, incluidos breakpoints pequeños. */
body.audit-phase31.authenticated #admin-purchases-view#admin-purchases-view #purchase-panel-orders>header button[data-open-purchase-create]{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:42px!important;min-width:196px!important;width:auto!important;max-width:100%!important;padding:10px 16px!important;
 background:var(--a31-red)!important;border:1px solid var(--a31-red)!important;border-radius:9px!important;
 color:#fff!important;box-shadow:none!important;text-align:center!important;white-space:normal!important;
 font:600 12px/1.3 var(--y64-font,system-ui,sans-serif)!important;
}
body.audit-phase31.authenticated #admin-purchases-view#admin-purchases-view #purchase-panel-orders>header button[data-open-purchase-create]:hover:not(:disabled){background:var(--a31-red-hover)!important;border-color:var(--a31-red-hover)!important;}
body.audit-phase31.authenticated #admin-purchases-view#admin-purchases-view #purchase-panel-orders>header button[data-open-purchase-create]:focus-visible{outline:2px solid #8d2420!important;outline-offset:3px!important;}
/* Pedidos administrador y cliente: búsqueda primera fila completa, resto de filtros al mismo nivel. */
body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:16px 12px!important;align-content:start!important;align-items:start!important;
}
body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid>label{
 box-sizing:border-box!important;min-width:0!important;width:100%!important;margin:0!important;
 display:grid!important;grid-template-rows:16px 42px!important;row-gap:6px!important;align-content:start!important;align-items:stretch!important;
}
body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid>label.orders-filter-search{
 grid-column:1/-1!important;grid-template-rows:16px 42px auto!important;
 margin:0 0 7px!important;
}
body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid>label>span{
 display:flex!important;align-items:center!important;height:16px!important;min-height:16px!important;
 line-height:16px!important;margin:0!important;align-self:center!important;
}
body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid>label> :is(input,select){
 box-sizing:border-box!important;height:42px!important;min-height:42px!important;max-height:42px!important;
 width:100%!important;min-width:0!important;margin:0!important;align-self:start!important;
}
body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid>label.orders-filter-search> :is(input,select){max-width:min(100%,660px)!important;}
body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid>label.orders-filter-search>small{
 display:block!important;grid-row:3!important;min-height:16px!important;line-height:1.3!important;margin:0!important;color:#627184!important;
}
@media(max-width:980px){body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:560px){
 body.audit-phase31.authenticated :is(#admin-orders-view,#my-orders-view) .orders-filter-grid{grid-template-columns:minmax(0,1fr)!important;gap:13px!important;}
 body.audit-phase31.authenticated #admin-purchases-view#admin-purchases-view #purchase-panel-orders>header button[data-open-purchase-create]{width:100%!important;}
 body.audit-phase31.authenticated #admin-service-view#admin-service-view :is([data-r26-panel="fleet"],[data-r26-panel="crm"]) .r26-toolbar>div:last-child{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 body.audit-phase31.authenticated #admin-service-view#admin-service-view :is([data-r26-panel="fleet"],[data-r26-panel="crm"]) .r26-toolbar button:is(.btn-primary,.btn-secondary){min-width:0!important;width:100%!important;}
}
@media(prefers-reduced-motion:reduce){body.audit-phase31.authenticated #admin-service-view#admin-service-view .r26-toolbar button{transition:none!important;}}



/* ========= Fase 4 · Ventanas y formularios ========= */
/* YANMAR FASE 4 · VENTANAS Y FORMULARIOS. SOLO PREVISUALIZACIÓN; NO INSTALAR.
   Sin cambios de event listeners, control de roles, APIs, IDs, nombres ni modelos de datos. */
body.audit-phase4.authenticated{--a4-ink:#263549;--a4-muted:#586b7e;--a4-border:#cfdae6;--a4-red:#d13b34;--a4-wash:#f5f7fa;}
/* Capa, tarjeta y espaciado: los cierres de overlays siguen perteneciendo a cada familia. */
body.audit-phase4.authenticated #admin-article-editor .article-editor-dialog,
body.audit-phase4.authenticated #account-overlay .account-panel,
body.audit-phase4.authenticated #cart-overlay .cart-panel,
body.audit-phase4.authenticated #legal-overlay .legal-dialog,
body.audit-phase4.authenticated #m719-modal .m719-dialog,
body.audit-phase4.authenticated #r26-modal .r26-modal-dialog{
 box-sizing:border-box!important;background:#fff!important;color:var(--a4-ink)!important;
 border:1px solid #dce5ee!important;border-radius:16px!important;
 box-shadow:0 25px 70px rgba(20,36,51,.15)!important;
}
/* Encabezados de ventanas: compás constante entre nombre, acciones y X. */
body.audit-phase4.authenticated #admin-article-editor .article-admin-editor-head,
body.audit-phase4.authenticated #cart-overlay .cart-panel-header,
body.audit-phase4.authenticated #account-overlay .account-panel>header,
body.audit-phase4.authenticated #legal-overlay .legal-dialog>header,
body.audit-phase4.authenticated #r26-modal .r26-modal-dialog>header,
body.audit-phase4.authenticated #m719-modal .m719-line{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:12px!important;padding:16px 20px!important;min-height:70px!important;
 border-bottom:1px solid #e6ebf1!important;background:#fff!important;
}
body.audit-phase4.authenticated :is(#admin-article-editor,#cart-overlay,#account-overlay,#legal-overlay,#r26-modal,#m719-modal)
 :is(.article-admin-editor-head,.cart-panel-header,.account-panel>header,.legal-dialog>header,.r26-modal-dialog>header,.m719-line) h2,
body.audit-phase4.authenticated #m719-modal .m719-line h3{
 font:700 clamp(18px,2vw,23px)/1.2 var(--y64-font,system-ui,sans-serif)!important;
 color:var(--a4-ink)!important;letter-spacing:-.02em!important;margin:0!important;
}
/* X consistente, 36 × 36, sin afectar botones textuales de Cancelar/Cerrar. */
body.audit-phase4.authenticated :is(
 #admin-article-close,#cart-close,#account-close,#m719-modal-close,
 [data-legal-close],.modal-close-unified,.series-pin-close,
 #r26-modal header [data-r26-close],.purchase-modal header [data-close]
){
 box-sizing:border-box!important;display:grid!important;place-items:center!important;
 width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
 flex:0 0 36px!important;padding:0!important;margin:0!important;
 border:1px solid var(--a4-border)!important;border-radius:9px!important;
 background:#fff!important;color:var(--a4-ink)!important;box-shadow:none!important;
 font:500 22px/1 var(--y64-font,system-ui,sans-serif)!important;text-align:center!important;
}
body.audit-phase4.authenticated #m719-modal-close{font-size:0!important}
body.audit-phase4.authenticated #m719-modal-close::before{font-size:22px!important}
body.audit-phase4.authenticated :is(#admin-article-close,#cart-close,#account-close,#m719-modal-close,[data-legal-close],.modal-close-unified,.series-pin-close,#r26-modal header [data-r26-close],.purchase-modal header [data-close]):hover{
 background:#f0f3f8!important;border-color:#aebed0!important;color:var(--a4-ink)!important;
}
body.audit-phase4.authenticated :is(#admin-article-close,#cart-close,#account-close,#m719-modal-close,[data-legal-close],.modal-close-unified,.series-pin-close,#r26-modal header [data-r26-close],.purchase-modal header [data-close]):focus-visible{
 outline:2px solid var(--a4-red)!important;outline-offset:2px!important;
}
/* Geometría de campos: etiqueta y control alineados dentro de su propia familia. */
body.audit-phase4.authenticated :is(#admin-article-editor,#account-overlay,#cart-overlay,#r26-modal,#m719-modal) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
 box-sizing:border-box!important;max-width:100%!important;min-width:0!important;border-color:#cbd7e5!important;
 border-radius:9px!important;box-shadow:none!important;color:var(--a4-ink)!important;
}
body.audit-phase4.authenticated :is(#admin-article-editor,#account-overlay,#cart-overlay,#r26-modal,#m719-modal) :is(input:not([type="checkbox"]):not([type="radio"]),select){
 min-height:42px!important;line-height:1.3!important;
}
body.audit-phase4.authenticated :is(#admin-article-editor,#account-overlay,#cart-overlay,#r26-modal,#m719-modal) :is(input,select,textarea):focus-visible{
 border-color:var(--a4-red)!important;outline:2px solid #d13b3440!important;outline-offset:0!important;
}
/* Guardar artículo es la acción principal de la ficha, no una acción neutra. */
body.audit-phase4.authenticated #admin-article-editor #admin-article-save{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:42px!important;padding:10px 16px!important;background:var(--a4-red)!important;
 color:#fff!important;border:1px solid var(--a4-red)!important;border-radius:9px!important;
 box-shadow:none!important;text-align:center!important;font-weight:600!important;
}
body.audit-phase4.authenticated #admin-article-editor #admin-article-save:hover:not(:disabled){background:#b82e29!important;border-color:#b82e29!important}
body.audit-phase4.authenticated #r26-modal .r26-form-grid{gap:16px 14px!important}
body.audit-phase4.authenticated #r26-modal .r26-form-grid label{min-width:0!important;gap:7px!important;align-content:start!important}
body.audit-phase4.authenticated #r26-modal .r26-form-grid label>span{
 font:600 12px/1.4 var(--y64-font,system-ui,sans-serif)!important;color:#43556a!important;
}
body.audit-phase4.authenticated #r26-modal .r26-modal-body{padding:20px!important;min-height:0!important}
body.audit-phase4.authenticated #r26-modal .r26-modal-dialog>footer{
 gap:10px!important;min-height:68px!important;padding:12px 20px!important;background:#fff!important;
}
body.audit-phase4.authenticated #r26-modal .r26-modal-dialog>footer button:is(.btn-primary,.btn-secondary),
body.audit-phase4.authenticated #m719-modal .m719-actions button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;min-height:42px!important;min-width:112px!important;
 padding:9px 16px!important;border-radius:9px!important;font:600 12px/1.3 var(--y64-font,system-ui,sans-serif)!important;
 box-shadow:none!important;text-align:center!important;
}
body.audit-phase4.authenticated #r26-modal footer [data-r26-save],
body.audit-phase4.authenticated #m719-modal .m719-actions .main{background:var(--a4-red)!important;color:#fff!important;border:1px solid var(--a4-red)!important}
body.audit-phase4.authenticated #r26-modal footer [data-r26-close],
body.audit-phase4.authenticated #m719-modal .m719-actions button:not(.main){background:#fff!important;color:var(--a4-ink)!important;border:1px solid var(--a4-border)!important}
body.audit-phase4.authenticated #admin-article-editor .article-admin-editor-head .article-editor-actions{
 display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;
}
/* Roles: el cambio se limita a estética de sus propias ventanas, no su visibilidad. */
@media(max-width:719px){
 body.audit-phase4.authenticated #r26-modal .r26-modal-dialog,
 body.audit-phase4.authenticated #admin-article-editor .article-editor-dialog,
 body.audit-phase4.authenticated #account-overlay .account-panel,
 body.audit-phase4.authenticated #cart-overlay .cart-panel{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  border-radius:12px 12px 0 0!important;
 }
 body.audit-phase4.authenticated #r26-modal .r26-modal-dialog{height:100dvh!important;max-height:100dvh!important}
 body.audit-phase4.authenticated #r26-modal .r26-modal-body{padding:14px!important}
 body.audit-phase4.authenticated :is(#admin-article-editor,#account-overlay,#cart-overlay,#r26-modal) :is(.article-admin-editor-head,.cart-panel-header,.account-panel>header,.r26-modal-dialog>header){padding:12px 14px!important}
 body.audit-phase4.authenticated #admin-article-editor .article-admin-editor-head{align-items:flex-start!important;flex-wrap:wrap!important}
 body.audit-phase4.authenticated #admin-article-editor .article-admin-editor-head .article-editor-actions{width:100%!important;justify-content:space-between!important}
 body.audit-phase4.authenticated #admin-article-editor .article-admin-editor-head .article-editor-actions #admin-article-save{flex:1!important}
 body.audit-phase4.authenticated #r26-modal .r26-modal-dialog>footer{padding:10px 14px!important}
}
@media(prefers-reduced-motion:reduce){body.audit-phase4.authenticated :is(#r26-modal,#m719-modal) button{transition:none!important}}



/* ========= Fase 4.1 · Tarjetas de plazo y X única ========= */
/* YANMAR FASE 4.1 - SOLO PREVIEW, anadir DESPUES de fase 4. No instalar individualmente.
   Scope restricted to account discount cards and M7.19 close icon. All IDs, actions, visibility untouched. */
body.audit-phase41.authenticated #account-overlay .account-commercial-grid-v11{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 align-items:stretch!important;gap:12px!important;
}
body.audit-phase41.authenticated #account-overlay .account-commercial-grid-v11>.account-discount-card{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(52px,auto)!important;
 grid-template-areas:'label percent' 'time percent'!important;
 grid-template-rows:auto auto!important;align-content:center!important;align-items:center!important;
 column-gap:12px!important;row-gap:10px!important;min-width:0!important;min-height:105px!important;
 padding:16px 15px!important;justify-content:initial!important;
}
body.audit-phase41.authenticated #account-overlay .account-discount-card>span{
 grid-area:label!important;display:block!important;min-width:0!important;
 font:500 12px/1.36 var(--y64-font,system-ui,sans-serif)!important;
 color:#445569!important;overflow-wrap:normal!important;
}
body.audit-phase41.authenticated #account-overlay .account-discount-card>strong{
 grid-area:percent!important;justify-self:end!important;align-self:center!important;
 font:700 23px/1.05 var(--y64-font,system-ui,sans-serif)!important;
 letter-spacing:-.025em!important;white-space:nowrap!important;margin:0!important;
}
body.audit-phase41.authenticated #account-overlay .account-discount-card>small{
 grid-area:time!important;display:flex!important;flex-direction:column!important;
 gap:3px!important;align-self:start!important;min-width:0!important;
 color:#58697c!important;font:500 10.5px/1.25 var(--y64-font,system-ui,sans-serif)!important;
}
body.audit-phase41.authenticated #account-overlay .account-discount-card .account-plazo-label{
 display:block!important;font:600 10px/1.2 var(--y64-font,system-ui,sans-serif)!important;
 color:#657588!important;white-space:nowrap!important;
}
body.audit-phase41.authenticated #account-overlay .account-discount-card .account-plazo-value{
 display:block!important;font:600 11px/1.25 var(--y64-font,system-ui,sans-serif)!important;
 color:#35475a!important;white-space:nowrap!important;
}
body.audit-phase41.authenticated #account-overlay .account-vat-card{
 grid-template-areas:'label percent' 'empty percent'!important;
 grid-template-rows:auto 0!important;
}
/* Use the ORIGINAL real ✕ as the only glyph. Previous ::before creates a second glyph. */
body.audit-phase41.authenticated #m719-modal #m719-modal-close{
 font-size:20px!important;line-height:1!important;font-weight:500!important;
 display:grid!important;place-items:center!important;
 width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
 padding:0!important;white-space:nowrap!important;
}
body.audit-phase41.authenticated #m719-modal #m719-modal-close::before,
body.audit-phase41.authenticated #m719-modal #m719-modal-close::after{
 content:none!important;display:none!important;
}
@media(max-width:700px){
 body.audit-phase41.authenticated #account-overlay .account-commercial-grid-v11{grid-template-columns:1fr!important}
 body.audit-phase41.authenticated #account-overlay .account-commercial-grid-v11>.account-discount-card{min-height:94px!important}
}



/* ========= Fase 5 · Estados visuales ========= */
/* YANMAR VISUAL AUDIT · FASE 5 · SOLO PREVISUALIZACIÓN. NO INSTALAR.
   Interaction-state styles only. IDs, data attributes, disabled/checked control state,
   visibility/role logic and JS handlers are not modified by these rules. */
body.audit-phase5.authenticated{--a5-success:#16633f;--a5-success-bg:#ecf8f1;--a5-error:#9d2926;--a5-error-bg:#fff0ef;--a5-focus:#d13b34;--a5-border:#d6e0eb}
body.audit-phase5.authenticated :is(#admin-article-editor,#account-overlay,#cart-overlay,#m719-modal,#r26-modal) :is(button,input,select,textarea):focus-visible{outline:2px solid var(--a5-focus)!important;outline-offset:2px!important}
/* Real feedback containers. The text inside is demo content in the isolated report only. */
body.audit-phase5.authenticated #admin-article-editor #admin-article-message:not(.hidden),
body.audit-phase5.authenticated #account-overlay #password-change-message:not(.hidden){
 display:block!important;box-sizing:border-box!important;min-width:0!important;
 margin:12px 20px!important;padding:12px 14px!important;border-radius:10px!important;
 border:1px solid var(--a5-border)!important;font:500 12px/1.45 system-ui,sans-serif!important;
 box-shadow:none!important;text-align:left!important;overflow-wrap:anywhere!important;
}
body.audit-phase5.authenticated #admin-article-editor #admin-article-message.error,
body.audit-phase5.authenticated #account-overlay #password-change-message.error{
 background:var(--a5-error-bg)!important;color:var(--a5-error)!important;border-color:#f0bbb8!important;
}
body.audit-phase5.authenticated #account-overlay #password-change-message.success{
 background:var(--a5-success-bg)!important;color:var(--a5-success)!important;border-color:#b9dfc9!important;
}
body.audit-phase5.authenticated #account-overlay #password-change-message:not(.hidden){margin:12px 0 0!important}
body.audit-phase5.authenticated #m719-modal #m719-modal-error:not([hidden]){
 box-sizing:border-box!important;display:block!important;margin:12px 20px!important;padding:12px 14px!important;
 background:var(--a5-error-bg)!important;color:var(--a5-error)!important;border:1px solid #f0bbb8!important;
 border-radius:10px!important;font:500 12px/1.45 system-ui,sans-serif!important;
}
body.audit-phase5.authenticated #r26-modal .r26-modal-msg:not(:empty){
 box-sizing:border-box!important;max-width:100%!important;margin:0!important;padding:8px 10px!important;
 border:1px solid #f0bbb8!important;border-radius:9px!important;background:var(--a5-error-bg)!important;
 color:var(--a5-error)!important;font:500 12px/1.4 system-ui,sans-serif!important;
}
/* A selected order type is readable in either role without depending on DOM order. */
body.audit-phase5.authenticated #cart-overlay .cart-order-type-option:has(input:checked){
 border-color:var(--a5-focus)!important;background:#fff7f6!important;
 box-shadow:inset 0 0 0 1px var(--a5-focus)!important;
}
body.audit-phase5.authenticated #cart-overlay .cart-order-type-option:has(input:checked) strong{color:#a72f2b!important}
/* Disabled means clearly inactive; do not use red 'active' appearance on a disabled control. */
body.audit-phase5.authenticated :is(#m719-modal,#r26-modal,#cart-overlay,#account-overlay,#admin-article-editor) button:disabled{
 opacity:1!important;background:#e9edf2!important;color:#687789!important;
 border-color:#d7dfe9!important;box-shadow:none!important;cursor:not-allowed!important;transform:none!important;
}
body.audit-phase5.authenticated :is(#m719-modal,#r26-modal,#cart-overlay,#account-overlay,#admin-article-editor) button:disabled:hover{
 background:#e9edf2!important;color:#687789!important;border-color:#d7dfe9!important;
}
@media(max-width:719px){
 body.audit-phase5.authenticated #admin-article-editor #admin-article-message:not(.hidden){margin:10px 14px!important}
 body.audit-phase5.authenticated #r26-modal .r26-modal-dialog>footer{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;align-items:stretch!important;min-height:0!important;
 }
 body.audit-phase5.authenticated #r26-modal .r26-modal-dialog>footer .r26-modal-msg:not(:empty){
  grid-column:1/-1!important;width:100%!important;margin:0!important;
 }
 body.audit-phase5.authenticated #r26-modal .r26-modal-dialog>footer button{
  width:100%!important;min-width:0!important;
 }
}
@media(prefers-reduced-motion:reduce){body.audit-phase5.authenticated :is(#m719-modal,#r26-modal,#cart-overlay,#account-overlay,#admin-article-editor) :is(button,input,select,textarea){transition:none!important}}


/* PROPUESTA ADICIONAL EN REVISION - subnavegación R26 en móvil.
   Scroll horizontal visible, sin modificar los eventos ni el orden de botones. */
@media(max-width:719px){
 body.audit-phase3.authenticated #admin-service-view .r26-subnav{
  box-sizing:border-box!important;display:flex!important;flex-wrap:nowrap!important;
  overflow-x:auto!important;overflow-y:hidden!important;gap:8px!important;
  justify-content:flex-start!important;scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
 }
 body.audit-phase3.authenticated #admin-service-view .r26-subnav>button{
  box-sizing:border-box!important;display:inline-flex!important;flex:0 0 auto!important;
  white-space:nowrap!important;min-height:40px!important;min-width:max-content!important;
  padding:9px 12px!important;
 }
}
/* YANMAR M7.19.6.10 · auditoría visual Fase 6.1 · SOLO PREVISUALIZACIÓN
   Incidencia: submenú de Compras comprimido en 390 px.
   Alcance específico: sección administrador / Compras y proveedores.
   Mantiene los siete botones, atributos data-purchase-subtab, textos, clase .active y orden del DOM.
   No introducir en producción sin comprobar el funcionamiento real de ambos perfiles. */
@media (max-width:900px) {
  body.audit-phase61.authenticated #admin-purchases-view > nav.purchase-subnav {
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:7px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x;
    scroll-padding-inline:7px;
    scrollbar-width:thin;
    scrollbar-color:#bcc9d9 transparent;
  }
  body.audit-phase61.authenticated #admin-purchases-view > nav.purchase-subnav > button[data-purchase-subtab] {
    box-sizing:border-box!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    max-width:none!important;
    min-width:max-content!important;
    min-height:42px!important;
    height:auto!important;
    margin:0!important;
    padding:10px 14px!important;
    border-radius:9px!important;
    font-size:12.5px!important;
    font-weight:500!important;
    line-height:1.25!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    text-align:center!important;
    box-shadow:none!important;
    scroll-snap-align:start;
  }
  body.audit-phase61.authenticated #admin-purchases-view > nav.purchase-subnav > button[data-purchase-subtab].active {
    background:#d5372f!important;
    border-color:#d5372f!important;
    color:#fff!important;
    font-weight:500!important;
  }
  body.audit-phase61.authenticated #admin-purchases-view > nav.purchase-subnav > button[data-purchase-subtab]:not(.active):hover {
    background:#f0f3f7!important;
  }
  body.audit-phase61.authenticated #admin-purchases-view > nav.purchase-subnav > button[data-purchase-subtab]:focus-visible {
    outline:2px solid #a52c27!important;
    outline-offset:-3px!important;
  }
}

/* Fase 9.3 — alcance local: Configuración mantenía font-weight:800 desde
 * commercial-polish-m710.css (#admin-settings-view .settings-subnav button).
 * Unificar con el resto de submenús sin alterar visibilidad, roles ni geometría. */
body.audit-phase2.authenticated #admin-settings-view .settings-subnav > button,
body.audit-phase2.authenticated #admin-settings-view .settings-subnav > button:is(.active,:hover,:focus-visible,:active,[aria-selected="true"]),
body.audit-phase2.authenticated #admin-settings-view .settings-subnav > button :is(b,strong) {
  font-family:var(--y64-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif)!important;
  font-weight:500!important;
  font-synthesis:none!important;
}


/* ===== assets/m719612-buttons-close.css ===== */
/* YANMAR Web M7.19.6.12 | Aprobacion: botones y cierres (9 capturas) | solo estetica.
   Capa posterior a m719611-visual-system.css. No IDs/DOM/JS/roles/visibilidad.
   Se mantienen estilos previos de tablet y movil, sobrescritos solo donde se indica. */
body.audit-phase4.authenticated{--a612-font:var(--y64-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif);--a612-line:#cbd7e5;--a612-ink:#263549;--a612-red:#d13b34;}

/* 1. Empleados: el modal se inyecta dinamicamente como .r26-modal, NO #r26-modal. */
body.audit-phase4.authenticated .r26-modal .r26-modal-dialog>header>button[data-employee-close]{
 box-sizing:border-box!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
 flex:0 0 36px!important;display:grid!important;place-items:center!important;
 padding:0!important;margin:0 0 0 auto!important;
 border:1px solid var(--a612-line)!important;border-radius:9px!important;background:#fff!important;
 color:var(--a612-ink)!important;box-shadow:none!important;
 font:500 22px/1 var(--a612-font)!important;font-synthesis:none!important;text-align:center!important;cursor:pointer!important;
}
body.audit-phase4.authenticated .r26-modal .r26-modal-dialog>header>button[data-employee-close]:hover{
 background:#f0f3f8!important;border-color:#aebed0!important;
}
body.audit-phase4.authenticated .r26-modal .r26-modal-dialog>header>button[data-employee-close]:focus-visible{
 outline:2px solid var(--a612-red)!important;outline-offset:2px!important;
}

/* 2. Carrito: X a la derecha, manteniendo caja de 36x36 y zona clicable. */
body.audit-phase4.authenticated #cart-overlay .cart-panel-header{padding-right:12px!important;}
body.audit-phase4.authenticated #cart-overlay .cart-panel-header>#cart-close{
 margin-left:auto!important;margin-right:-4px!important;transform:none!important;
}

/* 3. Tramitar pedido para cliente: unica accion principal roja del pie de carrito admin. */
body.audit-phase4.authenticated #cart-overlay .cart-actions #m7-admin-submit{
 background:var(--a612-red)!important;border:1px solid var(--a612-red)!important;color:#fff!important;
 box-shadow:none!important;font-family:var(--a612-font)!important;font-weight:600!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;
}
body.audit-phase4.authenticated #cart-overlay .cart-actions #m7-admin-submit:hover:not(:disabled){
 background:#b82e29!important;border-color:#b82e29!important;color:#fff!important;
}
body.audit-phase4.authenticated #cart-overlay .cart-actions #m7-admin-submit:focus-visible{
 outline:2px solid #922d27!important;outline-offset:2px!important;
}

/* 4. Crear cliente: secundario con borde como Actualizar. Sin alterar el listener. */
body.audit-phase4.authenticated #admin-view #admin-create-client{
 box-sizing:border-box!important;border:1px solid var(--a612-line)!important;background:#fff!important;
 color:var(--a612-ink)!important;box-shadow:none!important;
}
body.audit-phase4.authenticated #admin-view #admin-create-client:hover:not(:disabled){
 border-color:#aebed0!important;background:#f4f6f9!important;
}

/* 5, 6, 7, 9. Peso uniforme de botones, basado en Crear cliente.
   Los controles mantienen su font-size salvo pareja de foto que se unifica. */
body.audit-phase4.authenticated :is(
 #admin-create-client,#admin-refresh,#admin-orders-refresh,#admin-article-create,#budget-new,
 #admin-article-default-photo,#admin-article-remove-photo,#admin-article-save,#m7-admin-submit
){
 font-family:var(--a612-font)!important;font-weight:600!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;
}
body.audit-phase4.authenticated #admin-article-editor :is(#admin-article-default-photo,#admin-article-remove-photo){
 font-size:12px!important;line-height:1.3!important;font-weight:600!important;
}
body.audit-phase4.authenticated #admin-article-editor #admin-article-remove-photo{
 background:#fff!important;border:1px solid var(--a612-line)!important;color:var(--a612-ink)!important;
}
body.audit-phase4.authenticated #admin-article-editor #admin-article-remove-photo:hover:not(:disabled){
 border-color:#aebed0!important;background:#f4f6f9!important;
}
/* 8. Acciones de ficha desplazadas ligeramente hacia el borde DERECHO en escritorio. */
@media(min-width:720px){
 body.audit-phase4.authenticated #admin-article-editor .article-admin-editor-head .article-editor-actions{
  margin-left:auto!important;margin-right:-8px!important;padding-right:0!important;justify-content:flex-end!important;
 }
}
/* En tablet estrecha/movil conservar el ancho y el flujo definidos en M7.19.6.11. */
@media(max-width:719px){
 body.audit-phase4.authenticated #cart-overlay .cart-panel-header{padding-right:10px!important;}
 body.audit-phase4.authenticated #cart-overlay .cart-panel-header>#cart-close{margin-right:0!important;}
 body.audit-phase4.authenticated #admin-article-editor .article-admin-editor-head .article-editor-actions{
  margin-right:0!important;padding-right:0!important;
 }
}


/* ===== assets/m719613-client-admin-controls.css ===== */

/* Approved M7.19.6.13 visual corrections on M7.19.6.12. */
body.audit-phase4.authenticated{
 --qa613-font:var(--a612-font,var(--y64-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif));
 --qa613-border:var(--a612-line,#cbd7e5);
 --qa613-ink:var(--a612-ink,#263549);
 --qa613-red:var(--a612-red,#d13b34);
}
/* Shared admin/client order filter action. */
body.audit-phase4.authenticated :is(#my-orders-view,#admin-orders-view) .orders-filter-panel-head .orders-clear-filters{
 font-family:var(--qa613-font)!important;font-weight:600!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;
}
/* Client fleet: text and content do not touch the two empty-state panels. */
body.audit-phase4.authenticated #m719-my-fleet .m719-head{
 align-items:flex-start!important;gap:16px!important;padding-bottom:2px!important;
}
body.audit-phase4.authenticated #m719-my-fleet #m719-status{
 margin:12px 0 16px!important;line-height:1.5!important;
}
body.audit-phase4.authenticated #m719-my-fleet .m719-columns{margin-top:0!important;}
body.audit-phase4.authenticated #m719-my-fleet .m719-create-actions{
 gap:12px!important;align-items:center!important;
}
body.audit-phase4.authenticated :is(
 #m719-my-fleet .m719-create-actions .m719-btn,
 #admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-vessel],
 #admin-service-view [data-r26-panel="fleet"] .r26-toolbar [data-r26-new-engine]
){
 font-family:var(--qa613-font)!important;font-weight:600!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;
}
/* Existing administration fleet has a high-specificity font shorthand: override that shorthand, not just font-weight. */
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]){
 font:600 12px/1.25 var(--qa613-font)!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;
}
/* Scanner controls are restricted to the scanner view, across its two locations. */
body.audit-phase4.authenticated #admin-scanner-view :is(#scanner-camera,#scanner-photo,.scanner-mode-tabs button){
 font-family:var(--qa613-font)!important;font-weight:600!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;
}
/* ChatGPT button becomes the same secondary outlined control as copy. */
body.audit-phase4.authenticated #article-chatgpt-launcher :is(#article-chatgpt-open,#article-chatgpt-copy){
 box-sizing:border-box!important;border:1px solid var(--qa613-border)!important;
 border-radius:10px!important;background:#fff!important;color:var(--qa613-ink)!important;
 font-family:var(--qa613-font)!important;font-weight:600!important;font-synthesis:none!important;
 letter-spacing:0!important;box-shadow:none!important;
}
body.audit-phase4.authenticated #article-chatgpt-launcher :is(#article-chatgpt-open,#article-chatgpt-copy):hover:not(:disabled){
 background:#f4f6f9!important;border-color:#aebed0!important;color:var(--qa613-ink)!important;
}
body.audit-phase4.authenticated #article-chatgpt-launcher :is(#article-chatgpt-open,#article-chatgpt-copy):focus-visible{
 outline:2px solid var(--qa613-red)!important;outline-offset:2px!important;
}
/* Issuing a budget is the strong red action; keep existing business button and handler. */
body.audit-phase4.authenticated #admin-budgets-view #budget-save{
 border:1px solid var(--qa613-red)!important;background:var(--qa613-red)!important;
 color:#fff!important;font-family:var(--qa613-font)!important;font-weight:600!important;
 font-synthesis:none!important;letter-spacing:0!important;text-transform:none!important;
 box-shadow:none!important;cursor:pointer!important;
}
body.audit-phase4.authenticated #admin-budgets-view #budget-save:hover:not(:disabled){
 border-color:#b82e29!important;background:#b82e29!important;color:#fff!important;
}
body.audit-phase4.authenticated #admin-budgets-view #budget-save:active:not(:disabled){
 border-color:#9e261f!important;background:#9e261f!important;
}
body.audit-phase4.authenticated #admin-budgets-view #budget-save:focus-visible{
 outline:2px solid #922d27!important;outline-offset:2px!important;
}
body.audit-phase4.authenticated #admin-budgets-view #budget-save:disabled{
 opacity:.55!important;cursor:not-allowed!important;
}
/* Retain actual mobile/tablet layout, only protect button and card spacing. */
@media(max-width:719px){
 body.audit-phase4.authenticated #m719-my-fleet .m719-head{flex-wrap:wrap!important;gap:12px!important;}
 body.audit-phase4.authenticated #m719-my-fleet .m719-create-actions{width:100%!important;gap:10px!important;}
 body.audit-phase4.authenticated #m719-my-fleet #m719-status{margin:12px 0 16px!important;}
 body.audit-phase4.authenticated #admin-budgets-view .budget-save-row{flex-wrap:wrap!important;}
}


/* ===== assets/m719614-fleet-header-spacing.css ===== */
/* M7.19.6.14 · Hotfix solo visual para Mis embarcaciones (perfil cliente).
   Causa: m71966-nav-buttons.css fuerza padding-top:0 en .tab-view.active.
   No afecta a la barra de Flota en administracion, JS, datos ni permisos. */
body.audit-phase4.authenticated main.container.protected-content > #m719-my-fleet.tab-view.active:not(.hidden){
  box-sizing:border-box!important;
  padding:20px 20px 24px!important;
}
body.audit-phase4.authenticated #m719-my-fleet > .m719-head{
  position:static!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px 18px!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
}
body.audit-phase4.authenticated #m719-my-fleet > .m719-head > div:first-child{
  flex:1 1 310px!important;
  min-width:0!important;
}
body.audit-phase4.authenticated #m719-my-fleet > .m719-head > .m719-create-actions{
  flex:0 1 auto!important;
  align-self:flex-start!important;
  justify-content:flex-end!important;
  gap:12px!important;
  margin:0!important;
  min-width:0!important;
}
body.audit-phase4.authenticated #m719-my-fleet > #m719-status{
  margin:12px 0 16px!important;
  line-height:1.5!important;
  clear:both!important;
}
body.audit-phase4.authenticated #m719-my-fleet > .m719-columns{
  margin-top:0!important;
  min-width:0!important;
}
@media(max-width:1023px){
  body.audit-phase4.authenticated main.container.protected-content > #m719-my-fleet.tab-view.active:not(.hidden){
    padding:18px 18px 22px!important;
  }
}
@media(max-width:719px){
  body.audit-phase4.authenticated main.container.protected-content > #m719-my-fleet.tab-view.active:not(.hidden){
    padding:16px 14px 20px!important;
  }
  body.audit-phase4.authenticated #m719-my-fleet > .m719-head > div:first-child{
    flex:1 1 100%!important;
  }
  body.audit-phase4.authenticated #m719-my-fleet > .m719-head > .m719-create-actions{
    flex:1 1 100%!important;
    width:100%!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:10px!important;
  }
  body.audit-phase4.authenticated #m719-my-fleet > .m719-head > .m719-create-actions .m719-btn{
    flex:1 1 130px!important;
    min-width:0!important;
  }
}
@media(max-width:359px){
  body.audit-phase4.authenticated main.container.protected-content > #m719-my-fleet.tab-view.active:not(.hidden){
    padding:14px 12px 18px!important;
  }
}


/* ===== assets/m719615-admin-actions-typography.css ===== */
/* M7.19.6.15 · Ajustes visuales aprobados: Compras, Proveedores, Almacén, Inteligencia, Mi trabajo y Artículos. Solo CSS. */
body.audit-phase4.authenticated{--p615-red:var(--qa613-red,var(--a612-red,#d13b34));--p615-font:var(--qa613-font,var(--a612-font,var(--y64-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)));}
/* Four existing admin actions: red across all supported widths, without changing handlers. */
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-needs #purchase-generate,
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-suppliers #purchase-new-supplier,
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-supplier-bulk #m719-supplier-bulk-apply,
body.audit-phase4.authenticated #admin-articles-view #admin-article-create{
 box-sizing:border-box!important; background:var(--p615-red)!important; color:#fff!important;
 border:1px solid var(--p615-red)!important;border-radius:10px!important;
 font-family:var(--p615-font)!important;font-weight:600!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;box-shadow:none!important;
}
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-needs #purchase-generate:hover:not(:disabled),
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-suppliers #purchase-new-supplier:hover:not(:disabled),
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-supplier-bulk #m719-supplier-bulk-apply:hover:not(:disabled),
body.audit-phase4.authenticated #admin-articles-view #admin-article-create:hover:not(:disabled){background:#b82e29!important;border-color:#b82e29!important;color:#fff!important;}
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-needs #purchase-generate:active:not(:disabled),
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-suppliers #purchase-new-supplier:active:not(:disabled),
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-supplier-bulk #m719-supplier-bulk-apply:active:not(:disabled),
body.audit-phase4.authenticated #admin-articles-view #admin-article-create:active:not(:disabled){background:#9e261f!important;border-color:#9e261f!important;}
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-needs #purchase-generate:focus-visible,
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-suppliers #purchase-new-supplier:focus-visible,
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-supplier-bulk #m719-supplier-bulk-apply:focus-visible,
body.audit-phase4.authenticated #admin-articles-view #admin-article-create:focus-visible{outline:2px solid #922d27!important;outline-offset:2px!important;}
body.audit-phase4.authenticated #admin-purchases-view #purchase-panel-supplier-bulk #m719-supplier-bulk-apply:disabled{opacity:.55!important;cursor:not-allowed!important;}
/* Shared Refresh buttons: normal weight, preserving existing secondary styles and layout. */
body.audit-phase4.authenticated button:is(#commercial-tools-refresh,#my-quotes-refresh,#my-orders-refresh,#admin-orders-refresh,#work-center-refresh,#admin-dashboard-refresh,#activity-refresh,#admin-refresh,#budget-refresh,#stock-refresh,#employee-refresh,#audit-refresh,#admin-article-list-refresh,#purchase-refresh,[data-r26-refresh]){
 font-family:var(--p615-font)!important;font-weight:500!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;
}
/* Existing JavaScript-built intelligence tabs, no change to active state. */
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .m718-intel-tabs button{
 font-family:var(--p615-font)!important;font-weight:500!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;
}
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .m718-intel-tabs button.active{font-weight:500!important;}
@media(max-width:719px){
 body.audit-phase4.authenticated #admin-purchases-view :is(#purchase-panel-needs,#purchase-panel-suppliers) > header > button{max-width:100%!important;white-space:normal!important;}
 body.audit-phase4.authenticated #admin-purchases-view #m719-supplier-bulk-apply{max-width:100%!important;}
}


/* ===== assets/m719616-service-nav-actions.css ===== */
/* YANMAR M7.19.6.16 · Estilos aprobados sobre M7.19.6.15 · Solo CSS, sin cambios funcionales. */
body.audit-phase4.authenticated{--p616-red:var(--p615-red,var(--qa613-red,#d13b34));--p616-font:var(--p615-font,var(--y64-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif));}
/* Servicio/CRM: altura fija, una línea desplazable, sin variación por pestaña. */
body.audit-phase4.authenticated #admin-service-view > nav.module-subnav.r26-subnav{
 box-sizing:border-box!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:54px!important;min-height:54px!important;max-height:54px!important;
 padding:6px!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;
 overscroll-behavior-x:contain!important;scrollbar-width:thin!important;
}
body.audit-phase4.authenticated #admin-service-view > nav.module-subnav.r26-subnav > button{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;width:auto!important;min-width:max-content!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 padding:9px 12px!important;margin:0!important;white-space:nowrap!important;
 line-height:1.25!important;font-family:var(--p616-font)!important;font-weight:500!important;font-synthesis:none!important;
}
/* Acciones principales ADMIN: mantiene handlers y permisos intactos. */
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]),
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="intelligence"] button:is([data-r26-new-kit],[data-r26-new-approval],[data-r26-trace]),
body.audit-phase4.authenticated #admin-view #admin-create-client,
body.audit-phase4.authenticated #admin-employees-view #employee-new{
 box-sizing:border-box!important;background:var(--p616-red)!important;border:1px solid var(--p616-red)!important;
 color:#fff!important;border-radius:10px!important;box-shadow:none!important;
 font-family:var(--p616-font)!important;font-weight:600!important;font-synthesis:none!important;
 text-transform:none!important;letter-spacing:0!important;cursor:pointer;
}
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]):hover:not(:disabled),
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="intelligence"] button:is([data-r26-new-kit],[data-r26-new-approval],[data-r26-trace]):hover:not(:disabled),
body.audit-phase4.authenticated #admin-view #admin-create-client:hover:not(:disabled),
body.audit-phase4.authenticated #admin-employees-view #employee-new:hover:not(:disabled){background:#b82e29!important;border-color:#b82e29!important;color:#fff!important;}
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]):active:not(:disabled),
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="intelligence"] button:is([data-r26-new-kit],[data-r26-new-approval],[data-r26-trace]):active:not(:disabled),
body.audit-phase4.authenticated #admin-view #admin-create-client:active:not(:disabled),
body.audit-phase4.authenticated #admin-employees-view #employee-new:active:not(:disabled){background:#9e261f!important;border-color:#9e261f!important;}
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]):focus-visible,
body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="intelligence"] button:is([data-r26-new-kit],[data-r26-new-approval],[data-r26-trace]):focus-visible,
body.audit-phase4.authenticated #admin-view #admin-create-client:focus-visible,
body.audit-phase4.authenticated #admin-employees-view #employee-new:focus-visible{outline:2px solid #922d27!important;outline-offset:2px!important;}
/* Acciones secundarias CLIENTE y ADMIN: tipografía uniforme, sin negrita. */
body.audit-phase4.authenticated :is(#my-orders-clear-filters,#admin-orders-clear-filters,#admin-article-list-clear,#stock-clear-filters,#m719-archive-toggle),
body.audit-phase4.authenticated #admin-service-view :is([data-r26-work-clear],[data-r26-refresh]){
 font-family:var(--p616-font)!important;font-weight:500!important;font-synthesis:none!important;
 text-transform:none!important;letter-spacing:0!important;
}
/* Override de la regla heredada altamente específica del panel de pedidos. */
body.audit-phase4.authenticated #my-orders-view#my-orders-view #my-orders-clear-filters,
body.audit-phase4.authenticated #admin-orders-view#admin-orders-view #admin-orders-clear-filters{
 font-family:var(--p616-font)!important;font-weight:500!important;font-synthesis:none!important;
}
/* Adaptación acotada: el nav en pantalla pequeña desplaza, NO apila filas. */
@media(max-width:719px){
 body.audit-phase4.authenticated #admin-service-view > nav.module-subnav.r26-subnav{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;}
 body.audit-phase4.authenticated #admin-service-view > nav.module-subnav.r26-subnav > button{flex:0 0 auto!important;min-width:max-content!important;white-space:nowrap!important;}
 body.audit-phase4.authenticated #admin-service-view [data-r26-panel="fleet"] .r26-toolbar > div:last-child{display:flex!important;gap:10px!important;flex-wrap:wrap!important;}
 body.audit-phase4.authenticated #admin-service-view#admin-service-view [data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]){min-width:0!important;flex:1 1 130px!important;}
}


/* ===== assets/m719618-service-visibility-hotfix.css ===== */
/* YANMAR M7.19.6.18 — recuperación urgente de visibilidad y posición de Servicio/CRM.
   BASE SEGURA M7.19.6.16. Conserva controles de la 6.17 sin forzar display
   en la sección tab-view.hidden. Sin cambios JS, PHP, datos o permisos. */
body.audit-phase4.authenticated{--p617-red:var(--p616-red,var(--p615-red,#d13b34));--p617-font:var(--p616-font,var(--p615-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif));--p617-line:#cbd6e7}
/* Solo cuando Servicio es la pestaña activa: colocar las filas al comienzo.
   Nunca usar display:grid!important ni un grid-template-rows impuesto, porque
   la clase .hidden de navegación debe conservar autoridad absoluta. */
body.audit-phase4.authenticated #admin-service-view.r26-enterprise-view:not(.hidden){
 align-content:start!important;
 align-items:start!important;
 grid-auto-rows:max-content!important;
 overflow-anchor:none!important;
}
/* Defensa explícita si otra hoja futura vuelve a imponer display al módulo. */
body.audit-phase4.authenticated #admin-service-view.r26-enterprise-view.hidden{display:none!important;}
/* La altura/scroll de la barra la gestiona la M7.19.6.16 sin z-index superpuesto. */
/* Controles secundarios: geometría de Actualizar, sin negritas o bordes ausentes. */
body.audit-phase4.authenticated :is(
 #ent-profit-refresh,#m718-bulk-preview,#r26-tariff-import,#stock-manual-issue,
 #m719-supplier-bulk-preview,#stock-export,#admin-article-import,
 #r26-inventory-settings-save
),
body.audit-phase4.authenticated .enterprise-commercial-performance > summary{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:38px!important;padding:9px 14px!important;
 background:#fff!important;color:#182c45!important;border:1px solid var(--p617-line)!important;
 border-radius:10px!important;box-shadow:none!important;
 font-family:var(--p617-font)!important;font-weight:500!important;font-synthesis:none!important;
 text-transform:none!important;letter-spacing:0!important;line-height:1.25!important;
 text-align:center!important;cursor:pointer;
}
body.audit-phase4.authenticated .enterprise-commercial-performance > summary{list-style:none!important;width:max-content;max-width:100%;}
body.audit-phase4.authenticated .enterprise-commercial-performance > summary::-webkit-details-marker{display:none}
body.audit-phase4.authenticated .enterprise-commercial-performance > summary::before{content:'▸';font-size:12px;margin-right:8px}
body.audit-phase4.authenticated .enterprise-commercial-performance[open] > summary::before{content:'▾'}
body.audit-phase4.authenticated :is(#ent-profit-refresh,#m718-bulk-preview,#r26-tariff-import,#stock-manual-issue,#m719-supplier-bulk-preview,#stock-export,#admin-article-import,#r26-inventory-settings-save):hover:not(:disabled),
body.audit-phase4.authenticated .enterprise-commercial-performance > summary:hover{background:#f3f6fa!important;border-color:#aebed2!important}
body.audit-phase4.authenticated :is(#ent-profit-refresh,#m718-bulk-preview,#r26-tariff-import,#stock-manual-issue,#m719-supplier-bulk-preview,#stock-export,#admin-article-import,#r26-inventory-settings-save):focus-visible,
body.audit-phase4.authenticated .enterprise-commercial-performance > summary:focus-visible{outline:2px solid var(--p617-red)!important;outline-offset:2px!important}
body.audit-phase4.authenticated :is(#ent-profit-refresh,#m718-bulk-preview,#r26-tariff-import,#stock-manual-issue,#m719-supplier-bulk-preview,#stock-export,#admin-article-import,#r26-inventory-settings-save):disabled{opacity:.55!important;cursor:not-allowed!important}

/* Confirmación masiva: acción principal visible solo si JS la habilita. */
body.audit-phase4.authenticated :is(#m718-bulk-confirm,#replacement-save,#scanner-search),
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] [data-r26-new-goal]{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:38px!important;padding:9px 14px!important;
 background:var(--p617-red)!important;border:1px solid var(--p617-red)!important;
 color:#fff!important;border-radius:10px!important;box-shadow:none!important;
 font-family:var(--p617-font)!important;font-weight:500!important;font-synthesis:none!important;
 letter-spacing:0!important;text-transform:none!important;line-height:1.25!important;cursor:pointer;
}
body.audit-phase4.authenticated :is(#m718-bulk-confirm,#replacement-save,#scanner-search):hover:not(:disabled),
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] [data-r26-new-goal]:hover:not(:disabled){background:#b82e29!important;border-color:#b82e29!important;color:#fff!important}
body.audit-phase4.authenticated :is(#m718-bulk-confirm,#replacement-save,#scanner-search):active:not(:disabled),
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] [data-r26-new-goal]:active:not(:disabled){background:#9e261f!important;border-color:#9e261f!important}
body.audit-phase4.authenticated :is(#m718-bulk-confirm,#replacement-save,#scanner-search):focus-visible,
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] [data-r26-new-goal]:focus-visible{outline:2px solid #922d27!important;outline-offset:2px!important}
body.audit-phase4.authenticated :is(#m718-bulk-confirm,#replacement-save,#scanner-search):disabled,
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] [data-r26-new-goal]:disabled{opacity:.55!important;cursor:not-allowed!important}
/* Previsualización, confirmación y botones dinámicos respetan las condiciones JS. */
body.audit-phase4.authenticated #m718-bulk-preview-box #m718-bulk-confirm{width:100%!important;margin-top:10px!important}

/* Importación de artículos: alinear el botón con el centro del bloque, no la línea inferior. */
body.audit-phase4.authenticated #article-catalog-panel .article-import-card{align-items:center!important;row-gap:14px!important}
body.audit-phase4.authenticated #article-catalog-panel .article-import-actions{align-items:center!important;align-self:center!important;justify-content:flex-end!important;gap:9px!important;min-width:0!important}
body.audit-phase4.authenticated #article-catalog-panel #admin-article-import{align-self:center!important;flex:0 0 auto!important}
body.audit-phase4.authenticated #article-catalog-panel #admin-article-import-file{max-width:min(100%,260px)!important;min-width:0!important}

/* Stock: Salida manual comparte contorno con Exportar stock CSV. */
body.audit-phase4.authenticated #article-stock-panel .stock-action-row{align-items:stretch!important}
body.audit-phase4.authenticated #article-stock-panel :is(#stock-manual-issue,#stock-export){width:100%!important;border:1px solid var(--p617-line)!important;background:#fff!important;color:#182c45!important;font-weight:500!important;box-shadow:none!important}

/* Sustituciones: texto de la ficha en peso normal (sin negrita heredada).
   Controles sin tocar su valor o eventos. */
body.audit-phase4.authenticated #article-replacements-panel .article-catalog-browser :is(h2,h3,p,span,label,strong,b,small),
body.audit-phase4.authenticated #article-replacements-panel .replacement-manager-form :is(input,button){
 font-family:var(--p617-font)!important;font-weight:500!important;font-synthesis:none!important;
}
body.audit-phase4.authenticated #article-replacements-panel #replacement-save{background:var(--p617-red)!important;border-color:var(--p617-red)!important;color:#fff!important}
body.audit-phase4.authenticated #article-replacements-panel #replacement-save:hover:not(:disabled){background:#b82e29!important;border-color:#b82e29!important}

/* Escáner: texto de captura sin negrita, sin alterar el modo activo. */
body.audit-phase4.authenticated #admin-scanner-view .scanner-code-label > span,
body.audit-phase4.authenticated #admin-scanner-view .scanner-code-row :is(input,button){font-family:var(--p617-font)!important;font-weight:500!important;font-synthesis:none!important}

/* Análisis: separar físicamente campo y botón sin desalinear en móvil. */
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline{
 display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;flex-wrap:wrap!important;
}
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline > #r26-trace-code{
 flex:1 1 190px!important;min-width:0!important;margin:0!important;
}
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline > [data-r26-trace]{
 flex:0 0 auto!important;margin:0!important;
}

/* Garantiza adaptación al ancho disponible sin estirar el documento. */
@media(max-width:719px){
 body.audit-phase4.authenticated #admin-service-view.r26-enterprise-view{grid-template-rows:max-content 54px auto!important;min-width:0!important}
 body.audit-phase4.authenticated #article-catalog-panel .article-import-card{align-items:stretch!important;flex-wrap:wrap!important}
 body.audit-phase4.authenticated #article-catalog-panel .article-import-actions{width:100%!important;justify-content:flex-start!important;align-self:center!important}
 body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline > #r26-trace-code{flex:1 1 100%!important;width:100%!important}
 body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline > [data-r26-trace]{width:100%!important}
}
/* Precedencia frente al sistema heredado de paneles, que neutraliza .btn-primary
   en estas dos vistas pese al color primario definido arriba. */
body.audit-phase4.authenticated #admin-dashboard-view#admin-dashboard-view #m718-bulk-confirm,
body.audit-phase4.authenticated #admin-scanner-view#admin-scanner-view #scanner-search{
 background:var(--p617-red)!important;border-color:var(--p617-red)!important;color:#fff!important;
 font-weight:500!important;
}
body.audit-phase4.authenticated #admin-dashboard-view#admin-dashboard-view #m718-bulk-confirm:hover:not(:disabled),
body.audit-phase4.authenticated #admin-scanner-view#admin-scanner-view #scanner-search:hover:not(:disabled){background:#b82e29!important;border-color:#b82e29!important;color:#fff!important}
body.audit-phase4.authenticated #admin-dashboard-view#admin-dashboard-view #m718-bulk-confirm:active:not(:disabled),
body.audit-phase4.authenticated #admin-scanner-view#admin-scanner-view #scanner-search:active:not(:disabled){background:#9e261f!important;border-color:#9e261f!important}
/* Tablet: la fila de importación pasa a dos bandas, sin arrastrar el botón
   al borde inferior de una fila comprimida ni cortar el selector de archivo. */
@media(min-width:720px) and (max-width:1020px){
 body.audit-phase4.authenticated #article-catalog-panel .article-import-card{flex-direction:column!important;align-items:stretch!important;gap:14px!important}
 body.audit-phase4.authenticated #article-catalog-panel .article-import-actions{width:100%!important;align-self:stretch!important;justify-content:flex-start!important}
}


/* ===== assets/m719619-crm-client-intelligence-tune.css ===== */
/* YANMAR M7.19.6.19 — CRM, ficha de cliente e inteligencia.
   Base exacta: M7.19.6.18. Cambios exclusivamente visuales.
   - CRM: +Actividad y +Oportunidad pasan a botón rojo principal.
   - Ficha de cliente admin: Guardar todos los datos adopta el estilo secundario.
   - Inteligencia: añade separación vertical entre la búsqueda y el bloque de resultado.
   Sin cambios de PHP, JS de negocio, permisos ni datos. */
body.audit-phase4.authenticated{
  --p619-red: var(--p617-red, var(--p616-red, var(--p615-red, #d13b34)));
  --p619-font: var(--p617-font, var(--p616-font, var(--p615-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif)));
  --p619-line: var(--p617-line, #cbd6e7);
  --p619-text: #182c45;
}

/* CRM: ambas acciones como principal roja */
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="crm"] :is([data-r26-new-activity],[data-r26-new-opportunity]){
  box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:38px!important;padding:9px 14px!important;
  background:var(--p619-red)!important;border:1px solid var(--p619-red)!important;
  color:#fff!important;border-radius:10px!important;box-shadow:none!important;
  font-family:var(--p619-font)!important;font-weight:500!important;font-synthesis:none!important;
  letter-spacing:0!important;text-transform:none!important;line-height:1.25!important;
  cursor:pointer!important;
}
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="crm"] :is([data-r26-new-activity],[data-r26-new-opportunity]):hover:not(:disabled){background:#b82e29!important;border-color:#b82e29!important;color:#fff!important}
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="crm"] :is([data-r26-new-activity],[data-r26-new-opportunity]):active:not(:disabled){background:#9e261f!important;border-color:#9e261f!important;color:#fff!important}
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="crm"] :is([data-r26-new-activity],[data-r26-new-opportunity]):focus-visible{outline:2px solid #922d27!important;outline-offset:2px!important}
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="crm"] :is([data-r26-new-activity],[data-r26-new-opportunity]):disabled{opacity:.55!important;cursor:not-allowed!important}

/* Ficha cliente administración: Guardar todos los datos igual que los contiguos */
body.audit-phase4.authenticated .admin-user-card [data-admin-save]{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:38px!important;padding:9px 14px!important;
  background:#fff!important;color:var(--p619-text)!important;border:1px solid var(--p619-line)!important;
  border-radius:10px!important;box-shadow:none!important;
  font-family:var(--p619-font)!important;font-weight:500!important;font-synthesis:none!important;
  letter-spacing:0!important;text-transform:none!important;line-height:1.25!important;
  text-align:center!important;cursor:pointer!important;
}
body.audit-phase4.authenticated .admin-user-card [data-admin-save]:hover:not(:disabled){background:#f3f6fa!important;border-color:#aebed2!important;color:var(--p619-text)!important}
body.audit-phase4.authenticated .admin-user-card [data-admin-save]:active:not(:disabled){background:#e9eff6!important;border-color:#9eb0c7!important;color:var(--p619-text)!important}
body.audit-phase4.authenticated .admin-user-card [data-admin-save]:focus-visible{outline:2px solid var(--p619-red)!important;outline-offset:2px!important}
body.audit-phase4.authenticated .admin-user-card [data-admin-save]:disabled{opacity:.55!important;cursor:not-allowed!important}

/* Inteligencia: separación vertical entre la barra de referencia y el resultado */
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline{
  align-items:center!important;
  column-gap:12px!important;
}
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline + #r26-trace-result,
body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline + .r26-trace-result{
  margin-top:14px!important;
}
@media (max-width: 767px){
  body.audit-phase4.authenticated #admin-service-view [data-r26-panel="crm"] .r26-toolbar > div:last-child{
    display:flex!important;flex-wrap:wrap!important;gap:10px!important;justify-content:flex-start!important;
  }
  body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline + #r26-trace-result,
  body.audit-phase4.authenticated #admin-service-view [data-r26-panel="intelligence"] .r26-searchline + .r26-trace-result{
    margin-top:12px!important;
  }
}


/* ===== assets/m719620-client-settings-budget-layout.css ===== */
/* YANMAR M7.19.6.20 — configuración cliente, acciones y presupuestos.
   Acumulativo sobre M7.19.6.18 / M7.19.6.19.
   Cambios de interfaz y visibilidad de UI únicamente; no modifica API, datos ni lógica de negocio. */
:root{
  --p620-red:var(--p619-red,var(--p617-red,var(--p616-red,var(--p615-red,#d13b34))));
  --p620-red-hover:#b82e29;
  --p620-red-active:#9e261f;
  --p620-line:var(--p619-line,var(--p617-line,#cbd6e7));
  --p620-text:var(--p619-text,#182c45);
}

/* 1) CLIENTE > CONFIGURACIÓN
   El cliente solo dispone del panel Menú visible. Los permisos de los módulos
   continúan viniendo de su ficha administrativa; este parche no los amplía. */
body.role-client #admin-settings-view .settings-backoffice-only,
body.role-client #admin-settings-view [data-settings-subtab]:not([data-settings-subtab="menu"]){
  display:none!important;
  visibility:hidden!important;
}
body.role-client #admin-settings-view [data-settings-group]:not([data-settings-group="menu"]){
  display:none!important;
  visibility:hidden!important;
}
body.role-client #admin-settings-view [data-settings-group="menu"]{
  display:block!important;
  visibility:visible!important;
}
body.role-client #admin-settings-view [data-settings-subtab="menu"]{
  display:inline-flex!important;
  visibility:visible!important;
}

/* 2) Botones principales rojos solicitados */
body.authenticated :is(
  #suggestion-send,
  #admin-task-new,
  [data-r26-new-activity],
  [data-r26-new-opportunity]
){
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:9px 14px!important;
  background:var(--p620-red)!important;
  border:1px solid var(--p620-red)!important;
  color:#fff!important;
  border-radius:10px!important;
  box-shadow:none!important;
  font-weight:500!important;
  font-synthesis:none!important;
  text-transform:none!important;
  letter-spacing:0!important;
  line-height:1.25!important;
  text-align:center!important;
  cursor:pointer!important;
}
body.authenticated :is(#suggestion-send,#admin-task-new,[data-r26-new-activity],[data-r26-new-opportunity]):hover:not(:disabled){
  background:var(--p620-red-hover)!important;border-color:var(--p620-red-hover)!important;color:#fff!important;
}
body.authenticated :is(#suggestion-send,#admin-task-new,[data-r26-new-activity],[data-r26-new-opportunity]):active:not(:disabled){
  background:var(--p620-red-active)!important;border-color:var(--p620-red-active)!important;color:#fff!important;
}
body.authenticated :is(#suggestion-send,#admin-task-new,[data-r26-new-activity],[data-r26-new-opportunity]):focus-visible{
  outline:2px solid #922d27!important;outline-offset:2px!important;
}

/* 3) Ficha de cliente: Regenerar contraseña solo en Datos y contacto.
   El botón de Guardar todos los datos conserva su disponibilidad en los submenús. */
.m717-client-card [data-admin-reset]{display:none!important;}
.m717-client-card[data-m717-active-tab="data"] [data-admin-reset]{display:inline-flex!important;}

/* 4) PRESUPUESTOS: flujo vertical a ancho completo. */
#admin-budgets-view .budget-workspace{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
  width:100%!important;
}
#admin-budgets-view .budget-workspace > .budget-builder-card,
#admin-budgets-view .budget-workspace > .budget-summary-card{
  grid-column:1/-1!important;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
#admin-budgets-view .budget-workspace > .budget-builder-card:nth-of-type(1){order:1;}
#admin-budgets-view .budget-workspace > .budget-builder-card:nth-of-type(2){order:2;}
#admin-budgets-view .budget-workspace > .budget-summary-card{order:3;}

/* Cliente y condiciones utiliza el ancho recuperado para lectura horizontal. */
#admin-budgets-view .budget-commercial-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px 12px!important;
}
#admin-budgets-view .budget-form-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px 12px!important;
}
#admin-budgets-view .budget-field-wide{grid-column:span 2!important;}

/* Acciones superiores: mismo ancho, una debajo de otra y algo más bajas. */
#admin-budgets-view .budget-page-heading{
  align-items:flex-start!important;
  gap:20px!important;
}
#admin-budgets-view .m719620-budget-top-actions{
  display:flex!important;
  flex:0 0 190px!important;
  width:190px!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:9px!important;
  margin-top:16px!important;
}
#admin-budgets-view .m719620-budget-top-actions > #budget-save.hidden,
#admin-budgets-view .m719620-budget-top-actions > #budget-save[hidden]{display:none!important;}
#admin-budgets-view .m719620-budget-top-actions > :is(#budget-new,#budget-save){
  width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  margin:0!important;
  justify-content:center!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
/* Se conservan expresamente los colores actuales: Nuevo = secundario; Emitir = principal. */
#admin-budgets-view .m719620-budget-top-actions > #budget-new{
  background:#fff!important;
  color:var(--p620-text)!important;
  border:1px solid var(--p620-line)!important;
}
#admin-budgets-view .m719620-budget-top-actions > #budget-save{
  background:var(--p620-red)!important;
  color:#fff!important;
  border:1px solid var(--p620-red)!important;
}
#admin-budgets-view .m719620-budget-top-actions > #budget-save:hover:not(:disabled){background:var(--p620-red-hover)!important;border-color:var(--p620-red-hover)!important;}
#admin-budgets-view .m719620-budget-top-actions > #budget-save:active:not(:disabled){background:var(--p620-red-active)!important;border-color:var(--p620-red-active)!important;}

/* La nota original permanece abajo, ya sin el botón que se ha trasladado. */
#admin-budgets-view .budget-save-row.m719620-budget-save-note{
  justify-content:flex-end!important;
  margin-top:12px!important;
}

/* Tablet */
@media(max-width:1100px){
  #admin-budgets-view .budget-commercial-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  #admin-budgets-view .budget-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #admin-budgets-view .budget-field-wide{grid-column:1/-1!important;}
}
@media(max-width:820px){
  #admin-budgets-view .budget-page-heading{flex-wrap:wrap!important;}
  #admin-budgets-view .m719620-budget-top-actions{
    flex:1 1 100%!important;
    width:100%!important;
    max-width:240px!important;
    margin-top:8px!important;
  }
  #admin-budgets-view .budget-commercial-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
/* Móvil */
@media(max-width:580px){
  #admin-budgets-view .m719620-budget-top-actions{max-width:none!important;}
  #admin-budgets-view .budget-form-grid,
  #admin-budgets-view .budget-commercial-grid{grid-template-columns:1fr!important;}
  #admin-budgets-view .budget-field-wide{grid-column:auto!important;}
  body.authenticated [data-r26-panel="crm"] .r26-toolbar > div:last-child{
    display:flex!important;flex-wrap:wrap!important;gap:9px!important;
  }
}


/* ===== assets/m719621-visual-approved-backup-catalog-budget.css ===== */
/* YANMAR M7.19.6.21 — ajustes visuales aprobados.
   Base exacta M7.19.6.20. Cambios de presentación y corrección de indicador visual
   falso en presupuestos sustituidos. No modifica API, PHP, permisos ni datos. */
:root{
  --p621-red:var(--p620-red,var(--p619-red,var(--p617-red,#d13b34)));
  --p621-red-hover:var(--p620-red-hover,#b82e29);
  --p621-red-active:var(--p620-red-active,#9e261f);
  --p621-line:var(--p620-line,#cbd6e7);
  --p621-text:var(--p620-text,#182c45);
  --p621-muted:#677078;
}

/* Alta B2B: acción principal coherente con el rojo corporativo. */
#register-submit{
  background:var(--p621-red)!important;
  border:1px solid var(--p621-red)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-weight:600!important;
}
#register-submit:hover:not(:disabled){background:var(--p621-red-hover)!important;border-color:var(--p621-red-hover)!important}
#register-submit:active:not(:disabled){background:var(--p621-red-active)!important;border-color:var(--p621-red-active)!important}

/* Presupuesto: retirar únicamente el texto explicativo inferior ya aprobado. */
#admin-budgets-view .budget-save-row.m719620-budget-save-note > small{display:none!important}
#admin-budgets-view .budget-save-row.m719620-budget-save-note:empty{display:none!important;margin:0!important;padding:0!important}

/* Copias SQL: dos grupos claros. En cada grupo la acción destructiva queda debajo
   de su botón principal y el selector de archivo permanece a la derecha. */
#admin-backup-settings-card .backup-actions{
  display:grid!important;
  grid-template-columns:minmax(210px,max-content) minmax(250px,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:10px 16px!important;
  align-items:center!important;
  justify-content:start!important;
  margin:0!important;
  padding:0 0 15px!important;
}
#admin-backup-settings-card .backup-actions + .backup-actions{
  border-top:1px solid var(--p621-line)!important;
  padding-top:15px!important;
}
#admin-backup-settings-card .backup-actions > :is(#admin-backup-download,#admin-recovery-key-export){
  grid-column:1!important;grid-row:1!important;justify-self:start!important;
  min-height:38px!important;margin:0!important;
}
#admin-backup-settings-card .backup-actions > .backup-restore-file{
  grid-column:2!important;grid-row:1!important;
  display:flex!important;align-items:center!important;gap:9px!important;
  min-width:0!important;margin:0!important;
}
#admin-backup-settings-card .backup-restore-file > span{
  flex:0 0 auto!important;font-size:10px!important;font-weight:600!important;color:var(--p621-muted)!important;
}
#admin-backup-settings-card .backup-restore-file > input[type="file"]{
  min-width:0!important;max-width:100%!important;font:inherit!important;font-size:10px!important;color:var(--p621-muted)!important;
}
#admin-backup-settings-card .backup-restore-file > input[type="file"]::file-selector-button{
  min-height:38px!important;margin-right:9px!important;padding:8px 13px!important;
  border:1px solid var(--p621-line)!important;border-radius:10px!important;
  background:#fff!important;color:var(--p621-text)!important;font:inherit!important;font-weight:500!important;cursor:pointer!important;
}
#admin-backup-settings-card .backup-actions > :is(#admin-backup-restore,#admin-recovery-key-import){
  grid-column:1!important;grid-row:2!important;justify-self:start!important;
  min-height:38px!important;margin:0!important;padding:9px 14px!important;
  background:var(--p621-red)!important;border:1px solid var(--p621-red)!important;
  border-radius:10px!important;color:#fff!important;box-shadow:none!important;
  font-weight:500!important;line-height:1.25!important;
}
#admin-backup-settings-card .backup-actions > :is(#admin-backup-restore,#admin-recovery-key-import):hover:not(:disabled){background:var(--p621-red-hover)!important;border-color:var(--p621-red-hover)!important}
#admin-backup-settings-card .backup-actions > :is(#admin-backup-restore,#admin-recovery-key-import):active:not(:disabled){background:var(--p621-red-active)!important;border-color:var(--p621-red-active)!important}

/* Backups automáticos: JS solo añade clases al DOM existente; no mueve ni clona controles. */
.m719621-auto-backups .m719621-auto-fields{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px 14px!important;align-items:end!important;
}
.m719621-auto-backups .m719621-auto-field{min-width:0!important;margin:0!important}
.m719621-auto-backups .m719621-auto-actions{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:10px!important;flex-wrap:wrap!important;margin-top:12px!important;
}
.m719621-auto-backups :is(.m719621-auto-save,.m719621-auto-now){
  min-height:38px!important;padding:9px 14px!important;margin:0!important;
  border:1px solid var(--p621-line)!important;border-radius:10px!important;
  background:#fff!important;color:var(--p621-text)!important;box-shadow:none!important;
  font-weight:500!important;line-height:1.25!important;
}
.m719621-auto-backups :is(.m719621-auto-save,.m719621-auto-now):hover:not(:disabled){background:#f3f6fa!important;border-color:#aebed2!important}

/* Catálogo: Limpiar filtros como botón secundario y alineado a la derecha. */
#article-catalog-panel .article-catalog-filters > #admin-article-list-clear{
  grid-column:1/-1!important;
  justify-self:end!important;
  width:auto!important;min-width:130px!important;min-height:38px!important;
  margin:2px 0 0!important;padding:8px 14px!important;
  border:1px solid var(--p621-line)!important;border-radius:10px!important;
  background:#fff!important;color:var(--p621-text)!important;box-shadow:none!important;
  font-weight:500!important;text-decoration:none!important;
}
#article-catalog-panel .article-catalog-filters > #admin-article-list-clear:hover:not(:disabled){background:#f3f6fa!important;border-color:#aebed2!important}

/* Importación: plantilla izquierda, selector centro, importar derecha y en rojo. */
#article-catalog-panel .article-import-card{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;gap:14px!important;
}
#article-catalog-panel .article-import-actions{
  display:grid!important;
  grid-template-columns:minmax(150px,1fr) minmax(280px,1.5fr) minmax(150px,1fr)!important;
  gap:14px!important;align-items:center!important;width:100%!important;min-width:0!important;
}
#article-catalog-panel #admin-article-template{
  grid-column:1!important;grid-row:1!important;justify-self:start!important;align-self:center!important;
  margin:0!important;
}
#article-catalog-panel #admin-article-import-file{
  grid-column:2!important;grid-row:1!important;justify-self:center!important;align-self:center!important;
  width:100%!important;max-width:430px!important;min-width:0!important;margin:0!important;
  font-size:10px!important;color:var(--p621-muted)!important;
}
#article-catalog-panel #admin-article-import-file::file-selector-button{
  min-height:38px!important;margin-right:9px!important;padding:8px 13px!important;
  border:1px solid var(--p621-line)!important;border-radius:10px!important;
  background:#fff!important;color:var(--p621-text)!important;font:inherit!important;font-weight:500!important;cursor:pointer!important;
}
#article-catalog-panel #admin-article-import{
  grid-column:3!important;grid-row:1!important;justify-self:end!important;align-self:center!important;
  min-height:38px!important;margin:0!important;padding:9px 14px!important;
  background:var(--p621-red)!important;border:1px solid var(--p621-red)!important;
  border-radius:10px!important;color:#fff!important;box-shadow:none!important;font-weight:500!important;
}
#article-catalog-panel #admin-article-import:hover:not(:disabled){background:var(--p621-red-hover)!important;border-color:var(--p621-red-hover)!important}
#article-catalog-panel #admin-article-import:active:not(:disabled){background:var(--p621-red-active)!important;border-color:var(--p621-red-active)!important}

/* El indicador erróneo de pedido en un presupuesto sustituido se oculta únicamente
   cuando JS confirma status superseded + fallback literal "creado". */
.budget-history-item .conversion-link.m719621-false-order-state{display:none!important}

/* Tablet */
@media(max-width:900px){
  #admin-backup-settings-card .backup-actions{grid-template-columns:minmax(185px,max-content) minmax(0,1fr)!important}
  #article-catalog-panel .article-import-actions{grid-template-columns:minmax(130px,1fr) minmax(220px,1.5fr) minmax(130px,1fr)!important;gap:10px!important}
  .m719621-auto-backups .m719621-auto-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* Móvil */
@media(max-width:620px){
  #admin-backup-settings-card .backup-actions{grid-template-columns:1fr!important;grid-template-rows:auto!important;gap:9px!important}
  #admin-backup-settings-card .backup-actions > :is(#admin-backup-download,#admin-recovery-key-export),
  #admin-backup-settings-card .backup-actions > .backup-restore-file,
  #admin-backup-settings-card .backup-actions > :is(#admin-backup-restore,#admin-recovery-key-import){grid-column:1!important;grid-row:auto!important;justify-self:stretch!important;width:100%!important}
  #admin-backup-settings-card .backup-restore-file{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  #admin-backup-settings-card .backup-restore-file > input[type="file"]{width:100%!important}
  .m719621-auto-backups .m719621-auto-fields{grid-template-columns:1fr!important}
  .m719621-auto-backups .m719621-auto-actions{display:grid!important;grid-template-columns:1fr!important}
  .m719621-auto-backups :is(.m719621-auto-save,.m719621-auto-now){width:100%!important}
  #article-catalog-panel .article-catalog-filters > #admin-article-list-clear{width:100%!important;justify-self:stretch!important}
  #article-catalog-panel .article-import-actions{grid-template-columns:1fr!important;gap:10px!important}
  #article-catalog-panel #admin-article-template,
  #article-catalog-panel #admin-article-import-file,
  #article-catalog-panel #admin-article-import{grid-column:1!important;grid-row:auto!important;justify-self:stretch!important;width:100%!important;max-width:none!important}
  #article-catalog-panel #admin-article-template{text-align:center!important}
}


/* ===== assets/m719622-budget-ux-functional.css ===== */
/* M7.19.6.22 — Presupuestos y UX funcional. Base acumulativa sobre 6.20 + visual 6.21. */
:root{--p622-red:var(--p621-red,var(--p620-red,#d13b34));--p622-line:#cbd6e7;--p622-text:#182c45}

/* Presupuestos: una sola columna de precio editable + descuento por línea. */
#admin-budgets-view .budget-line{grid-template-columns:minmax(0,1fr) 92px 110px 100px 34px!important;gap:9px!important;align-items:end!important}
#admin-budgets-view .budget-line-price{display:none!important}
#admin-budgets-view .budget-line-discount input{width:100%!important}
#admin-budgets-view .budget-line-copy-manual{display:grid!important;grid-template-columns:minmax(120px,.7fr) minmax(220px,1.5fr)!important;gap:8px!important;align-items:end!important}
#admin-budgets-view .budget-line-copy-manual label{display:grid!important;gap:3px!important}
#admin-budgets-view .budget-line-copy-manual label>span{font-size:8px!important;color:#737b82!important}
#admin-budgets-view .budget-line-copy-manual input{text-align:left!important}
#admin-budgets-view .budget-line-copy-manual small{grid-column:1/-1!important;margin-top:0!important}
#admin-budgets-view .budget-add-manual-line{min-height:34px!important;padding:7px 11px!important;white-space:nowrap!important}
#admin-budgets-view .m72-budget-head-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}

/* Empleados: KPI más compactos, valor principal centrado y más visible. */
#admin-employees-view .employee-kpis{gap:8px!important}
#admin-employees-view .employee-kpi{min-height:88px!important;padding:10px 12px!important;display:grid!important;grid-template-rows:auto 1fr!important;align-items:center!important}
#admin-employees-view .employee-kpi span{text-align:center!important;font-size:9px!important;font-weight:700!important}
#admin-employees-view .employee-kpi strong{text-align:center!important;align-self:center!important;font-size:31px!important;line-height:1!important;margin:2px 0 0!important}

/* Gestión de artículos: peso normal en controles/contenido; solo los dos títulos principales conservan énfasis. */
#admin-articles-view :is(button,label,span,p,small,strong,th,td,input,select,textarea,a){font-weight:400!important}
#admin-articles-view > .admin-page-heading h1,
#admin-articles-view #article-stock-panel > .admin-page-heading h1{font-weight:800!important}
#admin-articles-view :is(h2,h3){font-weight:400!important}
#admin-articles-view .eyebrow{font-weight:500!important}

/* Backups automáticos: separar claramente estado/listado de las acciones. */
#r26-auto-backup-card #r26-backup-status{margin-top:18px!important}

@media(max-width:900px){
 #admin-budgets-view .budget-line{grid-template-columns:minmax(0,1fr) 78px 98px 92px 34px!important}
 #admin-budgets-view .budget-line-copy-manual{grid-template-columns:1fr 1.4fr!important}
}
@media(max-width:620px){
 #admin-budgets-view .budget-line{grid-template-columns:1fr 1fr!important;align-items:end!important}
 #admin-budgets-view .budget-line-copy{grid-column:1/-1!important}
 #admin-budgets-view .budget-line-copy-manual{grid-template-columns:1fr!important}
 #admin-budgets-view .budget-line-copy-manual small{grid-column:1!important}
 #admin-budgets-view .budget-line-remove{justify-self:end!important}
 #admin-budgets-view .m72-budget-head-actions{justify-content:flex-start!important}
 #admin-employees-view .employee-kpi{min-height:76px!important}
 #admin-employees-view .employee-kpi strong{font-size:28px!important}
}


/* ===== assets/m719623-promotions-workcenter-search-ui.css ===== */
/* M7.19.6.23.1 — promociones, CRM, buscadores y consistencia responsive. */
:root{--m623-action-red:#d13b34;--m623-action-red-hover:#b82e29;--m623-search-x-border:#c9d3df;--m623-search-x-ink:#385477}
/* CTA: máxima especificidad frente a capas visuales históricas. */
#register-submit.btn-primary.auth-submit,
html body #admin-service-view#admin-service-view [data-r26-panel="crm"].r26-panel .r26-toolbar button[data-r26-new-activity],
html body #admin-service-view#admin-service-view [data-r26-panel="crm"].r26-panel .r26-toolbar button[data-r26-new-opportunity]{background:#d13b34!important;background-color:#d13b34!important;border-color:#d13b34!important;color:#fff!important;box-shadow:none!important}
#register-submit.btn-primary.auth-submit:hover:not(:disabled),
html body #admin-service-view#admin-service-view [data-r26-panel="crm"].r26-panel .r26-toolbar button[data-r26-new-activity]:hover:not(:disabled),
html body #admin-service-view#admin-service-view [data-r26-panel="crm"].r26-panel .r26-toolbar button[data-r26-new-opportunity]:hover:not(:disabled){background:#b82e29!important;background-color:#b82e29!important;border-color:#b82e29!important;color:#fff!important}
/* Productos destacados. */
#home-promo-add{margin-top:14px!important}
/* Jerarquía de Artículos; etiquetas verdes en negrita sin cambiar tamaño. */
#admin-articles-view .admin-page-heading h1,
#admin-articles-view .article-import-card h2,
#admin-articles-view .article-catalog-browser-head h2{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:clamp(23px,2.6vw,30px)!important;line-height:1.16!important;font-weight:700!important;letter-spacing:-.025em!important;margin:6px 0 8px!important;color:var(--ink,#172033)!important}
#admin-articles-view .admin-page-heading p,
#admin-articles-view .article-import-card p,
#admin-articles-view .article-catalog-browser-head p{font-size:14px!important;line-height:1.55!important;font-weight:400!important;color:var(--muted,#687386)!important}
#admin-articles-view .eyebrow{font-weight:800!important}
/* Una sola X: no se añade ningún botón al desplegable. Se normaliza el control del propio campo de búsqueda. */
input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:24px;height:24px;min-width:24px;margin:0;cursor:pointer;border:1px solid var(--m623-search-x-border);border-radius:6px;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:12px 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%23385477' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");opacity:1}
input[type="search"]::-webkit-search-cancel-button:hover{background-color:#f2f5f8}
/* PVP ya tenía un cierre propio: ocultamos el nativo y damos al existente exactamente la misma geometría. */
#pvp-search::-webkit-search-cancel-button{display:none!important}
#pvp-clear{width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;padding:0!important;border:1px solid var(--m623-search-x-border)!important;border-radius:6px!important;background:#fff!important;color:var(--m623-search-x-ink)!important;font-size:0!important;box-shadow:none!important;display:grid!important;place-items:center!important}
#pvp-clear.hidden{display:none!important}
#pvp-clear::before{content:'×';font:600 17px/1 Arial,sans-serif;color:var(--m623-search-x-ink)}
#pvp-clear:hover{background:#f2f5f8!important}
/* La clase quedó en algunos DOM de la 6.23: jamás debe cambiar posicionamiento/altura. */
.yn-search-popup{padding-top:0!important}
.yn-search-close{display:none!important}
#work-center-kpis [data-wc-filter].active{outline:2px solid rgba(209,59,52,.22)!important;border-color:#d13b34!important}
@media(max-width:640px){#admin-articles-view .admin-page-heading h1,#admin-articles-view .article-import-card h2,#admin-articles-view .article-catalog-browser-head h2{font-size:23px!important}input[type="search"]::-webkit-search-cancel-button{width:24px;height:24px;min-width:24px}}


/* ===== assets/m7196232-ui-final-polish.css ===== */
/* YANMAR M7.19.6.23.2 — remates UI finales sobre 6.23.1.
   Sólo presentación. Sin API, datos, permisos ni Control Center. */
:root{
  --m6232-red:#d13b34;
  --m6232-red-hover:#b82e29;
  --m6232-red-active:#9e261f;
  --m6232-line:#cbd6e7;
  --m6232-ink:#283544;
  --m6232-x-ink:#385477;
  --m6232-x-bg:#fff;
  --m6232-x-hover:#f2f5f8;
}

/* CRM: ambas altas son acciones primarias rojas, incluso frente a las capas históricas. */
html body.audit-phase4.authenticated #admin-service-view#admin-service-view
[data-r26-panel="crm"].r26-panel .r26-toolbar > div:last-child >
button[data-r26-new-activity],
html body.audit-phase4.authenticated #admin-service-view#admin-service-view
[data-r26-panel="crm"].r26-panel .r26-toolbar > div:last-child >
button[data-r26-new-opportunity]{
  box-sizing:border-box!important;
  background:var(--m6232-red)!important;
  background-color:var(--m6232-red)!important;
  border:1px solid var(--m6232-red)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-weight:500!important;
  font-synthesis:none!important;
}
html body.audit-phase4.authenticated #admin-service-view#admin-service-view
[data-r26-panel="crm"].r26-panel .r26-toolbar > div:last-child >
button[data-r26-new-activity]:hover:not(:disabled),
html body.audit-phase4.authenticated #admin-service-view#admin-service-view
[data-r26-panel="crm"].r26-panel .r26-toolbar > div:last-child >
button[data-r26-new-opportunity]:hover:not(:disabled){
  background:var(--m6232-red-hover)!important;
  border-color:var(--m6232-red-hover)!important;
  color:#fff!important;
}
html body.audit-phase4.authenticated #admin-service-view#admin-service-view
[data-r26-panel="crm"].r26-panel .r26-toolbar > div:last-child >
button[data-r26-new-activity]:active:not(:disabled),
html body.audit-phase4.authenticated #admin-service-view#admin-service-view
[data-r26-panel="crm"].r26-panel .r26-toolbar > div:last-child >
button[data-r26-new-opportunity]:active:not(:disabled){
  background:var(--m6232-red-active)!important;
  border-color:var(--m6232-red-active)!important;
}

/* Alta B2B: CTA principal rojo también en la pantalla pública/no autenticada. */
html body #register-form #register-submit.btn-primary.auth-submit{
  background:var(--m6232-red)!important;
  background-color:var(--m6232-red)!important;
  border:1px solid var(--m6232-red)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html body #register-form #register-submit.btn-primary.auth-submit:hover:not(:disabled){
  background:var(--m6232-red-hover)!important;
  border-color:var(--m6232-red-hover)!important;
}
html body #register-form #register-submit.btn-primary.auth-submit:active:not(:disabled){
  background:var(--m6232-red-active)!important;
  border-color:var(--m6232-red-active)!important;
}

/* Buscador PVP: la X explícita usa exactamente el mismo icono/contorno que la X común. */
#pvp-clear{
  width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;
  padding:0!important;
  border:1px solid var(--m6232-line)!important;
  border-radius:6px!important;
  background-color:var(--m6232-x-bg)!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:12px 12px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%23385477' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")!important;
  color:transparent!important;
  font-size:0!important;
  line-height:1!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
}
#pvp-clear::before,#pvp-clear::after{content:none!important;display:none!important}
#pvp-clear.hidden{display:none!important}
#pvp-clear:hover{background-color:var(--m6232-x-hover)!important}

/* Seguridad: los tres botones son secundarios, sin negrita. */
#enterprise-security-card .enterprise-inline-actions > button{
  font-weight:400!important;
  font-synthesis:none!important;
}

/* Usuarios internos: texto de los permisos seleccionables sin negrita. */
#admin-staff-list .staff-card .permission-switch-copy strong,
#admin-staff-editor .permission-switch-copy strong{
  font-weight:400!important;
  font-synthesis:none!important;
}

/* Guardar permisos: secundario blanco con el borde normal del sistema. */
#admin-staff-list .staff-card button[data-staff-save]{
  box-sizing:border-box!important;
  background:#fff!important;
  background-color:#fff!important;
  color:var(--m6232-ink)!important;
  border:1px solid var(--m6232-line)!important;
  border-radius:10px!important;
  box-shadow:none!important;
  font-weight:500!important;
  font-synthesis:none!important;
}
#admin-staff-list .staff-card button[data-staff-save]:hover:not(:disabled){
  background:#f6f8fa!important;
  border-color:#aeb9ca!important;
}

/* No se introducen anchos de panel: sólo adaptación natural de las acciones. */
@media(max-width:760px){
  #admin-service-view [data-r26-panel="crm"] .r26-toolbar > div:last-child{
    display:flex!important;
    gap:10px!important;
    flex-wrap:wrap!important;
  }
  #admin-service-view [data-r26-panel="crm"] .r26-toolbar > div:last-child >
  button[data-r26-new-activity],
  #admin-service-view [data-r26-panel="crm"] .r26-toolbar > div:last-child >
  button[data-r26-new-opportunity]{
    flex:1 1 150px!important;
    min-width:0!important;
  }
}


/* ===== assets/m719624-typography-system.css ===== */
/* YANMAR Web M7.19.6.24 — Canonical Typography System
   Visual-only. No API, permissions, data, or business logic changes.
   Source: typography audit M7.19.6.23.2. This sheet is intentionally loaded LAST.
*/

:root{
  --yt-font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --yt-ink:#1B1F24;
  --yt-muted:#5A6069;
  --yt-primary:#E23B33;
  --yt-primary-hover:#B8291F;
  --yt-green:#157A3D;
  --yt-border:#D9DEE6;
  --yt-surface:#F5F6F8;
  --yt-card:#FFFFFF;

  --yt-fs-h1:28px;
  --yt-fs-h2:20px;
  --yt-fs-h3:15px;
  --yt-fs-h4:14px;
  --yt-fs-body:14px;
  --yt-fs-control:14px;
  --yt-fs-nav:12.5px;
  --yt-fs-label:13px;
  --yt-fs-helper:12px;
  --yt-fs-eyebrow:11px;
  --yt-fs-table:13px;
  --yt-fs-table-head:11px;
  --yt-fs-button:13px;
  --yt-fs-badge:12px;
  --yt-fs-kpi:20px;

  --yt-fw-regular:400;
  --yt-fw-medium:500;
  --yt-fw-semibold:600;
  --yt-fw-bold:700;
  --yt-fw-eyebrow:800;
}

/* 1. Global family and readable default. */
html,body,
button,input,select,textarea,optgroup,option{
  font-family:var(--yt-font-ui)!important;
}
body{
  font-size:var(--yt-fs-body)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.5!important;
  color:var(--yt-ink)!important;
}

/* 2. Semantic headings. */
:is(.hero,.admin-page-heading,.orders-page-header,.operations-heading,.settings-page-heading) h1,
main.container.protected-content h1{
  font-size:var(--yt-fs-h1)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.15!important;
  color:var(--yt-ink)!important;
  letter-spacing:0!important;
}
main.container.protected-content h2,
.auth-card h2,
.purchase-section h2,
.settings-extra-card h2{
  font-size:var(--yt-fs-h2)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.25!important;
  color:var(--yt-ink)!important;
  letter-spacing:0!important;
}
main.container.protected-content h3,
.auth-card h3,
.profile-section-title h3,
.client-360-head h3{
  font-size:var(--yt-fs-h3)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
  color:var(--yt-ink)!important;
  letter-spacing:0!important;
}
main.container.protected-content h4,
.auth-card h4{
  font-size:var(--yt-fs-h4)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.35!important;
  color:var(--yt-ink)!important;
}

/* 3. Green eyebrow = one identity everywhere. */
.eyebrow,
#admin-articles-view .eyebrow,
#article-search-view .eyebrow,
#article-import-view .eyebrow,
#article-catalog-view .eyebrow{
  font-size:var(--yt-fs-eyebrow)!important;
  font-weight:var(--yt-fw-eyebrow)!important;
  line-height:1.20!important;
  color:var(--yt-green)!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

/* 4. Body, descriptions and helper/meta copy. */
main.container.protected-content :is(p,.body-copy),
.auth-card p,
.home-section-head p,
.orders-page-header p,
.admin-page-heading p,
.budget-section-head p,
.purchase-section header p,
.r26-card p{
  font-size:var(--yt-fs-body)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.50!important;
}
:is(.muted,.m719-subtle,.suggestion-note,.orders-filter-caption,.article-search-summary,.article-chatgpt-copy-status){
  color:var(--yt-muted)!important;
  font-weight:var(--yt-fw-regular)!important;
}
small,
.helper,
.help,
.hint,
.meta,
.field-help,
.form-help,
.scanner-camera-status,
.permissions-live-note,
.enterprise-doc-shared-note{
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.45!important;
  color:var(--yt-muted)!important;
}

/* 5. Form system. */
label{
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
  color:var(--yt-ink)!important;
}
input,select,textarea{
  font-size:var(--yt-fs-control)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.40!important;
  color:var(--yt-ink)!important;
}
input::placeholder,textarea::placeholder{
  color:var(--yt-muted)!important;
  font-weight:var(--yt-fw-regular)!important;
  opacity:.9!important;
}
select option{
  font-size:var(--yt-fs-control)!important;
  font-weight:var(--yt-fw-regular)!important;
}

/* Toggle/permission labels: state is communicated by the switch, never by bold text. */
:is(.permission-switch,.cart-order-type-option,.menu-visibility-item){
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-medium)!important;
}
:is(.permission-switch-copy,.order-type-copy) strong,
#admin-staff-list .staff-card .permission-switch-copy strong,
#admin-staff-editor .permission-switch-copy strong{
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.30!important;
}
:is(.permission-switch-copy,.order-type-copy) small{
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-regular)!important;
}

/* 6. Main navigation: same weight active/inactive, state via background/color. */
#main-tool-tabs.tool-tabs .tool-tab,
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden){
  font-size:var(--yt-fs-nav)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.20!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
#main-tool-tabs.tool-tabs .tool-tab.active,
#main-tool-tabs.tool-tabs .tool-tab[aria-selected="true"]{
  font-weight:var(--yt-fw-medium)!important;
}
.mobile-main-menu-toggle,
.mobile-main-menu-toggle strong,
#mobile-main-menu-current{
  font-size:var(--yt-fs-nav)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.20!important;
}

/* 7. All module/sub navigation consumes one role. */
main.container.protected-content :is(
  .module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,
  .article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav
) button,
main.container.protected-content [data-article-subtab],
main.container.protected-content [data-purchase-subtab],
main.container.protected-content [data-settings-subtab],
main.container.protected-content [data-budget-subtab]{
  font-size:var(--yt-fs-nav)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.20!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
main.container.protected-content :is(
  .module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,
  .article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav
) button.active,
main.container.protected-content :is(
  .module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,
  .article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav
) button[aria-selected="true"]{
  font-weight:var(--yt-fw-medium)!important;
}

/* 8. Buttons: one operational scale. */
button,
.btn-primary,.btn-secondary,.btn-ghost,.btn-danger-soft,.btn-icon,
.m719-btn,.auth-submit,.auth-link-button,.password-toggle,
.backup-restore-file,.btn-whatsapp,.btn-order-submit{
  font-size:var(--yt-fs-button)!important;
  line-height:1!important;
  letter-spacing:0!important;
}
:is(.btn-secondary,.btn-ghost,.btn-icon,.auth-link-button,.password-toggle,.backup-restore-file),
#enterprise-security-card .enterprise-inline-actions>button{
  font-weight:var(--yt-fw-medium)!important;
}
:is(.btn-primary,.auth-submit,.btn-order-submit,.m719-btn.main,.btn-danger-soft),
button[data-r26-new-activity],button[data-r26-new-opportunity]{
  font-weight:var(--yt-fw-semibold)!important;
}
.btn-primary,.auth-submit,.m719-btn.main,
button[data-r26-new-activity],button[data-r26-new-opportunity],
#register-form #register-submit.btn-primary.auth-submit{
  background:var(--yt-primary)!important;
  border-color:var(--yt-primary)!important;
  color:#fff!important;
}
.btn-primary:hover:not(:disabled),.auth-submit:hover:not(:disabled),.m719-btn.main:hover:not(:disabled),
button[data-r26-new-activity]:hover:not(:disabled),button[data-r26-new-opportunity]:hover:not(:disabled),
#register-form #register-submit.btn-primary.auth-submit:hover:not(:disabled){
  background:var(--yt-primary-hover)!important;
  border-color:var(--yt-primary-hover)!important;
}

/* 9. Tables and list-like data. */
table th,
.article-catalog-table th,
.r26-table-wrap th{
  font-size:var(--yt-fs-table-head)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.20!important;
  color:var(--yt-ink)!important;
}
table td,
.article-catalog-table td,
.r26-table-wrap td{
  font-size:var(--yt-fs-table)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.40!important;
  color:var(--yt-ink)!important;
}

/* 10. References / result rows / autocomplete hierarchy. */
:is(.home-promo-suggestions,.pvp-suggestions,.stock-search-results,.article-search-suggestions) strong,
[data-search-suggestion] strong,
[data-article-suggestion] strong{
  font-size:13px!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
}
:is(.home-promo-suggestions,.pvp-suggestions,.stock-search-results,.article-search-suggestions) small,
[data-search-suggestion] small,
[data-article-suggestion] small{
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.40!important;
  color:var(--yt-muted)!important;
}

/* 11. KPI = number + label + optional helper. */
:is(.admin-stat,.employee-kpi,.crm-stat,.r26-kpi,.purchase-kpis article,.operations-kpis article,.enterprise-kpis article) strong{
  font-size:var(--yt-fs-kpi)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.15!important;
  color:var(--yt-ink)!important;
}
:is(.admin-stat,.employee-kpi,.crm-stat,.r26-kpi,.purchase-kpis article,.operations-kpis article,.enterprise-kpis article)>span{
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.30!important;
  color:var(--yt-muted)!important;
}
:is(.admin-stat,.employee-kpi,.crm-stat,.r26-kpi,.purchase-kpis article,.operations-kpis article,.enterprise-kpis article) small{
  font-size:11px!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.35!important;
  color:var(--yt-muted)!important;
}

/* 12. Status/badges: semantic color may vary, typography does not. */
:is(.status-badge,.order-status-pill,.quote-status,.permissions-summary-pill,.scanner-stock-badge,.status-active,.status-blocked){
  font-size:var(--yt-fs-badge)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.20!important;
}

/* 13. Account/topbar operational copy. */
:is(.account-toggle,.cart-toggle,.global-clock-copy,.account-menu button,.account-menu a){
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.20!important;
}
.global-clock-copy strong{
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-semibold)!important;
}

/* 14. Footer/version: never microtext. */
:is(.footer-inner,.footer-custom,.app-version,footer){
  font-size:11px!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.45!important;
}
:is(.footer-inner,.footer-custom,footer) a{
  font-weight:var(--yt-fw-medium)!important;
}

/* 15. Auth/public registration follows same semantic roles. */
.auth-heading,
.auth-card h1{
  font-size:var(--yt-fs-h1)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.15!important;
  color:var(--yt-ink)!important;
}
.auth-subheading{
  font-size:var(--yt-fs-h2)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.25!important;
  color:var(--yt-ink)!important;
}
.auth-help,.auth-card .auth-message{
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.45!important;
}

/* 16. Public quote: same family/weights, document-specific hierarchy preserved. */
body.quote-public{
  font-family:var(--yt-font-ui)!important;
  font-size:var(--yt-fs-body)!important;
  font-weight:var(--yt-fw-regular)!important;
  color:var(--yt-ink)!important;
}
.quote-public .brand strong{font-size:18px!important;font-weight:var(--yt-fw-bold)!important;line-height:1.25!important}
.quote-public .brand span,.quote-public .muted{font-size:var(--yt-fs-helper)!important;font-weight:var(--yt-fw-regular)!important;color:var(--yt-muted)!important}
.quote-public .doc h1{font-size:22px!important;font-weight:var(--yt-fw-bold)!important;line-height:1.15!important;color:var(--yt-ink)!important}
.quote-public .doc strong{font-size:15px!important;font-weight:var(--yt-fw-semibold)!important}
.quote-public .box span{font-size:11px!important;font-weight:var(--yt-fw-bold)!important;line-height:1.2!important;color:var(--yt-muted)!important}
.quote-public .box strong{font-size:14px!important;font-weight:var(--yt-fw-semibold)!important;line-height:1.4!important}
.quote-public .lines th{font-size:11px!important;font-weight:var(--yt-fw-bold)!important;line-height:1.2!important}
.quote-public .lines td{font-size:13px!important;font-weight:var(--yt-fw-regular)!important;line-height:1.4!important}
.quote-public .totals div{font-size:13px!important;font-weight:var(--yt-fw-regular)!important}
.quote-public .totals .grand{font-size:17px!important;font-weight:var(--yt-fw-bold)!important}
.quote-public .actions button{font-size:13px!important;font-weight:var(--yt-fw-medium)!important;line-height:1!important}
.quote-public .actions .accept{font-weight:var(--yt-fw-semibold)!important}
.quote-public .status{font-size:var(--yt-fs-badge)!important;font-weight:var(--yt-fw-semibold)!important;line-height:1.2!important}
.quote-public .message{font-size:var(--yt-fs-helper)!important;font-weight:var(--yt-fw-medium)!important;line-height:1.45!important}
.quote-public .footer{font-size:11px!important;font-weight:var(--yt-fw-regular)!important;line-height:1.45!important;color:var(--yt-muted)!important}

/* 17. Responsive scale: layout may change, operational text remains readable. */
@media(max-width:767px){
  :root{
    --yt-fs-h1:24px;
    --yt-fs-h2:18px;
    --yt-fs-h3:14px;
    --yt-fs-nav:12px;
  }
}
@media(min-width:768px) and (max-width:1023px){
  :root{
    --yt-fs-h1:26px;
    --yt-fs-h2:19px;
    --yt-fs-nav:12.5px;
  }
}
@media(min-width:1800px){
  :root{--yt-fs-h1:30px}
}

/* 18. Role neutrality: profile controls visibility/permission, not type scale. */
body:is(.role-admin,.role-staff,.role-client) :is(
  h1,h2,h3,h4,.eyebrow,label,input,select,textarea,
  .tool-tab,.module-subnav button,.settings-subnav button,.r26-subnav button,
  .article-subnav button,.purchase-subnav button,.order-workspace-subnav button
){
  font-family:var(--yt-font-ui)!important;
}

/* 19. Specificity bridge over legacy visual layers.
   Kept in this canonical file so future debt retirement can remove it together. */
body.authenticated main.container.protected-content>.tab-view :is(
  .pvp-hero,.hero,.admin-page-heading,.admin-header,.orders-page-header,.r26-page-header,.r26-hero,.operations-heading
) h1,
body.authenticated main.container.protected-content>.tab-view>h1{
  font-size:var(--yt-fs-h1)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.15!important;
  letter-spacing:0!important;
}
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.tool-tab:not(.hidden):not([hidden]),
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .y66-more-panel>.tool-tab:not(.hidden):not([hidden]),
main.container.protected-content>#main-tool-tabs.tool-tabs .tool-tab:not(.hidden):not([hidden]){
  font-size:var(--yt-fs-nav)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.20!important;
  letter-spacing:0!important;
}
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.tool-tab.active:not(.hidden):not([hidden]),
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.tool-tab[aria-selected="true"]:not(.hidden):not([hidden]){
  font-weight:var(--yt-fw-medium)!important;
}
body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>button.tool-tab:not(.hidden):not([hidden]){
  font-size:var(--yt-fs-nav)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.20!important;
  letter-spacing:0!important;
}

/* 20. Legacy-specific exceptions normalized to canonical semantic roles. */
body.authenticated main.container.protected-content label:not(.permission-switch):not(.cart-order-type-option):not(.menu-visibility-item):not(.backup-restore-file){
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
}
body.authenticated main.container.protected-content :is(input,select,textarea){
  font-size:var(--yt-fs-control)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.40!important;
}
body.authenticated main.container.protected-content input[type="file"]{
  font-size:var(--yt-fs-control)!important;
  font-weight:var(--yt-fw-regular)!important;
}
body.authenticated main.container.protected-content button.btn-primary{
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1!important;
}
body.authenticated main.container.protected-content button.btn-secondary{
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1!important;
}
body.authenticated main.container.protected-content nav.module-subnav button,
body.authenticated #admin-settings-view nav.settings-subnav button,
body.authenticated #admin-articles-view nav.article-subnav button,
body.authenticated #admin-service-view nav.r26-subnav button,
body.authenticated #admin-purchases-view nav.purchase-subnav button{
  font-size:var(--yt-fs-nav)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.20!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
body.authenticated main.container.protected-content nav.module-subnav button.active,
body.authenticated #admin-settings-view nav.settings-subnav button.active,
body.authenticated #admin-articles-view nav.article-subnav button.active,
body.authenticated #admin-service-view nav.r26-subnav button.active,
body.authenticated #admin-purchases-view nav.purchase-subnav button.active{
  font-weight:var(--yt-fw-medium)!important;
}
body.authenticated main.container.protected-content table th{
  font-size:var(--yt-fs-table-head)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.20!important;
}
body.authenticated main.container.protected-content table td{
  font-size:var(--yt-fs-table)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.40!important;
}

/* Artículos had page-title styling attached to H2 and section titles by historical patches. */
body.authenticated #admin-articles-view .admin-page-heading h1,
body.authenticated #admin-articles-view #article-stock-panel>.admin-page-heading h1{
  font-size:var(--yt-fs-h1)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.15!important;
  letter-spacing:0!important;
}
body.authenticated #admin-articles-view :is(.article-import-card,.article-catalog-browser-head,.article-editor-section-head,.article-stock-section-head) h2,
body.authenticated #admin-articles-view h2{
  font-size:var(--yt-fs-h2)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.25!important;
  letter-spacing:0!important;
}
body.authenticated #admin-articles-view h3{
  font-size:var(--yt-fs-h3)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
}

/* 21. Temporary specificity guard.
   The legacy tree contains ID-heavy !important rules. The impossible-ID :not()
   raises only this canonical bridge above them; it is removed in debt-retirement T6. */
body.authenticated main.container.protected-content label:not(.permission-switch):not(.cart-order-type-option):not(.menu-visibility-item):not(.backup-restore-file):not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
  color:var(--yt-ink)!important;
}
body.authenticated main.container.protected-content :is(input,select,textarea):not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-control)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.40!important;
  color:var(--yt-ink)!important;
}
body.authenticated main.container.protected-content button.btn-primary:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1!important;
  color:#fff!important;
  background-color:var(--yt-primary)!important;
  border-color:var(--yt-primary)!important;
}
body.authenticated main.container.protected-content button.btn-secondary:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1!important;
  color:var(--yt-ink)!important;
}
body.authenticated main.container.protected-content table th:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-table-head)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.20!important;
  color:var(--yt-ink)!important;
}

/* 22. Operational microcopy and KPI cleanup: no readable UI text below 11px. */
body.authenticated main.container.protected-content .order-filter-card:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c)>span{
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.30!important;
}
body.authenticated main.container.protected-content .order-filter-card:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c)>strong{
  font-size:var(--yt-fs-kpi)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.15!important;
}
body.authenticated main.container.protected-content .order-filter-card:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c)>small{
  font-size:11px!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.35!important;
}
body.authenticated main.container.protected-content :is(
  .orders-active-filters,.orders-filter-caption,.article-admin-search-status,
  .stock-selected-count,.budget-client-summary
):not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.45!important;
  color:var(--yt-muted)!important;
}
body.authenticated main.container.protected-content :is(.budget-draft-state,.budget-lines-count,.article-admin-only-badge-rc72):not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-badge)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.20!important;
}
body.authenticated #admin-articles-view :is(.field-title,.article-stock-field-rc72>span,.article-stock-action-rc72>span):not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
  color:var(--yt-ink)!important;
  text-transform:none!important;
}
body.authenticated #admin-settings-view .enterprise-settings-form label>strong:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c),
body.authenticated #admin-settings-view .enterprise-settings-form label>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
  color:var(--yt-ink)!important;
}
body.authenticated #admin-settings-view .backup-restore-file>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1!important;
}
body.authenticated #admin-purchases-view .purchase-dashboard-help article>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-body)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.50!important;
  color:var(--yt-muted)!important;
}
body.authenticated main.container.protected-content #scanner-article-stock:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-kpi)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.15!important;
}
body.authenticated main.container.protected-content :is(#pvp-qty-minus,#pvp-qty-plus):not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1!important;
}
body.authenticated #admin-dashboard-view .m718-bulk-grid label>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
  color:var(--yt-ink)!important;
}
body.authenticated main.container.protected-content #admin-client-result-count:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.30!important;
}
body.authenticated #admin-articles-view .stock-movements-card>summary:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-h4)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.35!important;
  color:var(--yt-ink)!important;
}
body.authenticated main.container.protected-content .muted:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-body)!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.50!important;
  color:var(--yt-muted)!important;
}
body.authenticated main.container.protected-content .orders-update-card:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c)>span{
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.30!important;
  color:var(--yt-muted)!important;
}
body.authenticated main.container.protected-content .orders-update-card:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c)>strong{
  font-size:var(--yt-fs-kpi)!important;
  font-weight:var(--yt-fw-bold)!important;
  line-height:1.15!important;
  color:var(--yt-ink)!important;
}
body.authenticated main.container.protected-content .orders-update-card:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c)>small{
  font-size:11px!important;
  font-weight:var(--yt-fw-regular)!important;
  line-height:1.35!important;
  color:var(--yt-muted)!important;
}

/* 23. Remaining legacy 850/900/1000 weights mapped into the allowed scale. */
body.authenticated main.container.protected-content .home-showcase-caption>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-eyebrow)!important;
  font-weight:var(--yt-fw-eyebrow)!important;
  line-height:1.20!important;
}
body.authenticated main.container.protected-content .scanner-create-divider>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-helper)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1.30!important;
}
body.authenticated #admin-service-view :is(.r26-filter-row,.r26-form-grid) label>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c),
body.authenticated #admin-settings-view .series-selector-bar label>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-label)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1.30!important;
  color:var(--yt-ink)!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
body.authenticated main.container.protected-content .suggestions-icon:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){font-weight:var(--yt-fw-eyebrow)!important}
body.authenticated main.container.protected-content .article-default-placeholder>span:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){font-weight:var(--yt-fw-eyebrow)!important}
body.authenticated #admin-articles-view .replacement-arrow:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){font-weight:var(--yt-fw-bold)!important}

/* 24. Authentication/cart controls live outside protected <main>; normalize them too. */
body :is(.auth-card,.auth-shell) button.btn-primary.auth-submit:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c),
body #register-form #register-submit.btn-primary.auth-submit:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1!important;
  color:#fff!important;
  background-color:var(--yt-primary)!important;
  border-color:var(--yt-primary)!important;
}
body :is(.auth-card,.auth-shell) button.btn-primary.auth-submit:hover:not(:disabled),
body #register-form #register-submit.btn-primary.auth-submit:hover:not(:disabled){
  background-color:var(--yt-primary-hover)!important;
  border-color:var(--yt-primary-hover)!important;
}
body #cart-overlay button.btn-secondary:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-medium)!important;
  line-height:1!important;
  color:var(--yt-ink)!important;
}
body button.btn-primary:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c){
  font-size:var(--yt-fs-button)!important;
  font-weight:var(--yt-fw-semibold)!important;
  line-height:1!important;
  color:#fff!important;
  background-color:var(--yt-primary)!important;
  border-color:var(--yt-primary)!important;
}
body button.btn-primary:not(#yt-canonical-a#yt-canonical-b#yt-canonical-c):hover:not(:disabled){
  background-color:var(--yt-primary-hover)!important;
  border-color:var(--yt-primary-hover)!important;
}


/* ===== assets/m719625-permissions-promos-ui.css ===== */
/* YANMAR Web M7.19.6.25 — permissions, promotions and UI coherence. Loaded LAST. */
:root{--yt-fw-regular:400;--yt-fw-medium:500;--yt-fw-semibold:600;--yt-fw-bold:700;--yt-fw-eyebrow:800}

/* Promociones: acciones editables y consistentes. */
#home-promo-admin-list article{align-items:center!important}
#home-promo-admin-list .home-promo-admin-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}
#home-promo-add+#home-promo-cancel-edit{margin-left:8px!important}
#home-promo-cancel-edit.hidden{display:none!important}

/* Empleados: separar los chips del estado vacío/listado de OT. */
.employee-section .employee-hours + .employee-labor-list{margin-top:14px!important}

/* Presupuesto manual: todos los inputs arrancan en la misma línea vertical. */
#admin-budgets-view .budget-line.budget-line-manual{align-items:start!important}
#admin-budgets-view .budget-line.budget-line-manual>.budget-line-mini{align-self:start!important}
#admin-budgets-view .budget-line.budget-line-manual>.budget-line-remove{align-self:start!important;margin-top:22px!important}
#admin-budgets-view .budget-line-copy-manual label>span,
#admin-budgets-view .budget-line-mini>span{min-height:17px!important;display:flex!important;align-items:flex-end!important}

/* Botones rojos: texto siempre blanco independientemente de capas antiguas. */
body.authenticated main.container.protected-content #admin-article-import.btn-secondary:not(#yt625-a#yt625-b#yt625-c),
body.authenticated main.container.protected-content .m719-create-actions .m719-btn.main:not(#yt625-a#yt625-b#yt625-c),
body.authenticated main.container.protected-content [data-r26-new-engine].btn-primary:not(#yt625-a#yt625-b#yt625-c),
body.authenticated main.container.protected-content [data-r26-new-vessel].btn-primary:not(#yt625-a#yt625-b#yt625-c){color:#fff!important}

/* Lógica común de peso: estado/selección no se comunica con negrita accidental. */
body.authenticated main.container.protected-content :is(button,select,input,textarea){font-weight:var(--yt-fw-regular)!important}
body.authenticated main.container.protected-content :is(.tool-tab,.module-subnav button,.settings-subnav button,.article-subnav button,.purchase-subnav button,.r26-subnav button,.btn-secondary,.btn-ghost,.btn-icon){font-weight:var(--yt-fw-medium)!important}
body.authenticated main.container.protected-content :is(.btn-primary,.m719-btn.main,.btn-danger-soft,.status-badge,.quote-status,.order-status-pill){font-weight:var(--yt-fw-semibold)!important}
body.authenticated main.container.protected-content :is(label>span,.field-label){font-weight:var(--yt-fw-semibold)!important}
body.authenticated main.container.protected-content :is(.permission-switch,.permission-switch-copy,.permission-switch-copy strong){font-weight:var(--yt-fw-medium)!important}
body.authenticated main.container.protected-content :is(table th,.kpi-value,.admin-stat strong,.r26-kpi strong){font-weight:var(--yt-fw-bold)!important}
body.authenticated main.container.protected-content .eyebrow{font-weight:var(--yt-fw-eyebrow)!important}
body.authenticated main.container.protected-content button *{font-weight:inherit!important}

/* Permisos finos: la UI no ofrece controles que el servidor negará. */
body.staff-no-view-costs :is(#admin-article-cost,#admin-article-margin-summary,#admin-article-average-summary,.m719-article-cost-widget,#budget-margin-summary,#r26-cost-method,#r26-default-margin,#r26-inventory-settings-save){display:none!important}
body.staff-no-view-costs #admin-article-cost:where(input){display:none!important}
body.staff-no-view-costs label:has(>#admin-article-cost){display:none!important}
body.staff-no-view-costs #admin-alt-list [data-alt-price],
body.staff-no-view-costs #admin-alt-list [data-alt-discount]{display:none!important}
body.staff-no-view-costs #admin-alt-list label:has(>[data-alt-price]),
body.staff-no-view-costs #admin-alt-list label:has(>[data-alt-discount]){display:none!important}
body.staff-no-edit-prices #admin-article-pvp{pointer-events:none!important;background:#f3f4f6!important;color:#6b7280!important}
body.staff-no-inventory [data-article-subtab="stock"],
body.staff-no-inventory #admin-open-stock-manager,
body.staff-no-inventory label:has(>#admin-article-stock),
body.staff-no-inventory label:has(>#admin-article-min-stock),
body.staff-no-inventory label:has(>#admin-article-barcode),
body.staff-no-inventory label:has(>#admin-article-location){display:none!important}

@media(max-width:767px){
  #home-promo-admin-list article{align-items:flex-start!important;flex-direction:column!important}
  #home-promo-admin-list .home-promo-admin-actions{width:100%!important;justify-content:flex-end!important}
  #admin-budgets-view .budget-line.budget-line-manual>.budget-line-remove{margin-top:0!important;align-self:center!important}
}

/* Permisos combinados de Artículos/Stock */
body.staff-no-manage-articles [data-article-subtab="catalog"],
body.staff-no-manage-articles [data-article-subtab="replacements"],
body.staff-no-manage-articles #article-catalog-panel,
body.staff-no-manage-articles #article-replacements-panel,
body.staff-no-manage-articles #scanner-create-article{display:none!important}
body.staff-no-view-costs .r26-card:has(#r26-cost-method){display:none!important}


/* ===== assets/m7196251-promo-layout-button-weight-fix.css ===== */
/* YANMAR Web M7.19.6.25.1 — promo layout + button/weight regression fixes. Loaded LAST. */

/* 1. Productos destacados: recuperar la composición vertical original del formulario. */
body.authenticated #admin-settings-view .home-settings-promo-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:0!important;
}
body.authenticated #admin-settings-view .home-settings-promo-card > :is(.eyebrow,h2,.home-promo-search-wrap,.home-settings-inline,#home-promo-text,.home-promo-form-actions,#home-promo-admin-list){
  grid-column:1/-1!important;
  min-width:0!important;
}
body.authenticated #admin-settings-view .home-settings-promo-card > .eyebrow{margin:0 0 2px!important}
body.authenticated #admin-settings-view .home-settings-promo-card > h2{margin:2px 0 8px!important}
body.authenticated #admin-settings-view .home-settings-promo-card .home-promo-search-wrap{width:100%!important;margin:0!important}
body.authenticated #admin-settings-view .home-settings-promo-card #home-promo-search{width:100%!important;min-width:0!important}
body.authenticated #admin-settings-view .home-settings-promo-card .home-settings-inline{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 180px!important;
  gap:8px!important;
  width:100%!important;
  margin:9px 0!important;
}
body.authenticated #admin-settings-view .home-settings-promo-card #home-promo-text{width:100%!important;min-width:0!important}
body.authenticated #admin-settings-view .home-settings-promo-card .home-promo-form-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin-top:14px!important;
  width:100%!important;
}
body.authenticated #admin-settings-view .home-settings-promo-card .home-promo-form-actions > button{
  margin:0!important;
  width:auto!important;
  flex:0 0 auto!important;
}
body.authenticated #admin-settings-view .home-settings-promo-card #home-promo-admin-list{
  display:grid!important;
  gap:7px!important;
  margin-top:12px!important;
  width:100%!important;
}
body.authenticated #admin-settings-view #home-promo-admin-list article{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
body.authenticated #admin-settings-view #home-promo-admin-list article > div:first-child{
  min-width:0!important;
  flex:1 1 auto!important;
}
body.authenticated #admin-settings-view #home-promo-admin-list article :is(strong,small){
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.authenticated #admin-settings-view #home-promo-admin-list .home-promo-admin-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  width:auto!important;
}
/* Modificar y Eliminar: misma geometría, tamaño y peso visual. */
body.authenticated #admin-settings-view #home-promo-admin-list :is([data-home-edit-promo],[data-home-remove-promo]){
  width:82px!important;
  min-width:82px!important;
  max-width:82px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 10px!important;
  border:1px solid #d6dde6!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#26313b!important;
  box-shadow:none!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.authenticated #admin-settings-view #home-promo-admin-list :is([data-home-edit-promo],[data-home-remove-promo]):hover:not(:disabled){
  border-color:#bfc8d2!important;
  background:#f7f9fb!important;
  color:#26313b!important;
}

/* 2. Embarcación: los dos accesos rojos deben mantener texto blanco. */
html body.authenticated main.container.protected-content #m719-my-fleet#m719-my-fleet #m719-add-vessel#m719-add-vessel,
html body.authenticated main.container.protected-content #admin-service-view#admin-service-view [data-r26-panel="fleet"][data-r26-panel="fleet"] button[data-r26-new-vessel][data-r26-new-vessel],
html body.authenticated main.container.protected-content button[data-m719-add-vessel][data-m719-add-vessel]{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.authenticated main.container.protected-content #m719-my-fleet#m719-my-fleet #m719-add-vessel#m719-add-vessel *,
html body.authenticated main.container.protected-content #admin-service-view#admin-service-view [data-r26-panel="fleet"][data-r26-panel="fleet"] button[data-r26-new-vessel][data-r26-new-vessel] *,
html body.authenticated main.container.protected-content button[data-m719-add-vessel][data-m719-add-vessel] *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* 3. Configuración > Acceso y funciones: opción seleccionable no usa negrita como estado. */
body.authenticated #admin-settings-view .menu-visibility-option,
body.authenticated #admin-settings-view .menu-visibility-copy,
body.authenticated #admin-settings-view .menu-visibility-copy strong{
  font-weight:500!important;
}
body.authenticated #admin-settings-view .menu-visibility-copy small{font-weight:400!important}

/* 4. Servicio / CRM: botones de navegación y acciones sin negrita accidental. */
html body.authenticated main.container.protected-content #admin-service-view#admin-service-view :is(.r26-subnav,.r26-panel) button:not(#yt6251-a#yt6251-b#yt6251-c){
  font-weight:500!important;
}
html body.authenticated main.container.protected-content #admin-service-view#admin-service-view :is(.r26-subnav,.r26-panel) button:not(#yt6251-a#yt6251-b#yt6251-c) *{
  font-weight:inherit!important;
}

/* 5. Responsive: conservar lectura completa y no desordenar la lista. */
@media(max-width:767px){
  body.authenticated #admin-settings-view .home-settings-promo-card .home-settings-inline{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.authenticated #admin-settings-view #home-promo-admin-list article{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  body.authenticated #admin-settings-view #home-promo-admin-list .home-promo-admin-actions{
    width:100%!important;
    justify-content:flex-end!important;
  }
  body.authenticated #admin-settings-view .home-settings-promo-card .home-promo-form-actions{
    flex-wrap:wrap!important;
  }
}


/* ===== assets/m7196252-fleet-button-color-consistency.css ===== */
/* M7.19.6.25.2 — Fleet button color consistency
   Scope: only primary create actions in Client > Mi flota and Admin > Servicio/CRM > Flota.
   Both actions use one canonical red and white text in every role/resolution. */
:root{--m7196252-primary-red:#E23B33;--m7196252-primary-red-hover:#C9342D;--m7196252-primary-red-active:#AF2D28}

html body.audit-phase4.authenticated main.container.protected-content #m719-my-fleet#m719-my-fleet .m719-create-actions #m719-add-vessel#m719-add-vessel,
html body.audit-phase4.authenticated main.container.protected-content #m719-my-fleet#m719-my-fleet .m719-create-actions #m719-add-engine#m719-add-engine,
html body.audit-phase4.authenticated main.container.protected-content #admin-service-view#admin-service-view [data-r26-panel="fleet"][data-r26-panel="fleet"] .r26-toolbar button[data-r26-new-vessel][data-r26-new-vessel],
html body.audit-phase4.authenticated main.container.protected-content #admin-service-view#admin-service-view [data-r26-panel="fleet"][data-r26-panel="fleet"] .r26-toolbar button[data-r26-new-engine][data-r26-new-engine]{
  background:var(--m7196252-primary-red)!important;
  border-color:var(--m7196252-primary-red)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:none!important;
}

html body.audit-phase4.authenticated main.container.protected-content #m719-my-fleet#m719-my-fleet .m719-create-actions :is(#m719-add-vessel,#m719-add-engine):hover:not(:disabled),
html body.audit-phase4.authenticated main.container.protected-content #admin-service-view#admin-service-view [data-r26-panel="fleet"][data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]):hover:not(:disabled){
  background:var(--m7196252-primary-red-hover)!important;
  border-color:var(--m7196252-primary-red-hover)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

html body.audit-phase4.authenticated main.container.protected-content #m719-my-fleet#m719-my-fleet .m719-create-actions :is(#m719-add-vessel,#m719-add-engine):active:not(:disabled),
html body.audit-phase4.authenticated main.container.protected-content #m719-my-fleet#m719-my-fleet .m719-create-actions :is(#m719-add-vessel,#m719-add-engine).m719-create-selected,
html body.audit-phase4.authenticated main.container.protected-content #admin-service-view#admin-service-view [data-r26-panel="fleet"][data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]):active:not(:disabled),
html body.audit-phase4.authenticated main.container.protected-content #admin-service-view#admin-service-view [data-r26-panel="fleet"][data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]).m719-create-selected{
  background:var(--m7196252-primary-red-active)!important;
  border-color:var(--m7196252-primary-red-active)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

html body.audit-phase4.authenticated main.container.protected-content #m719-my-fleet#m719-my-fleet .m719-create-actions :is(#m719-add-vessel,#m719-add-engine):focus-visible,
html body.audit-phase4.authenticated main.container.protected-content #admin-service-view#admin-service-view [data-r26-panel="fleet"][data-r26-panel="fleet"] .r26-toolbar button:is([data-r26-new-vessel],[data-r26-new-engine]):focus-visible{
  outline:2px solid var(--m7196252-primary-red)!important;
  outline-offset:2px!important;
}


/* ===== assets/m7196253-vertical-alignment-fix.css ===== */
/* M7.19.6.25.3 — Alineación vertical puntual.
   Solo Hoy/Mi trabajo e Instalación manual. Sin cambios funcionales. */

/* Hoy / Mi trabajo: selector Responsable, Asignar y acciones en un único eje. */
body.authenticated #work-center-list .operations-item-actions{
  align-items:flex-end!important;
}
body.authenticated #work-center-list .wc-assign{
  align-items:end!important;
}
body.authenticated #work-center-list .wc-assign select,
body.authenticated #work-center-list .wc-assign button,
body.authenticated #work-center-list .operations-item-actions > button{
  box-sizing:border-box!important;
  min-height:42px!important;
  height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Instalación manual: selector nativo de archivo y botón comparten centro vertical. */
#enterprise-update-settings-card #ent-update-file,
#enterprise-update-settings-card #ent-update-manual{
  align-self:center!important;
}
#enterprise-update-settings-card #ent-update-manual{
  min-height:42px!important;
  height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

@media (max-width:900px){
  body.authenticated #work-center-list .operations-item-actions{align-items:flex-end!important}
}
@media (max-width:600px){
  body.authenticated #work-center-list .wc-assign select,
  body.authenticated #work-center-list .wc-assign button,
  body.authenticated #work-center-list .operations-item-actions > button{min-height:42px!important;height:42px!important}
}


/* ===== assets/landing.css ===== */
/* M7.19.6.25.8.2 — Talleres Carper landing final tweaks */
:root{--clp-accent:#ef233c;--clp-dark:#0a1723;--clp-text:#0c0f14;--clp-surface:#fff;--clp-muted:#666e78;--clp-line:#e8ebef;--clp-soft:#f6f7f8}
body.landing-loading:not(.authenticated) #auth-gate{visibility:hidden!important;opacity:0!important}
#public-carper-landing{display:none}
body.auth-guest.landing-enabled:not(.landing-auth-open) #auth-gate{display:none!important}
body.auth-guest.landing-enabled:not(.landing-auth-open) #public-carper-landing{display:block}
body.auth-guest.landing-enabled:not(.landing-auth-open) #global-clock{display:none!important}
body.authenticated #public-carper-landing{display:none!important}
body.authenticated.landing-authenticated-view #public-carper-landing,body.landing-preview.authenticated #public-carper-landing{display:block!important}
body.authenticated.landing-authenticated-view .protected-content,body.authenticated.landing-authenticated-view #global-clock,body.landing-preview.authenticated .protected-content,body.landing-preview.authenticated #global-clock{display:none!important}
body.authenticated.landing-authenticated-view,body.landing-preview.authenticated{overflow:auto!important;background:#fff!important}
.clp-root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--clp-text);background:var(--clp-surface);min-height:100vh;line-height:1.45;-webkit-font-smoothing:antialiased}
.clp-root *{box-sizing:border-box}.clp-root img{max-width:100%;display:block}.clp-wrap{width:min(1180px,calc(100% - 56px));margin:0 auto}.clp-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;height:48px;padding:0 24px;border-radius:8px;border:1px solid transparent;text-decoration:none;font-weight:800;font-size:14px;cursor:pointer;transition:.18s ease;white-space:nowrap;line-height:1}.clp-btn-primary{background:var(--clp-accent);color:#fff;box-shadow:none}.clp-btn-primary:hover{filter:brightness(.96);transform:translateY(-1px)}.clp-btn-light{background:#fff;color:#111;border-color:#e0e4e9;box-shadow:0 5px 16px rgba(14,24,35,.06)}.clp-btn-light:hover{border-color:#c8ced6}.clp-arrow{font-size:18px;line-height:1}.clp-eyebrow{display:block;color:var(--clp-accent);font-size:10px;font-weight:900;letter-spacing:.29em;text-transform:uppercase;margin-bottom:8px}.clp-section-title{margin:0;font-size:clamp(29px,3vw,43px);line-height:1.06;letter-spacing:-.04em;font-weight:900}.clp-section-lead{color:#717781;max-width:650px;margin:9px auto 0;font-size:14px}
/* header: one line, no upper auth bar */
.clp-header{position:sticky;top:0;z-index:80;background:#fff;border-bottom:1px solid #f0f1f3}.clp-header-inner{height:72px;display:flex;align-items:center;gap:26px}.clp-brand-link{display:flex;align-items:center;flex:0 0 auto}.clp-logo{width:210px;height:58px;object-fit:contain;object-position:left center}.clp-nav{display:flex;align-items:center;justify-content:center;gap:26px;margin-left:auto}.clp-nav a{height:72px;display:flex;align-items:center;color:#14171c;text-decoration:none;font-size:12px;font-weight:720;position:relative;white-space:nowrap}.clp-nav a:hover,.clp-nav a.active{color:var(--clp-accent)}.clp-nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:15px;height:2px;background:var(--clp-accent)}.clp-header-actions{display:flex;align-items:center;gap:9px;position:relative}.clp-header-actions>.clp-btn{height:42px;padding:0 22px;border-radius:8px;min-width:164px}.clp-account-trigger{width:42px;height:42px;border:1px solid #e2e5ea;background:#fff;color:#111;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.clp-account-trigger svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}.clp-account-trigger:hover{border-color:#cbd0d7;color:var(--clp-accent)}.clp-account-menu{display:none;position:absolute;right:0;top:50px;width:184px;background:#fff;border:1px solid #e3e6eb;border-radius:10px;padding:6px;box-shadow:0 16px 38px rgba(11,19,28,.15);z-index:90}.clp-account-menu.open{display:block}.clp-account-menu button,.clp-account-menu a{width:100%;border:0;background:#fff;text-align:left;padding:10px 11px;border-radius:7px;color:#181c22;text-decoration:none;font:inherit;font-size:13px;font-weight:700;cursor:pointer;display:block}.clp-account-menu button:hover,.clp-account-menu a:hover{background:#f5f6f8;color:var(--clp-accent)}.clp-private-return{display:none!important}body.authenticated .clp-private-return{display:block!important}body.authenticated .clp-account-menu [data-clp-auth]{display:none!important}.clp-menu-toggle{display:none;border:1px solid #e3e6eb;background:#fff;border-radius:8px;width:42px;height:42px;font-size:19px;align-items:center;justify-content:center}
/* hero */
.clp-hero{position:relative;min-height:500px;display:flex;align-items:center;background:#dfe5ea center/cover no-repeat;overflow:hidden}.clp-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.95) 26%,rgba(255,255,255,.68) 44%,rgba(255,255,255,.12) 69%,rgba(8,18,28,.04) 100%)}.clp-hero-copy{position:relative;z-index:2;width:min(570px,55%);padding:58px 0 48px}.clp-hero h1{margin:0;font-size:clamp(50px,5vw,68px);line-height:.98;letter-spacing:-.055em;font-weight:950;max-width:560px}.clp-hero h1 span{display:block;color:var(--clp-accent)}.clp-hero p{font-size:16px;line-height:1.45;max-width:475px;margin:16px 0 22px;color:#222a33}.clp-hero-actions{display:flex;gap:12px;flex-wrap:wrap}.clp-dealer{margin-top:28px;width:245px;background:rgba(255,255,255,.94);padding:8px 12px;border-radius:4px}.clp-dealer img{width:100%;max-height:82px;object-fit:contain}
/* services */
.clp-services{padding:54px 0 46px;background:#fff}.clp-section-head{text-align:center;margin-bottom:24px}.clp-service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.clp-service-card{background:#fff;border:1px solid #e4e7eb;border-radius:7px;overflow:hidden;box-shadow:0 8px 24px rgba(19,28,38,.055)}.clp-service-photo{height:176px;overflow:hidden;background:#e9edf1}.clp-service-photo img{width:100%;height:100%;object-fit:cover}.clp-service-body{padding:14px 17px 18px;min-height:167px;position:relative}.clp-service-title-row{display:flex;align-items:flex-start;gap:9px}.clp-service-icon{width:30px;height:30px;flex:0 0 30px;color:var(--clp-accent);display:flex;align-items:center;justify-content:center}.clp-service-icon svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.clp-service-card h3{margin:0;font-size:18px;line-height:1.02;letter-spacing:-.02em;font-weight:900}.clp-service-card p{margin:10px 0 0 39px;color:#6b727c;font-size:12px;line-height:1.42;min-height:48px}.clp-service-more{margin:12px 0 0 39px;width:28px;height:28px;border-radius:50%;border:1px solid #cfd4da;display:flex;align-items:center;justify-content:center;font-weight:800;color:#111;font-size:14px}
/* brands */
.clp-brands{padding:25px 0 26px;border-top:1px solid #eef0f2;border-bottom:1px solid #e9ecef;background:#fff;text-align:center}.clp-brands-title{font-size:10px;letter-spacing:.30em;font-weight:900;color:var(--clp-accent);text-transform:uppercase;margin-bottom:16px}.clp-brands-row{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:24px}.clp-yanmar-logo{width:165px;max-height:54px;object-fit:contain;margin:0 auto}.clp-partner-brands{width:100%;max-height:70px;object-fit:contain;border-left:1px solid #d7dadd;padding-left:24px}
/* trust */
.clp-trust{position:relative;background:var(--clp-dark) center/cover no-repeat;color:#fff;padding:38px 0 42px}.clp-trust:before{content:"";position:absolute;inset:0;background:rgba(6,23,37,.70)}.clp-trust .clp-wrap{position:relative;z-index:2}.clp-trust-head{text-align:center}.clp-trust .clp-eyebrow{color:#fff;opacity:.82}.clp-trust .clp-section-title{font-size:clamp(28px,3vw,39px)}.clp-trust-grid{margin-top:24px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}.clp-trust-item{text-align:center;padding:0 17px;border-right:1px solid rgba(255,255,255,.19)}.clp-trust-item:last-child{border-right:0}.clp-trust-icon{width:48px;height:48px;border-radius:50%;background:var(--clp-accent);color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 11px}.clp-trust-icon svg{width:25px;height:25px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.clp-trust-item h3{margin:0 0 6px;font-size:15px;line-height:1.12;font-weight:900}.clp-trust-item p{margin:0;color:#e3e8ed;font-size:11.5px;line-height:1.36}
/* location */
.clp-location{padding:48px 0 50px;background:#fff}.clp-location-grid{display:grid;grid-template-columns:.72fr 1.28fr;gap:44px;align-items:stretch}.clp-location-copy{padding:4px 0}.clp-location-copy .clp-section-title{font-size:35px}.clp-location-copy>p{color:#626a74;font-size:13px;line-height:1.42;margin:10px 0 18px;max-width:420px}.clp-contact-list{display:grid;gap:8px;margin:0 0 18px}.clp-contact-row{display:grid;grid-template-columns:24px 1fr;gap:7px;align-items:start;font-size:13px}.clp-contact-row .clp-contact-icon{color:var(--clp-accent);display:flex;align-items:center;justify-content:center}.clp-contact-row svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9}.clp-contact-row a{color:#1e5fa8;text-decoration:none}.clp-map{min-height:315px;border:1px solid #dce2e7;border-radius:8px;overflow:hidden;background:#eaf0f2;box-shadow:0 12px 34px rgba(15,26,38,.11);position:relative;text-decoration:none;color:#111}.clp-map img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.clp-map:after{content:"Abrir en Google Maps ↗";position:absolute;left:16px;bottom:14px;background:#fff;color:#111;border-radius:7px;padding:9px 12px;box-shadow:0 7px 22px rgba(0,0,0,.14);font-weight:800;font-size:11px}.clp-map:hover:after{color:var(--clp-accent)}
/* footer */
.clp-footer{background:#07131f;color:#d8e0e8;padding:34px 0 15px}.clp-footer-grid{display:grid;grid-template-columns:1.1fr .9fr .45fr;gap:40px}.clp-footer-brand{display:flex;gap:24px;align-items:flex-start}.clp-footer-logo{width:190px;filter:brightness(0) invert(1);opacity:.95}.clp-footer p{font-size:12px;line-height:1.45;margin:0;max-width:310px}.clp-footer h4{color:#fff;margin:0 0 10px;font-size:11px;letter-spacing:.10em}.clp-footer a{color:#d8e0e8;text-decoration:none;font-size:12px;display:block;margin:4px 0}.clp-footer a:hover{color:#fff}.clp-footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:25px;padding-top:13px;display:flex;justify-content:space-between;gap:18px;font-size:10px;color:#95a2af}.clp-footer-links{display:flex;gap:12px;flex-wrap:wrap}.clp-footer-links a{display:inline;margin:0;font-size:10px;color:#95a2af}
.clp-back-auth{display:none;position:fixed;z-index:210;top:18px;left:18px;border:1px solid #dfe3e8;background:#fff;color:#20242b;border-radius:8px;padding:10px 14px;font-weight:750;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.1)}body.auth-guest.landing-enabled.landing-auth-open .clp-back-auth{display:block}.clp-preview-exit{display:none;position:fixed;z-index:250;right:18px;bottom:18px;background:#111827;color:#fff;border:0;border-radius:9px;padding:12px 16px;font-weight:750;box-shadow:0 10px 35px rgba(0,0,0,.25)}body.landing-preview .clp-preview-exit{display:block}
/* authenticated main menu return link */
#landing-carper-tab-button{white-space:nowrap}
/* Admin editor */
.clp-admin-panel .admin-page-heading{align-items:flex-start}.clp-admin-toolbar{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.clp-status-switch{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #e2e6eb;border-radius:10px;background:#fff;margin-bottom:18px}.clp-status-switch strong{display:block}.clp-status-switch small{display:block;color:#6f7782;margin-top:2px}.clp-toggle{margin-left:auto;width:48px;height:26px;border-radius:999px;background:#cbd1d8;border:0;padding:3px;cursor:pointer;transition:.2s}.clp-toggle span{display:block;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 2px 6px rgba(0,0,0,.18)}.clp-toggle.on{background:var(--clp-accent)}.clp-toggle.on span{transform:translateX(22px)}.clp-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.clp-admin-card{background:#fff;border:1px solid #e1e5ea;border-radius:11px;padding:19px}.clp-admin-card.wide{grid-column:1/-1}.clp-admin-card h2{margin:0 0 4px;font-size:18px}.clp-admin-card>p{margin:0 0 15px;color:#737b86;font-size:13px}.clp-admin-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.clp-admin-form .full{grid-column:1/-1}.clp-field{display:flex;flex-direction:column;gap:5px}.clp-field>span{font-weight:700;font-size:12px}.clp-field input,.clp-field textarea{width:100%;border:1px solid #d8dde4;background:#fff;border-radius:7px;padding:10px 11px;font:inherit;font-size:13px;color:#171b21}.clp-field textarea{min-height:78px;resize:vertical}.clp-field input[type=color]{padding:3px;height:42px}.clp-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650}.clp-image-editor{border:1px dashed #cfd5dd;border-radius:9px;padding:10px;background:#fafbfc}.clp-image-preview{height:118px;border-radius:7px;background:#e9edf1 center/cover no-repeat;margin-bottom:9px;border:1px solid #e2e5e9}.clp-image-actions{display:flex;gap:7px;align-items:center}.clp-image-actions input[type=file]{display:none}.clp-image-actions .btn-secondary{font-size:12px;padding:8px 10px}.clp-image-url{margin-top:8px}.clp-admin-message{margin-top:14px}.clp-service-admin,.clp-trust-admin{border-top:1px solid #edf0f2;padding-top:14px;margin-top:14px}.clp-service-admin:first-of-type,.clp-trust-admin:first-of-type{border-top:0;padding-top:0;margin-top:0}.clp-service-admin h3,.clp-trust-admin h3{font-size:13px;margin:0 0 9px}.clp-admin-section-toggle{margin-bottom:12px}.clp-admin-note{font-size:12px;color:#78818c;background:#f6f8fa;border-radius:8px;padding:10px 12px;margin-top:12px}
@media(max-width:1120px){.clp-header-inner{gap:15px}.clp-nav{gap:15px}.clp-logo{width:150px}.clp-nav a{font-size:11px}.clp-header-actions>.clp-btn{min-width:148px;padding:0 16px}.clp-service-card h3{font-size:16px}}
@media(max-width:900px){.clp-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clp-trust-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:26px}.clp-trust-item:nth-child(3){border-right:0}.clp-location-grid{grid-template-columns:1fr}.clp-map{min-height:330px}.clp-brands-row{grid-template-columns:140px 1fr}.clp-yanmar-logo{width:135px}}
@media(max-width:780px){.clp-wrap{width:min(100% - 28px,1180px)}.clp-header-inner{height:66px;position:relative}.clp-logo{width:146px;height:48px}.clp-menu-toggle{display:flex;margin-left:auto}.clp-nav{display:none;position:absolute;top:66px;left:-14px;right:-14px;background:#fff;border-bottom:1px solid #e9ecf0;padding:12px 20px 8px;flex-direction:column;align-items:stretch;margin:0;box-shadow:0 14px 30px rgba(0,0,0,.08);gap:0}.clp-header.open .clp-nav{display:flex}.clp-nav a{height:42px;font-size:13px}.clp-nav a.active:after{bottom:5px;width:28px;right:auto}.clp-header-actions{margin-left:0}.clp-header-actions>.clp-btn{display:none}.clp-account-trigger{display:none}.clp-header.open .clp-header-actions{display:block;position:absolute;top:318px;left:-14px;right:-14px;background:#fff;padding:6px 20px 16px;border-bottom:1px solid #e9ecf0;box-shadow:0 14px 30px rgba(0,0,0,.08)}.clp-header.open .clp-header-actions>.clp-btn{display:flex;width:100%;margin-bottom:8px}.clp-header.open .clp-account-menu{display:block!important;position:static;width:100%;box-shadow:none;border:0;padding:0}.clp-header.open .clp-account-menu button,.clp-header.open .clp-account-menu a{padding:10px 2px}.clp-hero{min-height:560px;background-position:64% center}.clp-hero:before{background:linear-gradient(90deg,rgba(255,255,255,.99),rgba(255,255,255,.92) 58%,rgba(255,255,255,.28))}.clp-hero-copy{width:100%;padding:58px 0}.clp-hero h1{font-size:49px;max-width:500px}.clp-hero p{font-size:15px;max-width:460px}.clp-dealer{width:220px}.clp-footer-grid{grid-template-columns:1fr 1fr}.clp-footer-grid>div:first-child{grid-column:1/-1}.clp-admin-grid{grid-template-columns:1fr}.clp-admin-card.wide{grid-column:auto}.clp-admin-form{grid-template-columns:1fr}.clp-admin-form .full{grid-column:auto}}
@media(max-width:560px){.clp-wrap{width:calc(100% - 24px)}.clp-hero{min-height:610px;background-position:66% center}.clp-hero h1{font-size:40px}.clp-hero-actions{flex-direction:column;align-items:stretch}.clp-hero-actions .clp-btn{width:100%}.clp-service-grid{grid-template-columns:1fr}.clp-service-photo{height:210px}.clp-brands-row{grid-template-columns:1fr;gap:14px}.clp-partner-brands{border-left:0;padding-left:0}.clp-trust-grid{grid-template-columns:1fr}.clp-trust-item{border-right:0;border-bottom:1px solid rgba(255,255,255,.14);padding-bottom:18px}.clp-location{padding:42px 0}.clp-location-copy .clp-section-title{font-size:31px}.clp-footer-grid{grid-template-columns:1fr}.clp-footer-grid>div:first-child{grid-column:auto}.clp-footer-brand{flex-direction:column;gap:14px}.clp-footer-bottom{flex-direction:column}.clp-admin-toolbar{justify-content:flex-start}}

/* M7.19.6.25.8.1 — Visual polish: larger type/logo, vibrant HD imagery and contained account access */
.clp-wrap{width:min(1320px,calc(100% - 72px))}
.clp-btn{height:52px;padding:0 28px;font-size:15.5px;border-radius:9px}
.clp-eyebrow{font-size:12px;letter-spacing:.30em;margin-bottom:10px}
.clp-section-title{font-size:clamp(40px,3.6vw,58px);line-height:1.02}
.clp-section-lead{max-width:790px;font-size:17px;line-height:1.5;margin-top:12px}
.clp-header-inner{height:96px;gap:24px}
.clp-logo{width:180px;height:auto;max-height:90px;object-fit:contain;object-position:left center}
.clp-nav{gap:24px}
.clp-nav a{height:96px;font-size:13.5px;font-weight:760}
.clp-nav a.active:after{bottom:21px}
.clp-header-actions{gap:10px;flex:0 0 auto}
.clp-header-actions>.clp-btn{height:46px;min-width:180px;padding:0 21px;font-size:13.5px}
.clp-register-inline{border:0;background:transparent;color:#222831;font:inherit;font-size:12.5px;font-weight:760;padding:9px 5px;cursor:pointer;white-space:nowrap}
.clp-register-inline:hover{color:var(--clp-accent)}
.clp-account-trigger{width:46px;height:46px;border-radius:9px}
.clp-account-trigger svg{width:22px;height:22px}
/* Desktop account access opens login directly; never spill a popover over the hero. */
@media(min-width:1041px){.clp-account-menu{display:none!important}body.authenticated .clp-register-inline{display:none!important}}
.clp-hero{min-height:620px;background-position:center center}
.clp-hero:before{background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.94) 27%,rgba(255,255,255,.63) 46%,rgba(255,255,255,.14) 68%,rgba(7,18,29,.02) 100%)}
.clp-hero-copy{width:min(680px,58%);padding:78px 0 64px}
.clp-hero h1{font-size:clamp(62px,5.9vw,86px);line-height:.94;max-width:680px;letter-spacing:-.058em}
.clp-hero p{font-size:18.5px;line-height:1.48;max-width:560px;margin:20px 0 27px;font-weight:520;color:#202730}
.clp-hero-actions{gap:14px}
.clp-dealer{margin-top:32px;width:285px;padding:9px 13px}
.clp-dealer img{max-height:94px}
.clp-services{padding:72px 0 62px}
.clp-section-head{margin-bottom:32px}
.clp-service-grid{gap:18px}
.clp-service-card{border-radius:9px;box-shadow:0 12px 32px rgba(19,28,38,.075)}
.clp-service-photo{height:220px}
.clp-service-photo img{filter:saturate(1.06) contrast(1.03)}
.clp-service-body{padding:18px 20px 21px;min-height:205px}
.clp-service-title-row{gap:11px}
.clp-service-icon{width:36px;height:36px;flex-basis:36px}
.clp-service-icon svg{width:33px;height:33px;stroke-width:1.9}
.clp-service-card h3{font-size:21px;line-height:1.03}
.clp-service-card p{margin:12px 0 0 47px;font-size:14px;line-height:1.48;min-height:64px}
.clp-service-more{margin:14px 0 0 47px;width:32px;height:32px;font-size:16px}
.clp-brands{padding:31px 0 32px}
.clp-brands-title{font-size:12px;margin-bottom:20px}
.clp-brands-row{grid-template-columns:205px 1fr;gap:30px}
.clp-yanmar-logo{width:200px;max-height:64px}
.clp-partner-brands{max-height:82px;padding-left:30px}
.clp-trust{padding:54px 0 58px;background-position:center center}
.clp-trust:before{background:linear-gradient(90deg,rgba(5,20,32,.78),rgba(5,20,32,.72))}
.clp-trust .clp-section-title{font-size:clamp(38px,3.5vw,52px)}
.clp-trust-grid{margin-top:32px}
.clp-trust-item{padding:0 21px}
.clp-trust-icon{width:58px;height:58px;margin-bottom:14px}
.clp-trust-icon svg{width:30px;height:30px}
.clp-trust-item h3{font-size:18px;line-height:1.15;margin-bottom:8px}
.clp-trust-item p{font-size:14px;line-height:1.43}
.clp-location{padding:62px 0 64px}
.clp-location-grid{gap:54px}
.clp-location-copy .clp-section-title{font-size:44px}
.clp-location-copy>p{font-size:15px;line-height:1.5;max-width:500px}
.clp-contact-list{gap:10px}
.clp-contact-row{font-size:15px;grid-template-columns:28px 1fr}
.clp-contact-row svg{width:20px;height:20px}
.clp-map{min-height:360px}
.clp-footer-logo{width:220px}
.clp-footer p,.clp-footer a{font-size:13px}

@media(max-width:1230px){
 .clp-wrap{width:min(100% - 44px,1220px)}
 .clp-header-inner{gap:14px}.clp-logo{width:162px;max-height:82px}.clp-nav{gap:15px}.clp-nav a{font-size:12px}
 .clp-register-inline{font-size:11.5px}.clp-header-actions>.clp-btn{min-width:165px;padding:0 16px;font-size:12.5px}
 .clp-hero h1{font-size:clamp(58px,5.8vw,76px)}
}

/* Tablet and compact desktop: switch cleanly to a contained hamburger rather than squeezing the header. */
@media(max-width:1040px){
 .clp-wrap{width:min(100% - 34px,1180px)}
 .clp-header-inner{height:82px;position:relative}.clp-logo{width:158px;height:auto;max-height:76px}.clp-menu-toggle{display:flex;margin-left:auto}
 .clp-nav{display:none;position:absolute;top:82px;left:-17px;right:-17px;background:#fff;border-bottom:1px solid #e9ecf0;padding:12px 22px 8px;flex-direction:column;align-items:stretch;margin:0;box-shadow:0 14px 30px rgba(0,0,0,.08);gap:0}
 .clp-header.open .clp-nav{display:flex}.clp-nav a{height:44px;font-size:14px}.clp-nav a.active:after{bottom:5px;width:30px;right:auto}
 .clp-header-actions{margin-left:0}.clp-header-actions>.clp-btn,.clp-register-inline,.clp-account-trigger{display:none}
 .clp-header.open .clp-header-actions{display:block;position:absolute;top:360px;left:-17px;right:-17px;background:#fff;padding:8px 22px 18px;border-bottom:1px solid #e9ecf0;box-shadow:0 14px 30px rgba(0,0,0,.08)}
 .clp-header.open .clp-header-actions>.clp-btn{display:flex;width:100%;margin-bottom:8px;height:48px;font-size:14px}
 .clp-header.open .clp-account-menu{display:block!important;position:static;width:100%;box-shadow:none;border:0;padding:0}
 .clp-header.open .clp-account-menu button,.clp-header.open .clp-account-menu a{padding:11px 2px;font-size:14px}
 .clp-hero{min-height:590px}.clp-hero-copy{width:67%;padding:68px 0 58px}.clp-hero h1{font-size:58px}.clp-hero p{font-size:17px}
 .clp-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clp-service-photo{height:245px}
 .clp-trust-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:30px}.clp-trust-item:nth-child(3){border-right:0}
 .clp-location-grid{grid-template-columns:1fr}.clp-map{min-height:360px}
}

@media(max-width:780px){
 .clp-header-inner{height:76px}.clp-logo{width:146px;height:auto;max-height:70px}.clp-nav{top:76px}
 .clp-header.open .clp-header-actions{top:354px}
 .clp-hero{min-height:650px;background-position:60% center}.clp-hero:before{background:linear-gradient(90deg,rgba(255,255,255,.99),rgba(255,255,255,.93) 62%,rgba(255,255,255,.28))}
 .clp-hero-copy{width:100%;padding:68px 0}.clp-hero h1{font-size:54px;max-width:560px}.clp-hero p{font-size:17px;max-width:500px}.clp-dealer{width:250px}
 .clp-section-title{font-size:42px}.clp-section-lead{font-size:16px}.clp-trust .clp-section-title{font-size:40px}
 .clp-location-copy .clp-section-title{font-size:40px}
}

@media(max-width:560px){
 .clp-wrap{width:calc(100% - 24px)}.clp-logo{width:138px;height:auto;max-height:70px}
 .clp-hero{min-height:690px;background-position:63% center}.clp-hero h1{font-size:46px;line-height:.97}.clp-hero p{font-size:16px}.clp-hero-actions{flex-direction:column;align-items:stretch}.clp-hero-actions .clp-btn{width:100%}
 .clp-section-title{font-size:36px}.clp-section-lead{font-size:15px}.clp-service-grid{grid-template-columns:1fr}.clp-service-photo{height:230px}.clp-service-card h3{font-size:22px}.clp-service-card p{font-size:14.5px}
 .clp-trust-grid{grid-template-columns:1fr}.clp-trust-item{border-right:0;border-bottom:1px solid rgba(255,255,255,.14);padding:0 12px 22px}.clp-trust .clp-section-title{font-size:34px}.clp-trust-item h3{font-size:19px}.clp-trust-item p{font-size:15px}
 .clp-location-copy .clp-section-title{font-size:36px}.clp-contact-row{font-size:14px}.clp-map{min-height:300px}
}


/* M7.19.6.25.8.2 — Final tweaks requested after browser QA */
.clp-hero h1{font-size:clamp(65px,6.1vw,89px)}
.clp-hero p{font-size:21.5px}
.clp-services .clp-section-title{font-size:clamp(42px,3.8vw,60px)}
.clp-services .clp-section-lead{font-size:19px}
.clp-budget-main{justify-content:center;text-align:center;line-height:1.15}
.clp-header-actions>.clp-budget-main{min-width:250px;padding-inline:18px;font-size:12.5px}
.clp-budget-email{display:inline-flex;margin-top:12px;color:#1f2933;font-size:13px;font-weight:760;text-decoration:none;border-bottom:1px solid rgba(31,41,51,.28)}
.clp-budget-email:hover{color:var(--clp-accent);border-bottom-color:var(--clp-accent)}
.clp-account-trigger{width:auto;min-width:178px;padding:0 14px;gap:9px;white-space:nowrap;font-weight:780;font-size:12.5px}
.clp-account-label{display:inline-block;line-height:1}
.clp-account-label-private{display:none}
body.authenticated .clp-account-label-public{display:none}
body.authenticated .clp-account-label-private{display:inline-block}
.clp-yanmar-logo{width:230px;max-height:86px;object-fit:contain}
.clp-brands-row{grid-template-columns:235px 1fr}
.clp-map img{image-rendering:auto;filter:saturate(1.03) contrast(1.02)}
@media(max-width:1280px){
 .clp-header-inner{height:82px;position:relative}.clp-logo{width:158px;height:auto;max-height:76px}.clp-menu-toggle{display:flex;margin-left:auto}
 .clp-nav{display:none;position:absolute;top:82px;left:-17px;right:-17px;background:#fff;border-bottom:1px solid #e9ecf0;padding:12px 22px 8px;flex-direction:column;align-items:stretch;margin:0;box-shadow:0 14px 30px rgba(0,0,0,.08);gap:0}
 .clp-header.open .clp-nav{display:flex}.clp-nav a{height:44px;font-size:14px}.clp-nav a.active:after{bottom:5px;width:30px;right:auto}
 .clp-header-actions{margin-left:0}.clp-header-actions>.clp-btn,.clp-register-inline,.clp-account-trigger{display:none}
 .clp-header.open .clp-header-actions{display:block;position:absolute;top:360px;left:-17px;right:-17px;background:#fff;padding:8px 22px 18px;border-bottom:1px solid #e9ecf0;box-shadow:0 14px 30px rgba(0,0,0,.08)}
 .clp-header.open .clp-header-actions>.clp-btn{display:flex;width:100%;margin-bottom:8px;height:50px;font-size:14px}
 .clp-header.open .clp-account-menu{display:block!important;position:static;width:100%;box-shadow:none;border:0;padding:0}
 .clp-header.open .clp-account-menu button,.clp-header.open .clp-account-menu a{padding:11px 2px;font-size:14px}
}
@media(max-width:1040px){
 .clp-hero h1{font-size:61px}.clp-hero p{font-size:20px}
 .clp-services .clp-section-title{font-size:44px}.clp-services .clp-section-lead{font-size:18px}
}
@media(max-width:780px){
 .clp-hero h1{font-size:57px}.clp-hero p{font-size:20px}
 .clp-services .clp-section-title{font-size:44px}.clp-services .clp-section-lead{font-size:18px}
 .clp-budget-email{font-size:12.5px}
}
@media(max-width:560px){
 .clp-hero h1{font-size:49px}.clp-hero p{font-size:19px}
 .clp-services .clp-section-title{font-size:38px}.clp-services .clp-section-lead{font-size:17px}
 .clp-budget-email{display:block;line-height:1.45}
}


/* M7.19.6.25.8.3 — Hero final adjustments approved by user */
/* Header: no public budget CTA. Account access stays contained in the menu row. */
.clp-header-actions{margin-left:0}
/* Hero typography: larger with comfortable leading. */
.clp-hero{min-height:760px}
.clp-hero-copy{width:min(860px,72%);padding:82px 0 72px}
.clp-hero h1{font-size:clamp(78px,6.8vw,108px);line-height:1.08;letter-spacing:-.055em;max-width:860px}
.clp-hero h1 span{display:block;margin-top:.075em;color:var(--clp-accent)}
.clp-hero p{font-size:23px;line-height:1.58;max-width:720px;margin:28px 0 30px;font-weight:520;color:#202730}
.clp-budget-title{font-size:26px;line-height:1.2;font-weight:900;letter-spacing:-.02em;margin:0 0 15px;color:#101722}
.clp-hero-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:min(100%,820px);align-items:stretch}
.clp-hero-actions .clp-btn{height:66px;min-width:0;padding:0 22px;border-radius:12px;font-size:18px;font-weight:850;line-height:1;box-shadow:0 8px 24px rgba(16,24,40,.08)}
.clp-hero-actions .clp-btn svg{width:30px;height:30px;flex:0 0 30px;stroke-width:1.9}
.clp-btn-email{background:#fff;color:#101722;border-color:#dfe4ea}
.clp-btn-email svg{color:var(--clp-accent)}
.clp-btn-email:hover{border-color:#cbd2da;transform:translateY(-1px)}
.clp-btn-whatsapp{background:#25D366;color:#fff;border-color:#25D366}
.clp-btn-whatsapp svg{stroke:#fff;color:#fff}
.clp-btn-whatsapp:hover{background:#20bd5a;border-color:#20bd5a;transform:translateY(-1px)}
.clp-btn-location{background:#fff;color:#101722;border-color:#dfe4ea}
.clp-btn-location svg{color:#0a1723}
.clp-btn-location:hover{border-color:#cbd2da;transform:translateY(-1px)}
/* Legacy dealer and text-email elements are intentionally not rendered in 8.3. */
@media(max-width:1280px){
 .clp-hero{min-height:720px}.clp-hero-copy{width:min(780px,74%);padding:76px 0 66px}
 .clp-hero h1{font-size:clamp(70px,6.5vw,94px);line-height:1.09;max-width:780px}
 .clp-hero p{font-size:22px;line-height:1.58;max-width:650px}
 .clp-hero-actions{width:min(100%,760px);gap:14px}.clp-hero-actions .clp-btn{font-size:17px;padding:0 18px}
}
@media(max-width:1040px){
 .clp-hero{min-height:700px}.clp-hero-copy{width:82%;padding:72px 0 62px}.clp-hero h1{font-size:70px;line-height:1.1;max-width:720px}.clp-hero p{font-size:21px;line-height:1.6}
 .clp-budget-title{font-size:24px}.clp-hero-actions{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.clp-hero-actions .clp-btn{font-size:16px}
}
@media(max-width:780px){
 .clp-hero{min-height:760px}.clp-hero-copy{width:100%;padding:68px 0 62px}.clp-hero h1{font-size:62px;line-height:1.11;max-width:650px}.clp-hero p{font-size:20px;line-height:1.62;max-width:590px}
 .clp-budget-title{font-size:23px;margin-top:2px}.clp-hero-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.clp-hero-actions .clp-btn{height:62px;font-size:15px;padding:0 12px;gap:8px}.clp-hero-actions .clp-btn svg{width:25px;height:25px;flex-basis:25px}
}
@media(max-width:620px){
 .clp-hero{min-height:820px}.clp-hero h1{font-size:52px;line-height:1.12}.clp-hero p{font-size:19px;line-height:1.64}.clp-budget-title{font-size:22px}
 .clp-hero-actions{grid-template-columns:1fr;gap:11px}.clp-hero-actions .clp-btn{width:100%;height:60px;font-size:17px}
}
@media(max-width:420px){
 .clp-hero h1{font-size:46px;line-height:1.13}.clp-hero p{font-size:18px;line-height:1.64}
}


/* M7.19.6.25.8.4 — Hero typography + approved CTA icon treatment */
#public-carper-landing .clp-hero{min-height:790px}
#public-carper-landing .clp-hero-copy{width:min(940px,76%);padding:88px 0 76px}
#public-carper-landing .clp-hero h1{font-size:clamp(88px,7.4vw,122px)!important;line-height:1.11!important;letter-spacing:-.052em!important;max-width:940px!important}
#public-carper-landing .clp-hero h1 span{display:block;margin-top:.10em}
#public-carper-landing .clp-hero p{font-size:26px!important;line-height:1.62!important;max-width:790px!important;margin:32px 0 34px!important;font-weight:520}
#public-carper-landing .clp-budget-title{font-size:30px!important;line-height:1.25!important;margin-bottom:18px!important}
#public-carper-landing .clp-hero-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:min(100%,900px)}
#public-carper-landing .clp-hero-actions .clp-btn{height:72px!important;padding:0 26px!important;border-radius:14px!important;font-size:20px!important;gap:14px!important}
#public-carper-landing .clp-hero-actions .clp-btn svg{width:34px!important;height:34px!important;flex:0 0 34px!important;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#public-carper-landing .clp-btn-email{background:#fff;color:#111827;border-color:#dfe4ea}
#public-carper-landing .clp-btn-email svg{color:#ef233c!important;stroke:#ef233c!important}
#public-carper-landing .clp-btn-whatsapp{background:#25D366!important;color:#fff!important;border-color:#25D366!important}
#public-carper-landing .clp-btn-whatsapp svg{color:#fff!important;stroke:#fff!important}
#public-carper-landing .clp-btn-location svg{color:#0a1723!important;stroke:#0a1723!important}
@media(max-width:1280px){
 #public-carper-landing .clp-hero{min-height:750px}
 #public-carper-landing .clp-hero-copy{width:min(850px,78%);padding:82px 0 70px}
 #public-carper-landing .clp-hero h1{font-size:clamp(78px,7vw,104px)!important;max-width:850px!important}
 #public-carper-landing .clp-hero p{font-size:24px!important;max-width:720px!important}
 #public-carper-landing .clp-budget-title{font-size:28px!important}
 #public-carper-landing .clp-hero-actions{width:min(100%,840px);gap:14px}
 #public-carper-landing .clp-hero-actions .clp-btn{font-size:18px!important;height:68px!important;padding:0 20px!important}
}
@media(max-width:1040px){
 #public-carper-landing .clp-hero{min-height:740px}
 #public-carper-landing .clp-hero-copy{width:90%;padding:78px 0 66px}
 #public-carper-landing .clp-hero h1{font-size:74px!important;line-height:1.12!important}
 #public-carper-landing .clp-hero p{font-size:23px!important;line-height:1.62!important}
 #public-carper-landing .clp-budget-title{font-size:27px!important}
 #public-carper-landing .clp-hero-actions .clp-btn{font-size:17px!important}
}
@media(max-width:780px){
 #public-carper-landing .clp-hero{min-height:790px}
 #public-carper-landing .clp-hero-copy{width:100%;padding:72px 0 64px}
 #public-carper-landing .clp-hero h1{font-size:64px!important;line-height:1.13!important}
 #public-carper-landing .clp-hero p{font-size:21px!important;line-height:1.64!important}
 #public-carper-landing .clp-budget-title{font-size:25px!important}
 #public-carper-landing .clp-hero-actions{gap:10px}
 #public-carper-landing .clp-hero-actions .clp-btn{height:64px!important;font-size:16px!important;padding:0 12px!important;gap:8px!important}
 #public-carper-landing .clp-hero-actions .clp-btn svg{width:28px!important;height:28px!important;flex-basis:28px!important}
}
@media(max-width:620px){
 #public-carper-landing .clp-hero{min-height:850px}
 #public-carper-landing .clp-hero h1{font-size:54px!important;line-height:1.14!important}
 #public-carper-landing .clp-hero p{font-size:20px!important;line-height:1.66!important}
 #public-carper-landing .clp-budget-title{font-size:24px!important}
 #public-carper-landing .clp-hero-actions{grid-template-columns:1fr}
 #public-carper-landing .clp-hero-actions .clp-btn{height:62px!important;font-size:18px!important}
}
@media(max-width:420px){
 #public-carper-landing .clp-hero h1{font-size:48px!important;line-height:1.15!important}
 #public-carper-landing .clp-hero p{font-size:19px!important}
}


/* M7.19.6.25.8.5 — Hero typography size correction: midpoint between 8.3 and 8.4, preserving approved spacing/icons. */
#public-carper-landing .clp-hero h1{font-size:clamp(82px,7vw,112px)!important;line-height:1.11!important;max-width:900px!important}
#public-carper-landing .clp-hero p{font-size:23.5px!important;line-height:1.62!important;max-width:750px!important}
@media(max-width:1360px){#public-carper-landing .clp-hero h1{font-size:clamp(74px,6.6vw,98px)!important;max-width:820px!important}#public-carper-landing .clp-hero p{font-size:22px!important}}
@media(max-width:1024px){#public-carper-landing .clp-hero h1{font-size:68px!important}#public-carper-landing .clp-hero p{font-size:21px!important}}
@media(max-width:780px){#public-carper-landing .clp-hero h1{font-size:59px!important;line-height:1.13!important}#public-carper-landing .clp-hero p{font-size:20px!important}}
@media(max-width:560px){#public-carper-landing .clp-hero h1{font-size:50px!important;line-height:1.14!important}#public-carper-landing .clp-hero p{font-size:19px!important}}
@media(max-width:390px){#public-carper-landing .clp-hero h1{font-size:46px!important;line-height:1.15!important}#public-carper-landing .clp-hero p{font-size:18.5px!important}}


/* M7.19.6.25.8.6 — Hero typography balanced size correction after browser QA. Icons/buttons intentionally unchanged. */
#public-carper-landing .clp-hero h1{font-size:clamp(60px,5vw,78px)!important;line-height:1.08!important;letter-spacing:-.045em!important;max-width:760px!important}
#public-carper-landing .clp-hero h1 span{margin-top:.08em!important}
#public-carper-landing .clp-hero p{font-size:20.5px!important;line-height:1.55!important;max-width:640px!important;margin:24px 0 28px!important}
#public-carper-landing .clp-budget-title{font-size:24px!important;line-height:1.22!important;margin-bottom:16px!important}
@media(max-width:1360px){#public-carper-landing .clp-hero h1{font-size:clamp(58px,5.2vw,72px)!important;max-width:700px!important}#public-carper-landing .clp-hero p{font-size:20px!important;max-width:620px!important}}
@media(max-width:1024px){#public-carper-landing .clp-hero h1{font-size:60px!important;line-height:1.09!important;max-width:650px!important}#public-carper-landing .clp-hero p{font-size:19.5px!important}}
@media(max-width:780px){#public-carper-landing .clp-hero h1{font-size:52px!important;line-height:1.10!important}#public-carper-landing .clp-hero p{font-size:19px!important;line-height:1.56!important}#public-carper-landing .clp-budget-title{font-size:22px!important}}
@media(max-width:560px){#public-carper-landing .clp-hero h1{font-size:44px!important;line-height:1.11!important}#public-carper-landing .clp-hero p{font-size:18px!important;line-height:1.58!important}#public-carper-landing .clp-budget-title{font-size:21px!important}}
@media(max-width:390px){#public-carper-landing .clp-hero h1{font-size:40px!important;line-height:1.12!important}#public-carper-landing .clp-hero p{font-size:17.5px!important}}

/* M7.19.6.25.8.7 — Contained navigation and tablet contact layout.
   Navigation and account actions share one flow; no fixed top offsets. */
#public-carper-landing .clp-navigation{display:flex;align-items:center;gap:24px;min-width:0;margin-left:auto}
#public-carper-landing .clp-header-inner{min-width:0}
#public-carper-landing .clp-account-menu{display:none!important}
#public-carper-landing .clp-menu-toggle{flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;line-height:1;cursor:pointer}
#public-carper-landing :is(.clp-location-copy,.clp-map,.clp-footer-grid>div,.clp-contact-row>*,.clp-footer-brand){min-width:0}
#public-carper-landing .clp-contact-row a,#public-carper-landing .clp-footer a{overflow-wrap:anywhere}
#public-carper-landing :is(a,button):focus-visible{outline:3px solid var(--clp-accent);outline-offset:3px}
#public-carper-landing :is(#inicio,#servicios,#contacto){scroll-margin-top:110px}
@media(max-width:1280px){
 #public-carper-landing .clp-header-inner{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 16px;height:auto;min-height:82px;position:relative}
 #public-carper-landing .clp-brand-link{min-height:82px;justify-self:start}
 #public-carper-landing .clp-menu-toggle{display:flex;margin:0;justify-self:end}
 #public-carper-landing .clp-navigation{display:none;grid-column:1/-1;min-width:0;width:100%;margin:0;max-height:calc(100vh - 82px);max-height:calc(100svh - 82px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 #public-carper-landing .clp-header.open .clp-navigation{display:block;padding-bottom:12px}
 #public-carper-landing .clp-nav,#public-carper-landing .clp-header.open .clp-nav{display:flex;position:static;inset:auto;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:6px 0;border:0;box-shadow:none;width:100%}
 #public-carper-landing .clp-nav a{min-height:44px;height:auto;padding:12px 4px;font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
 #public-carper-landing .clp-header-actions,#public-carper-landing .clp-header.open .clp-header-actions{display:block;position:static;inset:auto;width:100%;margin:0;padding:6px 0 0;border:0;border-top:1px solid var(--clp-line);box-shadow:none;background:#fff}
 #public-carper-landing .clp-account-trigger{display:none}
 #public-carper-landing .clp-header.open .clp-account-menu{display:block!important;position:static;inset:auto;width:100%;max-width:100%;margin:0;padding:0;border:0;box-shadow:none}
 #public-carper-landing .clp-header.open .clp-account-menu :is(a,button){min-height:44px;height:auto;margin:0;padding:12px 4px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
 #public-carper-landing .clp-header-actions:empty{display:none}
 #public-carper-landing .clp-hero-actions .clp-btn{white-space:normal;text-align:center;line-height:1.2;min-width:0}
}
@media(min-width:768px) and (max-width:1040px){
 #public-carper-landing .clp-location-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center}
 #public-carper-landing .clp-map{min-height:0;height:clamp(280px,34vw,350px);width:100%}
 #public-carper-landing .clp-location-copy .clp-section-title{font-size:32px}
 #public-carper-landing .clp-location-copy>p{font-size:15px;line-height:1.5}
 #public-carper-landing .clp-contact-row{font-size:14px;line-height:1.5}
 #public-carper-landing .clp-location-copy>.clp-btn{max-width:100%;padding-inline:18px;font-size:14px}
 #public-carper-landing .clp-footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
 #public-carper-landing .clp-footer-brand{grid-column:1/-1}
}
@media(max-width:767px){
 #public-carper-landing .clp-location-grid{grid-template-columns:minmax(0,1fr);gap:26px}
 #public-carper-landing .clp-map{min-height:0;height:clamp(240px,58vw,330px)}
 #public-carper-landing .clp-location-copy>.clp-btn{max-width:100%;white-space:normal;line-height:1.3}
 #public-carper-landing .clp-brands-row{grid-template-columns:minmax(0,1fr);gap:18px}
 #public-carper-landing .clp-partner-brands{border-left:0;padding-left:0}
}
@media(max-width:360px){
 #public-carper-landing .clp-hero h1{font-size:36px!important}
}

/* ===== M7.19.6.25.8.9 · CANONICAL RED BUTTON COLOR UNIFICATION =====
   Visual-only correction. One normal-state red for every red action/menu button.
   Canonical action red: #E23B33. Hover: #B8291F. Active: #9E261F.
   No DOM, JS, API, permissions, data or Control Center changes. */
:root{
  --hcc-action-red:#E23B33;
  --hcc-action-red-hover:#B8291F;
  --hcc-action-red-active:#9E261F;

  --red:var(--hcc-action-red);
  --red-dark:var(--hcc-action-red-hover);

  --y64-brand:var(--hcc-action-red);
  --y64-action:var(--hcc-action-red);
  --y64-action-hover:var(--hcc-action-red-hover);
  --y65-red:var(--hcc-action-red);
  --y66-red:var(--hcc-action-red);
  --y66-red-hover:var(--hcc-action-red-hover);

  --yt-primary:var(--hcc-action-red);
  --yt-primary-hover:var(--hcc-action-red-hover);

  --p619-red:var(--hcc-action-red);
  --p620-red:var(--hcc-action-red);
  --p620-red-hover:var(--hcc-action-red-hover);
  --p620-red-active:var(--hcc-action-red-active);
  --p621-red:var(--hcc-action-red);
  --p621-red-hover:var(--hcc-action-red-hover);
  --p621-red-active:var(--hcc-action-red-active);
  --p622-red:var(--hcc-action-red);

  --m623-action-red:var(--hcc-action-red);
  --m623-action-red-hover:var(--hcc-action-red-hover);
  --m6232-red:var(--hcc-action-red);
  --m6232-red-hover:var(--hcc-action-red-hover);
  --m6232-red-active:var(--hcc-action-red-active);

  --m7196252-primary-red:var(--hcc-action-red);
  --m7196252-primary-red-hover:var(--hcc-action-red-hover);
  --m7196252-primary-red-active:var(--hcc-action-red-active);
}

body.audit-phase1.authenticated,
body.audit-phase2.authenticated{
  --audit-brand:var(--hcc-action-red);
  --audit-brand-hover:var(--hcc-action-red-hover);
}

body.audit-phase31.authenticated{
  --a31-red:var(--hcc-action-red);
  --a31-red-hover:var(--hcc-action-red-hover);
}

body.audit-phase4.authenticated{
  --a4-red:var(--hcc-action-red);
  --a612-red:var(--hcc-action-red);
  --qa613-red:var(--hcc-action-red);
  --p615-red:var(--hcc-action-red);
  --p616-red:var(--hcc-action-red);
  --p617-red:var(--hcc-action-red);
  --p619-red:var(--hcc-action-red);
  --p620-red:var(--hcc-action-red);
  --p621-red:var(--hcc-action-red);
  --p622-red:var(--hcc-action-red);
}

/* Main navigation: active menu uses exactly the same corporate red as actions. */
html body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.tool-tab.active:not(.hidden):not([hidden]),
html body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.tool-tab[aria-selected="true"]:not(.hidden):not([hidden]),
html body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .y66-more-panel>.tool-tab.active:not(.hidden):not([hidden]),
html body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs .y66-more-panel>.tool-tab[aria-selected="true"]:not(.hidden):not([hidden]){
  background:var(--hcc-action-red)!important;
  background-color:var(--hcc-action-red)!important;
  border-color:var(--hcc-action-red)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Module/subnavigation active state: same red, including the purchases selector
   whose historical layer hard-coded a different tone. */
html body.authenticated main.container.protected-content :is(
  .module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,
  .article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav,
  .budget-subnav,[data-budget-subnav],.m717-client-tabs
) :is(button,[role="tab"]):is(.active,[aria-selected="true"]),
body.audit-phase61.authenticated #admin-purchases-view > nav.purchase-subnav > button[data-purchase-subtab].active{
  background:var(--hcc-action-red)!important;
  background-color:var(--hcc-action-red)!important;
  border-color:var(--hcc-action-red)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Primary actions consume the same normal-state red even where old audit layers
   had hard-coded #D5372F/#D13B34. */
:where(main.container.protected-content,#cart-overlay,.article-editor-overlay,
  .purchase-modal-overlay,.account-overlay,.r26-modal,.enterprise-modal,
  .trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.legal-overlay,
  .credit-request-overlay,.shipping-cost-overlay) .btn-primary:not(:disabled),
body #auth-gate #login-form #login-submit:not(:disabled),
#maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-primary:not(:disabled):not(#m71967-rev-guard),
html body #register-form #register-submit.btn-primary.auth-submit:not(:disabled){
  background:var(--hcc-action-red)!important;
  background-color:var(--hcc-action-red)!important;
  border-color:var(--hcc-action-red)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Unified interactive states. They remain darker intentionally, but are also
   identical across the menu and the rest of HControlCenter. */
html body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.tool-tab.active:hover:not(:disabled),
html body.authenticated main.container.protected-content>#main-tool-tabs.tool-tabs>.tool-tab[aria-selected="true"]:hover:not(:disabled),
html body.authenticated main.container.protected-content :is(
  .module-subnav,.settings-subnav,.r26-subnav,.document-config-tabs,
  .article-subnav,.purchase-subnav,.order-workspace-subnav,.admin-subnav,
  .budget-subnav,[data-budget-subnav],.m717-client-tabs
) :is(button,[role="tab"]):is(.active,[aria-selected="true"]):hover:not(:disabled),
:where(main.container.protected-content,#cart-overlay,.article-editor-overlay,
  .purchase-modal-overlay,.account-overlay,.r26-modal,.enterprise-modal,
  .trace-modal,.maintenance-editor-overlay,.series-pin-overlay,.legal-overlay,
  .credit-request-overlay,.shipping-cost-overlay) .btn-primary:hover:not(:disabled),
body #auth-gate #login-form #login-submit:hover:not(:disabled),
#maintenance-admin-tools .maintenance-admin-action-group .maintenance-admin-actions button.btn-primary:hover:not(:disabled):not(#m71967-rev-guard),
html body #register-form #register-submit.btn-primary.auth-submit:hover:not(:disabled){
  background:var(--hcc-action-red-hover)!important;
  background-color:var(--hcc-action-red-hover)!important;
  border-color:var(--hcc-action-red-hover)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

body #auth-gate #login-form #login-submit:active:not(:disabled),
html body #register-form #register-submit.btn-primary.auth-submit:active:not(:disabled){
  background:var(--hcc-action-red-active)!important;
  background-color:var(--hcc-action-red-active)!important;
  border-color:var(--hcc-action-red-active)!important;
  color:#fff!important;
}


/* ===== M7.19.6.25.8.10 · WORK AGENDA / OT MATERIAL SYNC ===== */
/* M7.19.6.25.8.10.4 · AGENDA — rango por arrastre, jornada 08:00–20:00 y cuadrante sin scroll vertical */
.hcc-agenda-panel{position:relative;--agenda-drawer-width:clamp(420px,32vw,480px);--agenda-red:#E23B33;--agenda-red-hover:#B8291F;--agenda-red-active:#9E261F;--agenda-border:#dfe5ec;--agenda-muted:#667085;--agenda-bg:#f6f8fb;--agenda-text:#172033}
.hcc-agenda-panel .r26-toolbar{align-items:flex-start}.agenda-page-toolbar{margin-bottom:12px}.agenda-toolbar-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.agenda-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--agenda-border);border-radius:14px;padding:12px 14px;margin-bottom:12px}
.agenda-date-nav{display:flex;align-items:center;gap:6px;min-width:min(100%,360px)}.agenda-date-nav .btn-secondary{min-height:40px}.agenda-icon-button{width:40px;height:40px;min-width:40px;display:inline-grid;place-items:center;border:1px solid var(--agenda-border);border-radius:9px;background:#fff;color:var(--agenda-text);font:600 22px/1 inherit;cursor:pointer}.agenda-icon-button:hover{background:#f4f6f9}.agenda-date-nav strong{min-width:190px;padding:0 8px;font-size:14px;line-height:1.3;color:var(--agenda-text)}
.agenda-view-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.agenda-segmented{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--agenda-border);border-radius:9px;overflow:hidden;background:#fff}.agenda-segmented button{min-width:78px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border:0;background:#fff;padding:9px 16px;font:inherit;font-weight:600;line-height:1.2;text-align:center;cursor:pointer}.agenda-segmented button.active{background:var(--agenda-red);color:#fff}.agenda-segmented button:hover:not(.active){background:#f7f8fa}
.agenda-filters{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-left:auto}.agenda-filters label{display:grid;gap:5px;min-width:150px}.agenda-filters label>span{font-size:11px;font-weight:700;color:#4b5565}.agenda-filters select{height:40px;min-width:0;border:1px solid var(--agenda-border);border-radius:9px;background:#fff;padding:0 10px;font:inherit;color:var(--agenda-text)}
.agenda-message{margin:8px 0 12px;padding:10px 12px;border-radius:9px;background:#eef8f3;color:#176640;font-weight:600;font-size:13px}.agenda-message.error{background:#fff1f0;color:#a62922}.agenda-message.hidden{display:none!important}
.agenda-calendar-shell{padding:0!important;overflow:hidden;transition:margin-right .2s ease}.agenda-grid-wrap{overflow:auto;border:1px solid var(--agenda-border);border-radius:14px;background:#fff;max-height:none;min-height:786px;box-shadow:0 8px 26px rgba(20,32,52,.04)}
.agenda-grid{display:grid;grid-template-columns:72px repeat(7,minmax(174px,1fr));min-width:1320px;position:relative;color:var(--agenda-text)}.agenda-grid-day{grid-template-columns:70px minmax(720px,1fr);min-width:800px}
.agenda-time-head,.agenda-day-head{position:sticky;top:0;z-index:8;background:#fff;border-bottom:1px solid var(--agenda-border);height:58px}.agenda-time-head{left:0;z-index:10;border-right:1px solid var(--agenda-border)}.agenda-day-head{display:grid;place-content:center;text-align:center;border-right:1px solid var(--agenda-border);gap:2px}.agenda-day-head strong{font-size:13px}.agenda-day-head span{font-size:11px;color:var(--agenda-muted)}.agenda-day-head.today{background:#fff3f2}.agenda-day-head.today strong{color:var(--agenda-red)}
.agenda-time-axis{height:728px;position:sticky;left:0;z-index:5;background:#fff;border-right:1px solid var(--agenda-border)}.agenda-time-axis span{position:absolute;right:10px;transform:translateY(-7px);font-size:11px;color:#667085}.agenda-time-axis span:last-child{transform:translateY(-14px)}
.agenda-day-column{height:728px;position:relative;border-right:1px solid var(--agenda-border);background:linear-gradient(to bottom,transparent 63px,#edf0f4 64px);background-size:100% 64px}.agenda-hour-slot{position:absolute;left:0;right:0;border:0;border-bottom:1px solid transparent;background:transparent;cursor:crosshair;z-index:1}.agenda-hour-slot:hover{background:rgba(226,59,51,.035)}
.agenda-event{position:absolute;left:5px;right:5px;z-index:4;border:1px solid #efc5c2;border-left:4px solid var(--agenda-red);border-radius:9px;background:#fff4f3;padding:7px 8px;overflow:hidden;cursor:grab;box-shadow:0 3px 9px rgba(23,32,51,.07);display:flex;flex-direction:column;gap:2px}.agenda-event:active{cursor:grabbing}.agenda-event:hover{box-shadow:0 7px 18px rgba(23,32,51,.12);transform:translateY(-1px)}
.agenda-event.priority-low{border-left-color:#6f7c8e;background:#f7f8fa;border-color:#dfe5ec}.agenda-event.priority-medium{border-left-color:#e2aa1e;background:#fff9e8;border-color:#f2dfad}.agenda-event.priority-high{border-left-color:#E23B33}.agenda-event.priority-urgent{border-left-color:#9E261F;background:#ffefed}.agenda-event.status-in_progress{border-left-color:#19995f;background:#ecfbf3;border-color:#bce8d1}.agenda-event.status-done{border-left-color:#3182ce;background:#eef6ff;border-color:#c6ddf5}.agenda-event.status-cancelled{opacity:.58;filter:saturate(.35)}
.agenda-event-top{display:flex;justify-content:space-between;gap:6px;font-size:10px;color:#5d6675}.agenda-event-top strong{font-size:11px;color:#172033}.agenda-event-title{font-size:12px;line-height:1.25}.agenda-event small{font-size:9.5px;color:#5f6978;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agenda-event-employees{font-weight:650}.agenda-event-foot{margin-top:auto;display:flex;gap:7px;flex-wrap:wrap;font-size:8.5px;color:#5f6978}.agenda-event-foot span{background:rgba(255,255,255,.75);border-radius:999px;padding:2px 5px}
.agenda-editor-overlay{position:fixed;inset:0;z-index:1200;background:transparent;display:flex;justify-content:flex-end;pointer-events:none}.agenda-editor-overlay.hidden{display:none!important}.agenda-editor-backdrop{display:none}.agenda-editor{position:relative;z-index:1;width:var(--agenda-drawer-width);max-width:100vw;height:100%;min-width:0;pointer-events:auto;background:#fff;box-shadow:-18px 0 48px rgba(9,18,30,.18);display:flex;flex-direction:column}.agenda-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:18px 22px 16px;border-bottom:1px solid var(--agenda-border);background:#fff}.agenda-editor-head h2{margin:2px 0 0;font-size:22px;line-height:1.2}.agenda-editor-head .eyebrow{color:var(--agenda-red)}
.agenda-editor-head .modal-close-unified{margin:0!important}.agenda-editor-body{padding:18px 22px 24px;overflow:auto;display:grid;gap:18px;min-height:0}.agenda-editor-section{display:grid;gap:11px;min-width:0}.agenda-editor-section>label,.agenda-field{display:grid;gap:5px;min-width:0}.agenda-editor-section label>span,.agenda-field>span,.agenda-section-label,.agenda-field-label{font-size:11px;font-weight:700;color:#364152}.agenda-editor-section input,.agenda-editor-section select,.agenda-editor-section textarea{box-sizing:border-box;width:100%;min-width:0;min-height:42px;border:1px solid #cbd7e5;border-radius:9px;background:#fff;padding:9px 11px;font:inherit;color:var(--agenda-text);box-shadow:none}.agenda-editor-section textarea{min-height:92px;resize:vertical}.agenda-editor-section input:focus,.agenda-editor-section select:focus,.agenda-editor-section textarea:focus{outline:0;border-color:#9fb2c9;box-shadow:0 0 0 3px rgba(63,90,122,.10)}
.agenda-form-grid{display:grid;gap:10px;min-width:0}.agenda-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-form-grid.three{grid-template-columns:1.2fr .9fr .9fr}.agenda-form-grid>label{display:grid;gap:5px;min-width:0}.agenda-form-grid>label>span{font-size:11px;font-weight:700;color:#364152}
.agenda-source-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid var(--agenda-border);border-radius:9px;overflow:hidden;background:#fff}.agenda-source-toggle button{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;border:0!important;border-radius:0!important;margin:0!important;background:#fff;padding:9px 12px;font:inherit;font-weight:600;line-height:1.2;cursor:pointer}.agenda-source-toggle button+button{border-left:0!important}.agenda-source-toggle button.active{background:var(--agenda-red);color:#fff;box-shadow:none}.agenda-source-toggle button:hover:not(.active){background:#f7f8fa}.agenda-source-toggle button:focus-visible{position:relative;z-index:2;outline:2px solid var(--agenda-red);outline-offset:-2px}
.agenda-source-card{border:1px solid var(--agenda-border);border-radius:10px;background:#f8fafc;padding:11px 12px;min-width:0}.agenda-source-card>div{display:grid;gap:3px;min-width:0}.agenda-source-card span{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--agenda-muted);font-weight:700}.agenda-source-card strong{font-size:13px;overflow-wrap:anywhere}.agenda-source-card small{font-size:11px;color:var(--agenda-muted);overflow-wrap:anywhere}.agenda-editor-section .agenda-readonly-field{display:grid;gap:4px;border:1px solid var(--agenda-border);border-radius:9px;background:#f8fafc;padding:10px 11px;min-width:0}.agenda-readonly-field span{font-size:10px;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.03em}.agenda-readonly-field strong{font-size:12px;color:#172033;overflow-wrap:anywhere}
.agenda-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}.agenda-section-title>div{display:grid;gap:3px;min-width:0}.agenda-section-title strong{font-size:13px;color:var(--agenda-text)}.agenda-section-title span{font-size:10.5px;line-height:1.4;color:var(--agenda-muted)}.agenda-sync-badge{flex:0 0 auto;font-size:10px!important;color:#176640!important;background:#eef8f3;border-radius:999px;padding:5px 8px;font-weight:700;white-space:nowrap}
.agenda-employee-picker{display:flex;gap:7px;flex-wrap:wrap}.agenda-employee-chip{position:relative}.agenda-employee-chip input{position:absolute;opacity:0;pointer-events:none}.agenda-employee-chip span{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:1px solid var(--agenda-border);border-radius:999px;padding:7px 10px;background:#fff;font-size:11px;font-weight:650;line-height:1.2;text-align:center;cursor:pointer}.agenda-employee-chip.selected span{background:#fff1f0;border-color:var(--agenda-red);color:#9E261F}
.agenda-material-list{display:grid;gap:7px}.agenda-material-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--agenda-border);border-radius:9px;padding:8px 10px;background:#fff;min-width:0}.agenda-material-row>div:first-child{display:grid;min-width:0}.agenda-material-row strong{font-size:11px;overflow-wrap:anywhere}.agenda-material-row span{font-size:10px;color:var(--agenda-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agenda-material-controls{display:flex!important;align-items:center;gap:5px;flex:0 0 auto}.agenda-material-controls input{width:70px!important;min-height:32px!important;padding:6px 7px!important}.agenda-material-controls button{width:30px;height:30px;border:1px solid #efc5c2;border-radius:7px;background:#fff;color:#9E261F;font-size:18px;cursor:pointer}.agenda-material-controls button:disabled{opacity:.35;cursor:not-allowed}.agenda-material-row.readonly b{font-size:11px;white-space:nowrap}
.agenda-material-search-wrap{position:relative;display:block;min-width:0}.agenda-material-search-wrap>input{padding-right:42px!important}.agenda-material-clear{position:absolute;right:8px;top:7px;z-index:24;width:28px;height:28px;display:grid;place-items:center;border:1px solid #cbd7e5;border-radius:7px;background:#fff;color:#526174;font:700 17px/1 Arial,sans-serif;cursor:pointer}.agenda-material-clear:hover{background:#f6f8fb;color:#172033}.agenda-material-clear.hidden{display:none!important}.agenda-material-results{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:20;max-height:240px;overflow:auto;border:1px solid var(--agenda-border);border-radius:10px;background:#fff;box-shadow:0 14px 30px rgba(10,22,38,.14);padding:5px}.agenda-material-results.hidden{display:none!important}.agenda-material-results button{width:100%;border:0;background:#fff;text-align:left;padding:9px 10px;border-radius:7px;display:grid;grid-template-columns:minmax(105px,132px) minmax(0,1fr) auto;gap:9px;align-items:center;cursor:pointer;font:inherit}.agenda-material-results button:hover{background:#f6f8fb}.agenda-material-results strong{font-size:11px;overflow-wrap:anywhere}.agenda-material-results span{font-size:10.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agenda-material-results small{font-size:9.5px;color:var(--agenda-muted);white-space:nowrap}
.agenda-empty-mini{padding:10px;border:1px dashed #d6dce5;border-radius:9px;color:#7a8492;font-size:11px;text-align:center}.agenda-report-sync-note{display:grid;gap:3px;padding:9px 10px;border:1px solid #c9ead7;border-radius:9px;background:#f1fbf5}.agenda-report-sync-note strong{font-size:10.5px;color:#176640}.agenda-report-sync-note span{font-size:10px;line-height:1.4;color:#536070}
.agenda-editor-footer{display:flex;align-items:center;gap:12px;padding:18px 22px 20px;border-top:1px solid var(--agenda-border);background:#fff;box-shadow:0 -8px 18px rgba(23,32,51,.035)}.agenda-editor-footer-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;min-width:0}.agenda-editor-footer .btn-primary,.agenda-editor-footer .btn-secondary,.agenda-editor-footer .btn-danger{min-height:42px}.agenda-delete{border-color:#efc5c2!important;color:#9E261F!important}.agenda-delete.hidden{display:none!important}
@media(min-width:1280px){.hcc-agenda-panel.agenda-drawer-open .agenda-calendar-shell{margin-right:calc(var(--agenda-drawer-width) + 14px)}.hcc-agenda-panel.agenda-drawer-open .agenda-grid-wrap{box-shadow:0 8px 26px rgba(20,32,52,.06)}.agenda-editor-overlay{background:transparent}.agenda-editor-backdrop{display:none}.agenda-editor{width:var(--agenda-drawer-width)}}
@media(min-width:1440px){.agenda-grid{grid-template-columns:72px repeat(7,minmax(180px,1fr));min-width:1360px}}
@media(min-width:1800px){.agenda-grid{grid-template-columns:74px repeat(7,minmax(190px,1fr));min-width:1430px}}
@media(max-width:1279px){.agenda-editor-overlay{background:rgba(12,20,32,.42);pointer-events:auto}.agenda-editor-backdrop{display:block;position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;cursor:default}.agenda-editor{width:min(560px,100vw)}.hcc-agenda-panel.agenda-drawer-open .agenda-calendar-shell{margin-right:0}.agenda-grid{grid-template-columns:66px repeat(7,minmax(150px,1fr));min-width:1130px}.agenda-filters{width:100%;margin-left:0}.agenda-filters label{flex:1 1 170px}.agenda-view-actions{margin-left:0}}
@media(max-width:1024px){.agenda-grid{grid-template-columns:62px repeat(7,minmax(145px,1fr));min-width:1080px}.agenda-controls{align-items:stretch}.agenda-date-nav{flex:1 1 100%}.agenda-date-nav strong{flex:1;min-width:0}.agenda-form-grid.three{grid-template-columns:1fr 1fr}.agenda-form-grid.three label:first-child{grid-column:1/-1}}
@media(max-width:768px){.agenda-toolbar-actions{width:100%;justify-content:flex-start}.agenda-toolbar-actions button{flex:1 1 180px}.agenda-view-actions{width:100%;justify-content:space-between}.agenda-segmented{flex:1}.agenda-segmented button{min-width:0}.agenda-view-actions>.btn-secondary{flex:0 0 auto}.agenda-filters{width:100%}.agenda-editor{width:min(560px,100vw)}.agenda-editor-head{padding:16px 18px 14px}.agenda-editor-body{padding:16px 18px 22px}.agenda-editor-footer{padding:16px 18px 18px}}
@media(max-width:640px){.agenda-controls{padding:10px}.agenda-date-nav{display:grid;grid-template-columns:auto auto auto 1fr;width:100%}.agenda-date-nav strong{font-size:12px;padding-right:0}.agenda-filters label{flex:1 1 calc(50% - 6px);min-width:130px}.agenda-form-grid.two,.agenda-form-grid.three{grid-template-columns:1fr}.agenda-form-grid.three label:first-child{grid-column:auto}.agenda-editor{width:100vw}.agenda-editor-body{padding:14px 16px 20px;gap:16px}.agenda-section-title{align-items:flex-start}.agenda-sync-badge{white-space:normal;text-align:center}.agenda-material-results button{grid-template-columns:minmax(78px,95px) minmax(0,1fr)}.agenda-material-results small{display:none}.agenda-editor-footer{padding:14px 16px 16px;display:grid;grid-template-columns:1fr;gap:10px}.agenda-editor-footer-right{width:100%;margin-left:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.agenda-editor-footer button{width:100%;margin:0!important}}
@media(max-width:420px){.agenda-toolbar-actions{display:grid;grid-template-columns:1fr;width:100%}.agenda-date-nav{grid-template-columns:auto auto auto}.agenda-date-nav strong{grid-column:1/-1;grid-row:2;text-align:left;padding:4px 0 0}.agenda-filters label{flex:1 1 100%}.agenda-editor-head h2{font-size:20px}.agenda-source-toggle button{padding:9px 8px;font-size:12px}.agenda-editor-footer-right{grid-template-columns:1fr}.agenda-material-row{align-items:flex-start;flex-direction:column}.agenda-material-controls{width:100%;justify-content:flex-end}}

@media(max-width:390px){.agenda-editor-head{padding:14px 14px 12px}.agenda-editor-body{padding:12px 14px 18px}.agenda-editor-footer{padding:12px 14px 14px}.agenda-source-toggle button{font-size:11.5px;padding:8px 6px}.agenda-material-results button{grid-template-columns:minmax(88px,100px) minmax(0,1fr);gap:7px}.agenda-material-results small{display:none}}
/* M7.19.6.25.8.10.3 · semana completa + altura de cuadrante + notas OT */
@media(min-width:1280px){
  .hcc-agenda-panel .agenda-grid-wrap{overflow-x:hidden!important;overflow-y:visible!important;min-height:850px!important;}
  .hcc-agenda-panel .agenda-grid:not(.agenda-grid-day){width:100%!important;min-width:0!important;grid-template-columns:64px repeat(7,minmax(0,1fr))!important;}
  .hcc-agenda-panel .agenda-grid-day{width:100%!important;min-width:0!important;grid-template-columns:64px minmax(0,1fr)!important;}
}
.hcc-agenda-panel .agenda-time-axis,.hcc-agenda-panel .agenda-day-column{height:792px!important;}
.hcc-agenda-panel .agenda-day-column{background:linear-gradient(to bottom,transparent 71px,#edf0f4 72px)!important;background-size:100% 72px!important;}
.hcc-agenda-panel .agenda-time-axis span:first-child{transform:translateY(8px)!important;}
.hcc-agenda-panel .agenda-time-axis span:last-child{transform:translateY(-16px)!important;}
body.authenticated #r26-modal .r26-form-grid label:has(>textarea[name="notes"]){
  grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:8px!important;
  padding:12px!important;border:1px solid #dfe5ec!important;border-radius:11px!important;background:#f8fafc!important;
}
body.authenticated #r26-modal .r26-form-grid label:has(>textarea[name="notes"])>span{display:block!important;margin:0!important;align-self:start!important;}
body.authenticated #r26-modal .r26-form-grid textarea[name="notes"]{width:100%!important;min-width:100%!important;min-height:104px!important;box-sizing:border-box!important;margin:0!important;resize:vertical!important;}
@media(max-width:1279px){
  .hcc-agenda-panel .agenda-grid-wrap{min-height:850px!important;}
}

/* M7.19.6.25.8.10.4 · jornada completa 08:00–20:00 + selección horaria */
.hcc-agenda-panel .agenda-grid-wrap{overflow-y:hidden!important;min-height:924px!important;max-height:none!important;}
.hcc-agenda-panel .agenda-time-axis,.hcc-agenda-panel .agenda-day-column{height:864px!important;}
.hcc-agenda-panel .agenda-day-column{background:linear-gradient(to bottom,transparent 71px,#edf0f4 72px)!important;background-size:100% 72px!important;touch-action:none;}
.hcc-agenda-panel .agenda-time-axis span:first-child{transform:translateY(8px)!important;}
.hcc-agenda-panel .agenda-time-axis span:last-child{transform:translateY(-16px)!important;}
.agenda-day-column.range-selecting{cursor:crosshair;user-select:none;}
.agenda-range-selection{position:absolute;left:3px;right:3px;z-index:3;pointer-events:none;border:1px solid rgba(226,59,51,.62);border-left:4px solid var(--agenda-red);border-radius:8px;background:rgba(226,59,51,.10);box-shadow:0 2px 8px rgba(226,59,51,.10);}
.agenda-range-selection span{position:absolute;top:5px;left:7px;font-size:10px;font-weight:700;color:#9E261F;background:rgba(255,255,255,.9);border-radius:999px;padding:2px 6px;white-space:nowrap;}
@media(min-width:1280px){.hcc-agenda-panel .agenda-grid-wrap{overflow-x:hidden!important;}}
@media(max-width:1279px){.hcc-agenda-panel .agenda-grid-wrap{overflow-x:auto!important;overflow-y:hidden!important;min-height:924px!important;}}



/* M7.19.6.25.8.10.5 · landing typography + Maintenance↔Agenda bridge */
#public-carper-landing .clp-nav a{font-weight:400!important;}
#public-carper-landing .clp-account-trigger,
#public-carper-landing .clp-account-label{font-weight:400!important;}
#public-carper-landing .clp-account-menu :is(a,button){font-weight:400!important;}
.r26-maintenance-flow-note{display:grid;gap:4px;margin:0 0 14px;padding:12px 14px;border:1px solid #d9e4ee;border-radius:12px;background:#f7fafc;color:#25364a;}
.r26-maintenance-flow-note strong{font-size:13px;}
.r26-maintenance-flow-note span,.r26-field-help{font-size:11px;color:#6b7788;line-height:1.45;}
.r26-maintenance-bridge-row{align-items:center;gap:14px;}
.r26-maintenance-bridge-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.r26-maintenance-bridge-actions .btn-secondary,.r26-row-actions .btn-secondary{min-height:34px;padding:6px 10px;font-size:11px;}
.r26-maintenance-plan-button{margin-left:auto;}
@media(max-width:760px){.r26-maintenance-bridge-row{align-items:stretch}.r26-maintenance-bridge-actions{justify-content:flex-start}.r26-maintenance-plan-button{margin-left:0}}
\n\n/* M7.19.6.25.8.10.7 · Selector de fecha y toolbar de Agenda alineada */
.hcc-agenda-panel .agenda-controls{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:14px!important;padding:14px 16px!important}
.hcc-agenda-panel .agenda-controls-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;width:100%;min-width:0}
.hcc-agenda-panel .agenda-date-nav{display:flex;align-items:flex-end;gap:8px;min-width:0;flex:1 1 auto}
.hcc-agenda-panel .agenda-date-nav>.btn-secondary,.hcc-agenda-panel .agenda-date-nav>.agenda-icon-button,.hcc-agenda-panel .agenda-view-actions>.btn-secondary,.hcc-agenda-panel .agenda-segmented button{height:42px!important;min-height:42px!important}
.hcc-agenda-panel .agenda-date-picker{display:grid;gap:5px;min-width:270px;max-width:360px;flex:0 1 360px}
.hcc-agenda-panel .agenda-control-label{font-size:11px;font-weight:700;line-height:1;color:#4b5565}
.hcc-agenda-panel .agenda-date-picker-control{position:relative;height:42px;display:flex;align-items:center;gap:9px;min-width:0;border:1px solid var(--agenda-border);border-radius:9px;background:#fff;padding:0 12px;color:var(--agenda-text);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.hcc-agenda-panel .agenda-date-picker-control:hover{background:#fafbfc;border-color:#cbd7e5}
.hcc-agenda-panel .agenda-date-picker-control:focus-within{border-color:#9fb2c9;box-shadow:0 0 0 3px rgba(63,90,122,.10)}
.hcc-agenda-panel .agenda-date-picker-control strong{min-width:0!important;flex:1;padding:0!important;font-size:13px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--agenda-text)}
.hcc-agenda-panel .agenda-calendar-icon{width:18px;height:18px;flex:0 0 18px;color:#526174}
.hcc-agenda-panel .agenda-picker-chevron{width:16px;height:16px;flex:0 0 16px;color:#7b8796}
.hcc-agenda-panel .agenda-date-picker-control input[type=date]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0;margin:0}
.hcc-agenda-panel .agenda-view-actions{display:flex;align-items:flex-end;gap:10px;margin-left:auto;flex:0 0 auto}
.hcc-agenda-panel .agenda-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px!important;align-items:end!important;width:100%!important;margin-left:0!important}
.hcc-agenda-panel .agenda-filters label{display:grid!important;gap:5px!important;min-width:0!important;width:100%}
.hcc-agenda-panel .agenda-filters select{width:100%;height:42px!important;min-height:42px!important}
@media(max-width:1024px){.hcc-agenda-panel .agenda-controls-top{align-items:stretch;flex-wrap:wrap}.hcc-agenda-panel .agenda-date-nav{width:100%;flex:1 1 100%}.hcc-agenda-panel .agenda-view-actions{margin-left:0}.hcc-agenda-panel .agenda-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hcc-agenda-panel .agenda-controls{padding:12px!important}.hcc-agenda-panel .agenda-date-nav{display:grid;grid-template-columns:auto auto auto minmax(0,1fr);align-items:end}.hcc-agenda-panel .agenda-date-picker{min-width:0;max-width:none;width:100%;grid-column:4}.hcc-agenda-panel .agenda-view-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto}.hcc-agenda-panel .agenda-segmented{width:100%}.hcc-agenda-panel .agenda-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.hcc-agenda-panel .agenda-date-nav{grid-template-columns:auto auto auto}.hcc-agenda-panel .agenda-date-picker{grid-column:1/-1}.hcc-agenda-panel .agenda-filters{grid-template-columns:1fr}.hcc-agenda-panel .agenda-view-actions{grid-template-columns:1fr}.hcc-agenda-panel .agenda-view-actions>.btn-secondary{width:100%}}


/* M7.19.6.25.8.10.8 · responsive iPad + toolbar + convivencia con panel lateral */
.hcc-agenda-panel .agenda-controls{gap:16px!important}
.hcc-agenda-panel .agenda-controls-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;column-gap:16px!important;row-gap:10px!important}
.hcc-agenda-panel .agenda-date-nav{align-items:flex-end!important;min-width:0!important}
.hcc-agenda-panel .agenda-date-nav>#agenda-today,.hcc-agenda-panel .agenda-date-nav>.agenda-icon-button{position:relative;top:2px}
.hcc-agenda-panel .agenda-date-picker-control strong{font-weight:400!important}
.hcc-agenda-panel .agenda-view-actions{justify-self:end!important;align-self:end!important;margin-left:0!important}
.hcc-agenda-panel .agenda-filters{margin-top:2px!important}

/* Tablet: semana completa sin cortar columnas ni depender de scroll horizontal. */
@media(min-width:768px) and (max-width:1279px){
  .hcc-agenda-panel{--agenda-drawer-width:clamp(340px,42vw,440px)}
  .hcc-agenda-panel .agenda-controls-top{grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important}
  .hcc-agenda-panel .agenda-date-nav{display:flex!important;width:auto!important;flex:1 1 auto!important;gap:7px!important}
  .hcc-agenda-panel .agenda-date-picker{min-width:220px!important;max-width:300px!important;flex:1 1 280px!important}
  .hcc-agenda-panel .agenda-view-actions{display:flex!important;width:auto!important;justify-content:flex-end!important;gap:8px!important}
  .hcc-agenda-panel .agenda-segmented button{min-width:66px!important;padding-left:12px!important;padding-right:12px!important}
  .hcc-agenda-panel .agenda-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
  .hcc-agenda-panel .agenda-grid-wrap{overflow-x:hidden!important;overflow-y:hidden!important}
  .hcc-agenda-panel .agenda-grid:not(.agenda-grid-day){width:100%!important;min-width:0!important;grid-template-columns:56px repeat(7,minmax(0,1fr))!important}
  .hcc-agenda-panel .agenda-grid-day{width:100%!important;min-width:0!important;grid-template-columns:56px minmax(0,1fr)!important}
  .hcc-agenda-panel .agenda-day-head strong{font-size:12px!important;white-space:nowrap}
  .hcc-agenda-panel .agenda-day-head span{font-size:10px!important}
  .hcc-agenda-panel .agenda-time-axis span{right:7px!important;font-size:10px!important}
  .hcc-agenda-panel .agenda-event{left:4px!important;right:4px!important;padding:6px 6px!important}
  .hcc-agenda-panel .agenda-event-title{font-size:11px!important}

  /* En iPad el editor deja el cuadrante a la vista en lugar de cubrirlo. */
  .hcc-agenda-panel .agenda-editor-overlay{background:transparent!important;pointer-events:none!important}
  .hcc-agenda-panel .agenda-editor-backdrop{display:none!important}
  .hcc-agenda-panel .agenda-editor{width:var(--agenda-drawer-width)!important;max-width:var(--agenda-drawer-width)!important;pointer-events:auto!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-calendar-shell{margin-right:calc(var(--agenda-drawer-width) + 10px)!important;transition:margin-right .18s ease!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-grid:not(.agenda-grid-day){grid-template-columns:46px repeat(7,minmax(0,1fr))!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-day-head strong{font-size:10px!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-day-head span{font-size:8.5px!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-time-axis span{font-size:9px!important;right:5px!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-event{left:2px!important;right:2px!important;padding:5px 4px!important;border-left-width:3px!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-event-top{display:block!important;font-size:8.5px!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-event-top span,.hcc-agenda-panel.agenda-drawer-open .agenda-event small,.hcc-agenda-panel.agenda-drawer-open .agenda-event-foot{display:none!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-event-title{font-size:9.5px!important;line-height:1.2!important;overflow-wrap:anywhere}
}

/* iPad portrait / tablet estrecha: compactar solo lo necesario, manteniendo acciones arriba a la derecha. */
@media(min-width:768px) and (max-width:900px){
  .hcc-agenda-panel{--agenda-drawer-width:340px}
  .hcc-agenda-panel .agenda-controls{padding:12px!important}
  .hcc-agenda-panel .agenda-controls-top{column-gap:10px!important}
  .hcc-agenda-panel .agenda-date-nav{gap:5px!important}
  .hcc-agenda-panel .agenda-date-picker{min-width:190px!important;max-width:235px!important;flex-basis:220px!important}
  .hcc-agenda-panel .agenda-date-nav>.btn-secondary,.hcc-agenda-panel .agenda-date-nav>.agenda-icon-button,.hcc-agenda-panel .agenda-view-actions>.btn-secondary,.hcc-agenda-panel .agenda-segmented button{height:40px!important;min-height:40px!important}
  .hcc-agenda-panel .agenda-icon-button{width:40px!important;min-width:40px!important}
  .hcc-agenda-panel .agenda-segmented button{min-width:58px!important;padding:8px 10px!important}
  .hcc-agenda-panel .agenda-view-actions>.btn-secondary{padding-left:12px!important;padding-right:12px!important}
  .hcc-agenda-panel .agenda-date-picker-control{height:40px!important;padding:0 9px!important}
  .hcc-agenda-panel .agenda-date-picker-control strong{font-size:12px!important}
  .hcc-agenda-panel .agenda-control-label{font-size:10px!important}
}

/* Móvil: prioriza legibilidad; la semana puede desplazarse horizontalmente y el editor ocupa pantalla. */
@media(max-width:767px){
  .hcc-agenda-panel .agenda-controls-top{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
  .hcc-agenda-panel .agenda-view-actions{justify-self:stretch!important;width:100%!important}
  .hcc-agenda-panel .agenda-grid-wrap{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch}
  .hcc-agenda-panel .agenda-grid:not(.agenda-grid-day){min-width:760px!important;grid-template-columns:54px repeat(7,minmax(100px,1fr))!important}
  .hcc-agenda-panel .agenda-grid-day{min-width:0!important;width:100%!important;grid-template-columns:54px minmax(0,1fr)!important}
  .hcc-agenda-panel.agenda-drawer-open .agenda-calendar-shell{margin-right:0!important}
  .hcc-agenda-panel .agenda-editor-overlay{background:rgba(12,20,32,.42)!important;pointer-events:auto!important}
  .hcc-agenda-panel .agenda-editor-backdrop{display:block!important}
  .hcc-agenda-panel .agenda-editor{width:100vw!important;max-width:100vw!important}
}

@media(max-width:640px){
  .hcc-agenda-panel .agenda-date-nav{display:grid!important;grid-template-columns:auto auto auto minmax(0,1fr)!important;align-items:end!important}
  .hcc-agenda-panel .agenda-date-picker{grid-column:4!important;min-width:0!important;max-width:none!important;width:100%!important}
  .hcc-agenda-panel .agenda-view-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}
  .hcc-agenda-panel .agenda-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:420px){
  .hcc-agenda-panel .agenda-date-nav{grid-template-columns:auto auto auto!important}
  .hcc-agenda-panel .agenda-date-picker{grid-column:1/-1!important}
  .hcc-agenda-panel .agenda-view-actions{grid-template-columns:1fr!important}
  .hcc-agenda-panel .agenda-filters{grid-template-columns:1fr!important}
}


/* ===== M7.19.6.25.8.10.9 · client landing visibility + fleet/modal polish ===== */
/* La landing autenticada solo aparece en el menú cuando está activa; Administración conserva siempre el acceso de preview. */
#landing-carper-tab-button[hidden]{display:none!important;}

/* Estado vacío de Mi flota: dos tarjetas equivalentes, limpias y con la misma proporción. */
body.audit-phase4.authenticated #m719-my-fleet.m719-fleet-empty > .m719-columns{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
body.audit-phase4.authenticated #m719-my-fleet.m719-fleet-empty > .m719-columns > #m719-list,
body.audit-phase4.authenticated #m719-my-fleet.m719-fleet-empty > .m719-columns > #m719-detail{
  box-sizing:border-box!important;
  min-height:116px!important;
  padding:12px!important;
  display:flex!important;
  align-items:stretch!important;
  background:#fbfcfd!important;
}
body.audit-phase4.authenticated #m719-my-fleet .m719-empty-card{
  box-sizing:border-box!important;
  width:100%!important;
  min-height:90px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  padding:18px 20px!important;
  border:1px dashed #cbd7e5!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#263549!important;
  text-align:center!important;
}
body.audit-phase4.authenticated #m719-my-fleet .m719-empty-card strong{
  font:600 13px/1.35 var(--qa613-font,var(--y64-font,system-ui,sans-serif))!important;
}
body.audit-phase4.authenticated #m719-my-fleet .m719-empty-card small{
  display:block!important;
  max-width:520px!important;
  color:#697688!important;
  font:400 12px/1.5 var(--qa613-font,var(--y64-font,system-ui,sans-serif))!important;
}

/* Modal Flota compartido por cliente/administración: header a borde útil, título a la izquierda y X al extremo derecho. */
body.audit-phase4.authenticated #m719-modal .m719-dialog{
  padding:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  width:min(680px,calc(100vw - 28px))!important;
}
body.audit-phase4.authenticated #m719-modal .m719-dialog > .m719-line{
  box-sizing:border-box!important;
  width:100%!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0!important;
  padding:16px 18px!important;
}
body.audit-phase4.authenticated #m719-modal .m719-dialog > .m719-line > h3{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  text-align:left!important;
}
body.audit-phase4.authenticated #m719-modal .m719-dialog > .m719-line > #m719-modal-close{
  flex:0 0 36px!important;
  margin-left:auto!important;
}
body.audit-phase4.authenticated #m719-modal #m719-modal-content{
  box-sizing:border-box!important;
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  padding:18px 18px 0!important;
}
body.audit-phase4.authenticated #m719-modal #m719-modal-error{
  margin:12px 18px 0!important;
}
body.audit-phase4.authenticated #m719-modal .m719-actions{
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:100%!important;
  margin:0!important;
  padding:14px 18px 18px!important;
  background:#fff!important;
}

@media(max-width:1023px){
  body.audit-phase4.authenticated #m719-my-fleet.m719-fleet-empty > .m719-columns{gap:12px!important;}
  body.audit-phase4.authenticated #m719-modal .m719-dialog{width:min(680px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;}
}
@media(max-width:719px){
  body.audit-phase4.authenticated #m719-my-fleet.m719-fleet-empty > .m719-columns{grid-template-columns:1fr!important;}
  body.audit-phase4.authenticated #m719-my-fleet.m719-fleet-empty > .m719-columns > #m719-list,
  body.audit-phase4.authenticated #m719-my-fleet.m719-fleet-empty > .m719-columns > #m719-detail{min-height:104px!important;}
  body.audit-phase4.authenticated #m719-modal{padding:10px!important;}
  body.audit-phase4.authenticated #m719-modal .m719-dialog{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 20px)!important;}
  body.audit-phase4.authenticated #m719-modal .m719-dialog > .m719-line{padding:14px 14px!important;}
  body.audit-phase4.authenticated #m719-modal #m719-modal-content{padding:16px 14px 0!important;}
  body.audit-phase4.authenticated #m719-modal .m719-actions{padding:12px 14px 14px!important;}
}
