:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.65);
  --border: rgba(15, 23, 42, 0.10);

  --primary: #2563eb;
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #a855f7;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 25% 0%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(168, 85, 247, 0.10), transparent 60%),
    var(--bg);
}

.shell {
  height: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.shell.shell--collapsed {
  grid-template-columns: 76px 1fr;
}

.shell.shell--mobile {
  grid-template-columns: 1fr;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 12px;
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brandText {
  font-size: 13px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell.shell--collapsed .brandText {
  display: none;
}

.iconBtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.iconBtn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.iconBtn:active {
  transform: translateY(1px);
}

.iconBtn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: rgba(15, 23, 42, 0.78);
}

.sidebar__nav {
  display: grid;
  gap: 8px;
}

.sideItem {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sideItem:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border);
}

.sideItem--active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.20);
}

.sideItem__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sideItem--active .sideItem__icon {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.18);
}

.sideItem__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: rgba(15, 23, 42, 0.78);
}

.sideItem--active .sideItem__icon svg {
  color: rgba(37, 99, 235, 1);
}

.sideItem__text {
  font-size: 13px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.85);
  white-space: nowrap;
}

.shell.shell--collapsed .sideItem {
  grid-template-columns: 28px;
  justify-content: center;
}

.shell.shell--collapsed .sideItem__text {
  display: none;
}

.sidebar__bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.sideMeta {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell.shell--collapsed .sideMeta {
  display: none;
}

.content {
  overflow: auto;
}

.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.workspace {
  margin-top: 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.header__version {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 850;
  color: rgba(100, 116, 139, 0.92);
  user-select: none;
}

.headerTitleRow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.miniBadges--title {
  gap: 6px;
}

.miniBadges--title .miniBadge {
  height: 24px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
}

.miniBadges--title .miniBadge__dot {
  width: 7px;
  height: 7px;
}

.header__nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

.navBtn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
}

.navBtn--active {
  background: rgba(37, 99, 235, 0.12);
  color: rgba(37, 99, 235, 1);
}

.navBtn:active {
  transform: translateY(1px);
}

.h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.iconBtn--menu {
  display: none;
}

.mobileMenu {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30;
}

.mobileMenu.isOpen {
  display: block;
}

.mobileMenu__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.35);
}

.mobileMenu__panel {
  position: absolute;
  top: 56px;
  right: 12px;
  min-width: 200px;
  max-width: calc(100vw - 24px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mobileMenu__title {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.65);
}

.mobileMenu__list {
  display: grid;
  gap: 6px;
}

.mobileMenu__item {
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.85);
  cursor: pointer;
}

.mobileMenu__item:active {
  transform: translateY(1px);
}

.actionsGroup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.homeCol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.homeSpan {
  grid-column: 1 / -1;
}

.kpiGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.kpiTile {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.kpiTile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.kpiTile__label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpiTile__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.kpiTile__badge--good {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.22);
  color: rgba(21, 128, 61, 1);
}

.kpiTile__badge--bad {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: rgba(185, 28, 28, 1);
}

.kpiTile__value {
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: 0.2px;
  color: rgba(15, 23, 42, 0.92);
}

.kpiTile__meta {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dmInputs .card {
  min-width: 0;
}

.dmUpload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dmUpload__label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.80);
}

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

.dmConfigGrid .capCfgField {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.72);
  min-width: 0;
}

.dmConfigGrid .capCfgField span {
  min-width: 0;
  white-space: nowrap;
  flex: 1;
}

.dmConfigGrid .capCfgField .input {
  width: 110px;
  flex: 0 0 110px;
  text-align: right;
}

@media (max-width: 420px) {
  .dmConfigGrid .capCfgField .input {
    width: 96px;
    flex-basis: 96px;
  }
}

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

.dmScoreFold {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.dmScoreFold__body {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dmScoreGrid {
  display: grid;
  gap: 8px;
}

.dmScoreRow {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 80px 110px 110px 110px;
  gap: 10px;
  align-items: center;
}

.dmScoreRow .input {
  width: 100%;
  min-width: 0;
}

.dmScoreRow--head {
  font-size: 12px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.72);
}

.dmScoreNum {
  text-align: right;
}

@media (max-width: 980px) {
  .dmScoreRow {
    grid-template-columns: minmax(140px, 1fr) 70px 96px 96px 96px;
  }
}

.dmPreviewWrap {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: auto;
  max-height: calc(100vh - 300px);
  padding: 12px;
}

.dmSectionTitle {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 0;
  background: #dbeafe;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
  text-align: center;
}

.dmTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

.dmTable th,
.dmTable td {
  border: 1px solid rgba(15, 23, 42, 0.10);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.25;
}

.dmTable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e7f0ff;
  color: rgba(15, 23, 42, 0.92);
}

