/* Jenasaro product replicas, interactive demo and feature tour (Nov 2026).
   Replicas are positioned with column classes (.at1–.at14 start, .sp1–.sp14 span) so they render
   without inline styles (the site's Content-Security-Policy forbids them) or JavaScript. */
:root {
  --jx-today: #e0781d;
  --jx-today-tint: #fff4e6;
  --jx-blue: #2877b7;
  --jx-red: #c85454;
  --jx-red-deep: #d02932;
  --jx-green: #19864b;
  --jx-navy: #0a2742;
  --jx-sky: #73a6d1;
  --jx-gold: #e0a84a;
  --jx-base: #a9b8c2;
  --jx-grid: #edf2f0;
  --jx-line: #dfe7e3;
  --jx-text: #0e2c4a;
  --jx-sub: #6d827b;
}

/* ---------- App window ---------- */
.jx-window {
  background: #fff;
  border: 1px solid var(--jx-line);
  border-radius: 14px;
  box-shadow:
    0 1px 0 #fff inset,
    0 40px 90px rgba(16, 46, 41, 0.16),
    0 6px 18px rgba(16, 46, 41, 0.06);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.jx-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: #f4f7f6;
  border-bottom: 1px solid var(--jx-line);
}
.jx-dots {
  display: flex;
  gap: 6px;
}
.jx-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6dfdb;
}
.jx-url {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--jx-line);
  color: var(--jx-sub);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jx-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--jx-line);
}
.jx-appbar strong {
  color: var(--forest);
  font-size: 13px;
}
.jx-appbar small {
  display: block;
  color: var(--jx-sub);
  font-size: 10.5px;
  font-weight: 600;
}
.jx-tabs {
  display: flex;
  gap: 4px;
}
.jx-tabs span {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--jx-sub);
  font-size: 10.5px;
  font-weight: 700;
}
.jx-tabs span.on {
  background: var(--forest);
  color: #fff;
}

