/**
 * /reports — таблицы, фильтры, отступы (карточки — inline в reports.html как на /components).
 */

/* Карточки отчётов не интерактивные — без hover-подсветки (кроме контроля отклонений) */
.zootech-app-body.reports-page .report-card.list-item:not(.deviation-report-card):hover {
  background: var(--bg-white, #fff) !important;
  border-color: var(--border-light) !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-theme="dark"] .zootech-app-body.reports-page .report-card.list-item:not(.deviation-report-card):hover {
  background: var(--bg-white, #2c3338) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.reports-page .reports-container {
  max-width: none;
  margin: 0;
  padding: 0;
}

.reports-page .period-selectors {
  margin-bottom: 0.75rem;
}

/* Шапка и вкладки */
.reports-page .reports-controls__head {
  margin-bottom: var(--zt-space-3, 1rem);
}

.reports-page .reports-controls__head .form-title {
  margin-bottom: 0;
}

.reports-page .reports-controls__block + .reports-controls__block {
  margin-top: var(--zt-space-3, 1rem);
  padding-top: var(--zt-space-3, 1rem);
  border-top: 1px solid var(--border-light);
}

.reports-page .reports-controls__block--tabs {
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}

.reports-page .reports-controls__block--filters {
  margin-bottom: 0;
  overflow: visible;
}

.reports-page .reports-controls .zt-tabs {
  margin-bottom: 0;
}

.reports-page .reports-view-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zt-space-2, 0.5rem) var(--zt-space-3, 0.75rem);
}

.reports-page .reports-view-tabs-row__sep {
  width: 1px;
  height: 1.25rem;
  background: var(--border-light);
  flex-shrink: 0;
}

.reports-page .reports-journal-tabs-wrap {
  display: flex;
  align-items: center;
  gap: var(--zt-space-2, 0.5rem);
}

/* Компактная строка фильтров — единая сетка */
.reports-page .reports-filter-bar {
  display: grid;
  grid-template-columns: minmax(11rem, 1.15fr) minmax(8.5rem, 0.95fr) minmax(7.5rem, 0.85fr) auto;
  gap: var(--zt-space-2, 0.5rem);
  align-items: center;
}

.reports-page .reports-filter-bar--with-farm {
  grid-template-columns:
    minmax(10rem, 1fr)
    minmax(7.5rem, 0.85fr)
    minmax(7rem, 0.8fr)
    minmax(6.5rem, 0.75fr)
    auto;
}

.reports-page .reports-filter-bar__control,
.reports-page .reports-filter-bar__select,
.reports-page .reports-drp__trigger,
.reports-page .reports-filter-bar__apply {
  width: 100%;
  min-height: var(--zt-btn-height, 40px);
  height: var(--zt-btn-height, 40px);
  font-size: var(--zt-font-body, 0.875rem);
}

.reports-page .reports-filter-bar__apply {
  width: auto;
  min-width: 7.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding-inline: 1rem;
  font-weight: 600;
}

.reports-page .reports-filter-select {
  position: relative;
  min-width: 0;
}

.reports-page .reports-filter-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.reports-page .reports-filter-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  padding: 0 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--zt-radius-md, 10px);
  background: var(--surface, var(--bg-white, #fff));
  color: var(--text, var(--text-dark));
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  appearance: none;
  font-size: var(--zt-font-body, 0.875rem);
}

.reports-page .reports-filter-dropdown__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-page .reports-filter-dropdown__chev {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--muted, var(--text-muted));
}

.reports-page .reports-filter-dropdown__trigger:hover {
  border-color: rgba(var(--primary-rgb, 13, 110, 253), 0.35);
}

.reports-page .reports-filter-dropdown__trigger:focus,
.reports-page .reports-filter-dropdown__trigger[aria-expanded="true"] {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 13, 110, 253), 0.15);
  outline: none;
}

.reports-page .reports-filter-dropdown__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1200;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--border-light);
  border-radius: var(--zt-radius-md, 10px);
  background: var(--surface, var(--bg-white, #fff));
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.12));
}

