/**
 * DMR75 Dashboard — flat UI v5.4 (light + dark palettes)
 * Uses: --pri-color, --grady-color, --border-color, --box-color, --text-color, --head-color
 */

/* Conserver les polices du thème (Bootstrap ne doit pas les remplacer) */
body.page-template-templatesdashboard-php {
  font-family: var(--Fontbody) !important;
}

/* Container = même largeur que la homepage (core.css), sans padding latéral */
.page-template-templatesdashboard-php .site .container:not(.fullscreen-mode) {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
  max-width: 576px;
}

@media (min-width: 768px) {
  .page-template-templatesdashboard-php .site .container:not(.fullscreen-mode) {
    max-width: 992px;
  }
}

@media (min-width: 992px) {
  .page-template-templatesdashboard-php .site .container:not(.fullscreen-mode) {
    max-width: 1200px;
  }
}

@media (min-width: 1200px) {
  .page-template-templatesdashboard-php .site .container:not(.fullscreen-mode) {
    max-width: 1400px;
  }
}

.page-template-templatesdashboard-php main#content,
.page-template-templatesdashboard-php main#content.fullscreen-mode {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Wrappers WordPress / Bootstrap — bord à bord */
.page-template-templatesdashboard-php main#content > .container > .row {
  margin-left: 0;
  margin-right: 0;
}

.page-template-templatesdashboard-php main#content > .container > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.page-template-templatesdashboard-php .bs-card-box.bs-blog-post.bshre.wd-back {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0;
}