.dmTable thead tr.dmGroup th {
  top: 0;
  background: #dbeafe;
  font-weight: 900;
}

.dmTable thead tr.dmCols th {
  top: 34px;
  background: #eff6ff;
  font-weight: 800;
}

.dmTable td {
  text-align: right;
  white-space: nowrap;
}

.dmTable td.dmStation,
.dmTable th.dmStation {
  text-align: left;
  white-space: nowrap;
}

.dmRowTotal td {
  background: rgba(34, 211, 238, 0.16);
  font-weight: 900;
}

.dmDivider {
  height: 12px;
  margin: 12px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(251, 191, 36, 0.95));
}

.dmRateGood {
  color: #16a34a;
  font-weight: 800;
}

.dmRateBad {
  color: #ef4444;
  font-weight: 900;
}

.dmDataBar {
  background-image: linear-gradient(90deg, rgba(37, 99, 235, 0.20) var(--dm-bar), transparent var(--dm-bar));
  background-repeat: no-repeat;
}

.dmSingle {
  margin-top: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: radial-gradient(1200px 320px at 20% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(900px 300px at 80% 0%, rgba(168, 85, 247, 0.10), transparent 55%),
    rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.dmSingleHead {
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dmSingleActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dmSingleTitle {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.2px;
  color: rgba(15, 23, 42, 0.92);
}

.dmSingleSub {
  font-size: 12px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.70);
  text-align: right;
  min-width: 0;
}

.dmSingleWrap {
  padding: 0 12px 12px;
}

.dmSingleOverview {
  margin: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.82));
}

.dmSingleOverviewBar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dmSingleOverviewTitle {
  font-size: 14px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}

.dmSingleOverviewDesc {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.62);
}

.dmSingleOverviewMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dmSingleOverviewGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 12px;
}

.dmOverviewCard {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.88);
  min-width: 0;
}

.dmOverviewCard--hero {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.dmOverviewCard--weak {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.92));
}

.dmOverviewCard__eyebrow {
  font-size: 12px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.62);
}

.dmOverviewCard__hint {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.56);
}

.dmOverviewHero {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dmOverviewHero__score {
  font-size: 42px;
  line-height: 1;
  font-weight: 1000;
  color: rgba(15, 23, 42, 0.94);
}

.dmOverviewHero__sub {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.58);
}

.dmOverviewHero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.20);
  color: rgba(29, 78, 216, 1);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.dmOverviewProgress {
  margin-top: 14px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dmOverviewProgress__bar {
  height: 100%;
  width: var(--dm-p);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(34, 197, 94, 0.95));
}

.dmOverviewStat__value {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 1000;
  color: rgba(15, 23, 42, 0.94);
}

.dmOverviewWeak__value {
  margin-top: 12px;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 1000;
  color: rgba(146, 64, 14, 1);
}

.dmOverviewWeak__tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dmSingleBreakdown {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dmSingleBreakdown__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dmSingleBreakdown__title {
  font-size: 12px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.72);
}

.dmSingleBreakdown__hint {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
}

.dmSingleBreakdownGrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.dmBreakdownItem {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.76);
  min-width: 0;
}

.dmBreakdownItem__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dmBreakdownItem__label {
  font-size: 12px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dmBreakdownItem__score {
  font-size: 16px;
  font-weight: 1000;
  white-space: nowrap;
}

.dmBreakdownItem__meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dmBreakdownItem--good {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.20);
}

.dmBreakdownItem--good .dmBreakdownItem__score { color: rgba(21, 128, 61, 1); }

.dmBreakdownItem--warn {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.24);
}

.dmBreakdownItem--warn .dmBreakdownItem__score { color: rgba(146, 64, 14, 1); }

.dmBreakdownItem--bad {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
}

.dmBreakdownItem--bad .dmBreakdownItem__score { color: rgba(185, 28, 28, 1); }

.dmBreakdownItem--muted {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
}

.dmBreakdownItem--muted .dmBreakdownItem__score { color: rgba(15, 23, 42, 0.70); }

