:root {
  color-scheme: light;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #dfe5ee;
  --line-soft: #edf1f7;
  --blue: #1264f4;
  --green: #078f54;
  --orange: #ee7800;
  --red: #e62e26;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1536px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 28px;
  border-bottom: 1px solid #dde4ef;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 8px rgba(16, 24, 40, 0.04);
}

.top-left,
.top-center,
.top-right,
.kpi-title,
.panel-title,
.table-top,
.table-tools,
.focus-head,
.focus-item-head,
.focus-item-head div,
.pagination,
.page-buttons,
.sidebar-meta {
  display: flex;
  align-items: center;
}

.top-left {
  gap: 16px;
  min-width: 270px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(180deg, #4a83ff, #1464f4);
  color: white;
}

.logo-mark::before {
  content: "▥";
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.logo-mark i {
  display: none;
}

i[data-lucide] {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: currentColor;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

i[data-lucide="panel-left"]::before {
  content: "◧";
  font-size: 17px;
}

i[data-lucide="calendar-days"]::before {
  content: "▣";
}

i[data-lucide="circle-check-big"]::before {
  content: "✓";
}

i[data-lucide="chevron-down"]::before {
  content: "⌄";
}

i[data-lucide="chevron-right"]::before {
  content: "›";
}

i[data-lucide="chevron-left"]::before {
  content: "‹";
}

i[data-lucide="pie-chart"]::before {
  content: "◔";
}

i[data-lucide="bar-chart-3"]::before {
  content: "▥";
}

i[data-lucide="triangle-alert"]::before {
  content: "△";
}

i[data-lucide="notebook-tabs"]::before {
  content: "▦";
}

i[data-lucide="settings"]::before {
  content: "⚙";
}

i[data-lucide="mail-check"]::before {
  content: "✉";
}

i[data-lucide="clock-3"]::before {
  content: "◷";
}

i[data-lucide="database"]::before {
  content: "◉";
}

i[data-lucide="circle-help"]::before {
  content: "?";
}

i[data-lucide="search"]::before {
  content: "⌕";
}

i[data-lucide="list-filter"]::before {
  content: "≡";
}

i[data-lucide="download"]::before {
  content: "⇩";
}

i[data-lucide="chevrons-up-down"]::before {
  content: "↕";
}

h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: #111827;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.top-divider {
  width: 1px;
  height: 30px;
  background: #d9e1ec;
}

.icon-button,
.tool-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #1f2937;
}

.icon-button {
  width: 34px;
  height: 34px;
}

.top-center {
  flex: 1;
  gap: 14px;
  justify-content: center;
}

.date-picker,
.sync-pill,
.source-pill,
.select-button,
.search-box,
.tool-button,
.pagination button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.date-picker {
  min-width: 156px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  color: #101828;
  font-size: 16px;
}

.date-picker svg,
.sync-pill svg,
.user-menu svg,
.select-button svg,
.tool-button svg,
.pagination svg {
  width: 16px;
  height: 16px;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #079455;
  font-size: 15px;
}

.source-label {
  color: #344054;
  font-weight: 600;
}

.source-pill {
  min-width: 96px;
  padding: 0 13px;
  font-weight: 700;
}

.source-pill.blue {
  color: var(--blue);
  background: #f0f6ff;
  border-color: #cfe2ff;
}

.source-pill.green {
  color: var(--green);
  background: #eefaf3;
  border-color: #d0f0dd;
}

.source-pill.orange {
  color: var(--orange);
  background: #fff5e9;
  border-color: #ffe0bd;
}

.source-pill.active {
  box-shadow: inset 0 0 0 1px currentColor;
}

.top-right {
  gap: 14px;
  min-width: 128px;
  justify-content: flex-end;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #f8fafc 0 4px, transparent 5px),
    linear-gradient(180deg, #cfd7e3, #aab6c6);
}

.user-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #111827;
  font-weight: 700;
}

.sidebar {
  position: fixed;
  z-index: 4;
  inset: 64px auto 0 0;
  width: 232px;
  padding: 12px 13px 28px;
  border-right: 1px solid #dde4ef;
  background: white;
  overflow: hidden;
  transition: width 0.18s ease, padding 0.18s ease;
}

.sidebar-collapsed .sidebar {
  width: 72px;
  padding: 12px 8px 24px;
}

.sidebar-collapsed .dashboard {
  margin-left: 72px;
}

.nav-list {
  display: grid;
  gap: 16px;
  padding-top: 2px;
}

.nav-list a {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 5px;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-list a.active {
  color: var(--blue);
  background: #eaf2ff;
}

.nav-list a.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 46px;
  border-radius: 4px;
  background: var(--blue);
}

.nav-list svg {
  width: 20px;
  height: 20px;
  color: #526173;
}

.nav-list a.active svg {
  color: var(--blue);
  fill: rgba(18, 100, 244, 0.12);
}

.nav-list a:nth-child(3) svg {
  color: #f04438;
}

.nav-list b {
  min-width: 31px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: 999px;
  background: #ef382f;
  color: white;
  font-size: 12px;
}

.sidebar-collapsed .nav-list {
  gap: 14px;
}

.sidebar-collapsed .nav-list a {
  justify-content: center;
  gap: 0;
  padding: 0;
}

.sidebar-collapsed .nav-list a span {
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.sidebar-collapsed .nav-list a.active::before {
  left: -8px;
}

.sidebar-collapsed .nav-list b {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  margin-left: 0;
  padding: 0 5px;
  font-size: 10px;
}

.sidebar-meta {
  position: absolute;
  left: 14px;
  right: 15px;
  bottom: 24px;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e5ebf3;
  color: #667085;
}

.sidebar-collapsed .sidebar-meta {
  left: 8px;
  right: 8px;
  justify-content: center;
  gap: 0;
  padding-top: 14px;
}

.sidebar-collapsed .sidebar-meta div {
  display: none;
}

.sidebar-meta svg {
  width: 20px;
  height: 20px;
  color: #526173;
  align-self: flex-start;
  margin-top: 4px;
}

.sidebar-meta span,
.sidebar-meta strong,
.sidebar-meta small {
  display: block;
}

.sidebar-meta span {
  margin-bottom: 8px;
  color: #526173;
  font-weight: 700;
}

.sidebar-meta strong,
.sidebar-meta small {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.dashboard {
  margin-left: 232px;
  padding: 80px 16px 14px;
  transition: margin-left 0.18s ease;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.panel,
.kpi-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.kpi-card {
  height: 156px;
  padding: 16px 10px 12px 16px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.kpi-card:hover,
.mini-card:hover,
.focus-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.1);
}

.kpi-card header {
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf4;
}

.kpi-title {
  gap: 12px;
}

.kpi-title span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.kpi-card.blue .kpi-title span {
  color: var(--blue);
  background: #eaf2ff;
}

.kpi-card.green .kpi-title span {
  color: var(--green);
  background: #e9f8ef;
}

.kpi-card.orange .kpi-title span {
  color: var(--orange);
  background: #fff1dc;
}

.kpi-title h2 {
  font-size: 16px;
  font-weight: 800;
}

.kpi-card.blue h2 {
  color: var(--blue);
}

.kpi-card.green h2 {
  color: var(--green);
}

.kpi-card.orange h2 {
  color: var(--orange);
}

.kpi-values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding-top: 14px;
}

.kpi-values span {
  display: block;
  color: #344054;
  font-size: 13px;
  text-align: center;
}

.kpi-values strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.kpi-deltas {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 8px;
  padding-top: 18px;
  color: var(--green);
  font-size: 12px;
  text-align: center;
}

.kpi-deltas span {
  color: #667085;
  text-align: left;
  padding-left: 2px;
}

.kpi-deltas b {
  font-weight: 700;
}

.middle-grid {
  display: grid;
  grid-template-columns: 696px 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.trend-panel {
  height: 256px;
  padding: 14px 14px 10px;
}

.panel-title {
  gap: 8px;
}

.panel-title h2 {
  font-size: 16px;
  font-weight: 800;
}

.panel-title span {
  color: #344054;
  font-size: 13px;
}

.trend-chart {
  width: 100%;
  height: 214px;
  display: block;
  margin-top: 2px;
}

.trend-chart .axis line {
  stroke: #edf1f7;
}

.trend-chart .axis text,
.trend-chart .legend text,
.trend-chart .tooltip text {
  fill: #344054;
  font-size: 12px;
}

.trend-chart .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-chart .total,
.trend-chart .legend circle {
  stroke: var(--blue);
  fill: white;
}

.trend-chart .ios {
  stroke: var(--green);
  fill: white;
}

.trend-chart .android {
  stroke: var(--orange);
  fill: white;
}

.trend-chart .point {
  stroke-width: 2;
}

.trend-chart .hover-line {
  stroke: #a9b4c4;
  stroke-dasharray: 4 4;
}

.trend-chart .tooltip rect {
  fill: white;
  stroke: #dce3ed;
  filter: drop-shadow(0 8px 16px rgba(16, 24, 40, 0.14));
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 12px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.mini-card {
  height: 232px;
  padding: 14px 14px 10px;
  border: 1px solid;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mini-card.red {
  border-color: #ffc6c2;
  background: linear-gradient(135deg, #fff8f7, #fff 48%, #fff1ef);
  color: var(--red);
}

.mini-card.orange {
  border-color: #ffd9a8;
  background: linear-gradient(135deg, #fffbf4, #fff 48%, #fff4df);
  color: var(--orange);
}

.mini-card.blue {
  border-color: #bdd7ff;
  background: linear-gradient(135deg, #f7fbff, #fff 48%, #edf5ff);
  color: #2f6fe4;
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111827;
}

.mini-head h3 {
  font-size: 16px;
  font-weight: 800;
}

.mini-card .mini-head svg {
  width: 15px;
  height: 15px;
  margin-top: 0;
}

.mini-card strong {
  display: block;
  margin-top: 24px;
  font-size: 39px;
  line-height: 1;
}

.mini-card p {
  margin-top: 16px;
  color: #344054;
}

.mini-card p b {
  color: inherit;
  padding-left: 5px;
}

.mini-card > svg {
  width: 100%;
  height: 54px;
  margin-top: 24px;
}

.mini-card > svg .line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.mini-card > svg .area {
  fill: currentColor;
  opacity: 0.09;
  stroke: none;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 394px;
  gap: 14px;
}

.table-panel,
.focus-panel {
  height: 454px;
}

.table-panel {
  padding: 13px 10px 10px;
}

.table-top {
  justify-content: space-between;
  margin: 0 4px 10px;
}

.table-tools {
  gap: 9px;
}

.filter-menu {
  position: relative;
}

.select-button {
  width: 114px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #344054;
  font-size: 13px;
}

.menu-popover {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 12;
  width: 114px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
}

.menu-popover button {
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #344054;
  text-align: left;
  font-size: 13px;
}

.menu-popover button:hover {
  color: var(--blue);
  background: #edf4ff;
}

.search-box {
  width: 156px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  color: #98a2b3;
}

.search-box svg {
  width: 15px;
  height: 15px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #344054;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #98a2b3;
}

.tool-button {
  width: 34px;
  color: #344054;
}

.table-wrap {
  height: 356px;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

th,
td {
  height: 35px;
  padding: 0 7px;
  border-right: 1px solid #e1e7ef;
  border-bottom: 1px solid #e1e7ef;
  text-align: center;
  white-space: nowrap;
}

th {
  color: #111827;
  background: #f9fbfe;
  font-weight: 800;
  line-height: 1.08;
}

th button {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  line-height: 1.08;
}

th button.active-sort {
  color: var(--blue);
}

th button.active-sort i::before {
  content: "↑";
}

th button.active-sort[data-direction="desc"] i::before {
  content: "↓";
}

th:first-child,
td:first-child {
  width: 150px;
  text-align: left;
}

td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

th:nth-child(2),
td:nth-child(2) {
  width: 58px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 72px;
}

th svg {
  width: 11px;
  height: 11px;
  vertical-align: -2px;
}

th span {
  display: inline-block;
  vertical-align: middle;
}

.name-cell {
  color: #3b177d;
  font-size: 11px;
}

.android-row .name-cell {
  color: #047344;
}

tr.loss-row,
tr.warn-row,
tr.critical-row {
  background: linear-gradient(90deg, rgba(255, 241, 240, 0.72), rgba(255, 250, 245, 0.35));
}

tr.ok-row {
  background: linear-gradient(90deg, rgba(235, 250, 242, 0.78), rgba(246, 255, 250, 0.38));
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  filter: brightness(0.985);
}

tbody tr.selected-row {
  outline: 2px solid rgba(18, 100, 244, 0.5);
  outline-offset: -2px;
}

.empty-cell {
  height: 310px;
  color: #667085;
  text-align: center !important;
  background: white;
}

.status-tag {
  min-width: 66px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-tag.loss,
.status-tag.critical {
  color: var(--red);
  background: #ffe7e4;
  border: 1px solid #ffc7c1;
}

.status-tag.warn {
  color: var(--orange);
  background: #fff0dd;
  border: 1px solid #ffd8a6;
}

.status-tag.ok {
  color: #078f54;
  background: #dcf7e6;
  border: 1px solid #b8eccb;
}

.pagination {
  height: 42px;
  justify-content: space-between;
  gap: 10px;
  color: #344054;
}

.pagination-summary,
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-summary {
  min-width: 180px;
  justify-content: flex-start;
}

.pagination-controls {
  min-width: 0;
  justify-content: flex-end;
}

.pagination button {
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #344054;
  background: white;
  font-size: 12px;
}

.pagination button.current {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.pagination button.muted {
  color: #c6ceda;
  background: #f8fafc;
}

.page-buttons {
  gap: 5px;
  margin-left: 0;
}

.focus-panel {
  padding: 13px 10px 12px;
}

.focus-head {
  justify-content: space-between;
  margin: 0 8px 12px;
}

.focus-head h2 {
  font-size: 16px;
  font-weight: 800;
}

.focus-head button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

.focus-head svg,
.all-alerts svg {
  width: 16px;
  height: 16px;
}

.focus-list {
  display: grid;
  gap: 8px;
}

.focus-item {
  height: 104px;
  padding: 10px 10px 8px;
  border: 1px solid #e4e9f1;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.focus-item-head {
  justify-content: space-between;
}

.focus-item-head div {
  gap: 8px;
}

.focus-item-head div span {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.focus-item-head strong {
  font-size: 14px;
  font-weight: 800;
}

.focus-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.focus-metrics span {
  color: #475467;
  font-size: 12px;
}

.focus-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.all-alerts {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--blue);
  font-weight: 700;
}

footer {
  height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #667085;
  font-size: 12px;
}

.blue-text {
  color: var(--blue) !important;
}

.green-text {
  color: var(--green) !important;
}

.red-text {
  color: var(--red) !important;
}

.orange-text {
  color: var(--orange) !important;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 10px 16px;
  border: 1px solid #cfe2ff;
  border-radius: 7px;
  background: white;
  color: #1264f4;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16);
}

.detail-drawer {
  position: fixed;
  z-index: 20;
  top: 64px;
  right: 0;
  width: 360px;
  height: calc(100vh - 64px);
  padding: 18px;
  border-left: 1px solid var(--line);
  background: white;
  box-shadow: -16px 0 34px rgba(16, 24, 40, 0.12);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.drawer-head span,
.drawer-grid span {
  display: block;
  color: #667085;
  font-size: 12px;
}

.drawer-head strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 19px;
}

.drawer-head button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #667085;
  font-size: 20px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.drawer-grid div {
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid #e8edf4;
  border-radius: 7px;
  background: #f8fafc;
}

.drawer-grid b {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.page-grid {
  display: grid;
  gap: 14px;
}

.page-grid.single {
  grid-template-columns: 1fr;
}

.page-panel {
  min-height: 846px;
  padding: 13px 10px 10px;
}

.product-page-panel .table-top,
.page-panel .table-top {
  min-height: 42px;
}

.page-table {
  height: 665px;
  overflow: auto;
}

.compact-select {
  height: 34px;
  min-width: 104px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 8px 4px 10px;
}

.stat-strip div {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  background: #fbfcff;
}

.stat-strip span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.stat-strip strong {
  display: block;
  margin-top: 7px;
  color: #111827;
  font-size: 20px;
  line-height: 1;
}

.alerts-layout {
  grid-template-columns: 1fr 360px;
  align-items: start;
}

.alert-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.alert-summary {
  height: 112px;
  padding: 16px 18px;
  cursor: pointer;
}

.alert-summary span,
.alert-summary small {
  display: block;
  color: #475467;
  font-weight: 700;
}

.alert-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.alert-summary small {
  margin-top: 8px;
  font-size: 12px;
}

.alert-summary.red strong {
  color: var(--red);
}

.alert-summary.orange strong {
  color: var(--orange);
}

.alert-summary.blue strong {
  color: var(--blue);
}

.alert-side {
  min-height: 846px;
  padding: 14px 12px;
}

.alert-side h2,
.log-panel h2,
.rule-preview h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.alert-side button {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 5px 10px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #e4e9f1;
  border-radius: 7px;
  background: white;
  color: #111827;
  text-align: left;
}

.alert-side button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.alert-side button span {
  color: #667085;
  font-size: 12px;
}

.alert-side button b {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--red);
  text-align: right;
  font-size: 18px;
}

.detail-layout {
  grid-template-columns: 300px 1fr;
  align-items: start;
}

.detail-list,
.detail-main {
  min-height: 846px;
  padding: 14px 12px;
}

.detail-search {
  width: 100%;
  margin: 14px 0 10px;
}

.product-list {
  display: grid;
  gap: 7px;
}

.product-list button {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 66px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  background: white;
  color: #111827;
  text-align: left;
}

.product-list button.active {
  border-color: #b8d3ff;
  background: #edf4ff;
}

.product-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.product-list b {
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
}

.product-list b.ok {
  color: #078f54;
  background: #dcf7e6;
}

.product-list b.warn {
  color: var(--orange);
  background: #fff0dd;
}

.product-list b.loss,
.product-list b.critical {
  color: var(--red);
  background: #ffe7e4;
}

.detail-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-headline span {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.detail-headline h2 {
  margin-top: 6px;
  font-size: 22px;
}

.detail-kpis {
  grid-template-columns: repeat(4, 1fr);
}

.detail-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  margin-top: 16px;
}

.detail-split section {
  min-height: 300px;
  padding: 12px;
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  background: #fbfcff;
}

.detail-split .trend-chart {
  height: 250px;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-list div {
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 92px 72px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  background: white;
}

.history-list span,
.history-list small {
  color: #667085;
  font-size: 12px;
}

.history-list b {
  text-align: right;
}

.rules-layout {
  grid-template-columns: 1fr 340px;
  align-items: start;
}

.rules-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rules-form label {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr 120px 28px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  background: #fbfcff;
}

.rules-form label:first-child {
  grid-template-columns: 1fr 42px;
}

.rules-form span {
  color: #344054;
  font-weight: 800;
}

.rules-form b {
  color: #667085;
  font-size: 13px;
}

.rule-input {
  height: 36px;
  width: 120px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  text-align: right;
  font-weight: 800;
}

.primary-button {
  height: 36px;
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0f5ee8;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.rules-form .primary-button {
  width: 132px;
}

.rule-preview {
  min-height: 846px;
  padding: 14px 12px;
}

.stat-strip.vertical {
  grid-template-columns: 1fr;
  margin: 0;
}

.mail-layout {
  grid-template-columns: 1fr 360px;
  align-items: start;
}

.mail-status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 4px 14px;
}

.mail-status-row div,
.mail-grid article {
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  background: #fbfcff;
}

.mail-status-row div {
  min-height: 72px;
  padding: 12px;
}

.mail-status-row span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.mail-status-row strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 17px;
}

.mail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 4px;
}

.mail-grid article {
  min-height: 148px;
  padding: 12px;
}

.mail-grid header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mail-grid header strong {
  font-size: 14px;
  line-height: 1.35;
}

.mail-grid p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #667085;
  font-size: 12px;
  line-height: 1.9;
}

.log-panel {
  min-height: 846px;
  padding: 14px 12px;
}

.log-list {
  display: grid;
  gap: 8px;
}

.log-list div {
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  background: white;
}

.log-list span,
.log-list strong {
  display: block;
}

.log-list span {
  color: #667085;
  font-size: 12px;
}

.log-list strong {
  margin-top: 5px;
  font-size: 13px;
}

.empty-page {
  height: 300px;
  display: grid;
  place-items: center;
  color: #667085;
}