.reports-page .reports-filter-dropdown__item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: var(--zt-radius-sm, 8px);
  cursor: pointer;
  color: var(--text, var(--text-dark));
  font-size: var(--zt-font-body, 0.875rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-page .reports-filter-dropdown__item:hover,
.reports-page .reports-filter-dropdown__item--active {
  background: rgba(var(--primary-rgb, 13, 110, 253), 0.08);
  color: var(--primary-color);
}

.reports-page .reports-filter-dropdown__check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: var(--zt-radius-sm, 8px);
  cursor: pointer;
  color: var(--text, var(--text-dark));
  font-size: var(--zt-font-body, 0.875rem);
  user-select: none;
}

.reports-page .reports-filter-dropdown__check:hover {
  background: rgba(var(--primary-rgb, 13, 110, 253), 0.06);
}

.reports-page .reports-filter-dropdown__check-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .reports-page .reports-filter-dropdown__trigger,
html[data-theme="dark"] .reports-page .reports-filter-dropdown__menu {
  background: var(--dm-field, var(--bg-white, #2c3338));
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

html[data-theme="dark"] .reports-page .reports-filter-dropdown__item {
  color: #f5f5f5;
}

html[data-theme="dark"] .reports-page .reports-filter-dropdown__check {
  color: #f5f5f5;
}

.reports-page .reports-filter-select .form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-color: var(--surface, var(--bg-white, #fff));
  color: var(--text, var(--text-dark));
  border: 1px solid var(--border-light);
  border-radius: var(--zt-radius-md, 10px);
  box-shadow: none;
}

.reports-page .reports-filter-select .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 13, 110, 253), 0.15);
}

.reports-page .reports-filter-select__chev {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.65rem;
  color: var(--muted, var(--text-muted));
}

html[data-theme="dark"] .reports-page .reports-filter-select .form-select {
  background-color: var(--dm-field, var(--bg-white, #2c3338));
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

.reports-page .reports-export-dropdown {
  position: relative;
}

.reports-page .reports-export-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.reports-page .reports-export-dropdown__chev {
  font-size: 0.6rem;
  opacity: 0.7;
}

.reports-page .reports-export-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1200;
  min-width: 16.5rem;
  max-width: 19rem;
  padding: 0.35rem;
  border: 1px solid var(--border-light);
  border-radius: var(--zt-radius-md, 10px);
  background: var(--surface, var(--bg-white, #fff));
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.12));
}

.reports-page .reports-export-dropdown__group + .reports-export-dropdown__group {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border-light);
}

.reports-page .reports-export-dropdown__group-label {
  padding: 0.2rem 0.65rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, var(--text-muted));
}

.reports-page .reports-export-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: var(--zt-radius-sm, 8px);
  cursor: pointer;
  color: var(--text, var(--text-dark));
}

.reports-page .reports-export-dropdown__icon {
  flex-shrink: 0;
  width: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
  font-size: 1rem;
  line-height: 1;
}

.reports-page .reports-export-dropdown__text {
  flex: 1;
  min-width: 0;
}

.reports-page .reports-export-dropdown__item:hover {
  background: rgba(var(--primary-rgb, 13, 110, 253), 0.08);
}

.reports-page .reports-export-dropdown__item strong {
  display: block;
  font-size: 0.8125rem;
}

.reports-page .reports-export-dropdown__item small {
  display: block;
  color: var(--muted, var(--text-muted));
  font-size: 0.6875rem;
  margin-top: 0.1rem;
}

html[data-theme="dark"] .reports-page .reports-export-dropdown__menu {
  background: var(--dm-field, #2c3338);
  border-color: rgba(255, 255, 255, 0.12);
}

.reports-page .reports-drp {
  position: relative;
  min-width: 0;
}

.reports-page .reports-drp__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--zt-radius-md, 10px);
  background: var(--surface, var(--bg-white, #fff));
  color: var(--text, var(--text-dark));
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  appearance: none;
}

.reports-page .reports-drp__trigger:hover {
  border-color: rgba(var(--primary-rgb, 13, 110, 253), 0.35);
}

.reports-page .reports-drp__trigger:focus,
.reports-page .reports-drp__trigger[aria-expanded="true"] {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 13, 110, 253), 0.15);
  outline: none;
}

.reports-page .reports-drp__trigger .fa-calendar-alt {
  color: var(--primary-color);
  flex-shrink: 0;
  font-size: 0.875rem;
}

.reports-page .reports-drp__trigger #reportsDateRangeLabel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-page .reports-drp__chev {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--muted, var(--text-muted));
  flex-shrink: 0;
}