.page-template-templatesdashboard-php .dmr-dashboard.dashboard {
  --dmr-radius: 0;
  --dmr-accent: var(--pri-color, #0f4a7b);
  --dmr-accent-2: var(--grady-color, #071f33);
  --dmr-border: var(--border-color, #e2e8f0);
  --dmr-surface: var(--box-color, #fff);
  --dmr-surface-alt: var(--bg-color2, #f1f1f1);
  --dmr-text: var(--text-color, #4c4c4c);
  --dmr-muted: var(--text-color2, #6e6e6e);
  --dmr-emphasis: var(--grady-color, #071f33);
  --dmr-on-chrome: #fff;
  --dmr-on-accent: #fff;
  --dmr-on-danger: #fff;
  --dmr-on-chrome-muted: rgba(255, 255, 255, 0.78);
  --dmr-canvas: transparent;
  --dmr-shadow: 0 8px 24px rgba(7, 31, 51, 0.14);
  --dmr-tx-bg: #fef2f2;
  --dmr-tx-fg: #991b1b;
  --dmr-rx-bg: #eff6ff;
  --dmr-rx-fg: #1e40af;
  --dmr-on-bg: #ecfdf5;
  --dmr-on-fg: #166534;
  --dmr-off-bg: #fef2f2;
  --dmr-off-fg: #991b1b;

  background: transparent !important;
  color: var(--dmr-text);
  line-height: 1.45;
}

.page-template-templatesdashboard-php .dmr-dashboard #my-container,
.page-template-templatesdashboard-php .dmr-dashboard #my-container.fullscreen-mode {
  background: var(--dmr-surface) !important;
}

body.defaultcolor .page-template-templatesdashboard-php .dmr-dashboard.dashboard,
body.defaultcolor .page-template-templatesdashboard-php main#content {
  background: transparent !important;
}

/* —— Icon & contrast overrides (beat dashboard.css white-on-white) —— */
.page-template-templatesdashboard-php .dmr-dashboard .table thead th,
.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal,
.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG {
  background: var(--dmr-accent-2) !important;
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .table thead th i,
.page-template-templatesdashboard-php .dmr-dashboard .table thead th .fa,
.page-template-templatesdashboard-php .dmr-dashboard .table thead th .fas,
.page-template-templatesdashboard-php .dmr-dashboard .table thead th .fa-solid,
.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal i,
.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG i {
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop,
.page-template-templatesdashboard-php body.defaultcolor .dmr-dashboard .btn.dashboardtop {
  background: var(--dmr-surface) !important;
  color: var(--dmr-accent) !important;
  border-color: var(--dmr-border) !important;
  box-shadow: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop i,
.page-template-templatesdashboard-php body.defaultcolor .dmr-dashboard .btn.dashboardtop i {
  color: inherit !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:hover,
.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:focus,
.page-template-templatesdashboard-php body.defaultcolor .dmr-dashboard .btn.dashboardtop:hover {
  background: var(--dmr-accent) !important;
  color: var(--dmr-on-accent) !important;
  transform: none !important;
  box-shadow: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-kpi__label i {
  color: var(--dmr-accent) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .dashboard-notice i {
  color: var(--dmr-accent) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .label {
  color: var(--dmr-on-chrome) !important;
  background: var(--dmr-accent-2) !important;
  border: none !important;
  border-bottom: 2px solid var(--dmr-accent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .label i {
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .label.lastActiveTG,
.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label.lastActiveTG {
  background: #c53030 !important;
  border-bottom-color: #991b1b !important;
  color: var(--dmr-on-danger) !important;
  background-size: auto !important;
}

/* —— Z-index : nav site au-dessus du chrome sticky dashboard —— */
body.page-template-templatesdashboard-php .bs-menu-full,
body.page-template-templatesdashboard-php .header-bottom {
  position: relative;
  z-index: 200;
}

body.page-template-templatesdashboard-php .navbar-wp nav .sm,
body.page-template-templatesdashboard-php .navbar-wp nav .sm-clean ul {
  z-index: 201;
}

/* —— Command bar —— */
.page-template-templatesdashboard-php .dashboard-command-bar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  margin: 0 0 1rem;
  border: none;
  border-bottom: 3px solid var(--dmr-accent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-template-templatesdashboard-php .dashboard-command-bar--status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--dmr-surface-alt);
  border: 1px solid var(--dmr-border);
  border-bottom: 3px solid var(--dmr-accent);
  border-radius: 0;
}

.page-template-templatesdashboard-php .dashboard-command-bar__brand {
  justify-self: start;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dmr-accent);
  text-decoration: none;
  line-height: 1.2;
}

.page-template-templatesdashboard-php .dashboard-command-bar__brand:hover,
.page-template-templatesdashboard-php .dashboard-command-bar__brand:focus-visible {
  color: var(--dmr-accent-2);
  text-decoration: none;
}

.page-template-templatesdashboard-php .dashboard-command-bar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.65rem;
  min-width: 0;
}

.page-template-templatesdashboard-php .dashboard-command-bar__divider {
  flex: 0 0 1px;
  align-self: stretch;
  width: 1px;
  min-height: 1.25rem;
  background: var(--dmr-border);
}

.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1px;
  margin-bottom: 1rem;
  position: sticky;
  top: 2.75rem;
  z-index: 11;
  background: var(--dmr-border);
  border: 1px solid var(--dmr-border);
}

.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row .dashboard-kpi-grid {
  flex: 1 1 12rem;
  min-width: 0;
  margin-bottom: 0;
  border: none;
}

.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row .dashboard-command-bar__tools {
  flex: 0 0 auto;
  align-items: center;
  align-self: stretch;
  padding: 0.25rem 0.35rem;
  background: var(--dmr-surface);
  border-left: 1px solid var(--dmr-border);
}

.page-template-templatesdashboard-php .dmr-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--dmr-radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
}

.page-template-templatesdashboard-php .dmr-status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0;
  background: currentColor;
  flex-shrink: 0;
}

.page-template-templatesdashboard-php .dmr-status--connecting {
  background: var(--dmr-surface-alt);
  color: var(--dmr-muted);
}

.page-template-templatesdashboard-php .dmr-status--connecting .dmr-status__dot {
  animation: dmr-flat-blink 1s step-end infinite;
}

.page-template-templatesdashboard-php .dmr-status--live {
  background: var(--dmr-accent);
  color: var(--dmr-on-accent);
}

.page-template-templatesdashboard-php .dmr-status--live .dmr-status__dot {
  background: var(--dmr-on-accent);
  animation: dmr-flat-blink 1.5s step-end infinite;
}

.page-template-templatesdashboard-php .dmr-status--offline {
  background: #c53030;
  color: var(--dmr-on-danger);
}

.page-template-templatesdashboard-php .dmr-live-clock {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dmr-muted);
}

/* —— Toolbar —— */
.page-template-templatesdashboard-php .dashboard-command-bar__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

.page-template-templatesdashboard-php .dmr-tool-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--dmr-border);
}

.page-template-templatesdashboard-php .dmr-tool-group__label {
  display: none;
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  margin: 0;
  border: none !important;
  border-radius: 0 !important;
  border-right: 1px solid var(--dmr-border) !important;
  font-weight: 700;
  font-size: 0.8125rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:last-child {
  border-right: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:focus-visible {
  outline: 2px solid var(--dmr-accent);
  outline-offset: 2px;
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop.historique-des-qsos,
.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop.map,
.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop.stats-ajax,
.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop.reset,
.page-template-templatesdashboard-php .dmr-dashboard #fullscreen-btn {
  display: inline-flex !important;
}

/* —— KPI grid —— */
.page-template-templatesdashboard-php .dashboard-kpi-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1px;
  margin-bottom: 1rem;
  border: 1px solid var(--dmr-border);
  background: var(--dmr-border);
}

.page-template-templatesdashboard-php .dmr-kpi {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.4rem 0.45rem;
  border: none;
  border-radius: 0;
  background: var(--dmr-surface);
  min-width: 0;
  height: auto;
}

.page-template-templatesdashboard-php .dmr-kpi--stat,
.page-template-templatesdashboard-php .dmr-kpi--weather {
  flex: 1 1 4.25rem;
  min-width: 3.75rem;
  max-width: 100%;
}

.page-template-templatesdashboard-php .dmr-kpi--weather {
  flex: 1.1 1 6.5rem;
  min-width: min(100%, 6.5rem);
}

.page-template-templatesdashboard-php .dmr-kpi--audio {
  flex: 1.2 1 11rem;
  min-width: min(100%, 11rem);
  max-width: none;
  flex-direction: row;
  align-items: center;
  justify-content: stretch;
  padding: 0.2rem 0.45rem;
  min-height: auto;
}

.page-template-templatesdashboard-php .dmr-tool-group--audio {
  flex-shrink: 0;
}

.page-template-templatesdashboard-php .dmr-tool-group--audio .dmr-audio-toggle {
  border-right: none !important;
}

.page-template-templatesdashboard-php .dmr-kpi--weather {
  min-height: 2.25rem;
}

.page-template-templatesdashboard-php .dmr-kpi__label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dmr-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-template-templatesdashboard-php .dmr-kpi__value {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dmr-emphasis);
  line-height: 1.15;
  min-height: 0;
  flex: 0 0 auto;
  margin-left: 0.15rem;
}

.page-template-templatesdashboard-php .dmr-audio-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
  min-width: 0;
}

.page-template-templatesdashboard-php .dmr-audio-meters {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 6rem;
  min-width: 5.5rem;
}

.page-template-templatesdashboard-php .dmr-audio-meter-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.page-template-templatesdashboard-php .dmr-audio-meter__label {
  flex: 0 0 1.35rem;
  font-size: 0.4375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dmr-muted);
  line-height: 1;
  text-align: right;
}

.page-template-templatesdashboard-php .dmr-audio-meter-row .dmr-audio-meter {
  flex: 1 1 0;
  min-width: 0;
}

.page-template-templatesdashboard-php .dmr-audio-meter {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 16px;
}

.page-template-templatesdashboard-php .dmr-audio-db {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 0.5625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92);
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 3px #0a1628, 0 1px 2px #0a1628;
}

@media (min-width: 1100px) {
  .page-template-templatesdashboard-php .dashboard-kpi-toolbar-row {
    flex-wrap: nowrap;
  }

  .page-template-templatesdashboard-php .dashboard-kpi-grid {
    flex-wrap: nowrap;
  }

  .page-template-templatesdashboard-php .dmr-kpi--stat,
  .page-template-templatesdashboard-php .dmr-kpi--weather {
    flex: 0.55 1 0;
    min-width: 0;
    max-width: 5.5rem;
  }

  .page-template-templatesdashboard-php .dmr-kpi--weather {
    flex: 0.95 1 0;
    max-width: 9rem;
  }

  .page-template-templatesdashboard-php .dmr-kpi--audio {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

.page-template-templatesdashboard-php .dmr-kpi__value--weather {
  font-size: clamp(0.6875rem, 1.1vw, 0.875rem);
  line-height: 1.25;
  word-break: break-word;
  white-space: normal;
  text-align: right;
  max-width: 55%;
}

.page-template-templatesdashboard-php .dmr-kpi--live .blinking-point {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 0;
  margin-right: 0;
  background: var(--dmr-accent);
  animation: dmr-flat-blink 1s step-end infinite;
}

.page-template-templatesdashboard-php .dmr-kpi--audio canvas#vu-meter-raw,
.page-template-templatesdashboard-php .dmr-kpi--audio canvas#vu-meter-agc {
  margin-left: 0 !important;
  width: 100%;
  max-width: none;
  height: 16px;
  display: block;
  filter: none;
}

.page-template-templatesdashboard-php .dmr-audio-db--off {
  color: rgba(255, 255, 255, 0.55);
}

.page-template-templatesdashboard-php .dmr-audio-db--warm {
  color: #fcd34d;
}

.page-template-templatesdashboard-php .dmr-audio-db--hot {
  color: #fca5a5;
}

.page-template-templatesdashboard-php .dmr-audio-tg {
  flex: 0 0 auto;
  max-width: 3.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--dmr-accent);
  text-transform: none;
  letter-spacing: 0;
}

.page-template-templatesdashboard-php .dmr-audio-toggle--on.btn.dashboardtop,
.page-template-templatesdashboard-php .dmr-audio-toggle.is-live-audio.btn.dashboardtop,
.page-template-templatesdashboard-php .dmr-audio-toggle--on,
.page-template-templatesdashboard-php .dmr-audio-toggle.is-live-audio {
  background: #15803d !important;
  border-color: #15803d !important;
  color: var(--dmr-on-accent) !important;
}

.page-template-templatesdashboard-php .dmr-audio-toggle--on.btn.dashboardtop i,
.page-template-templatesdashboard-php .dmr-audio-toggle.is-live-audio.btn.dashboardtop i,
.page-template-templatesdashboard-php .dmr-audio-toggle--on i,
.page-template-templatesdashboard-php .dmr-audio-toggle.is-live-audio i {
  color: var(--dmr-on-accent) !important;
}

.page-template-templatesdashboard-php .dmr-audio-toggle--pending.btn.dashboardtop,
.page-template-templatesdashboard-php .dmr-audio-toggle--pending {
  background: #ca8a04 !important;
  border-color: #ca8a04 !important;
  color: var(--dmr-on-accent) !important;
}

.page-template-templatesdashboard-php .dmr-audio-toggle--pending.btn.dashboardtop i,
.page-template-templatesdashboard-php .dmr-audio-toggle--pending i {
  color: var(--dmr-on-accent) !important;
}

.page-template-templatesdashboard-php .dmr-audio-toggle.btn.dashboardtop:hover:not(.is-live-audio):not(.dmr-audio-toggle--on),
.page-template-templatesdashboard-php .dmr-audio-toggle.btn.dashboardtop:focus-visible:not(.is-live-audio):not(.dmr-audio-toggle--on) {
  background: var(--dmr-accent) !important;
  color: var(--dmr-on-accent) !important;
}

.page-template-templatesdashboard-php .dmr-audio-toggle.btn.dashboardtop:hover:not(.is-live-audio):not(.dmr-audio-toggle--on) i,
.page-template-templatesdashboard-php .dmr-audio-toggle.btn.dashboardtop:focus-visible:not(.is-live-audio):not(.dmr-audio-toggle--on) i {
  color: var(--dmr-on-accent) !important;
}

.page-template-templatesdashboard-php .dmr-live-audio-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--dmr-muted);
  padding: 0.35rem 0.5rem;
}

.page-template-templatesdashboard-php .dmr-live-audio-hint i {
  color: var(--dmr-accent);
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop.is-live-audio {
  background: #15803d !important;
  color: var(--dmr-on-accent) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop.is-live-audio i {
  color: var(--dmr-on-accent) !important;
}

.page-template-templatesdashboard-php .dmr-kpi-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dmr-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-template-templatesdashboard-php .dmr-kpi-link:hover,
.page-template-templatesdashboard-php .dmr-kpi-link:focus {
  color: var(--dmr-accent-2);
  outline: none;
}

.page-template-templatesdashboard-php .dmr-panel--masters .dmr-panel__body {
  padding: 0.2rem 0.25rem;
}

.page-template-templatesdashboard-php .dmr-dvswitch-body {
  padding: 0.2rem 0.25rem;
  margin: 0;
}

.page-template-templatesdashboard-php .dmr-dvswitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.35rem;
}

.page-template-templatesdashboard-php .dmr-dvswitch-grid .dmr-hotspot {
  padding: 0.28rem 0.38rem;
  background: var(--dmr-surface-alt);
  border: 1px solid var(--dmr-border);
  min-width: 0;
}

.page-template-templatesdashboard-php .dmr-dvswitch-grid .dmr-hotspot__call {
  flex: 1 1 auto;
  font-size: 0.625rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dmr-emphasis);
}

.page-template-templatesdashboard-php .dmr-dvswitch-grid .dmr-hotspot__id {
  flex: 0 0 auto;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.02rem 0.18rem;
  color: var(--dmr-muted);
  background: var(--dmr-surface);
  border: 1px solid var(--dmr-border);
  line-height: 1.1;
}

/* —— Tooltips embed (tooltipzone / tooltiptext) —— */
.page-template-templatesdashboard-php .dmr-hotspots-grid,
.page-template-templatesdashboard-php .dmr-dvswitch-grid,
.page-template-templatesdashboard-php .dmr-panel--masters .dmr-panel__body,
.page-template-templatesdashboard-php .dmr-dvswitch-body {
  overflow: visible;
}

.page-template-templatesdashboard-php .dmr-embed-tip.tooltipzone {
  position: relative;
  cursor: help;
}

.page-template-templatesdashboard-php .dmr-embed-tip.tooltipzone .tooltiptext--dmr {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 2100;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%) translateY(0.2rem);
  min-width: 11rem;
  max-width: 17rem;
  width: max-content;
  padding: 0.45rem 0.55rem;
  background: var(--dmr-accent-2, #071f33);
  color: #fff;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--dmr-shadow, 0 8px 24px rgba(7, 31, 51, 0.22));
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.page-template-templatesdashboard-php .dmr-embed-tip.tooltipzone .dmr-tip__inner {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.625rem;
  line-height: 1.35;
  white-space: normal;
}

.page-template-templatesdashboard-php .dmr-embed-tip.tooltipzone .dmr-tip__row {
  display: block;
}

.page-template-templatesdashboard-php .dmr-embed-tip.tooltipzone .dmr-tip__row--title {
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.05rem;
}

.page-template-templatesdashboard-php .dmr-embed-tip.tooltipzone .dmr-tip__label {
  color: #fbbf24;
  font-weight: 700;
}

.page-template-templatesdashboard-php .dmr-embed-tip.tooltipzone:hover .tooltiptext--dmr,
.page-template-templatesdashboard-php .dmr-embed-tip.tooltipzone:focus-within .tooltiptext--dmr {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-template-templatesdashboard-php .dmr-hotspot-chip.dmr-embed-tip.tooltipzone {
  cursor: pointer;
}

.page-template-templatesdashboard-php #listeners .firstname.dmr-embed-tip.tooltipzone {
  cursor: help;
}

.page-template-templatesdashboard-php .dmr-dvswitch-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.35rem 0.45rem;
  background: var(--dmr-surface-alt);
  border: 1px solid var(--dmr-border);
  min-width: 0;
}

.page-template-templatesdashboard-php .dmr-dvswitch-card__call {
  font-weight: 700;
  color: var(--dmr-emphasis);
  font-size: 0.6875rem;
  line-height: 1.2;
}

.page-template-templatesdashboard-php .dmr-dvswitch-card__hotspot {
  font-size: 0.625rem;
  color: var(--dmr-text);
  line-height: 1.25;
}

.page-template-templatesdashboard-php .dmr-dvswitch-card__hotspot i {
  color: var(--dmr-accent);
  margin-right: 0.2rem;
  font-size: 0.625rem;
  width: 0.75rem;
  text-align: center;
  flex-shrink: 0;
}

.page-template-templatesdashboard-php .dmr-panel--masters .dmr-panel__title i,
.page-template-templatesdashboard-php .dmr-panel--dvswitch .dmr-panel__title i {
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-dvswitch-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-size: 0.5625rem;
  color: var(--dmr-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 0.1rem;
}

.page-template-templatesdashboard-php .dmr-dvswitch-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.28rem;
  border: 1px solid var(--dmr-border);
  background: var(--dmr-surface);
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.page-template-templatesdashboard-php .dmr-dvswitch-grid--empty {
  display: block;
}

.page-template-templatesdashboard-php .dmr-dvswitch-empty {
  margin: 0;
  color: var(--dmr-muted);
  font-size: 0.6875rem;
  padding: 0.25rem 0.35rem;
  white-space: nowrap;
  display: inline-block;
}

.page-template-templatesdashboard-php .dmr-dvswitch-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--dmr-accent-2);
  color: var(--dmr-on-chrome);
}

.page-template-templatesdashboard-php .dmr-dvswitch-modal__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.page-template-templatesdashboard-php .dmr-dvswitch-modal__title i {
  margin-right: 0.35rem;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-content-listeners .dmr-dvswitch-modal__header .close-listeners {
  color: var(--dmr-on-chrome-muted) !important;
  opacity: 0.85;
  position: static;
  float: none;
  font-size: 1.5rem;
  line-height: 1;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-content-listeners .trlisteners td {
  color: var(--dmr-text) !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  font-size: 0.8125rem;
  padding: 0.45rem 0.55rem !important;
}

/* —— Notice —— */
.page-template-templatesdashboard-php .dashboard-notice {
  position: relative;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0;
  border: none;
  border-left: 4px solid var(--dmr-accent);
  background: var(--dmr-surface-alt);
  color: var(--dmr-text);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: none;
}

.page-template-templatesdashboard-php .dashboard-notice.is-hidden {
  display: none;
}

.page-template-templatesdashboard-php .dashboard-notice a {
  color: var(--dmr-accent);
  font-weight: 700;
  text-decoration: underline;
}

.page-template-templatesdashboard-php .dashboard-notice__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--dmr-muted);
  padding: 0.25rem 0.4rem;
}

.page-template-templatesdashboard-php .dashboard-notice__close:hover {
  color: var(--dmr-accent);
}

/* —— Panels —— */
.page-template-templatesdashboard-php .dmr-dashboard #hbtables {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-template-templatesdashboard-php .dmr-panel {
  border: 1px solid var(--dmr-border);
  background: var(--dmr-surface);
}

