﻿@media (min-width: 1380px) {
  .mud-container-maxwidth-lg {
    max-width: 1340px !important;
  }
}

@media (min-width: 1500px) {
  .mud-container-maxwidth-lg {
    max-width: 1560px !important;
  }
}

.mobile-height {
  min-height: 300px;
}

@media (max-width: 768px) {
  .mobile-height {
    min-height: 600px;
  }
}

.background-blur {
  backdrop-filter: blur(10px);
}

/* Entity Detail Table Styles */
.entity-detail-dialog {
  width: 100%;
  max-width: 100%;
}

.entity-detail-dialog__content {
  gap: 12px;
}

.entity-detail-table-wrapper {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--mud-palette-surface);
  overflow: hidden;
}

.entity-detail-table-wrapper .mud-table-container {
  max-height: clamp(260px, 55vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
}

.entity-detail-table {
  min-width: 820px;
}

@media (max-width: 960px) {
  .entity-detail-table {
    min-width: 680px;
  }
}

.entity-detail-import-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  padding: 3px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.entity-detail-import-status .mud-icon-root {
  font-size: 1rem;
}

.entity-detail-table__billing {
  font-family: "Roboto Mono", "Fira Mono", monospace;
  font-size: 0.82rem;
  color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.65));
  white-space: nowrap;
}

.mud-theme-dark .entity-detail-table__billing {
  color: rgba(255, 255, 255, 0.8);
}

.entity-detail-table .entity-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.entity-detail-table .entity-header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(33, 150, 243, 0.1);
  width: 38px;
  height: 38px;
  color: var(--mud-palette-primary);
  font-size: 20px;
}

.entity-detail-table .entity-header__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entity-detail-table .entity-header__title {
  font-weight: 600;
}

.entity-detail-table .entity-header__meta {
  font-size: 0.75rem;
  color: var(--mud-palette-text-secondary);
}

.mud-theme-dark .entity-detail-table .entity-header__meta {
  color: rgba(255, 255, 255, 0.7);
}