.reports-page .reports-drp__panel {
  position: fixed;
  z-index: 2500;
  width: min(19rem, calc(100vw - 1.5rem));
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--zt-radius-lg, 12px);
  background: var(--surface, var(--bg-white, #fff));
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.12));
}

.reports-page .reports-drp__presets {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.reports-page .reports-drp__preset {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--zt-radius-sm, 8px);
  background: transparent;
  color: var(--text, var(--text-dark));
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.35rem;
  min-height: 2rem;
  cursor: pointer;
  transition: background var(--transition, 0.15s), border-color var(--transition, 0.15s);
}

.reports-page .reports-drp__preset.active,
.reports-page .reports-drp__preset:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(var(--primary-rgb, 13, 110, 253), 0.08);
}

.reports-page .reports-drp__cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text, var(--text-dark));
}

.reports-page .reports-drp__nav {
  border: none;
  background: transparent;
  color: var(--muted, var(--text-muted));
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--zt-radius-sm, 8px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reports-page .reports-drp__nav:hover {
  background: rgba(var(--primary-rgb, 13, 110, 253), 0.08);
  color: var(--primary-color);
}

.reports-page .reports-drp__weekdays,
.reports-page .reports-drp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}

.reports-page .reports-drp__weekdays {
  margin-bottom: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted, var(--text-muted));
  text-align: center;
}

.reports-page .reports-drp__day {
  border: none;
  background: transparent;
  border-radius: var(--zt-radius-sm, 8px);
  font-size: 0.75rem;
  line-height: 1.75rem;
  height: 1.75rem;
  padding: 0;
  cursor: pointer;
  color: var(--text, var(--text-dark));
}

.reports-page .reports-drp__day--empty {
  pointer-events: none;
}

.reports-page .reports-drp__day--today {
  font-weight: 700;
  color: var(--primary-color);
}

.reports-page .reports-drp__day--in-range {
  background: rgba(var(--primary-rgb, 13, 110, 253), 0.12);
}

.reports-page .reports-drp__day--edge {
  background: var(--primary-color);
  color: #fff;
}

.reports-page .reports-drp__day--edge.reports-drp__day--today {
  color: #fff;
}