.page-template-templatesdashboard-php .dmr-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--dmr-accent-2);
  color: var(--dmr-on-chrome);
  border-left: 4px solid var(--dmr-accent);
  cursor: pointer;
  user-select: none;
}

.page-template-templatesdashboard-php .dmr-panel__header--static {
  cursor: default;
}

.page-template-templatesdashboard-php .dmr-panel__header.is-collapsed .dmr-panel__title i {
  transform: rotate(-90deg);
}

.page-template-templatesdashboard-php .dmr-panel__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dmr-on-chrome);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.page-template-templatesdashboard-php .dmr-panel__title i {
  color: var(--dmr-on-chrome) !important;
  transition: transform 0.15s ease;
}

.page-template-templatesdashboard-php .dmr-panel__hint {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--dmr-on-chrome-muted);
  text-transform: none;
  letter-spacing: 0;
}

.page-template-templatesdashboard-php .dmr-panel__body {
  padding: 0;
}

.page-template-templatesdashboard-php .dmr-panel--synopsis .dmr-synopsis-table {
  border-top: none;
}

.page-template-templatesdashboard-php .dmr-tg-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  border-top: 1px solid var(--dmr-border);
  margin-bottom: 0;
}

.page-template-templatesdashboard-php .dmr-panel--dvswitch > .dmr-dvswitch-block {
  border-top: none;
}

.page-template-templatesdashboard-php .dmr-infra-block,
.page-template-templatesdashboard-php .dmr-peers-block,
.page-template-templatesdashboard-php .dmr-dvswitch-block {
  border-top: 1px solid var(--dmr-border);
}

.page-template-templatesdashboard-php .dmr-infra-body,
.page-template-templatesdashboard-php .dmr-peers-body {
  padding: 0;
  margin: 0;
}

.page-template-templatesdashboard-php .dmr-panel--synopsis > .dmr-synopsis-block,
.page-template-templatesdashboard-php .dmr-panel--synopsis > #tgId0 {
  border-top: 1px solid var(--dmr-border);
}

.page-template-templatesdashboard-php .dmr-panel--synopsis > .dmr-synopsis-block:first-child,
.page-template-templatesdashboard-php .dmr-panel--synopsis > #tgId0:first-child {
  border-top: none;
}

.page-template-templatesdashboard-php .dmr-tg-stack:not(:empty) {
  padding-top: 0;
}

.page-template-templatesdashboard-php .dmr-dashboard #insertPoint .tgidtitle,
.page-template-templatesdashboard-php .dmr-panel--synopsis > .tgidtitle,
.page-template-templatesdashboard-php .dmr-panel--dvswitch > .dmr-dvswitch-block,
.page-template-templatesdashboard-php .dmr-panel--synopsis > .dmr-infra-block,
.page-template-templatesdashboard-php .dmr-panel--synopsis > .dmr-synopsis-block,
.page-template-templatesdashboard-php .dmr-dashboard #dmr-infra-header,
.page-template-templatesdashboard-php .dmr-dashboard #dmr-peers-header,
.page-template-templatesdashboard-php .dmr-dashboard #dmr-dvswitch-header {
  margin: 0;
  border-left: 4px solid var(--dmr-accent);
}

.page-template-templatesdashboard-php .dmr-dashboard #insertPoint .tgidtitle .label,
.page-template-templatesdashboard-php .dmr-panel--synopsis > .tgidtitle .label,
.page-template-templatesdashboard-php .dmr-dashboard #dmr-infra-header .label,
.page-template-templatesdashboard-php .dmr-dashboard #dmr-peers-header .label,
.page-template-templatesdashboard-php .dmr-dashboard #dmr-dvswitch-header .label {
  display: block;
  float: none;
  padding: 0.45rem 0.75rem;
  text-align: left;
}

/* —— TG sections (dynamic) —— */
.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle {
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 4px solid var(--dmr-accent);
  border-radius: 0;
  background: transparent;
}

.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label {
  display: block;
  float: none;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  margin-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle:hover .label:not(.lastActiveTG) {
  filter: brightness(1.08);
}

.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle.is-collapsed .label i {
  transform: rotate(-90deg);
}

.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label i {
  margin-right: 0.35rem;
  transition: transform 0.15s ease;
}

.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label .dmr-label__meta {
  margin-left: 0.15rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.88;
}

/* —— Tables —— */
.page-template-templatesdashboard-php .dmr-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
}

.page-template-templatesdashboard-php .dmr-panel--infra .dmr-table-scroll + .dmr-table-scroll,
.page-template-templatesdashboard-php .dmr-panel--infra .dmr-table-scroll:not(:first-child) {
  border-top: 1px solid var(--dmr-border);
}

.page-template-templatesdashboard-php .dmr-dashboard .table,
.page-template-templatesdashboard-php .dmr-dashboard .tables {
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--dmr-surface) !important;
  color: var(--dmr-text) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal,