/* ---------- Gantt replica ---------- */
.jx-gantt {
  --label: 196px;
  position: relative;
  font-size: 11px;
}
.jx-head,
.jx-row {
  display: grid;
  grid-template-columns: var(--label) 1fr;
}
.jx-head {
  background: #f7faf9;
  border-bottom: 1px solid var(--jx-line);
}
.jx-head > b {
  display: flex;
  align-items: flex-end;
  padding: 0 12px 7px;
  color: var(--forest);
  font-size: 11px;
}
.jx-days,
.jx-track {
  display: grid;
  grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr));
  grid-auto-rows: 100%;
  position: relative;
}
.cols-10 {
  --cols: 10;
}
.cols-12 {
  --cols: 12;
}
.cols-14 {
  --cols: 14;
}
.jx-days span {
  grid-row: 1;
  display: grid;
  justify-items: center;
  padding: 6px 0 5px;
  border-left: 1px solid var(--jx-grid);
  color: #2c4a40;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.1;
}
.jx-days span small {
  color: #7c988f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.jx-days span.is-today {
  background: #fff0dc;
  color: #a45716;
  box-shadow: inset 0 -3px 0 var(--jx-today);
}
.jx-days span.is-today small {
  color: #a45716;
}
.jx-row {
  min-height: 46px;
  border-bottom: 1px solid var(--jx-grid);
}
.jx-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 12px;
}
.jx-label b {
  overflow: hidden;
  color: var(--jx-text);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.jx-label.l2 b {
  padding-left: 12px;
}
.jx-label.l2 .jx-badge {
  margin-left: 12px;
}
.jx-badge {
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}
.jx-badge.late {
  color: #a93636;
  background: #ffe8e8;
}
.jx-badge.early,
.jx-badge.ok {
  color: #237552;
  background: #ddf4e9;
}
.jx-badge.wait {
  color: var(--jx-sub);
  background: #eef3f1;
}
.jx-badge.ready {
  color: #1d5e8f;
  background: #e3f0fa;
}
.jx-track > * {
  grid-row: 1;
}
.jx-cell {
  border-left: 1px solid var(--jx-grid);
}
.jx-tint {
  position: relative;
  background: var(--jx-today-tint);
}
.jx-tint::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--jx-today);
  z-index: 3;
}
.jx-summary {
  align-self: center;
  height: 5px;
  margin-top: 6px;
  border: 0 solid var(--forest);
  border-width: 0 2px;
  background: var(--forest);
  z-index: 2;
}
.jx-baseline {
  align-self: start;
  height: 4px;
  margin: 10px 2px 0;
  border-radius: 2px;
  background: var(--jx-base);
  z-index: 1;
}
.jx-bar {
  align-self: end;
  display: flex;
  height: 13px;
  margin: 0 2px 9px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--jx-blue);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.jx-bar.red {
  background: var(--jx-red);
}
.jx-bar i {
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}
.jx-bar i:last-child {
  border-right: 0;
}
.jx-bar i.done {
  background: var(--jx-green);
}
.jx-bar i.commit {
  background: transparent;
  box-shadow: inset 0 0 0 2px #ffcb59;
}
.jx-ms {
  align-self: end;
  justify-self: center;
  width: 9px;
  height: 9px;
  margin-bottom: 11px;
  border-radius: 1px;
  background: var(--jx-navy);
  border: 1.5px solid var(--jx-sky);
  transform: rotate(45deg);
  z-index: 3;
}
.jx-ms.major {
  width: 10px;
  height: 10px;
  margin-bottom: 10px;
  border: 1.5px solid var(--jx-gold);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(10, 39, 66, 0.55);
}
.jx-ms.done {
  background: var(--jx-green);
}
.jx-ms.base {
  align-self: start;
  width: 6px;
  height: 6px;
  margin: 9px 0 0;
  border: 0;
  background: var(--jx-base);
  box-shadow: none;
}
.jx-stop {
  align-self: end;
  justify-self: start;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin: 0 0 7px -9px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: var(--jx-red-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(81, 32, 41, 0.4);
  z-index: 4;
}
.jx-links {
  position: absolute;
  inset: 0 0 0 var(--label);
  width: calc(100% - var(--label));
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.jx-links path {
  fill: none;
  stroke: #8a9ba6;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.jx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--jx-line);
  color: var(--jx-sub);
  font-size: 10.5px;
  font-weight: 600;
}
.jx-legend i {
  display: inline-block;
  width: 14px;
  height: 7px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: middle;
}

/* Grid placement classes */
.at1 { grid-column-start: 1; }
.at2 { grid-column-start: 2; }
.at3 { grid-column-start: 3; }
.at4 { grid-column-start: 4; }
.at5 { grid-column-start: 5; }
.at6 { grid-column-start: 6; }
.at7 { grid-column-start: 7; }
.at8 { grid-column-start: 8; }
.at9 { grid-column-start: 9; }
.at10 { grid-column-start: 10; }
.at11 { grid-column-start: 11; }
.at12 { grid-column-start: 12; }
.at13 { grid-column-start: 13; }
.at14 { grid-column-start: 14; }
.sp1 { grid-column-end: span 1; }
.sp2 { grid-column-end: span 2; }
.sp3 { grid-column-end: span 3; }
.sp4 { grid-column-end: span 4; }
.sp5 { grid-column-end: span 5; }
.sp6 { grid-column-end: span 6; }
.sp7 { grid-column-end: span 7; }
.sp8 { grid-column-end: span 8; }
.sp9 { grid-column-end: span 9; }
.sp10 { grid-column-end: span 10; }
.sp11 { grid-column-end: span 11; }
.sp12 { grid-column-end: span 12; }
.sp13 { grid-column-end: span 13; }
.sp14 { grid-column-end: span 14; }

/* The one orchestrated moment: on load the hero's Today line arrives and the counters appear. */
@media (prefers-reduced-motion: no-preference) {
  .jx-hero .jx-tint::after {
    animation: jx-today-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
    transform-origin: top;
  }
  .jx-hero .jx-badge {
    animation: jx-fade 0.5s ease 1s both;
  }
}
@keyframes jx-today-in {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes jx-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Hero ---------- */
.jx-hero-wrap {
  position: relative;
}
.jx-hero-wrap .jx-window {
  position: relative;
  z-index: 1;
}
.jx-float {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid var(--jx-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 46, 41, 0.14);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.jx-float b {
  display: block;
  color: var(--jx-text);
  font-size: 12px;
}
.jx-float small {
  color: var(--jx-sub);
  font-weight: 600;
}
.jx-float.ready-card {
  right: -22px;
  bottom: -26px;
  min-width: 190px;
}
.jx-float.ready-card ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.jx-float.ready-card li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: var(--jx-text);
  font-weight: 650;
}
.jx-float.ready-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jx-blue);
}
.jx-float.ready-card li.blocked::before {
  background: var(--jx-red-deep);
}
.signin-link {
  color: var(--forest);
  font-weight: 750;
}
.main-nav .signin-link {
  padding: 11px 14px;
  border: 1px solid #bcc9c2;
  border-radius: 8px;
}
.main-nav .signin-link:hover {
  border-color: var(--forest);
}

/* ---------- Section frame ---------- */
.jx-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 28px;
}
.jx-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 36px;
}
.jx-kicker {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 14px;
  font-weight: 750;
}
.jx-section-head h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.jx-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Interactive demo ---------- */
.jx-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.jx-controls {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--jx-line);
  border-radius: 14px;
  background: #fff;
}
.jx-controls h3 {
  margin: 0;
  color: var(--deep);
  font-size: 15px;
}
.jx-controls label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.jx-controls input[type="range"] {
  width: 100%;
  accent-color: var(--jx-today);
}
.jx-controls output {
  color: #a45716;
  font-weight: 800;
}
.jx-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #bcc9c2;
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.jx-btn:hover:not(:disabled) {
  border-color: var(--forest);
}
.jx-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.jx-btn.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.jx-btn:focus-visible,
.jx-tour-tabs button:focus-visible,
.signin-link:focus-visible {
  outline: 3px solid var(--jx-today);
  outline-offset: 2px;
}
.jx-panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}
.jx-panel-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--jx-grid);
  color: var(--jx-text);
  font-weight: 650;
}
.jx-panel-list li:last-child {
  border-bottom: 0;
}
.jx-panel-list li span {
  flex: none;
}
.jx-panel-list .empty {
  color: var(--jx-sub);
  font-weight: 600;
}
.jx-note {
  margin: 0;
  color: var(--jx-sub);
  font-size: 12px;
  line-height: 1.5;
}
.jx-demo-msg {
  min-height: 20px;
  margin: 12px 2px 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 650;
}
.jx-noscript {
  padding: 18px;
  color: var(--jx-sub);
}