html[data-theme="dark"] .reports-page .reports-drp__trigger,
html[data-theme="dark"] .reports-page .reports-drp__panel {
  background: var(--dm-field, var(--bg-white, #2c3338));
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

html[data-theme="dark"] .reports-page .reports-drp__preset {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .reports-page .reports-drp__day {
  color: #f5f5f5;
}

html[data-theme="dark"] .reports-page .reports-drp__cal-head {
  color: #f5f5f5;
}

html[data-theme="dark"] .reports-page .reports-drp__weekdays {
  color: #a8b0b8;
}

@media (max-width: 768px) {
  .reports-page .reports-filter-bar,
  .reports-page .reports-filter-bar--with-farm {
    grid-template-columns: 1fr 1fr;
  }

  .reports-page .reports-drp {
    grid-column: 1 / -1;
  }

  .reports-page .reports-filter-bar__apply {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .reports-page .reports-filter-bar__apply-text {
    display: none;
  }
}

.reports-page .calendar-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.reports-page .calendar-group {
  flex: 1;
  min-width: min(100%, 200px);
}

.reports-page .filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.reports-page .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.reports-page .report-section {
  margin-top: 0.75rem;
}

.reports-page .report-section__title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reports-page .report-section__title i {
  color: var(--primary-color);
}

.reports-page .report-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--zt-radius-sm, 8px);
}

.reports-page .components-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: transparent;
  margin: 0;
}

.reports-page .components-table th,
.reports-page .components-table td {
  padding: 0.5rem 0.65rem;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.reports-page .components-table th:first-child,
.reports-page .components-table td:first-child {
  text-align: left;
}

.reports-page .components-table th {
  background: rgba(var(--primary-rgb, 33, 150, 243), 0.06);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.reports-page .components-table th:hover {
  background: rgba(var(--primary-rgb, 33, 150, 243), 0.1);
}

.reports-page .components-table tbody tr:last-child td {
  border-bottom: none;
}

.reports-page .components-table tbody tr:hover {
  background: rgba(var(--primary-rgb, 33, 150, 243), 0.04);
}

.reports-page .deviation-negative {
  color: #ef4444;
  font-weight: 500;
}

.reports-page .deviation-positive {
  color: #10b981;
  font-weight: 500;
}

.reports-page .deviation-significant {
  color: #ef4444;
  font-weight: 600;
}

.reports-page .loading-duration {
  font-variant-numeric: tabular-nums;
  color: var(--primary-color);
}

.reports-page .empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.reports-page .empty-state .empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.reports-page .reports-controls .btn-outline-success {
  --bs-btn-color: #059669;
  --bs-btn-border-color: rgba(5, 150, 105, 0.45);
  --bs-btn-hover-bg: rgba(5, 150, 105, 0.08);
  --bs-btn-hover-border-color: #059669;
}

html[data-theme="dark"] .reports-page .report-section__title {
  color: #f5f5f5;
}

html[data-theme="dark"] .reports-page .components-table th {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .reports-page .components-table th,
html[data-theme="dark"] .reports-page .components-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .reports-page .report-table-wrap {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .reports-page .reports-controls .btn-outline-success {
  --bs-btn-color: #6ee7b7;
  --bs-btn-border-color: rgba(110, 231, 183, 0.35);
}

@media (max-width: 768px) {
  .reports-page .report-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .reports-page .component-info {
    grid-template-columns: 1fr;
  }

  .reports-page .calendar-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .reports-page .filter-buttons {
    width: 100%;
  }

  .reports-page .filter-buttons .btn {
    flex: 1;
  }
}

.reports-page .reports-controls__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.reports-page .feed-alerts-summary-chip {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--warning-color, #d97706);
  background: rgba(217, 119, 6, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.reports-page .reports-view-tabs,
.reports-page .alerts-severity-tabs {
  margin-bottom: 0;
}

/* Лента отклонений — карточки как на /components */
.reports-page .deviation-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reports-page .deviation-alert-card.list-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  margin: 0;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.reports-page .deviation-alert-card.list-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(var(--primary-rgb, 33, 150, 243), 0.2);
  background-color: rgba(var(--primary-rgb), 0.04);
}

.reports-page .deviation-alert-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.reports-page .deviation-alert-card__head {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.reports-page .deviation-alert-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.reports-page .deviation-alert-card__title i {
  color: var(--primary-color);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.reports-page .deviation-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.reports-page .deviation-type-badge--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.reports-page .deviation-type-badge--error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.reports-page .deviation-alert-card__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.35rem 1rem;
}

.reports-page .deviation-alert-card__context {
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.35;
}

.reports-page .deviation-alert-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.reports-page .deviation-feed-item__dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: 0.45rem;
}

.reports-page .deviation-feed-item__dot--warning {
  background: var(--warning-color, #f59e0b);
}

.reports-page .deviation-feed-item__dot--error {
  background: var(--danger-color, #ef4444);
}

.reports-page .deviation-feed-item__dot--info {
  background: var(--info-color, #0ea5e9);
}

.reports-page .deviation-feed-item__delta {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}

.reports-page .deviation-feed-item__chevron {
  align-self: flex-end;
  color: var(--text-muted);
  opacity: 0.45;
  font-size: 0.7rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.reports-page .deviation-alert-card:hover .deviation-feed-item__chevron {
  opacity: 0.85;
  transform: translateX(2px);
}

html[data-theme="dark"] .reports-page .deviation-alert-card.list-item {
  background: var(--bg-white) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  color: #f5f5f5;
}

html[data-theme="dark"] .reports-page .deviation-alert-card.list-item:hover {
  background-color: rgba(var(--primary-rgb), 0.1) !important;
  border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .reports-page .deviation-alert-card__title,
html[data-theme="dark"] .reports-page .deviation-alert-card__context {
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .reports-page .deviation-alert-card__meta {
  color: #94a3b8;
}

html[data-theme="dark"] .reports-page .deviation-type-badge--warning {
  background: rgba(251, 191, 36, 0.22);
  color: #fcd34d;
}

html[data-theme="dark"] .reports-page .deviation-type-badge--error {
  background: rgba(248, 113, 113, 0.22);
  color: #fca5a5;
}

html[data-theme="dark"] .reports-page .deviation-feed-item__delta {
  color: #f1f5f9;
}

html[data-theme="dark"] .reports-page .deviation-negative,
html[data-theme="dark"] .reports-page .deviation-significant {
  color: #f87171;
}

html[data-theme="dark"] .reports-page .deviation-positive {
  color: #34d399;
}

html[data-theme="dark"] .reports-page .feed-alerts-summary-chip {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.16);
}