@media (max-width: 1100px) {
  .dmSingleOverviewGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dmSingleOverviewGrid {
    grid-template-columns: 1fr;
  }
}

.dmSingleTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dmSingleTh {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.85);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.80));
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.dmSingleTh--name { width: 32%; }
.dmSingleTh--dev { width: 26%; }

.dmSingleRow {
  background: rgba(255, 255, 255, 0.78);
}

.dmSingleRow:nth-child(2n) {
  background: rgba(15, 23, 42, 0.02);
}

.dmSingleRow--hot {
  box-shadow: inset 4px 0 0 rgba(239, 68, 68, 0.80);
  background: rgba(239, 68, 68, 0.04);
}

.dmSingleTable td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: middle;
}

.dmSingleNameTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dmSingleNameText {
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}

.dmSingleGroup {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dmSingleGroup--scale { background: rgba(37, 99, 235, 0.10); border-color: rgba(37, 99, 235, 0.22); color: rgba(30, 64, 175, 1); }
.dmSingleGroup--service { background: rgba(168, 85, 247, 0.10); border-color: rgba(168, 85, 247, 0.22); color: rgba(107, 33, 168, 1); }
.dmSingleGroup--complaint { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.22); color: rgba(146, 64, 14, 1); }
.dmSingleGroup--rider { background: rgba(22, 163, 74, 0.10); border-color: rgba(22, 163, 74, 0.22); color: rgba(21, 128, 61, 1); }
.dmSingleGroup--muted { background: rgba(15, 23, 42, 0.06); border-color: rgba(15, 23, 42, 0.14); color: rgba(15, 23, 42, 0.72); }

.dmSingleVal {
  font-size: 16px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}

.dmSingleVal--pct {
  font-size: 18px;
  letter-spacing: 0.2px;
}

.dmSingleDevCell {
  text-align: left;
}

.dmSinglePill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-weight: 950;
}

.dmSinglePill--good { background: rgba(22, 163, 74, 0.10); border-color: rgba(22, 163, 74, 0.24); color: rgba(21, 128, 61, 1); }
.dmSinglePill--warn { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.26); color: rgba(146, 64, 14, 1); }
.dmSinglePill--bad { background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.24); color: rgba(185, 28, 28, 1); }
.dmSinglePill--muted { background: rgba(15, 23, 42, 0.06); border-color: rgba(15, 23, 42, 0.14); color: rgba(15, 23, 42, 0.72); }

.dmSinglePillMeta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.70);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(34, 197, 94, 0.95));
}

.bar__fill.isBad {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.92), rgba(245, 158, 11, 0.92));
}

.miniBadges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.miniBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.78);
  white-space: nowrap;
}

.miniBadge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 1);
}

.miniBadge.isOk .miniBadge__dot { background: rgba(34, 197, 94, 1); }
.miniBadge.isWarn .miniBadge__dot { background: rgba(245, 158, 11, 1); }
.miniBadge.isBad .miniBadge__dot { background: rgba(239, 68, 68, 1); }

.dataSources {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dataSource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.dataSource[data-drop] {
  outline: none;
}

.dataSource[data-drop].isDragOver {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.dataSource__left {
  min-width: 0;
}

.dataSource__title {
  font-size: 14px;
  font-weight: 850;
}

.dataSource__meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.dataSource__titleRow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.dataSource__hintInline {
  font-size: 11px;
  color: rgba(15, 23, 42, 0.60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
}

.dataSource__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.homeActions {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scheduleBar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sheetTabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sheetTab {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.78);
  white-space: nowrap;
}

.sheetTab--active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.20);
  color: rgba(37, 99, 235, 1);
}

.scheduleBar__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.04s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.98), rgba(37, 99, 235, 0.86));
  border-color: rgba(37, 99, 235, 0.35);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.btn--primary:hover:not(:disabled) {
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.btn--secondary:hover:not(:disabled),
.btn--ghost:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.04);
}

.file {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.25);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.file input {
  display: none;
}

.progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: none;
}

.progress.isActive {
  display: block;
}

.progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(168, 85, 247, 0.92));
  transition: width 0.18s ease;
}

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

.modal.isActive {
  display: grid;
  place-items: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.20);
  padding: 14px 14px 12px;
}

.modal__title {
  font-size: 14px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
}

.modal__body {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.82);
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

.modal__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panelHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.panelTitle {
  font-size: 16px;
  font-weight: 850;
}

.panelHint {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  text-align: right;
  max-width: 760px;
}

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
}