/* ---------- Feature tour ---------- */
.jx-tour {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.jx-tour-tabs {
  display: grid;
  gap: 6px;
}
.jx-tour-tabs button {
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  border: 1px solid #d3ddd8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.jx-tour-tabs button b {
  font-size: 15px;
}
.jx-tour-tabs button span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.jx-tour-tabs button:hover {
  border-color: var(--brass);
  background: #fff;
}
.jx-tour-tabs button[aria-selected="true"] {
  border-color: var(--forest);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--brass);
}
.jx-tour-panel {
  display: grid;
  gap: 18px;
}
.jx-tour-panel[hidden] {
  display: none;
}
.jx-tour-panel > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.jx-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}
.jx-points li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--brass);
  font-weight: 900;
}

/* Daily plan replica */
.jx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.jx-table th {
  padding: 8px 12px;
  background: #f7faf9;
  color: var(--jx-sub);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid var(--jx-line);
}
.jx-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--jx-grid);
  color: var(--jx-text);
  vertical-align: middle;
}
.jx-table td b {
  display: block;
  font-size: 12px;
}
.jx-table td small {
  color: var(--jx-sub);
  font-size: 10.5px;
}
.jx-table td.num {
  font-weight: 800;
  text-align: right;
}
.jx-plan-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
}
.jx-kpi {
  padding: 10px 12px;
  border: 1px solid var(--jx-line);
  border-radius: 9px;
  background: #fbfcfc;
}
.jx-kpi small {
  display: block;
  color: var(--jx-sub);
  font-size: 10px;
  font-weight: 700;
}
.jx-kpi b {
  color: var(--jx-text);
  font-size: 20px;
}
.jx-kpi b.red {
  color: #a93636;
}
.jx-kpi b.green {
  color: #237552;
}

