:root {
  --bg: #2f3440;
  --bg-deep: #1f2430;
  --header: #000;
  --panel: #313642;
  --panel-dark: #2a2f3a;
  --line: #3a4150;
  --text: #eef1f6;
  --muted: #aab1bf;
  --ok: #6db8a3;
  --warn: #f29400;
  --danger: #d81900;
  --focus: #38d39f;
  --accent: #4f8df6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.login-page {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 100vh;
  background: linear-gradient(120deg, #4e89e9 0 55%, #2f333d 55% 100%);
}

.login-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.hero-card {
  width: min(720px, 100%);
  height: 420px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-card::before {
  width: 340px;
  height: 340px;
  top: -120px;
  left: -80px;
}

.hero-card::after {
  width: 260px;
  height: 260px;
  bottom: -90px;
  right: -60px;
}

.hero-title {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 24px;
  font-weight: 700;
}

.hero-subtitle {
  position: absolute;
  top: 58px;
  left: 28px;
  color: #e6efff;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 380px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
}

.card h1 {
  margin: 0 0 24px;
  font-size: 36px;
}

.field {
  margin-bottom: 16px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #414859;
  color: #fff;
  background: #313746;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #78a6ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #475064;
  color: #e6ecff;
  background: #343b4a;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.btn.primary {
  border-color: #4b80e8;
  background: #4b80e8;
}

.btn.small {
  padding: 5px 10px;
  font-size: 12px;
}

.error-text {
  display: none;
  margin-top: -8px;
  margin-bottom: 12px;
  color: #ff7474;
  font-size: 13px;
}

body.show-login-error .error-text {
  display: block;
}

.app-shell {
  min-height: 100vh;
}

.top-nav {
  display: flex;
  align-items: center;
  background: var(--header);
  height: 56px;
}

.brand {
  width: 278px;
  padding: 0 20px;
  font-weight: 600;
  border-right: 1px solid #151822;
}

.brand small {
  display: block;
  color: #9da5b7;
  font-weight: 400;
}

.main-tabs {
  display: flex;
}

.main-tab {
  min-width: 155px;
  height: 56px;
  border: 0;
  border-left: 1px solid #151822;
  background: transparent;
  color: #dce3f2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-tab.active {
  background: #2f3440;
}

.top-user {
  margin-left: auto;
  padding: 0 18px;
  color: #b7becf;
}

.sub-header {
  height: 48px;
  background: var(--panel);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
}

.crumb,
.metric-box,
.tool-link {
  min-width: 110px;
  padding: 8px 14px;
  border-right: 1px solid #3a404c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #dce2ee;
  text-decoration: none;
}

.metric-box {
  min-width: 140px;
  border-top: 2px solid transparent;
}

.metric-box.ok {
  border-top-color: var(--focus);
}

.metric-box.warn {
  border-top-color: var(--warn);
}

.metric-box.danger {
  border-top-color: #f8452f;
}

.metric-box b {
  font-size: 32px;
  line-height: 1;
  margin-top: 2px;
}

.content {
  padding: 18px 32px 28px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 26px;
}

.kpi-card {
  background: var(--panel);
  min-height: 152px;
  padding: 22px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.kpi-card.highlight {
  background: linear-gradient(90deg, #ed941f, #bf6477);
}

.kpi-card p {
  margin: 0 0 14px;
  color: #f8fafd;
  font-size: 38px;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
}

.table th,
.table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #3a4250;
}

.table thead th {
  background: #373d4a;
}

.table tbody tr:nth-child(even) {
  background: #292e38;
}

.badge {
  display: inline-block;
  min-width: 80px;
  text-align: center;
  padding: 4px 9px;
}

.badge.green {
  background: #36b57f;
}

.badge.orange {
  background: #ff8350;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
}

.equip-card {
  height: 118px;
  background: var(--panel);
  border-top: 3px solid #0cb59f;
  padding: 14px 16px;
  text-decoration: none;
}

.equip-card.warn {
  border-top-color: var(--warn);
}

.equip-card.danger {
  border-top-color: #f94533;
}

.equip-card p {
  margin: 0;
  font-size: 34px;
  color: #1f9dc5;
}

.split {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 6px;
  margin-top: 10px;
}

.left-panel {
  background: #2d333f;
  padding: 6px 0;
}

.left-panel h3 {
  margin: 8px 12px;
}

.left-panel .left-item {
  padding: 10px 14px;
  border-bottom: 1px solid #3a404a;
}

.heat-header {
  display: grid;
  grid-template-columns: repeat(36, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}

.heat-grid {
  display: grid;
  grid-template-columns: repeat(36, 1fr);
  gap: 2px;
}

.cell {
  height: 28px;
  background: var(--ok);
}

.cell.warn {
  background: var(--warn);
}

.cell.danger {
  background: var(--danger);
}

.cell.off {
  background: #4a4f5b;
}

.line-chart {
  background: var(--panel-dark);
  border: 1px solid #3b4250;
  padding: 14px;
}

.chart-track {
  position: relative;
  height: 160px;
  border-left: 1px solid #4a5160;
  border-bottom: 1px solid #4a5160;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 4);
  overflow: hidden;
}

.chart-track::after {
  content: "";
  position: absolute;
  left: 30%;
  top: 0;
  width: 8%;
  height: 100%;
  background: rgba(198, 35, 23, 0.55);
}

.chart-track::before {
  content: "";
  position: absolute;
  left: 66%;
  top: 0;
  width: 4%;
  height: 100%;
  background: rgba(198, 35, 23, 0.55);
}

.chart-svg {
  position: absolute;
  inset: 0;
}

.floating-panel {
  margin-top: 6px;
  display: none;
  background: var(--panel);
  border: 1px solid #3a4050;
}

.floating-panel.show {
  display: block;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 26px;
}

.tool-card {
  min-height: 210px;
  background: var(--panel);
  padding: 28px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sample-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.panel-title {
  margin: 0 0 10px;
}

@media (max-width: 1100px) {
  .kpi-row,
  .tool-cards {
    grid-template-columns: 1fr;
  }

  .workspace-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .split,
  .sample-layout {
    grid-template-columns: 1fr;
  }
}

/* Pixel-level refinement */
:root {
  --bg: #2e3340;
  --panel: #343944;
  --panel-dark: #2e333f;
  --line: #414855;
  --text: #e8ecf6;
}

body {
  letter-spacing: 0.1px;
}

.screen-login .login-page {
  background: linear-gradient(90deg, #4e86e3 0 56%, #2d3039 56% 100%);
}

.screen-login .hero-card {
  width: min(760px, 100%);
  height: 500px;
  background: rgba(239, 246, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.screen-login .card {
  width: 400px;
  background: transparent;
  border: 0;
  padding: 8px;
}

.screen-login .card h1 {
  font-size: 44px;
  margin-bottom: 24px;
  font-weight: 500;
}

.screen-login .field input {
  height: 42px;
  background: #333844;
  border-color: #333844;
  color: #f1f3f8;
}

.screen-login #loginBtn {
  height: 42px;
  font-size: 15px;
}

.top-nav {
  height: 55px;
}

.brand {
  width: 278px;
  font-size: 22px;
  line-height: 1;
  padding-top: 3px;
}

.brand small {
  margin-top: 4px;
  font-size: 12px;
}

.main-tab {
  min-width: 156px;
  font-size: 16px;
  font-weight: 600;
}

.top-user {
  font-size: 14px;
}

.sub-header {
  height: 48px;
  background: #343945;
}

.status-row {
  align-items: center;
}

.status-row .crumb {
  height: 100%;
  justify-content: center;
  font-size: 12px;
  color: #c8d0e0;
  line-height: 1;
}

.status-row .metric-box {
  height: 100%;
  justify-content: center;
  padding-top: 3px;
  padding-bottom: 3px;
  min-width: 130px;
  font-size: 12px;
  color: #9ca4b8;
  line-height: 1;
}

.status-row .metric-box b {
  font-size: 31px;
  color: #f0f3fb;
  line-height: 0.95;
  font-weight: 500;
}

/* Device health status cards: left color strip + looser spacing */
.screen-workshop .status-row .metric-box,
.screen-device-detail .status-row .metric-box,
.screen-alarm-workorder .status-row .metric-box {
  border-top: 0;
  border-left: 3px solid #c8cec4;
  min-width: 136px;
  padding: 8px 14px 8px 11px;
  align-items: flex-start;
  gap: 6px;
  color: #adb4c2;
}

.screen-workshop .status-row .metric-box.ok,
.screen-device-detail .status-row .metric-box.ok,
.screen-alarm-workorder .status-row .metric-box.ok {
  border-left-color: #35b77f;
}

.screen-workshop .status-row .metric-box.warn,
.screen-device-detail .status-row .metric-box.warn,
.screen-alarm-workorder .status-row .metric-box.warn {
  border-left-color: #f29400;
}

.screen-workshop .status-row .metric-box.danger,
.screen-device-detail .status-row .metric-box.danger,
.screen-alarm-workorder .status-row .metric-box.danger {
  border-left-color: #f8452f;
}

.screen-workshop .status-row .metric-box b,
.screen-device-detail .status-row .metric-box b,
.screen-alarm-workorder .status-row .metric-box b {
  font-size: 24px;
  line-height: 1.05;
  margin-top: 0;
}

/* Diagnosis module status cards: same left blue strip style */
.screen-diagnosis .status-row .metric-box {
  border-top: 0;
  border-left: 3px solid #4887f6;
  min-width: 136px;
  padding: 8px 14px 8px 11px;
  align-items: flex-start;
  gap: 6px;
  color: #adb4c2;
}

.status-row .tool-link {
  height: 100%;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.health-subnav {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.health-subnav .tool-link {
  min-width: 104px;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 6px;
  border-left: 1px solid #3a404c;
  border-right: 0;
  padding: 6px 14px;
  position: relative;
  overflow: hidden;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease,
    transform 180ms ease, border-color 180ms ease;
}

.health-subnav .tool-link::after {
  content: "";
  position: absolute;
  inset: -40% -25%;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(126, 174, 255, 0.35) 0%,
    rgba(126, 174, 255, 0.18) 28%,
    rgba(126, 174, 255, 0.04) 50%,
    rgba(126, 174, 255, 0) 70%
  );
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.health-subnav .tool-link:hover {
  color: #f4f7ff;
  background: #3b414e;
  transform: translateY(-1px);
}

.health-subnav .tool-link:hover::after {
  opacity: 1;
}

.health-subnav .tool-link.active {
  background: #3d4350;
  color: #eef2fb;
  border-left-color: #4f5a70;
}

.health-subnav .tool-link.active::after {
  opacity: 1;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(154, 192, 255, 0.38) 0%,
    rgba(154, 192, 255, 0.14) 35%,
    rgba(154, 192, 255, 0) 70%
  );
}

.subnav-item::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-color: currentColor;
  opacity: 0.86;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-position: center;
  -webkit-mask-position: center;
}

.nav-overview::before {
  mask-image: url("./assets/icon/车间概览.svg");
  -webkit-mask-image: url("./assets/icon/车间概览.svg");
}

.nav-ledger::before {
  mask-image: url("./assets/icon/设备台账.svg");
  -webkit-mask-image: url("./assets/icon/设备台账.svg");
}

.nav-workorder::before {
  mask-image: url("./assets/icon/报警工单.svg");
  -webkit-mask-image: url("./assets/icon/报警工单.svg");
}

.health-subnav .btn.small {
  align-self: center;
  margin: 0 12px;
}

.crumb,
.metric-box,
.tool-link {
  min-width: 110px;
  padding: 6px 16px;
  font-size: 13px;
  color: #d3dae9;
}

.metric-box b {
  font-size: 37px;
  font-weight: 500;
  margin-top: 3px;
}

.content {
  padding: 42px 56px 28px;
}

.screen-workshop .content,
.screen-device-detail .content,
.screen-device-part-view .content,
.screen-monitor .content,
.screen-diagnosis .content,
.screen-analysis .content,
.screen-sample-detail .content {
  padding-top: 12px;
  padding-left: 32px;
  padding-right: 32px;
}

.kpi-row {
  gap: 28px;
}

.kpi-card {
  min-height: 153px;
  padding: 18px 22px;
}

.kpi-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.kpi-card p {
  margin-top: 20px;
  font-size: 38px;
}

.table {
  margin-top: 58px;
}

.table thead th {
  background: #363b47;
  color: #dce2ef;
  font-size: 12px;
  font-weight: 600;
  height: 40px;
}

.table td {
  font-size: 13px;
  color: #e5eaf5;
  height: 40px;
}

.table tbody tr {
  background: #2f3440;
}

.table tbody tr:nth-child(even) {
  background: #2b303b;
}

.badge {
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 10px;
}

.badge.green {
  background: #35b77f;
}

.badge.orange {
  background: #ff8451;
}

.badge.danger {
  background: #d91700;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  color: #7c8495;
  font-size: 12px;
}

.pager-btn {
  width: 22px;
  height: 22px;
  border: 1px solid #3f4655;
  background: #2f3440;
  color: #8f97aa;
}

.pager b {
  color: #d5dbeb;
}

.pager-link {
  min-width: 24px;
  height: 22px;
  border: 1px solid transparent;
  background: transparent;
  color: #8f97aa;
  font-size: 12px;
  padding: 0 6px;
  cursor: pointer;
}

.pager-link:hover {
  color: #c6cede;
}

.pager-link.active {
  border-color: #3f4655;
  background: #383e4b;
  color: #e6ebf7;
}

.pager-ellipsis {
  font-size: 12px;
  color: #6f778a;
}

.dashboard-pager {
  margin-top: 14px;
}

.workspace-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
}

.equip-card {
  height: 112px;
  border-top-width: 3px;
  border-radius: 2px;
  font-size: 17px;
  line-height: 1.4;
}

.equip-card p {
  margin-top: 24px;
  font-size: 28px;
  text-align: right;
  line-height: 1;
}

.split {
  grid-template-columns: 188px 1fr;
  gap: 7px;
}

.device-overview {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 7px;
  margin-bottom: 8px;
}

.device-overview-card {
  background: #313742;
  border-top: 3px solid #f54834;
  padding: 14px 16px;
  min-height: 194px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.device-overview-card.status-ok {
  border-top-color: #0cb59f;
}

.device-overview-card.status-warn {
  border-top-color: #f29400;
}

.device-overview-card.status-danger {
  border-top-color: #f94533;
}

.device-overview-card.status-offline {
  border-top-color: #8e98ad;
}

.device-overview-card strong {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 600;
}

.device-overview-card span {
  font-size: 26px;
  line-height: 1.12;
  font-weight: 600;
  color: #f3f6fc;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(36, 1fr);
  gap: 3px;
  background: #313742;
  padding: 2px;
  align-items: end;
}

.overview-col {
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #404652;
}

.overview-col.off {
  background: #4a4f5b;
}

.overview-col .seg {
  width: 100%;
}

.overview-col .seg.ok {
  background: #6db8a3;
}

.overview-col .seg.warn {
  background: #f29400;
}

.overview-col .seg.danger {
  background: #d81900;
}

.section-caption {
  margin: 12px 0 8px;
  font-size: 14px;
  color: #cfd6e6;
  font-weight: 500;
}

.left-panel {
  background: #2e333f;
}

.left-panel h3 {
  margin: 16px 16px 18px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
}

.left-panel .left-item {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: #d2d9e8;
  font-size: 13px;
  line-height: 1.25;
}

.device-side {
  padding-top: 2px;
}

.device-side .btn.small {
  width: calc(100% - 24px);
  height: 30px;
  margin: 6px 12px 10px !important;
  font-size: 12px;
}

.time-axis-labels {
  display: flex;
  justify-content: space-between;
  color: #99a1b4;
  font-size: 12px;
  margin: 0 0 4px;
  max-width: calc(100% - 2px);
}

.heat-header {
  gap: 3px;
  margin-bottom: 6px;
}

.heat-grid {
  gap: 3px;
  margin-bottom: 3px;
}

.cell {
  height: 36px;
}

.alarm-banner {
  height: 48px;
  background: #343945;
  border-bottom: 1px solid #3f4552;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 16px;
  margin-bottom: 8px;
}

.alarm-banner .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d91600;
}

.line-chart {
  padding: 10px 12px;
  border: 1px solid #3d4453;
}

.chart-track {
  height: 172px;
}

.chart-track.no-threshold::before,
.chart-track.no-threshold::after {
  display: none;
}

.floating-panel {
  background: #343945;
}

.monitor-replica {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monitor-alarm-banner {
  margin-bottom: 0;
  justify-content: center;
  gap: 18px;
}

.monitor-alarm-banner strong {
  font-size: 18px;
  font-weight: 500;
}

.monitor-board {
  border: 1px solid #3c4351;
  background: #303541;
}

.monitor-board-head {
  min-height: 54px;
  border-bottom: 1px solid #3c4351;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
}

.monitor-board-head .panel-title {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid #f34e39;
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  color: #f1f5ff;
}

.monitor-board-head .panel-title.status-ok {
  border-left-color: #0cb59f;
}

.monitor-board-head .panel-title.status-warn {
  border-left-color: #f29400;
}

.monitor-board-head .panel-title.status-danger {
  border-left-color: #f94533;
}

.monitor-board-head .panel-title.status-offline {
  border-left-color: #8e98ad;
}

.monitor-head-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monitor-head-tools .chip-btn {
  height: 26px;
  border-radius: 2px;
  line-height: 24px;
  padding: 0 12px;
}

.monitor-abnormal-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #d0d7e8;
}

.monitor-abnormal-tag i {
  width: 10px;
  height: 10px;
  background: #ce2215;
}

.monitor-board-body {
  display: grid;
  grid-template-columns: 222px 1fr;
  min-height: 600px;
  height: 600px;
}

.monitor-point-list {
  background: #2d323e;
  border-right: 1px solid #3c4351;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
}

.monitor-point-item {
  min-height: 188px;
  border-bottom: 1px solid #3a4150;
  padding: 30px 12px 0;
  font-size: 14px;
  line-height: 1.3;
  color: #c8d0e2;
}

.monitor-point-item:last-child {
  border-bottom: 0;
}

.monitor-chart-area {
  background: #2f3440;
  display: flex;
  flex-direction: column;
}

.monitor-time-axis {
  height: 36px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: center;
  padding: 0 16px 0 50px;
  color: #a2abbe;
  font-size: 12px;
  border-bottom: 1px solid #3b4251;
}

.monitor-chart-row {
  min-height: 188px;
  height: 188px;
  border-bottom: 1px solid #3a4150;
  display: grid;
  grid-template-columns: 50px 1fr;
}

.monitor-chart-row:last-child {
  border-bottom: 0;
}

.monitor-y-axis {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  color: #8f98ac;
  font-size: 12px;
  border-right: 1px solid #3a4150;
}

.monitor-chart-track {
  height: 188px;
  min-height: 188px;
  border-left: 0;
  border-bottom: 0;
  background-size: calc(100% / 10) calc(100% / 4);
}

.monitor-chart-track::before,
.monitor-chart-track::after {
  display: none;
}

.monitor-abnormal-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.monitor-abnormal-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(212, 42, 30, 0.6), rgba(143, 22, 15, 0.45));
}

.monitor-chart-track .chart-svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 5;
}

.monitor-alarm-list {
  display: none;
}

.monitor-alarm-list.show {
  display: block;
}

.screen-device-detail .status-row .metric-box b {
  font-size: 24px;
}

.screen-device-detail .tool-link {
  min-width: 108px;
}

.device-detail-replica {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.screen-device-detail .device-overview {
  grid-template-columns: 188px 1fr;
  margin-bottom: 6px;
}

.screen-device-detail .overview-strip-wrap {
  background: #313742;
  padding: 2px 2px 3px;
  min-height: 194px;
  display: grid;
  grid-template-rows: 194px auto;
}

.screen-device-detail .overview-date-bar {
  min-height: 24px;
  margin-top: 4px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aeb8cd;
  font-size: 12px;
}

.screen-device-detail .overview-strip {
  height: 194px;
  gap: 2px;
}

.screen-device-detail .overview-col {
  height: 100%;
}

.screen-device-detail .day-col {
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
}

.screen-device-detail .day-col:hover {
  box-shadow: inset 0 0 0 1px rgba(162, 198, 255, 0.45);
}

.screen-device-detail .day-col.selected {
  box-shadow: inset 0 0 0 1px #76beff;
  position: relative;
}

.screen-device-detail .day-col.selected::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-top: 7px solid transparent;
  border-bottom: 7px solid #79c6ff;
}

.device-detail-replica .matrix-section {
  margin-top: 0;
}

.device-detail-replica .section-caption {
  margin: 0 0 6px;
  font-size: 13px;
  color: #bec7da;
}

.detail-matrix {
  margin-top: 0;
  --detail-cell-h: clamp(22px, 2.1vw, 31px);
  --detail-cell-gap: 2px;
}

.detail-matrix .left-panel {
  padding: calc(var(--detail-cell-h) + var(--detail-cell-gap)) 0 0;
}

.detail-matrix .left-panel .left-item {
  height: var(--detail-cell-h);
  min-height: var(--detail-cell-h);
  padding: 0 12px;
  margin-bottom: var(--detail-cell-gap);
  border-bottom: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #c8d0e1;
}

.detail-matrix .heat-header {
  margin-bottom: var(--detail-cell-gap);
}

.detail-matrix .heat-header .cell {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #3d4452;
}

.detail-matrix .heat-header .hour-tick {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 10px;
  line-height: 1;
  color: rgba(236, 242, 252, 0.88);
  letter-spacing: 0.2px;
}

.detail-matrix .heat-header .cell.off .hour-tick {
  color: rgba(182, 191, 208, 0.76);
}

.detail-matrix .heat-grid {
  margin-bottom: var(--detail-cell-gap);
}

.detail-matrix .cell {
  height: var(--detail-cell-h);
}

.device-status-row {
  justify-content: space-between;
  gap: 0;
  overflow: visible;
}

.device-status-row .crumb {
  min-width: 82px;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 10px;
}

.device-status-row .crumb-strong {
  min-width: 118px;
  color: #f0f4fd;
  font-weight: 600;
}

.screen-device-detail .device-status-row .metric-box {
  min-width: 106px;
  padding: 6px 8px 6px 9px;
}

.screen-device-detail .device-status-row .metric-box b {
  font-size: 22px;
}

.detail-status-actions {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.time-picker {
  min-width: 144px;
  border-left: 1px solid #3a404c;
  border-right: 1px solid #3a404c;
  padding: 5px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.time-picker span {
  font-size: 11px;
  color: #8f98ac;
  line-height: 1.1;
}

.time-picker select {
  border: 0;
  background: transparent;
  color: #e5ebf8;
  font-size: 18px;
  line-height: 1.1;
  padding: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #99a2b7 50%), linear-gradient(135deg, #99a2b7 50%, transparent 50%);
  background-position: calc(100% - 11px) 8px, calc(100% - 6px) 8px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.time-picker select:focus {
  outline: none;
}

.health-manage-group {
  position: relative;
}

.device-status-row .tool-link,
.device-status-row .health-manage-group > button {
  min-width: 86px;
  border-right: 1px solid #3a404c;
  border-left: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 6px;
  padding: 0 14px;
  background: transparent;
  color: #d2d9e9;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease,
    transform 180ms ease, border-color 180ms ease;
}

.device-status-row .health-manage-group > button {
  appearance: none;
  -webkit-appearance: none;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 1px solid #3a404c;
  cursor: pointer;
  font: inherit;
}

.device-status-row .tool-link.active,
.device-status-row .health-manage-group > button.active {
  background: #3c4250;
  color: #eef2fb;
}

.device-status-row .tool-link::after,
.device-status-row .health-manage-group > button::after {
  content: "";
  position: absolute;
  inset: -40% -25%;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(126, 174, 255, 0.35) 0%,
    rgba(126, 174, 255, 0.18) 28%,
    rgba(126, 174, 255, 0.04) 50%,
    rgba(126, 174, 255, 0) 70%
  );
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.device-status-row .tool-link:hover,
.device-status-row .health-manage-group > button:hover {
  color: #f4f7ff;
  background: #3b414e;
  transform: translateY(-1px);
}

.device-status-row .tool-link:hover::after,
.device-status-row .health-manage-group > button:hover::after {
  opacity: 1;
}

.device-status-row .tool-link.active::after,
.device-status-row .health-manage-group > button.active::after {
  opacity: 1;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(154, 192, 255, 0.38) 0%,
    rgba(154, 192, 255, 0.14) 35%,
    rgba(154, 192, 255, 0) 70%
  );
}

.health-manage-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 1px);
  width: 112px;
  background: #343a46;
  border: 1px solid #3c4250;
  border-top: 0;
  display: none;
  z-index: 120;
}

.health-manage-dropdown.show {
  display: block;
}

.health-manage-group:hover .health-manage-dropdown,
.health-manage-group:focus-within .health-manage-dropdown {
  display: block;
}

.health-manage-dropdown .tool-link {
  min-width: 0;
  width: 100%;
  height: 40px;
  border: 0;
  border-bottom: 1px solid #3a404c;
  justify-content: center;
  padding: 0 10px;
}

.health-manage-dropdown .tool-link:last-child {
  border-bottom: 0;
}

.nav-health::before,
.nav-monitor::before,
.nav-return::before,
.nav-parts::before {
  display: none;
}

.screen-device-part-view .content,
.screen-device-part-view .part-view-layout {
  padding-top: 10px;
}

.part-page-title {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 18px 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: #edf2ff;
  background: #353b47;
  margin: 0 0 10px;
  border: 1px solid #3a4050;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.part-page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f24c35 0%, #d9200b 100%);
}

.part-page-title.status-ok::before {
  background: linear-gradient(180deg, #28c29f 0%, #0d9b86 100%);
}

.part-page-title.status-warn::before {
  background: linear-gradient(180deg, #ffae1b 0%, #ea8300 100%);
}

.part-page-title.status-danger::before {
  background: linear-gradient(180deg, #f24c35 0%, #d9200b 100%);
}

.part-page-title.status-offline::before {
  background: linear-gradient(180deg, #a3adc1 0%, #7d879b 100%);
}

.part-group {
  margin-top: 0;
  border-bottom: 1px solid #3b4250;
}

.part-group-head {
  display: grid;
  grid-template-columns: 222px 1fr;
  min-height: 40px;
}

.part-group-label {
  background: #2e333f;
  border-right: 1px solid #3b4250;
  border-bottom: 1px solid #3b4250;
  padding: 0 12px;
  font-size: 23px;
  line-height: 1;
  color: #cdd4e5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.part-group-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #69748b;
  display: inline-block;
  background: linear-gradient(180deg, #515a6f, #3d4453);
}

.part-chart-toolbar {
  height: 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
  background: #2f3440;
  border-bottom: 1px solid #3b4250;
}

.chip-btn {
  height: 24px;
  border: 1px solid #4a5161;
  border-radius: 12px;
  background: #2f3542;
  color: #c8d0e1;
  font-size: 12px;
  padding: 0 12px;
  line-height: 22px;
}

.part-chart-row {
  display: grid;
  grid-template-columns: 222px 1fr;
  border-bottom: 1px solid #3b4250;
}

.point-name {
  margin: 0;
  padding: 10px 12px 8px;
  font-size: 14px;
  line-height: 1.26;
  color: #c7cfe1;
  background: #2e333f;
  border-right: 1px solid #3b4250;
}

.part-chart-track {
  position: relative;
  height: 180px;
  background: #2f3440;
  overflow: hidden;
}

.part-plot-bg {
  position: absolute;
  left: 34px;
  right: 8px;
  top: 26px;
  bottom: 6px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: calc(100% / 10) 100%, 100% calc(100% / 4);
  background-position: 0 0, 0 0;
  background-repeat: repeat, repeat;
  z-index: 1;
}

.part-plot-bg::before,
.part-plot-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
}

.part-plot-bg::before {
  top: 0;
  height: 28%;
  background: linear-gradient(to right, rgba(242, 149, 0, 0.47), rgba(215, 30, 22, 0.44));
}

.part-plot-bg::after {
  top: 0;
  height: 52%;
  background: linear-gradient(
    to right,
    rgba(95, 123, 111, 0.38),
    rgba(136, 107, 76, 0.36) 72%,
    rgba(126, 74, 67, 0.34)
  );
}

.part-chart-track.strong-alert .part-plot-bg::before {
  height: 12%;
}

.part-chart-track .chart-svg {
  position: absolute;
  left: 34px;
  right: 8px;
  top: 26px;
  bottom: 6px;
  width: calc(100% - 42px);
  height: calc(100% - 32px);
  display: block;
  z-index: 5;
}

.part-time-axis {
  position: absolute;
  left: 34px;
  right: 8px;
  top: 0;
  height: 26px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: center;
  padding: 0 8px;
  color: #9ea7ba;
  font-size: 12px;
  z-index: 2;
  pointer-events: none;
  background: #2f3440;
  border-bottom: 1px solid #3b4250;
}

.part-y-axis {
  position: absolute;
  left: 4px;
  top: 29px;
  bottom: 6px;
  display: grid;
  align-content: stretch;
  grid-template-rows: repeat(4, 1fr);
  color: #8f98ac;
  font-size: 12px;
  z-index: 4;
}

.part-y-axis span {
  display: flex;
  align-items: center;
}

.screen-diagnosis .status-row .metric-box b {
  font-size: 24px;
  line-height: 1.05;
  margin-top: 0;
}

.points-chart {
  background-size: calc(100% / 20) calc(100% / 4);
}

.guide-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d3daea;
  margin: 10px 0 18px;
}

.tool-cards {
  gap: 24px;
}

.tool-card {
  min-height: 216px;
  border: 1px solid #2b303b;
  padding: 24px 20px;
}

.tool-card h3 {
  margin: 2px 0 18px;
  font-size: 18px;
  line-height: 1.25;
}

.tool-card p {
  color: #c6cedf;
  line-height: 1.35;
  font-size: 14px;
}

.diagnosis-head {
  display: grid;
  grid-template-columns: 180px 180px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 0;
}

.diagnosis-head .label {
  display: block;
  color: #9ea6ba;
  font-size: 12px;
}

.diagnosis-head strong {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
}

.sample-layout .left-panel .left-item {
  min-height: 64px;
}

.screen-sample-detail .sub-header {
  align-items: stretch;
}

.screen-sample-detail .sub-header .tool-link {
  margin-left: auto;
}

.screen-sample-detail .sub-header .metric-box {
  min-width: 150px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.screen-sample-detail .sub-header .metric-box b {
  font-size: 24px;
  line-height: 1.05;
  margin-top: 2px;
}

.screen-sample-detail .line-chart {
  padding: 12px 14px;
}

.screen-sample-detail .line-chart .chart-track {
  height: 230px !important;
}

.screen-sample-detail .line-chart .chart-track .chart-svg {
  inset: 6px 8px;
  width: calc(100% - 16px);
  height: calc(100% - 12px);
}

.screen-sample-library .status-row .metric-box {
  border-top: 0;
  border-left: 3px solid #c8cec4;
  min-width: 140px;
  padding: 8px 14px 8px 11px;
  align-items: flex-start;
  gap: 6px;
  color: #adb4c2;
}

.screen-sample-library .status-row .metric-box.ok {
  border-left-color: #35b77f;
}

.screen-sample-library .status-row .metric-box.warn {
  border-left-color: #f29400;
}

.screen-sample-library .status-row .metric-box b {
  font-size: 24px;
  line-height: 1.05;
}

.sample-library-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  background: rgba(63, 70, 84, 0.42);
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 6px;
  backdrop-filter: blur(1px);
}

.sample-library-filter .field {
  margin-bottom: 0;
}

.sample-library-filter .field input,
.sample-library-filter .field select {
  height: 36px;
  border: 0;
  background: rgba(72, 79, 95, 0.62);
  color: #edf2ff;
  padding: 0 12px;
}

.sample-library-actions {
  display: flex;
  gap: 8px;
}

.sample-library-table {
  margin-top: 0;
}

.sample-library-table .row-actions {
  display: inline-flex;
  gap: 8px;
}

.sample-library-action-btn {
  width: 22px;
  height: 22px;
  border: 1px solid #495268;
  background: #343b4a;
  color: #d8deeb;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
}

.sample-library-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: none;
}

.sample-library-modal.show {
  display: block;
}

.sample-library-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 31, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sample-library-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 56px));
  border: 1px solid rgba(172, 185, 209, 0.34);
  background: linear-gradient(135deg, rgba(53, 61, 77, 0.66), rgba(43, 50, 64, 0.6));
  backdrop-filter: blur(12px) saturate(118%);
  -webkit-backdrop-filter: blur(12px) saturate(118%);
  box-shadow: 0 18px 36px rgba(8, 11, 17, 0.45);
}

.sample-library-modal-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid rgba(157, 171, 195, 0.26);
}

.sample-library-modal-head h3 {
  margin: 0;
  font-size: 16px;
  color: #ecf2ff;
}

.sample-library-modal-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(151, 166, 192, 0.3);
  background: rgba(65, 74, 92, 0.42);
  color: #e7ecfa;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
}