.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG,
.page-template-templatesdashboard-php .dmr-dashboard .table thead th,
.page-template-templatesdashboard-php .dmr-dashboard tr.BottomHeaderPrincipal th,
.page-template-templatesdashboard-php .dmr-dashboard th.BottomHeaderPrincipal {
  border: none !important;
  border-bottom: 2px solid var(--dmr-accent) !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  font-size: 0.6875rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.35rem !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
  background-image: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal.lastActiveTG,
.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG.lastActiveTG,
.page-template-templatesdashboard-php .dmr-dashboard tr.BottomHeaderPrincipal.lastActiveTG th {
  background: #c53030 !important;
  border-bottom-color: #991b1b !important;
  color: var(--dmr-on-danger) !important;
}

/* —— Lignes compactes (tableaux) —— */
.page-template-templatesdashboard-php .dmr-dashboard .table tbody td,
.page-template-templatesdashboard-php .dmr-dashboard .tables tbody td {
  padding: 0.12rem 0.35rem !important;
  line-height: 1.15 !important;
  vertical-align: middle !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .trrow,
.page-template-templatesdashboard-php .dmr-dashboard .trptt,
.page-template-templatesdashboard-php .dmr-dashboard .tronline,
.page-template-templatesdashboard-php .dmr-dashboard .tghighlite {
  line-height: 1.15 !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tghighlite {
  height: auto !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tgflag {
  width: 1.35em !important;
  max-height: 0.9em;
  margin-right: 0.25rem !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .msflag {
  width: 1em !important;
  margin-top: 0 !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .slotbox,
.page-template-templatesdashboard-php .dmr-dashboard .tgbox,
.page-template-templatesdashboard-php .dmr-dashboard .delaybox {
  font-size: 0.65rem !important;
  line-height: 1.1 !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .slotbox {
  padding-left: 3px !important;
  padding-right: 3px !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tdDate,
.page-template-templatesdashboard-php .dmr-dashboard .tdTime,
.page-template-templatesdashboard-php .dmr-dashboard .dmrid {
  font-size: 0.65rem !important;
  line-height: 1.1 !important;
}

/* —— En-têtes unifiés (.dmr-thead) —— */
.page-template-templatesdashboard-php .dmr-dashboard .dmr-thead th,
.page-template-templatesdashboard-php .dmr-dashboard .dmr-th {
  display: table-cell !important;
  vertical-align: middle !important;
  white-space: nowrap;
}

.page-template-templatesdashboard-php .dmr-dashboard .SlotTitle,
.page-template-templatesdashboard-php .dmr-dashboard .thlenetid,
.page-template-templatesdashboard-php .dmr-dashboard .thmstime,
.page-template-templatesdashboard-php .dmr-dashboard .thpetime,
.page-template-templatesdashboard-php .dmr-dashboard .thmsnetid,
.page-template-templatesdashboard-php .dmr-dashboard .thpenetid,
.page-template-templatesdashboard-php .dmr-dashboard .netid,
.page-template-templatesdashboard-php .dmr-dashboard .slot {
  display: table-cell !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .thmsmaster,
.page-template-templatesdashboard-php .dmr-dashboard .thpemaster,
.page-template-templatesdashboard-php .dmr-dashboard .thmsnetid,
.page-template-templatesdashboard-php .dmr-dashboard .thpenetid {
  background: inherit !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-th__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-th__icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  opacity: 0.92;
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-th__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-table-scroll thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-table-scroll .dmr-thead th {
  box-shadow: 0 1px 0 var(--dmr-accent);
}

.page-template-templatesdashboard-php .dmr-dashboard #lastActive thead .dmr-thead th {
  cursor: pointer;
}

.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle + table thead .dmr-thead th,
.page-template-templatesdashboard-php .dmr-dashboard #insertPoint table thead .dmr-thead th {
  cursor: pointer;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-thead th:hover {
  filter: brightness(1.12);
}

.page-template-templatesdashboard-php .dmr-dashboard .thledate { min-width: 5.5rem; }
.page-template-templatesdashboard-php .dmr-dashboard .thletime { min-width: 4.5rem; }
.page-template-templatesdashboard-php .dmr-dashboard .thleindica { min-width: 6.5rem; }
.page-template-templatesdashboard-php .dmr-dashboard .thlename,
.page-template-templatesdashboard-php .dmr-dashboard .thleville { min-width: 7rem; }
.page-template-templatesdashboard-php .dmr-dashboard .thmsnetid,
.page-template-templatesdashboard-php .dmr-dashboard .thpenetid { min-width: 10rem; }
.page-template-templatesdashboard-php .dmr-dashboard .thopcalls { min-width: 12rem; }

@media only screen and (max-width: 800px) {
  .page-template-templatesdashboard-php .dmr-dashboard thead th,
  .page-template-templatesdashboard-php .dmr-dashboard tbody td,
  .page-template-templatesdashboard-php .dmr-dashboard .SlotTitle,
  .page-template-templatesdashboard-php .dmr-dashboard .thlenetid,
  .page-template-templatesdashboard-php .dmr-dashboard .thmstime,
  .page-template-templatesdashboard-php .dmr-dashboard .thpetime,
  .page-template-templatesdashboard-php .dmr-dashboard .thledate,
  .page-template-templatesdashboard-php .dmr-dashboard .thletime,
  .page-template-templatesdashboard-php .dmr-dashboard .thleindica,
  .page-template-templatesdashboard-php .dmr-dashboard .thlename,
  .page-template-templatesdashboard-php .dmr-dashboard .thleville,
  .page-template-templatesdashboard-php .dmr-dashboard .thledepartement,
  .page-template-templatesdashboard-php .dmr-dashboard .thletg,
  .page-template-templatesdashboard-php .dmr-dashboard .thletgname,
  .page-template-templatesdashboard-php .dmr-dashboard .thledelay,
  .page-template-templatesdashboard-php .dmr-dashboard .thlemaster,
  .page-template-templatesdashboard-php .dmr-dashboard .thmsmaster,
  .page-template-templatesdashboard-php .dmr-dashboard .thpemaster,
  .page-template-templatesdashboard-php .dmr-dashboard .thmsnetid,
  .page-template-templatesdashboard-php .dmr-dashboard .thpenetid,
  .page-template-templatesdashboard-php .dmr-dashboard .thmsslot,
  .page-template-templatesdashboard-php .dmr-dashboard .thmstx,
  .page-template-templatesdashboard-php .dmr-dashboard .thmsdest,
  .page-template-templatesdashboard-php .dmr-dashboard .thpetx,
  .page-template-templatesdashboard-php .dmr-dashboard .thpedest,
  .page-template-templatesdashboard-php .dmr-dashboard .thopmaster,
  .page-template-templatesdashboard-php .dmr-dashboard .thopnetid,
  .page-template-templatesdashboard-php .dmr-dashboard .thopcalls,
  .page-template-templatesdashboard-php .dmr-dashboard .netid,
  .page-template-templatesdashboard-php .dmr-dashboard .slot,
  .page-template-templatesdashboard-php .dmr-dashboard .alias,
  .page-template-templatesdashboard-php .dmr-dashboard .ville,
  .page-template-templatesdashboard-php .dmr-dashboard .departement,
  .page-template-templatesdashboard-php .dmr-dashboard .dmrid,
  .page-template-templatesdashboard-php .dmr-dashboard .heure,
  .page-template-templatesdashboard-php .dmr-dashboard .indicatif {
    display: table-cell !important;
  }
}

.page-template-templatesdashboard-php .dmr-dashboard .trrow {
  background: var(--dmr-surface) !important;
  color: var(--dmr-text) !important;
  border-bottom: 1px solid var(--dmr-border) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .trrow:nth-child(even) {
  background: var(--dmr-surface-alt) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .trrow:hover {
  background: var(--dmr-surface-alt) !important;
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .page-template-templatesdashboard-php .dmr-dashboard .trrow:hover {
    background: color-mix(in srgb, var(--dmr-accent) 8%, var(--dmr-surface)) !important;
  }

  .page-template-templatesdashboard-php .dmr-dashboard .tghighlite {
    background: color-mix(in srgb, var(--dmr-accent) 18%, var(--dmr-surface)) !important;
  }
}

.page-template-templatesdashboard-php .dmr-dashboard .tronline {
  background: #c53030 !important;
  color: var(--dmr-on-danger) !important;
  font-weight: 700;
  border-bottom: 2px solid #991b1b !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tronline:hover {
  background: #b91c1c !important;
  color: var(--dmr-on-danger) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .trptt {
  background: var(--dmr-surface-alt) !important;
  color: var(--dmr-muted) !important;
  border-bottom: 1px solid var(--dmr-border) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .trptt:hover {
  background: var(--dmr-surface) !important;
  color: var(--dmr-text) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tghighlite {
  background: var(--dmr-surface-alt) !important;
  color: var(--dmr-emphasis) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--dmr-accent) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tronline a:link,
.page-template-templatesdashboard-php .dmr-dashboard .tronline a,
.page-template-templatesdashboard-php .dmr-dashboard .tronline .alink {
  color: var(--dmr-on-danger) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tronline a:hover {
  color: #f0b8b8 !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tronline .delaybox,
.page-template-templatesdashboard-php .dmr-dashboard .tronline .slotbox,
.page-template-templatesdashboard-php .dmr-dashboard .tronline .tgbox {
  background: rgba(255, 255, 255, 0.14) !important;
  color: var(--dmr-on-danger) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .tronline .ville,
.page-template-templatesdashboard-php .dmr-dashboard .tronline .dmrid,
.page-template-templatesdashboard-php .dmr-dashboard .tronline .tdDate,
.page-template-templatesdashboard-php .dmr-dashboard .tronline .tdTime {
  color: var(--dmr-on-danger) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .delaybox,
.page-template-templatesdashboard-php .dmr-dashboard .tgbox,
.page-template-templatesdashboard-php .dmr-dashboard .slotbox {
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-template-templatesdashboard-php .dmr-dashboard .msTSTX {
  background: #c53030 !important;
  color: var(--dmr-on-danger) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .msTSRX {
  background: var(--dmr-accent) !important;
  color: var(--dmr-on-accent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .msTS1,
.page-template-templatesdashboard-php .dmr-dashboard .msTS2,
.page-template-templatesdashboard-php .dmr-dashboard .peersTS1,
.page-template-templatesdashboard-php .dmr-dashboard .peersTS2 {
  background: var(--dmr-accent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .hotspot-highlight {
  background: var(--dmr-accent) !important;
  color: var(--dmr-on-accent) !important;
  animation: dmr-flat-flash 0.6s step-end 3 !important;
  box-shadow: none !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .hotspot-talking,
.page-template-templatesdashboard-php .dmr-dashboard .dmr-hotspot.hotspot-talking,
.page-template-templatesdashboard-php .dmr-dashboard .dmr-hotspot-chip.hotspot-talking {
  background: #c53030 !important;
  color: var(--dmr-on-danger) !important;
  border-color: #991b1b !important;
  font-weight: 700;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-hotspot.hotspot-talking .dmr-hotspot__id,
.page-template-templatesdashboard-php .dmr-dashboard .dmr-hotspot-chip.hotspot-talking {
  color: var(--dmr-on-chrome-muted) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-hotspot.hotspot-talking .dmr-hotspot__call,
.page-template-templatesdashboard-php .dmr-dashboard .dmr-hotspot-chip.hotspot-talking .dmr-hotspot__call {
  color: #fff !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-hotspot.hotspot-talking .dmr-hotspot__icon {
  color: #fff !important;
  opacity: 1;
}

.page-template-templatesdashboard-php .dmr-dashboard .dmr-section-loading:empty::after {
  content: "En attente de trafic…";
  display: block;
  padding: 1.25rem;
  text-align: center;
  color: var(--dmr-muted);
  font-size: 0.875rem;
  background: var(--dmr-surface-alt);
}

.page-template-templatesdashboard-php .dmr-dashboard .dashboard-toolbar,
.page-template-templatesdashboard-php .dmr-dashboard .dashboard-badges {
  display: none !important;
}

/* Modals */
.page-template-templatesdashboard-php .dmr-dashboard .modal-content,
.page-template-templatesdashboard-php .dmr-dashboard .modal-content-listeners {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 2px solid var(--dmr-accent-2) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-header,
.page-template-templatesdashboard-php .dmr-dashboard .TopHeaderPrincipal {
  background: var(--dmr-accent-2) !important;
  color: var(--dmr-on-chrome) !important;
  border-radius: 0 !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-header i,
.page-template-templatesdashboard-php .dmr-dashboard .modal-header .close {
  color: var(--dmr-on-chrome) !important;
}

@keyframes dmr-flat-blink {
  50% { opacity: 0.35; }
}

@keyframes dmr-flat-flash {
  50% { opacity: 0.7; }
}

@media (max-width: 768px) {
  .page-template-templatesdashboard-php .dashboard-command-bar {
    position: relative;
    top: auto;
  }

  .page-template-templatesdashboard-php .dashboard-command-bar--status {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .page-template-templatesdashboard-php .dashboard-command-bar__meta {
    justify-self: stretch;
    justify-content: space-between;
  }

  .page-template-templatesdashboard-php .dashboard-kpi-toolbar-row {
    position: relative;
    top: auto;
  }

  .page-template-templatesdashboard-php .dashboard-kpi-toolbar-row .dashboard-command-bar__tools {
    flex: 1 1 100%;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--dmr-border);
    justify-content: center;
  }

  .page-template-templatesdashboard-php .dashboard-command-bar__tools {
    width: 100%;
  }

  .page-template-templatesdashboard-php .dmr-tool-group {
    flex: 1 1 auto;
  }

  .page-template-templatesdashboard-php .dmr-panel__hint {
    width: 100%;
  }
}

/* —— Toasts DMR (charte flat #0f4a7b) —— */
body.page-template-templatesdashboard-php .dmr-toast-stack {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

body.page-template-templatesdashboard-php .dmr-toast {
  position: relative;
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0f4a7b;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateX(1.25rem);
  transition: opacity 0.28s ease, transform 0.28s ease;
  cursor: default;
  overflow: hidden;
}

body.page-template-templatesdashboard-php .dmr-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

body.page-template-templatesdashboard-php .dmr-toast.is-leaving {
  opacity: 0;
  transform: translateX(1.25rem);
}

body.page-template-templatesdashboard-php .dmr-toast__accent {
  display: none;
}

body.page-template-templatesdashboard-php .dmr-toast--qso {
  border-left-color: #c53030;
  cursor: pointer;
}

body.page-template-templatesdashboard-php .dmr-toast--success {
  border-left-color: #15803d;
}

body.page-template-templatesdashboard-php .dmr-toast--warning {
  border-left-color: #ca8a04;
}

body.page-template-templatesdashboard-php .dmr-toast--info {
  border-left-color: #0f4a7b;
}

body.page-template-templatesdashboard-php .dmr-toast__inner {
  padding: 0.65rem 0.75rem 0.75rem 0.85rem;
}

body.page-template-templatesdashboard-php .dmr-toast__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

body.page-template-templatesdashboard-php .dmr-toast__title {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f4a7b;
}

body.page-template-templatesdashboard-php .dmr-toast__time {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #6e6e6e;
}

body.page-template-templatesdashboard-php .dmr-toast__close {
  border: none;
  background: transparent;
  color: #6e6e6e;
  font-size: 1.125rem;
  line-height: 1;
  padding: 0 0 0 0.35rem;
  cursor: pointer;
}

body.page-template-templatesdashboard-php .dmr-toast__close:hover,
body.page-template-templatesdashboard-php .dmr-toast__close:focus-visible {
  color: #0f4a7b;
}

body.page-template-templatesdashboard-php .dmr-toast__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.page-template-templatesdashboard-php .dmr-toast__row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #4c4c4c;
}

body.page-template-templatesdashboard-php .dmr-toast__row i {
  width: 0.875rem;
  margin-top: 0.15rem;
  color: #0f4a7b;
  flex-shrink: 0;
}

body.page-template-templatesdashboard-php .dmr-toast--qso .dmr-toast__row i {
  color: #c53030;
}

body.page-template-templatesdashboard-php .dmr-toast__text--strong {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #071f33;
}

body.page-template-templatesdashboard-php .dmr-toast__duration {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.page-template-templatesdashboard-php .dmr-toast__legacy {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #4c4c4c;
}

body.page-template-templatesdashboard-php .dmr-toast__legacy a,
body.page-template-templatesdashboard-php .dmr-toast__charte a {
  color: #0f4a7b;
  font-weight: 700;
  text-decoration: underline;
}

body.page-template-templatesdashboard-php .dmr-toast__legacy a:hover,
body.page-template-templatesdashboard-php .dmr-toast__charte a:hover,
body.page-template-templatesdashboard-php .dmr-toast__legacy a:focus-visible,
body.page-template-templatesdashboard-php .dmr-toast__charte a:focus-visible {
  color: #1a6fb5;
}

body.page-template-templatesdashboard-php .dmr-toast__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #0f4a7b;
  transform-origin: left center;
  transform: scaleX(1);
  animation-name: dmr-toast-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

body.page-template-templatesdashboard-php .dmr-toast--qso .dmr-toast__progress {
  background: #c53030;
}

body.page-template-templatesdashboard-php .dmr-toast.is-persistent .dmr-toast__progress--live {
  animation: dmr-toast-live 1.4s ease-in-out infinite;
  transform: scaleX(1);
}

@keyframes dmr-toast-live {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes dmr-toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 768px) {
  body.page-template-templatesdashboard-php .dmr-toast-stack {
    top: auto;
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-templatesdashboard-php .dmr-toast,
  body.page-template-templatesdashboard-php .dmr-toast.is-visible,
  body.page-template-templatesdashboard-php .dmr-toast.is-leaving {
    transition: none;
    transform: none;
  }

  body.page-template-templatesdashboard-php .dmr-toast__progress {
    display: none;
  }
}

/* —— Zone Masters —— */
.page-template-templatesdashboard-php .dmr-masters-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-template-templatesdashboard-php .dmr-hotspots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.2rem;
  padding: 0;
}

.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  height: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  padding: 0.15rem 0.4rem;
  background: var(--dmr-surface-alt);
  border: 1px solid var(--dmr-border);
  line-height: 1.1;
}

.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__icon {
  flex: 0 0 auto;
  font-size: 0.625rem;
  line-height: 1;
  opacity: 0.95;
}

.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__slot {
  flex: 0 0 auto;
  font-size: 0.5625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  padding: 0.06rem 0.22rem;
  border-radius: 0.2rem;
  color: var(--dmr-accent-2, #5dade2);
  background: color-mix(in srgb, var(--dmr-accent-2, #5dade2) 14%, var(--dmr-surface));
  border: 1px solid color-mix(in srgb, var(--dmr-accent-2, #5dade2) 35%, var(--dmr-border));
}

.page-template-templatesdashboard-php .dmr-hotspot--dmr .dmr-hotspot__icon {
  color: var(--dmr-accent-2, #5dade2);
}

.page-template-templatesdashboard-php .dmr-hotspot--dvswitch .dmr-hotspot__icon {
  color: var(--dmr-accent, #3498db);
}

.page-template-templatesdashboard-php .dmr-hotspot--dvswitch {
  border-color: color-mix(in srgb, var(--dmr-accent) 35%, var(--dmr-border));
}

.page-template-templatesdashboard-php .dmr-hotspots-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.15rem 0.25rem;
  color: var(--dmr-muted, #64748b);
  font-size: 0.625rem;
}

.page-template-templatesdashboard-php .dmr-masters-chips {
  border-bottom: 1px solid var(--dmr-border);
  background: var(--dmr-surface-alt);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-template-templatesdashboard-php .dmr-masters-chips__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  min-height: 2.5rem;
  align-items: center;
}

.page-template-templatesdashboard-php .dmr-masters-chips:empty,
.page-template-templatesdashboard-php .dmr-masters-chips:not(:has(.dmr-hotspot-chip)) {
  display: none;
}

.page-template-templatesdashboard-php .dmr-hotspot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  border: 1px solid var(--dmr-border);
  background: var(--dmr-surface);
  color: var(--dmr-accent-2);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.page-template-templatesdashboard-php .dmr-hotspot-chip:hover,
.page-template-templatesdashboard-php .dmr-hotspot-chip:focus {
  background: var(--dmr-accent);
  border-color: var(--dmr-accent);
  color: var(--dmr-on-accent);
  outline: none;
}

.page-template-templatesdashboard-php .dmr-hotspot-chip i {
  color: inherit;
}

.page-template-templatesdashboard-php .dmr-masters-table .msMasters {
  background: var(--dmr-accent-2) !important;
  color: var(--dmr-on-chrome) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle !important;
  border: none !important;
  min-width: 4.5rem;
}

.page-template-templatesdashboard-php .dmr-masters-table .Hotspots {
  background: var(--dmr-surface) !important;
  color: var(--dmr-text) !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
  min-width: 14rem;
  padding: 0.15rem 0.4rem !important;
}

.page-template-templatesdashboard-php .dmr-hotspot {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  max-width: none;
}

.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__flag {
  width: auto;
  height: 0.6875rem;
  min-width: 0.6875rem;
  max-width: 0.875rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border: 1px solid var(--dmr-border);
  border-radius: 1px;
  background: var(--dmr-surface-alt);
}

.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__call {
  flex: 1 1 auto;
  font-size: 0.6875rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__id {
  flex: 0 0 auto;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.02rem 0.18rem;
  color: var(--dmr-muted);
  background: var(--dmr-surface);
  border: 1px solid var(--dmr-border);
  line-height: 1.1;
}

.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__head,
.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__meta,
.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__hw {
  display: none;
}

.page-template-templatesdashboard-php .dmr-hotspot__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-template-templatesdashboard-php .dmr-hotspot__flag {
  width: auto;
  height: 0.75rem;
  min-width: 1rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.page-template-templatesdashboard-php .dmr-hotspot__call {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--dmr-emphasis);
}

.page-template-templatesdashboard-php .dmr-hotspot__id {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dmr-muted);
  background: var(--dmr-surface-alt);
  padding: 0.1rem 0.35rem;
}

.page-template-templatesdashboard-php .dmr-hotspot__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.3;
}

.page-template-templatesdashboard-php .dmr-hotspot__name {
  font-weight: 600;
  color: var(--dmr-text);
}

.page-template-templatesdashboard-php .dmr-hotspot__dep {
  color: var(--dmr-muted);
  text-align: right;
}

.page-template-templatesdashboard-php .dmr-hotspot__hw {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dmr-accent);
}

.page-template-templatesdashboard-php .dmr-masters-table .masterconnecte {
  background: var(--dmr-surface-alt) !important;
  color: var(--dmr-accent-2) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  width: 5.5rem !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .trmasters0,
.page-template-templatesdashboard-php .dmr-masters-table .trmasters {
  background: var(--dmr-surface) !important;
  color: var(--dmr-text) !important;
  border: none !important;
  border-radius: 0 !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .trmasters {
  background: var(--dmr-surface-alt) !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .trmasters0:hover,
.page-template-templatesdashboard-php .dmr-masters-table .trmasters:hover {
  background: var(--dmr-surface-alt) !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .dmr-slot,
.page-template-templatesdashboard-php .dmr-masters-table .msTS1,
.page-template-templatesdashboard-php .dmr-masters-table .msTS2 {
  width: 3.25rem !important;
  min-width: 3.25rem;
  text-align: center !important;
  font-size: 0.625rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .msTS1,
.page-template-templatesdashboard-php .dmr-masters-table .dmr-slot.msTS1 {
  background: var(--dmr-accent) !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .msTS2,
.page-template-templatesdashboard-php .dmr-masters-table .dmr-slot.msTS2 {
  background: var(--dmr-accent-2) !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .msTSTX {
  background: var(--dmr-tx-bg) !important;
  color: var(--dmr-tx-fg) !important;
  font-weight: 700;
}

.page-template-templatesdashboard-php .dmr-masters-table .msTSRX {
  background: var(--dmr-rx-bg) !important;
  color: var(--dmr-rx-fg) !important;
  font-weight: 600;
}

.page-template-templatesdashboard-php .dmr-masters-table .msTS {
  background: var(--dmr-surface) !important;
  color: var(--dmr-muted) !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .dmr-route {
  vertical-align: middle !important;
  padding: 0.15rem 0.4rem !important;
  font-size: 0.7rem !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .dmr-route__flag {
  width: 1.25rem;
  height: auto;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.page-template-templatesdashboard-php .dmr-masters-table .dmr-route__label {
  vertical-align: middle;
  word-break: break-word;
}

.page-template-templatesdashboard-php .dmr-masters-table .thmsnetid {
  min-width: 14rem;
  text-align: left !important;
}

.page-template-templatesdashboard-php .dmr-masters-table .thmstime,
.page-template-templatesdashboard-php .dmr-masters-table .masterconnecte {
  display: table-cell !important;
}

.page-template-templatesdashboard-php .dmr-masters-scroll {
  border-top: none;
}

@media (max-width: 800px) {
  .page-template-templatesdashboard-php .dmr-masters-table .thmstime,
  .page-template-templatesdashboard-php .dmr-masters-table .masterconnecte {
    display: table-cell !important;
  }

  .page-template-templatesdashboard-php .dmr-hotspots-grid {
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  }
}

/* —— Infra partagé (Masters · Peers · OBP) —— */
.page-template-templatesdashboard-php .dmr-infra-table .msMasters,
.page-template-templatesdashboard-php .dmr-infra-table .msPeers,
.page-template-templatesdashboard-php .dmr-infra-table .dmr-obp-name {
  background: var(--dmr-accent-2) !important;
  color: var(--dmr-on-chrome) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle !important;
  border: none !important;
  min-width: 4.5rem;
}

.page-template-templatesdashboard-php .dmr-infra-table .trmasters0,
.page-template-templatesdashboard-php .dmr-infra-table .trmasters,
.page-template-templatesdashboard-php .dmr-infra-table .trpeers0,
.page-template-templatesdashboard-php .dmr-infra-table .trpeers,
.page-template-templatesdashboard-php .dmr-infra-table .dmr-obp-row {
  background: var(--dmr-surface) !important;
  color: var(--dmr-text) !important;
  border: none !important;
  border-radius: 0 !important;
}

.page-template-templatesdashboard-php .dmr-infra-table .trmasters,
.page-template-templatesdashboard-php .dmr-infra-table .trpeers {
  background: var(--dmr-surface-alt) !important;
}

.page-template-templatesdashboard-php .dmr-infra-table .dmr-slot,
.page-template-templatesdashboard-php .dmr-infra-table .msTS1,
.page-template-templatesdashboard-php .dmr-infra-table .msTS2,
.page-template-templatesdashboard-php .dmr-infra-table .peersTS1,
.page-template-templatesdashboard-php .dmr-infra-table .peersTS2 {
  width: 3.25rem !important;
  min-width: 3.25rem;
  text-align: center !important;
  font-size: 0.625rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-infra-table .msTS1,
.page-template-templatesdashboard-php .dmr-infra-table .peersTS1,
.page-template-templatesdashboard-php .dmr-infra-table .dmr-slot.msTS1,
.page-template-templatesdashboard-php .dmr-infra-table .dmr-slot.peersTS1 {
  background: var(--dmr-accent) !important;
}

.page-template-templatesdashboard-php .dmr-infra-table .msTS2,
.page-template-templatesdashboard-php .dmr-infra-table .peersTS2,
.page-template-templatesdashboard-php .dmr-infra-table .dmr-slot.msTS2,
.page-template-templatesdashboard-php .dmr-infra-table .dmr-slot.peersTS2 {
  background: var(--dmr-accent-2) !important;
}

.page-template-templatesdashboard-php .dmr-infra-table .msTSTX {
  background: var(--dmr-tx-bg) !important;
  color: var(--dmr-tx-fg) !important;
  font-weight: 700;
}

.page-template-templatesdashboard-php .dmr-infra-table .msTSRX {
  background: var(--dmr-rx-bg) !important;
  color: var(--dmr-rx-fg) !important;
  font-weight: 600;
}

.page-template-templatesdashboard-php .dmr-infra-table .msTS {
  background: var(--dmr-surface) !important;
  color: var(--dmr-muted) !important;
}

.page-template-templatesdashboard-php .dmr-infra-table .dmr-route {
  vertical-align: middle !important;
  padding: 0.15rem 0.4rem !important;
  font-size: 0.7rem !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
  color: var(--dmr-text) !important;
}

.page-template-templatesdashboard-php .dmr-infra-table .dmr-route__flag {
  width: 1.25rem;
  height: auto;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.page-template-templatesdashboard-php .dmr-infra-table .dmr-route__label {
  vertical-align: middle;
  word-break: break-word;
}

.page-template-templatesdashboard-php .dmr-infra-empty {
  padding: 1.25rem !important;
  text-align: center;
  color: var(--dmr-muted);
  font-size: 0.875rem;
  background: var(--dmr-surface-alt) !important;
}

/* —— Peers —— */
.page-template-templatesdashboard-php .dmr-peers-table .Peers {
  background: var(--dmr-surface) !important;
  color: var(--dmr-text) !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
  min-width: 14rem;
  padding: 0.15rem 0.4rem !important;
}

.page-template-templatesdashboard-php .dmr-peer {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  max-width: 16rem;
}

.page-template-templatesdashboard-php .dmr-peer--off {
  opacity: 0.72;
}

.page-template-templatesdashboard-php .dmr-peer__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-template-templatesdashboard-php .dmr-peer__flag {
  width: 1.25rem;
  height: auto;
  flex-shrink: 0;
}

.page-template-templatesdashboard-php .dmr-peer__call {
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.1;
  color: var(--dmr-emphasis);
}

.page-template-templatesdashboard-php .dmr-peer__id {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dmr-muted);
  background: var(--dmr-surface-alt);
  padding: 0.1rem 0.35rem;
}

.page-template-templatesdashboard-php .dmr-peer__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
}

.page-template-templatesdashboard-php .dmr-peer__name {
  font-weight: 600;
  color: var(--dmr-text);
}

.page-template-templatesdashboard-php .dmr-peer__slots {
  color: var(--dmr-accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.625rem;
}

.page-template-templatesdashboard-php .dmr-peers-table .peON {
  background: var(--dmr-on-bg) !important;
  color: var(--dmr-on-fg) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  width: 5.5rem !important;
  padding: 0.12rem 0.35rem !important;
  line-height: 1.1 !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
}

.page-template-templatesdashboard-php .dmr-peers-table .peOFF {
  background: var(--dmr-off-bg) !important;
  color: var(--dmr-off-fg) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  width: 5.5rem !important;
  padding: 0.12rem 0.35rem !important;
  line-height: 1.1 !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
}

.page-template-templatesdashboard-php .dmr-peers-table .thpetime,
.page-template-templatesdashboard-php .dmr-peers-table .peON,
.page-template-templatesdashboard-php .dmr-peers-table .peOFF {
  display: table-cell !important;
}

.page-template-templatesdashboard-php .dmr-peers-table .thpenetid {
  min-width: 14rem;
  text-align: left !important;
}

/* —— OBP —— */
.page-template-templatesdashboard-php .dmr-obp-table .dmr-obp-id {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  width: 5rem;
  color: var(--dmr-accent-2) !important;
  border-bottom: 1px solid var(--dmr-border) !important;
  border-right: 1px solid var(--dmr-border) !important;
}

.page-template-templatesdashboard-php .dmr-obp-streams {
  border-bottom: 1px solid var(--dmr-border) !important;
  padding: 0.15rem 0.4rem !important;
}

.page-template-templatesdashboard-php .dmr-obp-stream {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.2rem 0.45rem;
  background: var(--dmr-surface-alt);
  border: 1px solid var(--dmr-border);
  font-size: 0.6875rem;
}

.page-template-templatesdashboard-php .dmr-obp-stream__badge {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0.05rem 0.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.5625rem;
  text-transform: uppercase;
}

.page-template-templatesdashboard-php .dmr-obp-stream__path {
  color: var(--dmr-text);
}

.page-template-templatesdashboard-php .dmr-obp-stream__path i {
  color: var(--dmr-muted);
  font-size: 0.5625rem;
}

.page-template-templatesdashboard-php .dmr-obp-empty {
  color: var(--dmr-muted);
}

/* —— Dashboard global (synthèse QSO, modales, badges) —— */
.page-template-templatesdashboard-php .dmr-dashboard .trrow {
  color: var(--dmr-text) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .trrow a,
.page-template-templatesdashboard-php .dmr-dashboard .alink {
  color: var(--dmr-accent) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .badge-light,
.page-template-templatesdashboard-php .dmr-dashboard .badge-secondary {
  background: var(--dmr-surface-alt) !important;
  color: var(--dmr-accent-2) !important;
  border: 1px solid var(--dmr-border) !important;
  font-weight: 600;
}

.page-template-templatesdashboard-php .dmr-dashboard #btnlisteners.bigear {
  cursor: pointer;
  color: var(--dmr-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-template-templatesdashboard-php .dmr-dashboard #btnlisteners.bigear:hover {
  color: var(--dmr-accent-2) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-content,
.page-template-templatesdashboard-php .dmr-dashboard .modal-content-listeners {
  background: var(--dmr-surface) !important;
  color: var(--dmr-text) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-content-listeners .close-listeners {
  color: var(--dmr-muted) !important;
  font-size: 1.5rem;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-content-listeners tbody td {
  color: var(--dmr-text) !important;
  border-bottom: 1px solid var(--dmr-border) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-content-listeners thead th,
.page-template-templatesdashboard-php .dmr-dashboard .modal-body thead th {
  background: var(--dmr-accent-2) !important;
  color: var(--dmr-on-chrome) !important;
  height: auto !important;
  border: none !important;
  border-bottom: 2px solid var(--dmr-accent) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .modal-content-listeners .dmr-th__icon,
.page-template-templatesdashboard-php .dmr-dashboard .modal-body .dmr-th__icon {
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .slotbox,
.page-template-templatesdashboard-php .dmr-dashboard .tgbox {
  color: var(--dmr-on-chrome) !important;
}

.page-template-templatesdashboard-php .dmr-dashboard .ticker {
  color: var(--dmr-accent) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-template-templatesdashboard-php .dmr-dashboard .bg-hotspots,
.page-template-templatesdashboard-php .dmr-dashboard .card.bg-hotspots {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 800px) {
  .page-template-templatesdashboard-php .dmr-peers-table .thpetime,
  .page-template-templatesdashboard-php .dmr-peers-table .peON,
  .page-template-templatesdashboard-php .dmr-peers-table .peOFF {
    display: table-cell !important;
  }

  .page-template-templatesdashboard-php .dmr-peer {
    max-width: 11rem;
  }
}

/* =============================================================================
   Light mode — palette colorée (body.defaultcolor + html.theme-light)
   ============================================================================= */
body.defaultcolor.page-template-templatesdashboard-php,
html.theme-light body.page-template-templatesdashboard-php {
  color-scheme: light;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard.dashboard,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard.dashboard {
  --dmr-accent: #0f4a7b;
  --dmr-accent-2: #071f33;
  --dmr-border: #b8d4ea;
  --dmr-surface: #ffffff;
  --dmr-surface-alt: #eef6fc;
  --dmr-text: #1a3348;
  --dmr-muted: #4a7090;
  --dmr-emphasis: #0c4a7a;
  --dmr-canvas: #e8f2fa;
  --dmr-shadow: 0 10px 28px rgba(15, 74, 123, 0.12);
  --dmr-tx-bg: #fee2e2;
  --dmr-tx-fg: #b91c1c;
  --dmr-rx-bg: #dbeafe;
  --dmr-rx-fg: #1d4ed8;
  --dmr-on-bg: #d1fae5;
  --dmr-on-fg: #047857;
  --dmr-off-bg: #ffe4e6;
  --dmr-off-fg: #be123c;
}

body.defaultcolor.page-template-templatesdashboard-php main#content,
html.theme-light body.page-template-templatesdashboard-php main#content {
  background: #eef4fb !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #my-container,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #my-container {
  background: var(--dmr-surface) !important;
  box-shadow: var(--dmr-shadow);
  border: 1px solid var(--dmr-border);
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-command-bar,
html.theme-light body.page-template-templatesdashboard-php .dashboard-command-bar {
  border-bottom-color: #0f4a7b;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-command-bar--status,
html.theme-light body.page-template-templatesdashboard-php .dashboard-command-bar--status {
  background: #f0f7ff;
  border-color: #b8d4ea;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-command-bar__divider,
html.theme-light body.page-template-templatesdashboard-php .dashboard-command-bar__divider {
  background: #b8d4ea;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row {
  background: #0f4a7b;
  border-color: #0a3d66;
  box-shadow: 0 2px 0 rgba(7, 31, 51, 0.08);
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi {
  border-top: 3px solid transparent;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(1),
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(1) {
  background: #e0f2fe;
  border-top-color: #0284c7;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(1) .dmr-kpi__label,
body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(1) .dmr-kpi__value,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(1) .dmr-kpi__label,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(1) .dmr-kpi__value {
  color: #0369a1;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(2),
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(2) {
  background: #ede9fe;
  border-top-color: #7c3aed;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(2) .dmr-kpi__label,
body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(2) .dmr-kpi__value,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(2) .dmr-kpi__label,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(2) .dmr-kpi__value {
  color: #6d28d9;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(3),
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(3) {
  background: #fce7f3;
  border-top-color: #db2777;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(3) .dmr-kpi__label,
body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(3) .dmr-kpi__value,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(3) .dmr-kpi__label,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(3) .dmr-kpi__value {
  color: #be185d;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(4),
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(4) {
  background: #d1fae5;
  border-top-color: #059669;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(4) .dmr-kpi__label,
body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(4) .dmr-kpi__value,
body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(4) .dmr-kpi-link,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(4) .dmr-kpi__label,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(4) .dmr-kpi__value,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(4) .dmr-kpi-link {
  color: #047857;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(5),
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(5) {
  background: #fef3c7;
  border-top-color: #d97706;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(5) .dmr-kpi__label,
body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(5) .dmr-kpi__value,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(5) .dmr-kpi__label,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(5) .dmr-kpi__value {
  color: #b45309;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(6),
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(6) {
  background: #ecfeff;
  border-top-color: #0891b2;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(6) .dmr-kpi__label,
body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(6) .dmr-audio-tg,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(6) .dmr-kpi__label,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(6) .dmr-audio-tg {
  color: #0e7490;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(1) .blinking-point,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-grid .dmr-kpi:nth-child(1) .blinking-point {
  background-color: #0284c7 !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row .dashboard-command-bar__tools,
html.theme-light body.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row .dashboard-command-bar__tools {
  background: #f0f7ff;
  border-left-color: #94b8d9;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop {
  background: #ffffff !important;
  color: #0f4a7b !important;
  border-color: #b8d4ea !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:hover,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:focus,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:hover,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:focus {
  background: #0f4a7b !important;
  color: #ffffff !important;
  border-color: #0f4a7b !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-status--connecting,
html.theme-light body.page-template-templatesdashboard-php .dmr-status--connecting {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-status--live,
html.theme-light body.page-template-templatesdashboard-php .dmr-status--live {
  background: #0f4a7b;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-live-clock,
html.theme-light body.page-template-templatesdashboard-php .dmr-live-clock {
  color: #0f4a7b;
  font-weight: 700;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-command-bar__brand,
html.theme-light body.page-template-templatesdashboard-php .dashboard-command-bar__brand {
  color: #0f4a7b;
}

body.defaultcolor.page-template-templatesdashboard-php .dashboard-command-bar__brand:hover,
body.defaultcolor.page-template-templatesdashboard-php .dashboard-command-bar__brand:focus-visible,
html.theme-light body.page-template-templatesdashboard-php .dashboard-command-bar__brand:hover,
html.theme-light body.page-template-templatesdashboard-php .dashboard-command-bar__brand:focus-visible {
  color: #1a6fb5;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .table thead th,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .table thead th {
  background: #071f33 !important;
  border-bottom: 2px solid #0f4a7b !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard tr.BottomHeaderPrincipal th,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard th.BottomHeaderPrincipal,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard tr.BottomHeaderPrincipal th,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard th.BottomHeaderPrincipal {
  background: #0f4a7b !important;
  border-bottom: 2px solid #0284c7 !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-panel,
html.theme-light body.page-template-templatesdashboard-php .dmr-panel {
  border-color: #b8d4ea;
  box-shadow: 0 1px 0 rgba(15, 74, 123, 0.06);
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-panel__header,
html.theme-light body.page-template-templatesdashboard-php .dmr-panel__header {
  background: #0f4a7b;
  border-left-color: #38bdf8;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .trrow:nth-child(even),
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .trrow:nth-child(even) {
  background: #eef6fc !important;
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .trrow:hover,
  html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .trrow:hover {
    background: color-mix(in srgb, #0f4a7b 10%, #ffffff) !important;
  }

  body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .tghighlite,
  html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .tghighlite {
    background: color-mix(in srgb, #0f4a7b 14%, #eef6fc) !important;
    color: #0c4a7a !important;
  }
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .dashboard-notice,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .dashboard-notice {
  background: #e0f2fe;
  border-left-color: #0284c7;
  color: #0c4a6e;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .badge-light,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .badge-secondary,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .badge-light,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .badge-secondary {
  background: #dbeafe !important;
  color: #1e40af !important;
  border-color: #93c5fd !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot,
html.theme-light body.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot {
  background: #f0f9ff;
  border-color: #bae6fd;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__call,
html.theme-light body.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__call {
  color: #0369a1;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot.hotspot-talking .dmr-hotspot__call,
html.theme-light body.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot.hotspot-talking .dmr-hotspot__call {
  color: #fff !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot.hotspot-talking .dmr-hotspot__icon,
html.theme-light body.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot.hotspot-talking .dmr-hotspot__icon {
  color: #fff !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .dmr-kpi__label i,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .dmr-kpi__label i {
  opacity: 0.95;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .label,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .label,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label {
  background: #0f4a7b !important;
  border-bottom: 2px solid #0284c7 !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #insertPoint .tgidtitle,
body.defaultcolor.page-template-templatesdashboard-php .dmr-panel--synopsis > .tgidtitle,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #dmr-infra-header,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #dmr-peers-header,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #dmr-dvswitch-header,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #insertPoint .tgidtitle,
html.theme-light body.page-template-templatesdashboard-php .dmr-panel--synopsis > .tgidtitle,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #dmr-infra-header,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #dmr-peers-header,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #dmr-dvswitch-header {
  border-left-color: #0284c7;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #insertPoint .tgidtitle .label,
body.defaultcolor.page-template-templatesdashboard-php .dmr-panel--synopsis > .tgidtitle .label,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #dmr-infra-header .label,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #dmr-peers-header .label,
body.defaultcolor.page-template-templatesdashboard-php .dmr-dashboard #dmr-dvswitch-header .label,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #insertPoint .tgidtitle .label,
html.theme-light body.page-template-templatesdashboard-php .dmr-panel--synopsis > .tgidtitle .label,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #dmr-infra-header .label,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #dmr-peers-header .label,
html.theme-light body.page-template-templatesdashboard-php .dmr-dashboard #dmr-dvswitch-header .label {
  background: #0f4a7b !important;
  border-bottom: 2px solid #0284c7 !important;
}

body.defaultcolor.page-template-templatesdashboard-php .dmr-audio-meter__label,
html.theme-light body.page-template-templatesdashboard-php .dmr-audio-meter__label {
  color: #0891b2;
  font-weight: 800;
}

/* =============================================================================
   Dark mode — DMR75 dashboard (body.dark site toggle + html.theme-dark cookie)
   ============================================================================= */
body.dark.page-template-templatesdashboard-php,
html.theme-dark body.page-template-templatesdashboard-php {
  color-scheme: dark;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard.dashboard,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard.dashboard {
  --dmr-accent: #4da3e0;
  --dmr-accent-2: #071f33;
  --dmr-emphasis: #9eb0c4;
  --dmr-border: #2a4059;
  --dmr-surface: #111d2e;
  --dmr-surface-alt: #162536;
  --dmr-text: #a8b6c6;
  --dmr-muted: #72889f;
  --dmr-on-chrome: #afc0d0;
  --dmr-on-accent: #b4c4d4;
  --dmr-on-danger: #dcc4c4;
  --dmr-on-chrome-muted: rgba(175, 192, 208, 0.72);
  --dmr-canvas: #0a1628;
  --dmr-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --dmr-tx-bg: rgba(220, 38, 38, 0.22);
  --dmr-tx-fg: #e0a8a8;
  --dmr-rx-bg: rgba(59, 130, 246, 0.2);
  --dmr-rx-fg: #8eb8e8;
  --dmr-on-bg: rgba(34, 197, 94, 0.18);
  --dmr-on-fg: #7cc99a;
  --dmr-off-bg: rgba(239, 68, 68, 0.16);
  --dmr-off-fg: #e0a8a8;
}

body.dark.page-template-templatesdashboard-php main#content,
html.theme-dark body.page-template-templatesdashboard-php main#content,
body.dark.page-template-templatesdashboard-php .bs-card-box.bs-blog-post.bshre.wd-back,
html.theme-dark body.page-template-templatesdashboard-php .bs-card-box.bs-blog-post.bshre.wd-back {
  background: transparent !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard #my-container,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard #my-container {
  background: var(--dmr-surface) !important;
  box-shadow: 0 0 0 1px var(--dmr-border);
}

body.dark.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row,
html.theme-dark body.page-template-templatesdashboard-php .dashboard-kpi-toolbar-row {
  background: var(--dmr-border);
  border-color: var(--dmr-border);
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop {
  background: var(--dmr-surface-alt) !important;
  color: var(--dmr-accent) !important;
  border-color: var(--dmr-border) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:hover,
body.dark.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:focus,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:hover,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .btn.dashboardtop:focus {
  background: var(--dmr-accent) !important;
  color: var(--dmr-on-accent) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .badge-light,
body.dark.page-template-templatesdashboard-php .dmr-dashboard .badge-secondary,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .badge-light,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .badge-secondary {
  background: var(--dmr-surface-alt) !important;
  color: var(--dmr-emphasis) !important;
  border-color: var(--dmr-border) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-hotspots-grid img,
body.dark.page-template-templatesdashboard-php .dmr-dashboard .tgflag,
html.theme-dark body.page-template-templatesdashboard-php .dmr-hotspots-grid img,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .tgflag {
  background: #1e3048 !important;
  border-color: var(--dmr-border) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__flag,
html.theme-dark body.page-template-templatesdashboard-php .dmr-hotspots-grid .dmr-hotspot__flag {
  background: #1e3048;
  border-color: var(--dmr-border);
}

body.dark.page-template-templatesdashboard-php .dmr-toast,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast {
  background: #111d2e;
  border-color: #2a4059;
  box-shadow: none;
}

body.dark.page-template-templatesdashboard-php .dmr-toast__title,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast__title {
  color: #7ec8e3;
}

body.dark.page-template-templatesdashboard-php .dmr-toast__text--strong,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast__text--strong {
  color: #e2e8f0;
}

body.dark.page-template-templatesdashboard-php .dmr-toast__row,
body.dark.page-template-templatesdashboard-php .dmr-toast__legacy,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast__row,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast__legacy {
  color: #a8b6c6;
}

body.dark.page-template-templatesdashboard-php .dmr-toast__legacy a,
body.dark.page-template-templatesdashboard-php .dmr-toast__charte a,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast__legacy a,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast__charte a {
  color: #7ec8e3;
}

body.dark.page-template-templatesdashboard-php .dmr-toast__legacy a:hover,
body.dark.page-template-templatesdashboard-php .dmr-toast__charte a:hover,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast__legacy a:hover,
html.theme-dark body.page-template-templatesdashboard-php .dmr-toast__charte a:hover {
  color: #a8e4f5;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .modal-backdrop,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .modal-backdrop {
  background: #020617 !important;
  opacity: 0.82 !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .dashboard-notice,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .dashboard-notice {
  background: var(--dmr-surface-alt);
  border-left-color: var(--dmr-accent);
}

body.dark.page-template-templatesdashboard-php .dmr-table-scroll,
html.theme-dark body.page-template-templatesdashboard-php .dmr-table-scroll {
  scrollbar-color: #2a4059 #111d2e;
}

body.dark.page-template-templatesdashboard-php .dmr-table-scroll::-webkit-scrollbar,
html.theme-dark body.page-template-templatesdashboard-php .dmr-table-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.dark.page-template-templatesdashboard-php .dmr-table-scroll::-webkit-scrollbar-track,
html.theme-dark body.page-template-templatesdashboard-php .dmr-table-scroll::-webkit-scrollbar-track {
  background: #111d2e;
}

body.dark.page-template-templatesdashboard-php .dmr-table-scroll::-webkit-scrollbar-thumb,
html.theme-dark body.page-template-templatesdashboard-php .dmr-table-scroll::-webkit-scrollbar-thumb {
  background: #2a4059;
  border-radius: 4px;
}

body.dark.page-template-templatesdashboard-php .dmr-table-scroll::-webkit-scrollbar-thumb:hover,
html.theme-dark body.page-template-templatesdashboard-php .dmr-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #3d5a7a;
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  body.dark.page-template-templatesdashboard-php .dmr-dashboard .trrow:hover,
  html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .trrow:hover {
    background: color-mix(in srgb, var(--dmr-accent) 12%, var(--dmr-surface)) !important;
  }

  body.dark.page-template-templatesdashboard-php .dmr-dashboard .tghighlite,
  html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .tghighlite {
    background: color-mix(in srgb, var(--dmr-accent) 22%, var(--dmr-surface)) !important;
  }
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .tronline,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .tronline {
  background: #991b1b !important;
  border-bottom-color: #7f1d1d !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .tronline:hover,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .tronline:hover {
  background: #991b1b !important;
}

body.dark.page-template-templatesdashboard-php .dmr-obp-table .dmr-obp-id,
html.theme-dark body.page-template-templatesdashboard-php .dmr-obp-table .dmr-obp-id {
  color: var(--dmr-emphasis) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-masters-table .masterconnecte,
html.theme-dark body.page-template-templatesdashboard-php .dmr-masters-table .masterconnecte {
  color: var(--dmr-emphasis) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .dmr-kpi-link,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .dmr-kpi-link {
  color: var(--dmr-emphasis);
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .dmr-kpi-link:hover,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .dmr-kpi-link:hover {
  color: var(--dmr-accent);
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard #dmr-infra-header,
body.dark.page-template-templatesdashboard-php .dmr-dashboard #dmr-peers-header,
body.dark.page-template-templatesdashboard-php .dmr-dashboard #dmr-dvswitch-header,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard #insertPoint .tgidtitle,
html.theme-dark body.page-template-templatesdashboard-php .dmr-panel--synopsis > .tgidtitle,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard #dmr-infra-header,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard #dmr-peers-header,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard #dmr-dvswitch-header {
  border-left-color: var(--dmr-accent);
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .label,
body.dark.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .label,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label {
  background: #071f33 !important;
  border-bottom: 1px solid #2a4059 !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .label.lastActiveTG,
body.dark.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label.lastActiveTG,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .label.lastActiveTG,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .tgidtitle .label.lastActiveTG {
  background: #9b2c2c !important;
  border-bottom-color: #742a2a !important;
  color: var(--dmr-on-danger) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .dmr-thead th:hover,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .dmr-thead th:hover {
  filter: brightness(1.08);
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal,
body.dark.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG {
  background: #071f33 !important;
  border-bottom: 1px solid #2a4059;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal.lastActiveTG,
body.dark.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG.lastActiveTG,
body.dark.page-template-templatesdashboard-php .dmr-dashboard tr.BottomHeaderPrincipal.lastActiveTG th,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderPrincipal.lastActiveTG,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .BottomHeaderRowTG.lastActiveTG,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard tr.BottomHeaderPrincipal.lastActiveTG th {
  background: #9b2c2c !important;
  border-bottom-color: #742a2a !important;
  color: var(--dmr-on-danger) !important;
}

/* Legacy dashboard.css — adoucir le blanc pur hérité */
body.dark.page-template-templatesdashboard-php .dmr-dashboard .blinking-point,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .blinking-point {
  background-color: var(--dmr-accent) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .table thead th,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .table thead th {
  color: var(--dmr-on-chrome) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .dashboardtop,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .dashboardtop {
  border-color: var(--dmr-border) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-dashboard .slotbox,
body.dark.page-template-templatesdashboard-php .dmr-dashboard .tgbox,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .slotbox,
html.theme-dark body.page-template-templatesdashboard-php .dmr-dashboard .tgbox {
  color: var(--dmr-on-chrome) !important;
}

body.dark.page-template-templatesdashboard-php .dmr-audio-db,
html.theme-dark body.page-template-templatesdashboard-php .dmr-audio-db {
  color: rgba(180, 196, 212, 0.92);
  text-shadow: 0 0 3px #071018, 0 1px 2px #071018;
}

/* —— Stats popup dashboard —— */
.page-template-templatesdashboard-php .dmr-stats-modal .modal-dialog {
  max-width: 42rem;
  margin: 1.25rem auto;
}

.page-template-templatesdashboard-php .dmr-stats-modal__content {
  border: 1px solid var(--dmr-border, #b8d4ea);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.page-template-templatesdashboard-php .dmr-stats-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0f4a7b, #1a6b9c);
  color: #fff;
  border-bottom: 0;
  padding: 0.65rem 0.85rem;
}

.page-template-templatesdashboard-php .dmr-stats-modal__heading {
  min-width: 0;
}

.page-template-templatesdashboard-php .dmr-stats-modal__heading .modal-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.page-template-templatesdashboard-php .dmr-stats-modal__range {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  opacity: 0.9;
}

.page-template-templatesdashboard-php .dmr-stats-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.page-template-templatesdashboard-php .dmr-stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: var(--dmr-surface-alt, #f0f7ff);
  border-bottom: 1px solid var(--dmr-border, #b8d4ea);
}

.page-template-templatesdashboard-php .dmr-stats-tab {
  border: 1px solid var(--dmr-border, #b8d4ea);
  background: #fff;
  color: var(--dmr-acc, #0f4a7b);
  border-radius: 4px;
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.page-template-templatesdashboard-php .dmr-stats-tab--active {
  background: var(--dmr-acc, #0f4a7b);
  border-color: var(--dmr-acc, #0f4a7b);
  color: #fff;
}

.page-template-templatesdashboard-php .dmr-stats-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--dmr-border, #b8d4ea);
  border-bottom: 1px solid var(--dmr-border, #b8d4ea);
}

.page-template-templatesdashboard-php .dmr-stats-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
}

.page-template-templatesdashboard-php .dmr-stats-kpi__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dmr-muted, #6e6e6e);
  font-weight: 700;
}

.page-template-templatesdashboard-php .dmr-stats-kpi__value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dmr-acc, #0f4a7b);
}

.page-template-templatesdashboard-php .dmr-stats-modal__body {
  max-height: min(52vh, 28rem);
  overflow: auto;
}

.page-template-templatesdashboard-php .dmr-stats-table .dmr-stats-alias {
  display: block;
  font-size: 0.68rem;
  color: var(--dmr-muted, #6e6e6e);
  margin-top: 0.15rem;
  max-width: 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-template-templatesdashboard-php .dmr-stats-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid var(--dmr-border, #b8d4ea);
}

.page-template-templatesdashboard-php .dmr-stats-pos--1 { background: gold; }
.page-template-templatesdashboard-php .dmr-stats-pos--2 { background: silver; }
.page-template-templatesdashboard-php .dmr-stats-pos--3 { background: #cd7f32; color: #fff; }

.page-template-templatesdashboard-php .dmr-stats-empty {
  text-align: center;
  padding: 1rem !important;
  color: var(--dmr-muted, #6e6e6e);
}

.page-template-templatesdashboard-php .dmr-stats-modal__footer {
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  text-align: right;
  background: #fafafa;
  border-top: 1px solid var(--dmr-border, #b8d4ea);
}

.page-template-templatesdashboard-php .dmr-stats-modal__footer a {
  color: var(--dmr-acc, #0f4a7b);
  font-weight: 600;
}

.page-template-templatesdashboard-php body.dmr-stats-modal-open {
  overflow: hidden;
}