.mud-theme-dark .entity-detail-table-wrapper {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.grid-header {
  background: var(--mud-palette-action-default-hover);
}

.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell,
.table-header {
  background: var(--mud-palette-action-default-hover) !important;
  border-radius: 0 !important;
}

.no-footer tfoot.mud-table-foot {
  display: none;
}

.show-footer tfoot.mud-table-foot {
  display: table-footer-group !important;
}

.mud-avatar.mud-avatar-medium {
  backdrop-filter: blur(2px);
}

.text-bold {
  font-weight: bold !important;
}

.landing-page-card {
  height: 265px;
}

/* Compact billing total widget */
.billing-total-card {
  height: auto;
  display: inline-block;
}

.mud-chip .mud-chip-icon {
  margin-left: -1px !important;
  margin-right: 5px !important;
  margin-inline-start: -1px !important;
  margin-inline-end: 5px !important;
}

.scroll-container {
  height: 90%;
  width: 100%;
  overflow: auto;
  overscroll-behavior-y: contain;
}

.scroll-container .mud-chip {
  max-width: none;
}

.mud-toggle-item.mud-theme-primary svg {
  fill: var(--mud-palette-surface) !important;
}

.dma-tile {
  min-height: 200px;
  padding: 0 !important;
}

.dma-tile .lvc-canvas-container canvas {
  width: 100% !important;
  height: 230px !important;
}

.mud-carousel-item .mud-menu,
.mud-carousel-item .mud-menu-activator {
  width: 100%;
}

.network-data-container .mud-typography-button {
  font-size: 0.92em;
}

.network-data-container .mud-typography-caption {
  font-size: 0.95em;
  font-weight: 300;
}

.mud-table-striped
  .mud-table-container
  .mud-table-root
  .mud-table-body
  .mud-table-row:nth-of-type(odd) {
  background-color: transparent !important;
}

.mud-table-striped
  .mud-table-container
  .mud-table-root
  .mud-table-body
  .mud-table-row:nth-of-type(even),
.mud-row-striped-container .mud-row-striped:nth-of-type(odd) {
  background-color: var(--mud-palette-primary-hover) !important;
}

.mud-row-striped-container:first-child .mud-row-striped:nth-of-type(odd) {
  border-radius: 5px 0 0 5px;
  padding-left: 11px;
  margin-left: -7px;
}

.mud-row-striped-container:last-child .mud-row-striped:nth-of-type(odd) {
  border-radius: 0 5px 5px 0;
  padding-right: 11px;
  margin-right: -7px;
}

/* Alarm filters */
.alarm-filter-menu {
  min-width: 260px;
}

.filter-menu-item:hover {
  background-color: transparent !important;
}

.alarm-col-type {
  min-width: 140px;
  width: 140px;
}

.alarm-col-type .mud-typography,
.alarm-col-type .mud-stack,
.alarm-col-type .mud-stack > span {
  white-space: nowrap;
}

.alarm-col-priority {
  min-width: 100px;
  width: 100px;
}

.alarm-col-type .mud-select,
.alarm-col-priority .mud-select {
  min-width: 100%;
}

.alarm-col-type .mud-popover-cascading-value,
.alarm-col-priority .mud-popover-cascading-value {
  min-width: 150px !important;
}

.mud-row-striped-container:last-child:first-child
  .mud-row-striped:nth-of-type(odd) {
  border-radius: 5px;
}

.flex-row.mud-row-striped {
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 3px;
  padding-bottom: 3px;
  margin-bottom: -3px;
}

.mud-tab.mud-tab-active {
  background-color: var(--mud-palette-primary-hover);
}

.mud-table-container .mud-table-root .mud-table-body .mud-table-row.selected {
  background: rgb(var(--mud-palette-info-rgb), 0.25) !important;
}

.mud-table-container
  .mud-table-root
  .mud-table-body
  .mud-table-row:has(input.mud-checkbox-input:checked),
.mud-table-row-selected {
  background: rgb(var(--mud-palette-info-rgb), 0.25) !important;
}

.text-wide {
  min-width: 162px;
}

.mud-row-striped-container .flex-row {
  min-height: 40px;
}

.mud-table-solid-header .mud-table-container {
  border-radius: 5px;
  background: #0001;
}

.mud-table-dense.mud-table-solid-header
  *
  .mud-table-head
  .mud-table-row
  .mud-table-cell {
  padding: 8px 24px 8px 16px !important;
}

.mud-table-solid-header * .mud-table-root .mud-table-head * .mud-table-cell,
.table-header {
  background: var(--mud-palette-background) !important;
  padding: 8px 24px 8px 16px !important;
}

/* Gantt */

.gantt-task {
  height: 27px;
  margin: -10px -10px;
  border-radius: 20px;
  padding: 2px 12px 0px 12px;
  cursor: pointer;
  min-width: 64px;
  font-family: var(--mud-typography-button-family);
  font-size: var(--mud-typography-button-size);
  font-weight: 400;
  line-height: var(--mud-typography-button-lineheight);
  letter-spacing: var(--mud-typography-button-letterspacing);
  text-transform: var(--mud-typography-button-text-transform);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  user-select: none;
}

.gantt-task-filled {
  background: var(--mud-palette-primary);
  color: var(--mud-palette-surface);
}

.gantt-task-filled:hover {
  background: var(--mud-palette-primary-lighten);
}

.color-success.gantt-task-filled {
  background: var(--mud-palette-success);
}

.color-success.gantt-task-filled:hover {
  background: var(--mud-palette-success-lighten);
}

.gantt-task-text {
  background: var(--mud-palette-primary-hover);
  border: 2px solid var(--mud-palette-primary);
  color: var(--mud-palette-primary);
  padding: 0px 12px 0px 12px;
}

.gantt-task-text:hover,
.gantt-task-tex.selected {
  background: rgba(var(--mud-palette-primary-rgb), 0.2);
}

.color-success.gantt-task-text {
  background: var(--mud-palette-success-hover);
  border: 2px solid var(--mud-palette-success);
  color: var(--mud-palette-success);
}

.color-success.gantt-task-text:hover,
.color-success.gantt-task-text.selected {
  background: rgba(var(--mud-palette-success-rgb), 0.2);
}

.gantt-task.selected {
  font-weight: 800;
}

.gantt-task-text.selected {
  border: 2px solid var(--mud-palette-text-primary);
}

.mud-table-bordered-gantt
  .mud-table-container
  .mud-table-root
  .mud-table-head.table-head-bordered
  .mud-table-row
  .mud-table-cell:not(:last-child) {
  border-right: 3px solid var(--mud-palette-surface);
}

.mud-table-bordered-gantt .mud-table-cell {
  border-bottom: 3px solid var(--mud-palette-surface);
}

/* Mapbox style controls */
.mapboxgl-ctrl-group {
  background: rgba(255, 255, 255, 0.6980392156862745) !important;
  backdrop-filter: blur(3px);
}

.mapboxgl-ctrl-geocoder {
  background: rgba(255, 255, 255, 0.6980392156862745) !important;
  backdrop-filter: blur(3px);
  font-family: "Roboto" !important;
  font-weight: 500;
}

.mapboxgl-ctrl-geocoder--button {
  border-radius: 50%;
  width: 22px;
  height: 22px;
  padding: 0 0 2px 0px !important;
}

input.mapboxgl-radio[type="radio"] {
  position: absolute;
  opacity: 0;
  height: 0px;
  width: 0px;
}

input.mapboxgl-radio[type="radio"] + svg {
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  width: 16px;
  height: 16px;
  margin: 3px 5px;
}

input.mapboxgl-radio + svg {
  cursor: pointer;
}

input.mapboxgl-radio:hover + svg,
input.mapboxgl-radio:checked + svg,
input.mapboxgl-radio:focus + svg {
  fill: var(--mud-palette-info);
}

/* Bubble */
.bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 800;
  user-select: none;
  background-color: #ff6b6b20;
  border: 3px solid #ff6b6b;
  box-shadow: 0 0 15px #ff6b6ba0;
  transition: all 0.1s ease-in-out;
}