.sample-library-modal-body {
  padding: 14px 16px;
}

.sample-library-edit-info {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(143, 158, 183, 0.3);
  background: rgba(52, 59, 75, 0.52);
}

.sample-library-edit-block label {
  display: block;
  margin-bottom: 8px;
  color: #b8c2d6;
  font-size: 13px;
}

.sample-tag-container {
  min-height: 48px;
  border: 1px solid rgba(143, 158, 183, 0.3);
  background: rgba(50, 57, 72, 0.5);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid #626f88;
  background: #3d4556;
  color: #eef3ff;
}

.sample-tag-chip.abnormal {
  border-color: #a25252;
  background: #5e3333;
}

.sample-tag-chip .delete-tag-btn {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 20, 30, 0.34);
  color: #e9eefb;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.sample-tag-add-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.sample-tag-add-row input {
  flex: 1;
  height: 32px;
  border: 1px solid rgba(143, 158, 183, 0.3);
  background: rgba(48, 55, 70, 0.56);
  color: #edf3ff;
  padding: 0 10px;
}

.sample-library-modal-foot {
  min-height: 46px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 12px;
}

.sample-library-confirm-card {
  width: min(420px, calc(100vw - 56px));
}

.sample-library-confirm-body {
  padding: 14px 16px 6px;
  color: #d2daec;
  line-height: 1.45;
}