/* Track diagram and 3D replicas (SVG) */
.jx-svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fbfcfc;
}
.jx-svg text {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

/* Reports replica */
.jx-report {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  padding: 14px;
}
.jx-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 10px 4px 0;
  border-bottom: 1px solid var(--jx-line);
}
.jx-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--forest);
}
.h53 { height: 53%; }
.h57 { height: 57%; }
.h68 { height: 68%; }
.h72 { height: 72%; }
.h79 { height: 79%; }
.h84 { height: 84%; }
.h88 { height: 88%; }
.h92 { height: 92%; }
.jx-bars i.last {
  background: var(--brass);
}
.jx-card {
  padding: 12px 14px;
  border: 1px solid var(--jx-line);
  border-radius: 10px;
  background: #fff;
}
.jx-card h4 {
  margin: 0 0 8px;
  color: var(--jx-text);
  font-size: 12.5px;
}
.jx-flag {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--brass);
  background: #fbf6ee;
  font-size: 11.5px;
}
.jx-flag b {
  display: block;
  color: var(--jx-text);
}

/* Print lookahead replica */
.jx-paper-stage {
  padding: 22px;
  background: #e9eeec;
}
.jx-paper {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 18px 8px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 46, 41, 0.18);
}
.jx-paper-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--forest);
}
.jx-paper-head b {
  display: block;
  color: var(--forest);
  font-size: 13px;
}
.jx-paper-head small {
  color: var(--jx-sub);
  font-size: 10px;
  font-weight: 700;
}
.jx-paper .jx-gantt {
  --label: 150px;
  font-size: 9px;
}
.jx-paper .jx-row {
  min-height: 34px;
}
.jx-paper .jx-label b {
  font-size: 9.5px;
}
.jx-paper .jx-badge {
  font-size: 8px;
}

/* ---------- Demo request form ---------- */
.form-step-title {
  margin: 8px 0 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
}
.slot-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid #c8d4ce;
  border-radius: 8px;
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}
.slot-group input {
  accent-color: var(--forest);
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .jx-demo,
  .jx-tour {
    grid-template-columns: 1fr;
  }
  .jx-tour-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jx-tour-tabs button span {
    display: none;
  }
  .jx-float.ready-card {
    right: 10px;
  }
}
@media (max-width: 780px) {
  .jx-section {
    padding: 64px 16px;
  }
  .jx-section-head {
    grid-template-columns: 1fr;
  }
  .jx-gantt {
    --label: 128px;
  }
  .jx-label b {
    font-size: 10.5px;
  }
  .jx-tabs,
  .jx-float {
    display: none;
  }
  .jx-tour-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jx-plan-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jx-report {
    grid-template-columns: 1fr;
  }
  .jx-table th:nth-child(3),
  .jx-table td:nth-child(3) {
    display: none;
  }
  .main-nav .signin-link {
    border: 0;
    padding: 0;
  }
}
@media (max-width: 520px) {
  .jx-gantt {
    --label: 104px;
  }
  .jx-days span small {
    display: none;
  }
  .jx-scroll {
    overflow-x: auto;
  }
  .jx-scroll > .jx-gantt {
    min-width: 520px;
  }
}

/* Day grid lines come from the track background, so rows need no per-day cells. */
.jx-track {
  background-image: linear-gradient(90deg, var(--jx-grid) 1px, transparent 1px);
  background-size: calc(100% / var(--cols, 12)) 100%;
}
.jx-body {
  position: relative;
}
.jx-fixed .jx-row {
  height: 46px;
  min-height: 0;
}
.jx-paper .jx-fixed .jx-row {
  height: 34px;
}
.jx-links {
  inset: 0 0 0 var(--label);
}
.lg-base { background: var(--jx-base); }
.lg-blue { background: var(--jx-blue); }
.lg-green { background: var(--jx-green); }
.lg-red { background: var(--jx-red); }
.lg-today { width: 3px !important; height: 11px !important; background: var(--jx-today); }
.slot-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.slot-fieldset legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}
.form-nav .signin-link {
  margin-left: 18px;
}