.status__text {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
}

.status__right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.goal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.60);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.75);
  white-space: nowrap;
}

.goal__input {
  width: 72px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.goal__input:focus {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.60);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.75);
  white-space: nowrap;
}

.filters {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.60);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.80);
}

.tab--active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.30);
  color: rgba(37, 99, 235, 1);
}

.filters__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.60);
}

.seg__btn {
  height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.70);
}

.seg__btn--active {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.92);
}

.input {
  height: 34px;
  width: 240px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.60);
  outline: none;
  font-size: 13px;
}

.input:focus {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.cards--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#rtViolationCards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.card {
  text-align: left;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.70);
  cursor: default;
  transition: transform 0.04s ease, box-shadow 0.12s ease, background 0.12s ease;
}

button.card,
.card.card--clickable {
  cursor: pointer;
}

button.card:hover,
.card.card--clickable:hover {
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

button.card:active,
.card.card--clickable:active {
  transform: translateY(1px);
}

.card__label {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 700;
}

body[data-wb-page='ontimecalc'] #siteTitle,
body[data-wb-page='ontimecalc'] .miniBadges--title {
  display: none;
}

#pageOnTimeCalc .otcHead {
  flex-direction: column;
  align-items: flex-start;
}

#pageOnTimeCalc .otcHead .panelHint {
  text-align: left;
  max-width: none;
}

#pageOnTimeCalc .otcField {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pageOnTimeCalc .otcField__label {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
}

#pageOnTimeCalc .otcField .input {
  margin-left: auto;
  width: 140px;
  text-align: right;
}

#pageOnTimeCalc .otcResultTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.2px;
}

#pageOnTimeCalc .otcResultIcon {
  font-size: 22px;
}

#pageOnTimeCalc .otcResultList {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#pageOnTimeCalc .otcResultRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 20px;
}

#pageOnTimeCalc .otcResultKey {
  font-weight: 950;
  color: rgba(15, 23, 42, 0.82);
}

#pageOnTimeCalc .otcResultVal {
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}

#pageOnTimeCalc .otcResultStatus {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

#pageOnTimeCalc .otcResultStatus--ok {
  background: rgba(34, 197, 94, 0.14);
  color: rgba(21, 128, 61, 0.95);
}

#pageOnTimeCalc .otcResultStatus--warn {
  background: rgba(245, 158, 11, 0.16);
  color: rgba(146, 64, 14, 0.95);
}

#pageCapacity .capHead {
  align-items: flex-start;
}

#pageCapacity .capHead .panelHint {
  text-align: left;
  max-width: none;
  flex: 1;
}

#pageCapacity .capHeadActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#pageCapacity .capTopGrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

#pageCapacity .capCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

#pageCapacity .capCard__titleRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

#pageCapacity .capCard__title {
  font-size: 13px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}

#pageCapacity .capCard__hint {
  font-size: 12px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.55);
}

#pageCapacity .capFormGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#pageCapacity .capFormField {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

#pageCapacity .capFormField__label {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.72);
}

#pageCapacity .capFormMeta {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 750;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
}

#pageCapacity .capDrop {
  display: block;
  position: relative;
  border: 1px dashed rgba(15, 23, 42, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  padding: 14px;
  transition: border-color 140ms ease, background 140ms ease;
}

#pageCapacity .capDrop:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.05);
}

#pageCapacity .capDrop.isDragOver {
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(59, 130, 246, 0.08);
}

#pageCapacity .capDrop input[type='file'] {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

#pageCapacity .capDrop__inner {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px;
}

#pageCapacity .capDrop__title {
  font-size: 13px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.88);
}

#pageCapacity .capDrop__sub {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 750;
}

#pageCapacity .capDrop__btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 23, 42, 0.85);
  font-weight: 850;
  font-size: 12px;
  user-select: none;
}

#pageCapacity .capFileRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.65);
}

#pageCapacity .capFileRow__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pageCapacity .capFileRow__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageCapacity .capFileRow__clear {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 23, 42, 0.7);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#pageCapacity .capUploadActions {
  display: flex;
  justify-content: flex-end;
}

#pageCapacity .capSummary {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

#pageCapacity .capSummaryStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#pageCapacity .capStat {
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.65);
}

#pageCapacity .capStat__label {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.62);
}

#pageCapacity .capStat__value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.02em;
}

#pageCapacity .capBarRow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

