.nx-dashboard { display: grid; gap: 24px; min-width: 0; color: var(--ink, #193d32); }
.nx-dashboard button, .nx-dashboard input { font: inherit; }
.nx-dash-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nx-dash-heading h1 { margin: 0 0 7px; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 650; letter-spacing: -.04em; overflow-wrap: anywhere; }
.nx-dash-heading p { margin: 0; color: var(--muted, #64766e); }
.nx-dash-heading .eyebrow { margin-bottom: 9px; color: #447966; }
.nx-dash-today { flex-shrink: 0; display: grid; gap: 3px; padding: 10px 14px; border: 1px solid #dce7e0; border-radius: 10px; font-size: .88rem; font-weight: 650; text-align: right; background: #fff; }
.nx-dash-today small { color: #6b7e74; font-weight: 400; }
.nx-dash-period { padding: 16px 18px; background: #fff; border: 1px solid #dce7e0; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.nx-dash-presets { display: flex; gap: 5px; padding: 4px; border-radius: 9px; background: #f2f6f3; }
.nx-dash-presets button { border: 0; padding: 9px 13px; border-radius: 7px; background: transparent; color: #5c7065; font-size: .82rem; }
.nx-dash-presets button[aria-pressed="true"] { background: #fff; color: #164d37; box-shadow: 0 1px 4px #173f2914; font-weight: 700; }
.nx-dash-period form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.nx-dash-period label { display: grid; gap: 5px; color: #536b5e; font-size: .75rem; font-weight: 600; }
.nx-dash-period input { min-width: 0; max-width: 100%; width: 143px; padding: 8px 10px; min-height: 37px; border: 1px solid #d2dfd6; border-radius: 7px; background: #fff; color: #244b38; font-size: .83rem; }
.nx-dash-period form button { min-height: 37px; padding: 8px 13px; font-size: .8rem; }
.nx-dash-period [data-period-error] { flex-basis: 100%; margin: 0; }
.nx-dash-period [data-period-error]:empty { display: none; }
.nx-dash-scope { margin: 0 0 16px; font-size: .8rem; line-height: 1.6; color: #64796d; }
.nx-dash-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.nx-dash-metric { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 1fr auto; align-content: start; gap: 12px; min-width: 0; padding: 18px; border: 1px solid #dce7e0; border-radius: 12px; background: #fff; box-shadow: 0 2px 4px #14382203; }
.nx-dash-metric-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; background: #edf5ef; color: #28794f; border-radius: 10px; }
.nx-dash-metric-icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nx-dash-metric>div { min-width: 0; }
.nx-dash-metric h2 { margin: 0 0 9px; font-size: .81rem; font-weight: 600; color: #577061; line-height: 1.45; }
.nx-dash-metric strong[data-value] { display: block; margin-bottom: 9px; font-size: 2.05rem; font-weight: 650; letter-spacing: -.05em; line-height: 1; color: #173f2c; }
.nx-dash-metric p { margin: 0; font-size: .72rem; line-height: 1.6; color: #708075; }
.nx-dash-metric .nx-dash-metric-link { grid-column: 1 / -1; align-self: end; padding: 10px 0 0; border-top: 1px solid #eff3ef; color: #397856; text-align: left; font-size: .75rem; }
.nx-dash-analysis { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 20px; margin-bottom: 24px; }
.nx-dash-panel { min-width: 0; padding: 22px; background: #fff; border: 1px solid #dce7e0; border-radius: 12px; }
.nx-dash-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.nx-dash-section-head h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 650; color: #204b35; }
.nx-dash-section-head p { margin: 0; color: #748279; font-size: .77rem; line-height: 1.6; }
.nx-dash-chart { margin: 0; }
.nx-dash-chart svg { display: block; width: 100%; height: auto; }
.nx-dash-axis { stroke: #dbe6df; stroke-width: 1; fill: none; }
.nx-dash-grid { stroke: #e8efe9; stroke-width: 1; stroke-dasharray: 4 5; fill: none; }
.nx-dash-chart-label { font-size: 12px; fill: #748479; }
.nx-dash-line-open, .nx-dash-line-closed { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nx-dash-line-open { stroke: #227752; }
.nx-dash-line-closed { stroke: #409f9d; stroke-dasharray: 6 4; }
.nx-dash-point-open { fill: #227752; }
.nx-dash-point-closed { fill: #409f9d; }
.nx-dash-legend { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; font-size: .75rem; color: #617468; }
.nx-dash-legend>span { display: flex; align-items: center; gap: 6px; }
.nx-dash-key-open, .nx-dash-key-closed { display: inline-block; width: 17px; height: 3px; background: #227752; }
.nx-dash-key-closed { background: #409f9d; }
.nx-dash-data { margin-top: 18px; font-size: .76rem; color: #567563; }
.nx-dash-data summary { cursor: pointer; padding: 8px 0; }
.nx-dash-data caption { text-align: left; margin: 10px 0; color: #6b7b70; }
.nx-dash-data .table-wrap { max-height: 260px; overflow: auto; }
.nx-dash-states { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nx-dash-states li>div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .76rem; color: #617568; }
.nx-dash-states strong { color: #28563b; }
.nx-dash-states meter { display: block; width: 100%; height: 11px; margin-top: 5px; border: 0; }
.nx-dash-states meter::-webkit-meter-bar { background: #edf3ee; border: 0; border-radius: 5px; }
.nx-dash-states meter::-webkit-meter-optimum-value { background: #639b7a; border-radius: 5px; }
.nx-dash-states meter::-moz-meter-bar { background: #639b7a; }
.nx-dash-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; margin-bottom: 24px; }
.nx-dash-order-list { list-style: none; padding: 0; margin: 0; }
.nx-dash-order-list li+li { border-top: 1px solid #edf2ed; }
.nx-dash-order { display: grid; gap: 7px; width: 100%; border: 0; padding: 15px 0; border-radius: 0; background: #fff; color: #395744; text-align: left; }
.nx-dash-order:hover { background: #f8fbf8; }
.nx-dash-order-top, .nx-dash-order-bottom { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; }
.nx-dash-order-top strong { color: #276842; font-size: .79rem; }
.nx-dash-order .badge { background: #eef4ec; color: #527443; font-size: .65rem; }
.nx-dash-order-problem { font-size: .81rem; line-height: 1.55; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nx-dash-order-equipment, .nx-dash-order-bottom { font-size: .7rem; color: #7a897e; line-height: 1.6; overflow-wrap: anywhere; }
.nx-dash-order-bottom time { white-space: nowrap; }
.nx-dash-shortcuts { margin-bottom: 0; }
.nx-dash-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nx-dash-quick-grid button { display: grid; gap: 7px; padding: 16px; border: 1px solid #e2eae2; border-radius: 9px; background: #fafcfa; text-align: left; color: #3c6249; }
.nx-dash-quick-grid strong { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; }
.nx-dash-quick-grid button>span { color: #7b897e; font-size: .72rem; font-weight: 400; line-height: 1.5; }
.nx-dash-quick-grid button:hover { background: #f0f6f0; border-color: #c6dbc9; }
.nx-dash-empty, .nx-dash-loading, .nx-dash-error { padding: 28px 18px; background: #f8fbf8; border: 1px dashed #dfe8df; border-radius: 9px; color: #738477; text-align: center; font-size: .85rem; line-height: 1.7; }
.nx-dash-error h2 { color: #7b4b40; font-size: 1rem; }
.nx-dash-error p { overflow-wrap: anywhere; }
.nx-dash-error button { margin-top: 8px; }
.nx-dash-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 150px; }
.nx-dash-loading-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: #4d8c67; }
.nx-dashboard button:focus-visible, .nx-dashboard summary:focus-visible, .nx-dashboard input:focus-visible { outline: 3px solid #5c9a78; outline-offset: 3px; }
@media (max-width: 1100px) {
  .nx-dash-period { align-items: flex-start; }
  .nx-dash-analysis { grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); }
  .nx-dash-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nx-dashboard { gap: 18px; }
  .nx-dash-heading { align-items: flex-start; }
  .nx-dash-today { padding: 9px; font-size: .72rem; }
  .nx-dash-heading>div { min-width: 0; }
  .nx-dash-heading p { font-size: .85rem; line-height: 1.6; }
  .nx-dash-analysis, .nx-dash-lists { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nx-dash-period { padding: 14px; }
  .nx-dash-period form { width: 100%; }
  .nx-dash-period label { flex: 1 1 110px; min-width: 0; }
  .nx-dash-period input { width: 100%; }
  .nx-dash-period form button { flex: 1 1 110px; min-height: 42px; }
  .nx-dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nx-dash-metric { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 14px; gap: 10px; }
  .nx-dash-metric-icon { width: 31px; height: 31px; }
  .nx-dash-panel { padding: 17px; }
  .nx-dash-quick-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .nx-dashboard * { scroll-behavior: auto; } }