.bubble-selectable:hover {
  border-width: 6px;
  cursor: pointer;
}

.bubble-text {
  font-size: 14px;
  font-weight: 300;
  text-align: center;

  opacity: 0.6;
  max-width: 70px;
  margin-top: 10px;
}

.bubble-container {
  margin-top: 40px;
}

/* rgba(245,110,80,1) */
.bubble-Error {
  background-color: rgba(245, 110, 80, 0.125);
  border: 3px solid rgba(245, 110, 80, 1);
  box-shadow: 0 0 15px rgba(245, 110, 80, 0.627);
}

/* rgba(44,181,126,1) */
.bubble-Success {
  background-color: rgba(44, 181, 126, 0.125);
  border: 3px solid rgba(44, 181, 126, 1);
  box-shadow: 0 0 15px rgba(44, 181, 126, 0.627);
}

/* rgba(245,189,88,1) */
.bubble-Warning {
  background-color: rgba(255, 165, 88, 0.125);
  border: 3px solid rgba(255, 165, 88, 1);
  box-shadow: 0 0 15px rgba(255, 165, 88, 0.627);
}

.bubble-Tertiary {
  background-color: rgba(245, 212, 88, 0.125);
  border: 3px solid rgba(245, 212, 88, 1);
  box-shadow: 0 0 15px rgba(245, 212, 88, 0.627);
}

/* Separator */

.separator {
  border: none;
  border-top: 2px dotted var(--mud-palette-chip-default);
  margin: 0 -4px;
  height: 1px;
  width: 14px;
}

.separator.separator-success::after {
  content: "";
  width: 0;
  height: 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(-45deg);
  margin: -4px -3px 13px 8px;
}

.separator-primary {
  border-top: 2px dotted var(--mud-palette-primary);
}

.separator-success {
  border-top: 2px dotted var(--mud-palette-success);
}

.separator-success::after {
  border: solid var(--mud-palette-success);
  border-width: 0 2px 2px 0;
}

.separator-error {
  border-top: 2px dotted var(--mud-palette-error);
}

.separator-info {
  border-top: 2px dotted var(--mud-palette-info);
}

.mud-step-chip {
  box-shadow: var(--mud-elevation-1);
}

.wide-chip {
  min-width: 130px;
}

.time-chip {
  min-width: 110px;
}

.min-width-nrw-data {
  min-width: 77px;
  text-align: right;
}

/* Hand wave animation */
.wave {
  animation-name: wave-animation;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 30% 70%;
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(-14deg);
  }

  20% {
    transform: rotate(8deg);
  }

  30% {
    transform: rotate(-14deg);
  }

  40% {
    transform: rotate(4deg);
  }

  50% {
    transform: rotate(-10deg);
  }

  60% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.mud-tooltip-root.mud-tooltip-inline {
  margin-bottom: -6px;
}

.mud-tabs-toolbar-wrapper {
  height: 100%;
}

.page-actions .mud-select.mud-autocomplete {
  flex-grow: 0;
}