#pageCapacity .capBarLabel {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
}

#pageCapacity .capBarTrack {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.06);
  display: flex;
}

#pageCapacity .capBarFill {
  height: 100%;
}

#pageCapacity .capBarFill--ok {
  background: rgba(34, 197, 94, 0.75);
}

#pageCapacity .capBarFill--gap {
  background: rgba(239, 68, 68, 0.70);
}

#pageCapacity .capBarMeta {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.62);
  white-space: nowrap;
}

#pageCapacity .capField {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pageCapacity .capField__label {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
}

#pageCapacity .capField .input {
  margin-left: auto;
  width: 140px;
  text-align: right;
}

#pageCapacity .capUpload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#pageCapacity .capUpload__label {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.72);
}

#pageCapacity .capInputs .card {
  display: flex;
}

#pageCapacity .capConfigBody {
  padding: 12px 2px 2px;
}

#pageCapacity .capConfigActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#pageCapacity .capConfigGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#pageCapacity .capCfgField {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.72);
}

#pageCapacity .capCfgField .input {
  width: 160px;
  text-align: right;
}

#pageCapacity .capCfgHint {
  grid-column: 1 / -1;
  justify-content: flex-start;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}

#pageCapacity .capReportActions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

#pageCapacity .capCallout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

#pageCapacity .capCallout--ok {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.18);
  color: rgba(29, 78, 216, 1);
}

#pageCapacity .capCallout--info {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.18);
  color: rgba(21, 128, 61, 1);
}

#pageCapacity .capKpi {
  margin-top: 12px;
}

#pageCapacity .capGroupsEmpty {
  margin-top: 10px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 13px;
}

#pageCapacity .capRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

#pageCapacity .capRow--head {
  padding: 10px 10px;
  border-top: 0;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  margin-bottom: 6px;
}

#pageCapacity .capRow--head .capRow__name,
#pageCapacity .capRow--head .capRow__mid,
#pageCapacity .capRow--head .capRow__actions {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.62);
}

#pageCapacity .capRow:first-child {
  border-top: 0;
}

#pageCapacity .capRow.isHandled {
  opacity: 0.55;
}

#pageCapacity .capRow__name {
  font-size: 16px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.9);
}

#pageCapacity .capRow__mid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#pageCapacity .capRow__meta {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  white-space: nowrap;
}

#pageCapacity .capRow__actions .btn {
  height: 34px;
}

@media (max-width: 860px) {
  #pageCapacity .capTopGrid {
    grid-template-columns: 1fr;
  }

  #pageCapacity .capSummaryStats {
    grid-template-columns: 1fr;
  }

  #pageCapacity .capBarRow {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #pageCapacity .capConfigGrid {
    grid-template-columns: 1fr;
  }

  #pageCapacity .capCfgField .input {
    width: 140px;
  }

  #pageCapacity .capField .input {
    width: 120px;
  }
}

#pageOrderProc .opHead {
  flex-direction: column;
  align-items: flex-start;
}

#pageOrderProc .opHead .panelHint {
  text-align: left;
  max-width: none;
}

#pageOrderProc .opInputs .card {
  display: flex;
}

#pageOrderProc .opUpload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#pageOrderProc .opUpload__label {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.72);
}

#pageOrderProc .status__text {
  line-height: 1.45;
}

.card__value--pair {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.card__sep {
  opacity: 0.55;
}

.metricMuted {
  color: rgba(15, 23, 42, 0.55);
}

.metricVal.isGood { color: rgba(21, 128, 61, 1); }
.metricVal.isWarn { color: rgba(146, 64, 14, 1); }
.metricVal.isBad { color: rgba(185, 28, 28, 1); }

.card__pct { display: none; }

.card__value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0.2px;
}

.card--danger { border-color: rgba(239, 68, 68, 0.28); background: rgba(239, 68, 68, 0.07); }
.card--warn { border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.07); }
.card--info { border-color: rgba(168, 85, 247, 0.28); background: rgba(168, 85, 247, 0.07); }
.card--success { border-color: rgba(22, 163, 74, 0.28); background: rgba(22, 163, 74, 0.07); }
.card--muted { border-color: rgba(15, 23, 42, 0.18); background: rgba(15, 23, 42, 0.04); }

#rtViolationCards .card:nth-child(-n + 6) {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.07);
}

#rtViolationCards .card:nth-child(n + 7) {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.07);
}

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