.detail-cell-tooltip {
  position: fixed;
  z-index: 260;
  max-width: 340px;
  padding: 8px 10px;
  border: 1px solid rgba(154, 169, 194, 0.36);
  background: rgba(43, 50, 64, 0.9);
  color: #eef3ff;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(7, 10, 16, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
}

.detail-cell-tooltip.show {
  display: block;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #b8c0d1;
}

.ledger-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  background: rgba(63, 70, 84, 0.42);
  border: 0;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 6px;
  backdrop-filter: blur(1px);
}

.ledger-filter .field {
  margin-bottom: 0;
}

.ledger-filter .field label {
  margin-bottom: 8px;
}

.ledger-filter .field input,
.ledger-filter .field select {
  height: 36px;
  border: 0;
  background: rgba(72, 79, 95, 0.62);
  color: #edf2ff;
  padding: 0 12px;
}

.ledger-filter .field input::placeholder {
  color: #b6bfd2;
}

.ledger-actions {
  display: flex;
  gap: 8px;
  align-self: end;
}

.ledger-actions .btn {
  height: 36px;
  min-width: 72px;
  padding: 0 16px;
  border-radius: 4px;
}

.ledger-table {
  margin-top: 0;
}

/* Top-level navigation centered and responsive */
.top-nav {
  position: relative;
}