.clickable {
  cursor: pointer;
  min-width: 64px;
  font-family: var(--mud-typography-button-family);
  font-size: var(--mud-typography-button-size);
  font-weight: var(--mud-typography-button-weight);
  line-height: var(--mud-typography-button-lineheight);
  letter-spacing: var(--mud-typography-button-letterspacing);
  text-transform: var(--mud-typography-button-text-transform);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

/* LiveCharts Skia scaling Workaround */

.lvc-canvas-container canvas {
  max-width: 100% !important;
  max-height: 100% !important;
}

/* MapBox */
.mapboxgl-ctrl-logo {
  display: none !important;
}

.mapboxgl-popup-tip {
  margin-top: -1px;
  margin-bottom: -1px;
}

.mapboxgl-popup-close-button {
  margin: 5px 4px !important;
  color: var(--mud-palette-error);
  width: 9px;
  height: 9px;
  padding: 6px !important;
  border-radius: 50% !important;
}

.mapboxgl-popup-content {
  background: var(--mud-palette-appbar-background) !important;
  backdrop-filter: blur(3px);
  box-shadow: var(--mud-elevation-6) !important;
  text-align: left;
  font-family: "Roboto", sans-serif;
  color: var(--mud-palette-text-primary);
  padding: 14px 14px 15px !important;
  line-height: 1.2;
  border-radius: 6px !important;
}

.mapboxgl-popup-content h3 {
  color: var(--mud-palette-primary);
  font-family: var(--mud-typography-button-family);
  font-size: var(--mud-typography-button-size);
  letter-spacing: var(--mud-typography-button-letterspacing);
  text-transform: var(--mud-typography-button-text-transform);
  margin-bottom: 3px;
}

.marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  filter: drop-shadow(0px 0px 4px #0005);
}

.marker::after {
  mask: url("/marker.svg");
  mask-size: contain !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  background: var(--mud-palette-primary);
  border-radius: 5%;
  width: 28px;
  height: 28px;
  content: "";
  display: block;
}

.mapboxgl-canvas-container:has(.marker.highlight) .marker {
  opacity: 0.125;
}

.marker.highlight {
  opacity: 1 !important;
}

@keyframes pulse {
  0% {
    filter: brightness(1); /* Start brightness */
  }

  100% {
    filter: brightness(1.75); /* End brightness - brighter */
  }
}

.hide-entities .entitymarker {
  display: none !important;
}

.hide-interventions .intervention {
  display: none !important;
}

.hide-click .clickmarker {
  display: none !important;
}

.entitymarker-type0.entitymarker-icon,
.entitymarker-type0::after {
  mask: url("/marker-flowmeter.svg");
}

.entitymarker-type1.entitymarker-icon,
.entitymarker-type1::after {
  mask: url("/marker-housecounter.svg");
  background: var(--mud-palette-info);
}

.entitymarker-type1::after {
  width: 21px;
  height: 21px;
}

.entitymarker-type2.entitymarker-icon,
.entitymarker-type2::after {
  mask: url("/marker-tempflowmeter.svg");
  background: var(--mud-palette-warning);
}

.entitymarker-type3.entitymarker-icon,
.entitymarker-type3::after {
  mask: url("/marker-manhole.svg");
}

.entitymarker-type3::after {
  width: 11px;
  height: 11px;
}

/* ManholeConnection - same icon as Manhole, same color as PipeConnection */
.entitymarker-type4.entitymarker-icon,
.entitymarker-type4::after {
  mask: url("/marker-manhole.svg");
  background: #20b2aa;
}

.entitymarker-type4::after {
  width: 11px;
  height: 11px;
}

/* Hydrant */
.entitymarker-type5.entitymarker-icon,
.entitymarker-type5::after {
  mask: url("/marker-hydrant.svg");
}

.entitymarker-type5::after {
  width: 17px;
  height: 17px;
}

/* Pump */
.entitymarker-type6.entitymarker-icon,
.entitymarker-type6::after {
  mask: url("/marker-pump.svg");
}

/* Reservoir */
.entitymarker-type7.entitymarker-icon,
.entitymarker-type7::after {
  mask: url("/marker-reservoir.svg");
}

/* House */
.entitymarker-type8.entitymarker-icon,
.entitymarker-type8::after {
  mask: url("/marker-house.svg");
  background: var(--mud-palette-info);
}

.entitymarker-type8,
.entitymarker-type8::after {
  width: 16px;
  height: 16px;
}

.clickmarker::after {
  mask: url("/marker-select.svg");
}

.clickmarker,
.clickmarker::after {
  width: 32px;
  height: 32px;
}

.nodemarker::after {
  mask: url("/marker-node.svg");
}

.nodemarker,
.nodemarker::after {
  width: 11px;
  height: 11px;
}

.mud-table-sticky-header
  *
  .mud-table-root
  .mud-table-head.filtered-header
  *
  .mud-table-cell,
.table-header {
  background: var(--mud-palette-background) !important;
}

.filtered-header .mud-table-cell {
  border-bottom: none !important;
}

/* Chart labels */
.chart-label-x {
  position: relative;
  bottom: calc(-100% - 7px);
  left: -55%;
  font-weight: 300;
  opacity: 0.3;
}

.chart-label-y {
  position: relative;
  left: calc(-98.5% - 24px);
  top: 20%;
  font-weight: 300;
  opacity: 0.3;
  display: ruby;
  width: 0;
}

.chart-label-y2 {
  position: relative;
  top: 20%;
  font-weight: 300;
  opacity: 0.3;
  display: ruby;
  width: 0;
}

.dma-tile-metrics .mud-typography-button {
  font-size: 1.2em;
}

/* Diagrams */
.default-node {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 50ms linear 0ms !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-height: 65px;
  border-radius: 8px;
  background-color: var(--mud-palette-surface);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--mud-palette-primary);
  font-family: var(--mud-typography-button-family);
  font-size: var(--mud-typography-button-size);
  font-weight: var(--mud-typography-button-weight);
  line-height: var(--mud-typography-button-lineheight);
  letter-spacing: var(--mud-typography-button-letterspacing);
  text-transform: var(--mud-typography-button-text-transform);
}