.section {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.section__head {
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

summary.section__head {
  cursor: pointer;
  list-style: none;
}

summary.section__head::-webkit-details-marker { display: none; }

.section__title {
  font-size: 16px;
  font-weight: 850;
}

.section__titleRow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.section__hint {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  max-width: 760px;
  text-align: right;
}

.section--danger .section__head { background: rgba(239, 68, 68, 0.06); }
.section--warn .section__head { background: rgba(245, 158, 11, 0.06); }
.section--info .section__head { background: rgba(168, 85, 247, 0.06); }

.tableWrap {
  overflow: auto;
  max-height: 440px;
}

.tableWrap--tall {
  max-height: 640px;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.table--compact {
  min-width: 0;
  table-layout: fixed;
}

.table--compact th,
.table--compact td {
  padding: 6px 8px;
  font-size: 12px;
}

.table--compact td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table--compact .colType {
  width: 92px;
  text-align: center;
}

.table--compact .colTimeWide {
  width: 420px;
}

.table--compact .tag {
  padding: 2px 8px;
  font-size: 11px;
}

#tblRiders {
  min-width: 1320px;
  table-layout: auto;
}

#tblRiders th,
#tblRiders td {
  white-space: nowrap;
}

.table thead th {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  font-weight: 850;
  white-space: nowrap;
}

.table th, .table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.table .colHandled { width: 72px; text-align: center; }
.table .colMins { width: 96px; text-align: center; }
.table .colOnline { width: 92px; text-align: center; }
.table .colType { width: 96px; text-align: center; }
.table .colOrders { width: 128px; text-align: center; }

.table input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--border);
}

.tag--danger { background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.25); color: rgba(185, 28, 28, 1); }
.tag--warn { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.25); color: rgba(146, 64, 14, 1); }
.tag--info { background: rgba(168, 85, 247, 0.10); border-color: rgba(168, 85, 247, 0.25); color: rgba(107, 33, 168, 1); }
.tag--success { background: rgba(22, 163, 74, 0.10); border-color: rgba(22, 163, 74, 0.25); color: rgba(21, 128, 61, 1); }
.tag--muted { background: rgba(15, 23, 42, 0.06); border-color: rgba(15, 23, 42, 0.15); color: rgba(15, 23, 42, 0.78); }

.rowHandled {
  opacity: 0.62;
}

.rowImportant {
  background: rgba(239, 68, 68, 0.08);
}

.lateGroup {
  padding: 10px 12px 14px;
}

.lateGroup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 10px;
}

.lateGroup__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  cursor: pointer;
  list-style: none;
}

.lateGroup__summary::-webkit-details-marker { display: none; }

.lateGroup__title {
  font-size: 14px;
  font-weight: 850;
}

.lateGroup__titleRow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sortBtn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.sortBtn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.sortBtn:active {
  transform: translateY(1px);
}

.copyBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.copyBtn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.copyBtn:active {
  transform: translateY(1px);
}

.copyBtn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.9;
}

.copyBtn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.lateGroup__meta {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 750;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot--danger { background: var(--danger); }
.dot--warn { background: var(--warn); }
.dot--info { background: var(--info); }
.dot--success { background: var(--success); }

@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .input { width: 200px; }
  .homeGrid { grid-template-columns: 1fr; }
  .kpiGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app { padding: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #rtViolationCards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 10px 10px; border-radius: 12px; }
  .card__label { font-size: 11px; }
  .card__value { margin-top: 4px; font-size: 18px; }
  .input { width: 100%; }
  .dataSource__meta { max-width: 280px; }
  .dataSource__hintInline { max-width: 240px; }
  .kpiGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { grid-template-columns: 1fr; }
  .shell.shell--collapsed { grid-template-columns: 1fr; }
  .shell.shell--mobile .sidebar { display: none; }
  .shell.shell--mobile .content { grid-column: 1 / -1; }

  .app { max-width: none; }
  .header { flex-direction: column; align-items: flex-start; }
  .header__actions { width: 100%; justify-content: flex-start; }
  .scheduleBar__right { width: 100%; flex-wrap: wrap; }
  .homeGrid { grid-template-columns: 1fr; }
  .iconBtn--menu { display: inline-grid; }

  .tableWrap {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  #tblSchedule {
    min-width: 980px;
    table-layout: auto;
  }

  #tblSchedule td.colTimeWide,
  #tblSchedule th.colTimeWide {
    white-space: normal;
    word-break: break-all;
  }
}