.main-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(64vw, 820px);
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.main-tab {
  width: 100%;
  min-width: 0;
  border-right: 1px solid #151822;
}

.brand,
.top-user {
  position: relative;
  z-index: 2;
}

@media (max-width: 1180px) {
  .main-tabs {
    position: static;
    transform: none;
    width: auto;
    display: flex;
    margin-left: 16px;
  }

  .main-tab {
    width: auto;
    min-width: 136px;
  }
}

.workorder-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
}

.workorder-modal.show {
  display: block;
}

.workorder-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 30, 0.42);
  backdrop-filter: blur(7px) saturate(115%);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
}

.workorder-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 56px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  border: 1px solid rgba(175, 188, 214, 0.34);
  background: linear-gradient(135deg, rgba(53, 61, 77, 0.62), rgba(42, 49, 64, 0.56));
  box-shadow: 0 18px 36px rgba(7, 10, 15, 0.44);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.workorder-modal-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid rgba(154, 169, 194, 0.25);
}

.workorder-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #edf2ff;
}

.workorder-modal-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(151, 166, 192, 0.3);
  border-radius: 4px;
  background: rgba(65, 74, 92, 0.4);
  color: #e7ecfa;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.workorder-modal-close:hover {
  background: rgba(84, 95, 117, 0.52);
}

.workorder-modal-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
}

.workorder-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.workorder-detail-item {
  border: 1px solid rgba(148, 162, 189, 0.28);
  background: rgba(49, 56, 71, 0.52);
  padding: 8px 10px;
}

.workorder-detail-item .label {
  display: block;
  font-size: 12px;
  color: #aeb9cf;
  margin-bottom: 4px;
}

.workorder-detail-item strong {
  font-size: 13px;
  color: #eff4ff;
}

.workorder-detail-block {
  border: 1px solid rgba(148, 162, 189, 0.28);
  background: rgba(48, 55, 70, 0.52);
  padding: 10px;
}

.workorder-detail-block h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #d9e2f4;
}

.workorder-detail-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #cfd8eb;
}