.default-node.selected {
  border: 5px solid var(--mud-palette-primary);
  background-color: var(--mud-palette-primary-hover);
}

.diagram-link.attached path {
  stroke: var(--mud-palette-primary-darken);
  stroke-width: 4px;
  stroke-linecap: round;
}

/* Slim */

.mud-table-dense * .mud-table-row .mud-table-cell {
  padding: 4px 14px 4px 14px !important;
}

.mud-table-dense * .mud-table-head .mud-table-row .mud-table-cell {
  padding: 2px 24px 2px 16px !important;
}

.mud-table-dense .mud-toolbar {
  min-height: 52px !important;
  height: fit-content !important;
}

.mud-tab {
  min-height: 36px !important;
}

.mud-tabs-toolbar .mud-tabs-toolbar-inner {
  min-height: 36px !important;
}

.mud-table-cell:has(.mud-drop-zone .mud-input-control-boolean-input) {
  padding: 2px 0px 2px 20px !important;
}

/* Duplicate Serial Merge Dialog - GitHub Style */
.merge-comparison-row {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.mud-theme-dark .merge-comparison-row {
  border-color: rgba(255, 255, 255, 0.12);
}

.merge-comparison-row.has-difference {
  cursor: pointer;
}

.merge-comparison-row.has-difference:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mud-theme-dark .merge-comparison-row.has-difference:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.merge-comparison-row.no-difference {
  opacity: 0.5;
  cursor: not-allowed;
}

.merge-field-side {
  flex: 1;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.merge-field-side.left {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.mud-theme-dark .merge-field-side.left {
  border-right-color: rgba(255, 255, 255, 0.12);
}

.merge-field-side.selected {
  background-color: rgba(76, 175, 80, 0.08);
  border: 2px solid rgba(76, 175, 80, 0.4);
  margin: -1px;
}

.mud-theme-dark .merge-field-side.selected {
  background-color: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.5);
}

.merge-field-side.discarded {
  background-color: rgba(244, 67, 54, 0.05);
  position: relative;
}

.mud-theme-dark .merge-field-side.discarded {
  background-color: rgba(244, 67, 54, 0.1);
}

.merge-field-side.discarded::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 1px;
  background-color: rgba(244, 67, 54, 0.4);
}

.merge-field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mud-palette-text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.merge-field-value {
  font-size: 0.95rem;
  color: var(--mud-palette-text-primary);
  word-break: break-word;
}

.merge-field-value.empty {
  color: var(--mud-palette-text-disabled);
  font-style: italic;
}

.merge-field-header {
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mud-theme-dark .merge-field-header {
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.merge-field-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mud-palette-text-primary);
  margin-bottom: 0;
}

.merge-comparison-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: var(--mud-palette-surface);
}

.mud-theme-dark .merge-comparison-wrapper {
  border-color: rgba(255, 255, 255, 0.12);
}

.merge-entity-header {
  display: flex;
  padding: 12px 16px;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mud-theme-dark .merge-entity-header {
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.merge-entity-header-side {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.merge-entity-header-side.left {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.mud-theme-dark .merge-entity-header-side.left {
  border-right-color: rgba(255, 255, 255, 0.12);
}

.merge-legend {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
  flex-wrap: wrap;
}

.merge-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.merge-legend-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.merge-legend-box.selected {
  background-color: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.4);
}

.merge-legend-box.discarded {
  background-color: rgba(244, 67, 54, 0.08);
  border-color: rgba(244, 67, 54, 0.3);
}

.merge-legend-box.no-difference {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.mud-theme-dark .merge-legend-box.no-difference {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
}