/* ---------- Sectors strip ---------- */
.jx-sectors {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 8px;
}
.jx-sectors h2 {
  margin: 0 0 22px;
  color: var(--deep);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.jx-sectors ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--forest);
}
.jx-sectors li {
  padding: 16px 18px 4px 0;
}
.jx-sectors li + li {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.jx-sectors b {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
  font-size: 15px;
}
.jx-sectors span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Shared small pieces ---------- */
.jx-chip {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid #d0e0db;
  border-radius: 7px;
  background: #fff;
  color: #245948;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.jx-chip.primary {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}
.jx-table.jx-mini th,
.jx-table.jx-mini td {
  padding: 7px 8px;
  font-size: 11px;
}
.jx-table.jx-mini td b {
  font-size: 11.5px;
}
.jx-meter {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e8eeec;
  overflow: hidden;
}
.jx-meter > i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #187c92;
}
.jx-meter .w8 { width: 8%; }
.jx-meter .w12 { width: 12%; }
.jx-meter .w17 { width: 17%; }
.jx-meter .w25 { width: 25%; }
.jx-meter .w38 { width: 38%; }
.jx-meter .w63 { width: 63%; }
.jx-meter .w79 { width: 79%; }

/* ---------- Resources replica ---------- */
.jx-res {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #f7faf9;
}
.jx-res-sub {
  display: block;
  margin: -4px 0 6px;
  color: var(--jx-sub);
  font-size: 10.5px;
}
.jx-res .jx-svg {
  background: transparent;
}
.jx-res-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  color: var(--jx-sub);
  font-size: 10.5px;
  font-weight: 700;
}
.jx-res-legend i {
  display: inline-block;
  width: 10px;
  height: 7px;
  margin-right: 5px;
  border-radius: 2px;
}
.jx-res-side {
  display: grid;
  gap: 12px;
  align-content: start;
}
.jx-proposal {
  border-color: #ecd9b8;
  background: #fffaf2;
}
.jx-proposal p {
  margin: 0 0 10px;
  color: #3c524c;
  font-size: 11.5px;
  line-height: 1.5;
}
.jx-proposal-result {
  display: flex;
  justify-content: space-between;
  padding: 7px 9px;
  margin-bottom: 10px;
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  color: var(--jx-sub);
}
.jx-proposal-result b {
  color: #237552;
}
.jx-proposal-actions {
  display: flex;
  gap: 8px;
}
.jx-plant {
  margin: 0;
  padding: 0;
  list-style: none;
}
.jx-plant li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--jx-grid);
  font-size: 11px;
}
.jx-plant b {
  color: var(--jx-text);
}
.jx-plant span {
  color: var(--jx-sub);
  text-align: right;
}
.jx-plant span.red {
  color: #a93636;
  font-weight: 700;
}

