/* V1.3 - faithful, production data-driven implementation of approved concept. */
body[data-page="dashboard"] .content{max-width:none!important;padding-bottom:26px!important}
.nx13-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:87px;margin:0 0 13px}
.nx13-heading-text{min-width:0;position:relative;z-index:1}
.nx13-heading h1{font-size:clamp(24px,2.5vw,34px);line-height:1.12;font-weight:800;letter-spacing:-.045em;color:#102945}
.nx13-heading p{margin-top:8px;font-size:12.5px;color:#53708b}
.nx13-hero-art{position:relative;display:flex;align-items:center;justify-content:space-between;flex:0 1 385px;min-height:86px;overflow:hidden;background:linear-gradient(90deg,#f5f9fd 0%,rgba(233,245,251,.88) 42%,rgba(214,233,241,.3) 100%),url('../assets/nx-factory-header-v130.webp') 70%/cover;border-radius:7px;padding:6px 13px 6px 22px}
.nx13-hero-art:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f7fbff 0,rgba(247,251,255,.75) 44%,rgba(247,251,255,.20) 100%)}
.nx13-hero-art>*{position:relative;z-index:1}
.nx13-hero-art img{width:66px;height:66px;object-fit:contain;filter:drop-shadow(0 3px 7px rgba(3,40,65,.1))}
.nx13-hero-message strong{display:block;font-size:10px;font-weight:900;letter-spacing:.17em;line-height:1.55;color:#375674}
.nx13-hero-message small{display:block;margin-top:8px;padding-top:7px;border-top:2px solid #00bea3;font-size:7px;font-weight:850;letter-spacing:.12em;color:#3d7085}
.nx13-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}
.nx13-kpi{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:137px;padding:13px 12px;border-radius:10px;background:#fff;border:1px solid #d9e5ef;box-shadow:0 2px 8px rgba(10,40,68,.02);transition:border-color .15s,box-shadow .15s}
.nx13-kpi:hover{border-color:#a9d6d5;box-shadow:0 9px 24px rgba(17,62,90,.08)}
.nx13-kpi-primary{display:flex;align-items:center;gap:10px;min-width:0}.nx13-kpi-primary>div{min-width:0}
.nx13-icon{display:grid;place-items:center;flex:0 0 45px;width:45px;height:45px;border-radius:9px;color:#fff;background:linear-gradient(135deg,#0d4364,#0b304f)}
.nx13-icon svg{width:24px;height:24px;stroke-width:1.95}
.nx13-dark{background:linear-gradient(135deg,#124d6f,#0c2b49)}.nx13-teal{background:linear-gradient(140deg,#09ceb2,#009887)}.nx13-green{background:linear-gradient(145deg,#13987e,#0e6c62)}.nx13-blue{background:linear-gradient(145deg,#147eae,#11537f)}
.nx13-kpi-label{display:block;color:#284966;font-size:10px;font-weight:760;line-height:1.35}
.nx13-kpi strong{display:block;margin-top:5px;font-size:clamp(18px,1.9vw,28px);line-height:1.1;color:#0b2540;font-weight:825;letter-spacing:-.04em;white-space:nowrap}
.nx13-kpi small{display:block;margin-top:3px;font-size:8.5px;color:#6b8499;line-height:1.3}
.nx13-kpi-bottom{display:flex;align-items:end;justify-content:space-between;gap:5px;margin-top:16px;min-height:20px}
.nx13-kpi-context{color:#6f8c9f;font-size:8.6px;line-height:1.35;max-width:75%}
.nx13-kpi-context.nx13-positive{color:#088d70;font-weight:800}
.nx13-kpi-spark{height:24px;display:flex;align-items:flex-end;gap:3px}
.nx13-kpi-spark i{display:inline-block;width:5px;min-height:2px;border-radius:1px 1px 0 0;background:#09b9a1}
.nx13-kpi-motif{width:38px;height:27px;flex:0 0 38px;opacity:.6;background:linear-gradient(to top,#cbe3f0 25%,transparent 25%) 1px 75%/6px 30px no-repeat,linear-gradient(to top,#00bca2 45%,transparent 45%) 11px 65%/6px 30px no-repeat,linear-gradient(to top,#99d9d7 62%,transparent 62%) 21px 50%/6px 30px no-repeat,linear-gradient(to top,#009f8d 82%,transparent 82%) 31px 35%/6px 30px no-repeat}
.nx13-panel-grid{display:grid;gap:12px;margin-bottom:12px}
.nx13-panel-grid-charts{grid-template-columns:minmax(0,1.28fr) minmax(0,1.08fr) minmax(250px,.73fr)}
.nx13-panel-grid-bottom{grid-template-columns:minmax(0,1.22fr) minmax(0,1.06fr) minmax(240px,.72fr)}
.nx13-panel{min-width:0;border:1px solid #dce7f0;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 12px rgba(12,42,70,.018)}
.nx13-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:13px 14px 10px}
.nx13-panel-header h2{font-size:14px;font-weight:820;color:#0e2743;line-height:1.3;letter-spacing:-.025em}.nx13-range{font-weight:620;font-size:11px}
.nx13-panel-header p{margin-top:4px;color:#69849a;font-size:10px;line-height:1.35}
.nx13-action-link{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;font-size:9.5px;color:#136c9e;font-weight:740;white-space:nowrap}.nx13-action-link svg{width:12px;height:12px}
.nx13-panel-header a:hover{text-decoration:underline}
.nx13-subtle-button{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;border:1px solid #d5e3ed;border-radius:6px;background:#fff;padding:7px 8px;color:#315978;font-size:9px;font-weight:760;white-space:nowrap}
.nx13-subtle-button svg{width:14px;height:14px}
.nx13-chart{height:229px;position:relative;padding:0 14px 13px;display:flex;flex-direction:column;min-width:0}
.nx13-chart-legend{display:flex;align-items:center;justify-content:flex-end;gap:14px;color:#5c7790;font-size:9px;min-height:19px}
.nx13-chart-legend>span{display:inline-flex;align-items:center;gap:6px}
.nx13-dot{display:inline-block;width:8px;height:8px;border-radius:2px;background:#cbdfea}.nx13-dot.produced{background:#04baa0}.nx13-dot.line{background:#00a78e;border-radius:50%}.nx13-dash{display:inline-block;width:19px;height:0;border-top:2px dashed #8db5cb}
.nx13-chart-svg{width:100%;flex:1;min-height:0;overflow:visible}.nx13-chart-svg text{fill:#66829c;font-size:10px;font-family:Inter,Arial,sans-serif}
.nx13-plot-hint{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);padding:5px 9px;white-space:nowrap;border:1px solid #deebf2;border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 2px 7px rgba(0,0,0,.035);font-size:9px;color:#70889a;pointer-events:none}
.nx13-chart-label{position:absolute;top:42px;right:22px;color:#078a76;font-size:12px;font-weight:820}
.nx13-chart-label small{display:block;color:#7894a4;font-size:8px;font-weight:500;text-align:right}
.nx13-loading{display:flex;align-items:center;justify-content:center;padding:17px;font-size:11px;color:#8aa1b0;text-align:center;min-height:128px}
.nx13-alert-list{display:grid;gap:7px;padding:0 10px 11px}.nx13-alert-row{display:grid;grid-template-columns:37px 1fr 13px;align-items:center;gap:8px;min-height:47px;padding:7px 8px;border-radius:9px;border:1px solid #e2ebf3;background:#fff}
.nx13-alert-row:hover{border-color:#b1ccdb;background:#fafeff}.nx13-alert-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#fff}.nx13-alert-icon svg{width:19px;height:19px;stroke-width:2}
.nx13-alert-row.danger .nx13-alert-icon{background:#d93943}.nx13-alert-row.warning .nx13-alert-icon{background:#ed9c19}.nx13-alert-row.info .nx13-alert-icon{background:#197cc5}.nx13-alert-row.navy .nx13-alert-icon{background:#0a5388}.nx13-alert-copy{min-width:0}.nx13-alert-copy strong{display:block;font-size:10.5px;font-weight:790;color:#1b334d}.nx13-alert-copy small{display:block;font-size:9px;color:#7690a3;margin-top:3px;line-height:1.25}.nx13-alert-copy small b{color:#d93943}.nx13-alert-row .nx13-chevron svg{width:13px;height:13px;color:#456781}
.nx13-factory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 11px 12px}
.nx13-factory-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #dce6ef;border-radius:7px;background:#fff}
.nx13-factory-photo{height:75px;background-size:cover;background-position:center;background-color:#ebf1f5}
.nx13-factory-card-body{flex:1;min-width:0;padding:7px 7px 8px}.nx13-factory-card h3{font-size:11px;color:#183552;font-weight:800;line-height:1.25}.nx13-factory-status{display:flex;align-items:center;gap:4px;margin-top:5px;color:#088466;font-size:9px;font-weight:730}
.nx13-factory-status:before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#00ac80}
.nx13-factory-status.idle{color:#8396a8}.nx13-factory-status.idle:before{background:#9bb0bf}
.nx13-factory-card dl{margin-top:8px;min-width:0}.nx13-factory-card dl div{display:flex;align-items:baseline;gap:4px;min-width:0;margin-bottom:3px;font-size:9px}.nx13-factory-card dt{color:#688398}.nx13-factory-card dd{flex:1;min-width:0;color:#2e5574;font-weight:720;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nx13-progress{overflow:hidden;height:6px;background:#e3edf3;border-radius:8px;margin:8px 0 4px}.nx13-progress>span{display:block;height:100%;background:linear-gradient(90deg,#0ba18c,#00c6a8);border-radius:8px}
.nx13-progress-text{font-size:9px;color:#6d8498;display:flex;align-items:center;justify-content:space-between}.nx13-progress-text b{color:#0c796d}
.nx13-factory-card .nx13-factory-idle{margin-top:7px;font-size:9px;line-height:1.35;color:#97a8b6}
.nx13-table-scroll{overflow-x:auto;padding:0 10px 12px}.nx13-orders-table{width:100%;border:1px solid #e1ebf3;border-radius:6px;border-spacing:0;border-collapse:separate;overflow:hidden;white-space:nowrap;font-size:9px}
.nx13-orders-table th{padding:8px 6px;background:#f4f9fe;text-align:left;color:#57738e;font-size:9px;font-weight:770;border-bottom:1px solid #deebf3}
.nx13-orders-table td{padding:8px 6px;color:#44627a;border-bottom:1px solid #ebf0f5;font-size:9.5px;max-width:126px;overflow:hidden;text-overflow:ellipsis}
.nx13-orders-table td:first-child{color:#24547e;font-weight:750}.nx13-orders-table tr:last-child td{border-bottom:0}
.nx13-table-status{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-weight:720;color:#2a5775;font-size:9px}.nx13-table-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#099f86}.nx13-table-status.gray:before{background:#a5b9c8}.nx13-table-status.blue:before{background:#277bb7}.nx13-table-status.red:before{background:#d84852}
.nx13-table-meter{display:inline-block;width:43px;height:6px;vertical-align:middle;overflow:hidden;border-radius:5px;background:#deebf2}.nx13-table-meter i{display:block;height:100%;background:#08b69b;border-radius:inherit}.nx13-table-number{margin-left:4px;color:#617b91;font-size:9px}
.nx13-activity-list{display:grid;padding:0 9px 10px}.nx13-activity-row{display:grid;grid-template-columns:27px 1fr;gap:8px;align-items:center;min-height:42px;padding:5px 3px;border-bottom:1px solid #e9f0f5}
.nx13-activity-row:last-child{border:0}.nx13-activity-icon{width:27px;height:27px;border-radius:50%;background:#0c927c;color:#fff;display:grid;place-items:center}.nx13-activity-icon.quality{background:#168c7b}.nx13-activity-icon.stock{background:#195a88}.nx13-activity-icon svg{width:15px;height:15px}
.nx13-activity-row strong{display:block;font-size:9.6px;color:#243c57;line-height:1.35;font-weight:770}.nx13-activity-row small{display:block;font-size:8.7px;color:#71889c;line-height:1.3;margin-top:2px}
.nx13-footer{display:flex;align-items:center;gap:10px;min-height:50px;margin-top:3px;padding:6px 14px;border:1px solid #c8ede9;background:linear-gradient(90deg,#e6fafa,#effbfe);border-radius:8px;color:#1e4a66}
.nx13-footer>img{width:37px;height:37px;object-fit:contain}.nx13-footer-brand{min-width:95px;display:flex;flex-direction:column;gap:0}.nx13-footer-brand strong{font-size:14px;font-weight:900;letter-spacing:-.07em;color:#0a2b49;line-height:1.05}.nx13-footer-brand strong span{color:#03ac96}.nx13-footer-brand small{font-size:7px;letter-spacing:.06em;color:#63859a}
.nx13-footer-motto{padding-left:11px;border-left:1px solid #9bcdd0;font-size:9px;line-height:1.45;color:#426d86;min-width:148px}
.nx13-footer-feature{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;font-size:9px;white-space:nowrap;color:#3a6880}.nx13-footer-feature span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #77b7b7;border-radius:50%;color:#006e7a}.nx13-footer-feature svg{width:14px;height:14px}
@media(max-width:1430px){.nx13-hero-art{flex-basis:330px}.nx13-kpi{padding:11px 10px;min-height:126px}.nx13-kpi-primary{gap:7px}.nx13-icon{flex-basis:40px;width:40px;height:40px}.nx13-kpi-label{font-size:9.5px}.nx13-panel-grid-charts{grid-template-columns:minmax(0,1.20fr) minmax(0,1.02fr) minmax(215px,.76fr)}.nx13-panel-grid-bottom{grid-template-columns:minmax(0,1.18fr) minmax(0,1.02fr) minmax(220px,.75fr)}.nx13-factory-photo{height:65px}.nx13-factory-card-body{padding:6px}}
@media(max-width:1180px){.nx13-panel-grid-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.nx13-alert-panel{grid-column:1/-1}.nx13-alert-list{grid-template-columns:repeat(2,minmax(0,1fr))}.nx13-panel-grid-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.nx13-activity-panel{grid-column:1/-1}.nx13-activity-list{grid-template-columns:repeat(2,1fr)}.nx13-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.nx13-hero-art{flex-basis:280px}}
@media(max-width:900px){.nx13-hero-art{display:none}.nx13-heading{min-height:70px}}
@media(max-width:740px){.nx13-panel-grid-charts,.nx13-panel-grid-bottom{grid-template-columns:1fr}.nx13-alert-panel,.nx13-activity-panel{grid-column:auto}.nx13-alert-list,.nx13-activity-list{grid-template-columns:1fr}.nx13-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nx13-factory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nx13-footer-feature{display:none}.nx13-footer-motto{margin-left:auto}}
@media(max-width:430px){.nx13-kpi-grid{gap:7px}.nx13-kpi{min-height:125px;padding:9px}.nx13-kpi-primary{align-items:flex-start;flex-direction:column}.nx13-icon{width:34px;height:34px;flex:0 0 34px}.nx13-icon svg{width:20px;height:20px}.nx13-kpi strong{font-size:21px}.nx13-chart{padding:0 8px 12px}.nx13-factory-grid{gap:6px}.nx13-factory-photo{height:70px}.nx13-footer-motto{display:none}}

/* Compact horizontal brand mark, faithful to the approved navy/teal identity. */
.nx13-hero-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-width:108px}
.nx13-hero-brand img{width:49px;height:49px}
.nx13-hero-brand b{display:block;color:#0b2a4a;font-size:14px;letter-spacing:-.065em;line-height:1.05;white-space:nowrap;font-weight:900}
.nx13-hero-brand em{font-style:normal;color:#04ad99}.nx13-hero-brand small{display:block;margin-top:3px;color:#45667a;font-size:7px;letter-spacing:.12em;text-align:center}
