:root {
  color: #17202c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #11161d;
}

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

.rail {
  border-right: 1px solid #dde3ec;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
}

.brand-mark {
  align-items: center;
  background: #2457a6;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0;
}

.page-band {
  border-bottom: 1px solid #dde3ec;
  padding: 22px 24px 18px;
}

.top-nav {
  border-bottom: 1px solid rgba(120, 138, 163, 0.24);
  padding: 0 18px;
}

.top-nav-title {
  min-width: 0;
}

.profile-trigger {
  min-width: 0;
}

.profile-name {
  display: inline-block;
  font-weight: 700;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 18px 24px 28px;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.metric {
  min-height: 116px;
  padding: 18px;
}

.metric-label {
  color: #617085;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-value {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 12px;
}

.metric-subtle {
  color: #617085;
  font-size: 0.86rem;
  margin-top: 8px;
}

.toolbar-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.quiet {
  color: #617085;
}

.asset-table {
  border-collapse: collapse;
  width: 100%;
}

.asset-table th,
.asset-table td {
  border-bottom: 1px solid #e7ebf1;
  font-size: 0.88rem;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.asset-table th {
  color: #617085;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.asset-table tr:hover td {
  background: #f8fafc;
}

.status-chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 4px 9px;
}

.status-in_service {
  background: #e4f2eb;
  color: #246140;
}

.status-disposed {
  background: #f7e3df;
  color: #8d2b1d;
}

.status-cip,
.status-reserved {
  background: #f4ead9;
  color: #7a4a00;
}

.panel-pad {
  padding: 16px;
}

.chart-box {
  height: 280px;
}

.login-screen {
  align-items: center;
  background:
    linear-gradient(110deg, rgba(36, 87, 166, 0.92), rgba(0, 108, 106, 0.86)),
    url('/asset-workbench.png');
  background-position: center;
  background-size: cover;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  max-width: 430px;
  width: 100%;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.custom-field-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 1fr) minmax(110px, 0.9fr) 130px minmax(110px, 0.8fr) 104px 40px;
  margin-bottom: 10px;
}

.v-theme--mixedAssetsDark {
  color-scheme: dark;
}

.v-theme--mixedAssetsDark .rail {
  border-right-color: rgba(143, 184, 255, 0.2);
}

.v-theme--mixedAssetsDark .page-band,
.v-theme--mixedAssetsDark .asset-table th,
.v-theme--mixedAssetsDark .asset-table td {
  border-color: rgba(143, 184, 255, 0.16);
}

.v-theme--mixedAssetsDark .quiet,
.v-theme--mixedAssetsDark .metric-label,
.v-theme--mixedAssetsDark .metric-subtle,
.v-theme--mixedAssetsDark .asset-table th {
  color: #a8b3c2;
}

.v-theme--mixedAssetsDark .asset-table tr:hover td {
  background: rgba(143, 184, 255, 0.07);
}

.v-theme--mixedAssetsDark .status-in_service {
  background: rgba(143, 215, 163, 0.16);
  color: #9ee8b5;
}

.v-theme--mixedAssetsDark .status-disposed {
  background: rgba(255, 180, 171, 0.16);
  color: #ffb4ab;
}

.v-theme--mixedAssetsDark .status-cip,
.v-theme--mixedAssetsDark .status-reserved {
  background: rgba(240, 192, 106, 0.18);
  color: #ffd18a;
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .content-grid,
  .page-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .custom-field-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .profile-name {
    display: none;
  }

  .asset-table {
    min-width: 760px;
  }
}