/* ---------- Lean replica ---------- */
.jx-lean {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #f7faf9;
}
.jx-takt-card {
  grid-column: 1 / -1;
}
.jx-takt {
  display: grid;
  gap: 3px;
}
.jx-takt-row {
  display: grid;
  grid-template-columns: 62px repeat(10, minmax(0, 1fr));
  gap: 3px;
  align-items: stretch;
}
.jx-takt-row > b {
  align-self: center;
  color: var(--jx-text);
  font-size: 10.5px;
}
.jx-takt-row > span {
  min-height: 24px;
  padding: 4px 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f5f3;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.jx-takt-head > span {
  min-height: 0;
  padding: 0 0 2px;
  background: none;
  color: var(--jx-sub);
  text-align: center;
}
.jx-takt-row .t1 { background: #6c8f86; }
.jx-takt-row .t2 { background: #2877b7; }
.jx-takt-row .t3 { background: #b08d57; }
.jx-takt-row .t4 { background: #5a6fa8; }
.jx-takt-row .t5 { background: #183e38; }
.jx-takt-row .done {
  opacity: 0.45;
}
.jx-takt-row .now {
  box-shadow: inset 0 0 0 2px #e0781d;
}
.jx-takt-row .late {
  background: #c85454;
}
.jx-pareto {
  margin: 0;
  padding: 0;
  list-style: none;
}
.jx-pareto li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  font-size: 11px;
  color: var(--jx-text);
}
.jx-pareto b {
  text-align: right;
}

/* ---------- Dashboard replica (matches the app's production analytics) ---------- */
.jx-dash {
  background: #f4f8f7;
  color: #1a4034;
}
.jx-dash-tabs {
  display: flex;
  gap: 2px;
  overflow: hidden;
  padding: 6px 14px 0;
  background: #fff;
  border-bottom: 1px solid #dfe9e6;
}
.jx-dash-tabs span {
  padding: 9px 10px;
  border-bottom: 3px solid transparent;
  color: #638b7e;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.jx-dash-tabs span.on {
  color: #2e735c;
  border-bottom-color: #2e735c;
}
.jx-dash-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.jx-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jx-dash-head small {
  display: block;
  color: #2e735c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.jx-dash-head b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.jx-dash-head span:not(.jx-chip) {
  color: #60897b;
  font-size: 11px;
}
.jx-dash-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe9e6;
  border-radius: 10px;
  background: #fff;
}
.jx-dash-filters span {
  display: grid;
  gap: 3px;
  min-width: 96px;
  padding: 5px 8px;
  border: 1px solid #d0e0db;
  border-radius: 6px;
  color: #245948;
  font-size: 10.5px;
}
.jx-dash-filters small {
  color: #5a8174;
  font-size: 9px;
  font-weight: 600;
}
.jx-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.jx-dash-kpis > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #dfe9e6;
  border-top: 3px solid #bdd3cc;
  border-radius: 10px;
  background: #fff;
}
.jx-dash-kpis small {
  color: #60897b;
  font-size: 10px;
  font-weight: 600;
}
.jx-dash-kpis b {
  font-size: 24px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.jx-dash-kpis b.neg {
  color: #b04a3e;
}
.jx-dash-kpis b.cause {
  font-size: 14px;
}
.jx-dash-kpis span {
  color: #60897b;
  font-size: 10px;
}
.jx-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.jx-dash-card {
  padding: 12px 14px;
  border: 1px solid #dfe9e6;
  border-radius: 10px;
  background: #fff;
}
.jx-dash-card h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
}
.jx-dash-card .jx-svg {
  background: transparent;
}
.jx-dash-card .jx-meter > i {
  background: #187c92;
}
.jx-dash-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  color: #4d6660;
  font-size: 10px;
}
.jx-dash-legend i {
  display: inline-block;
  width: 10px;
  height: 8px;
  margin-right: 4px;
}
.jx-dash-legend .teal { background: #187c92; }
.jx-dash-legend .amber { background: #e8b057; }
.jx-dash-legend .red { background: #cb6053; }
.jx-dash-legend .grey { background: #bdc8d4; }
.jx-dash-legend .dash {
  height: 0;
  border-top: 2px dashed #8b9cae;
  vertical-align: middle;
}

@media (max-width: 1050px) {
  .jx-sectors ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jx-sectors li,
  .jx-sectors li + li {
    padding: 14px 16px 10px 0;
    border-left: 0;
  }
}
@media (max-width: 780px) {
  .jx-res,
  .jx-lean,
  .jx-dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .jx-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jx-takt-row {
    grid-template-columns: 46px repeat(10, minmax(0, 1fr));
  }
  .jx-takt-row > span {
    font-size: 0;
  }
}
@media (max-width: 520px) {
  .jx-sectors ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .jx-dash-filters span:nth-child(n + 3) {
    display: none;
  }
}
@media (max-width: 780px) {
  .jx-table.jx-mini th:nth-child(3),
  .jx-table.jx-mini td:nth-child(3) {
    display: table-cell;
  }
  .jx-model-scroll {
    overflow-x: auto;
  }
  .jx-model-scroll > .jx-svg {
    min-width: 760px;
  }
}
