/* Dedicated operations console. Customer portal presentation is independent. */
.mda-console {
  --radius: 6px;
  background: #f5f6f8;
}
.mda-console .sidebar {
  background: #20252b;
}
.mda-console .portal-identity {
  display: none;
}
.mda-console .sidebar-brand {
  min-height: 64px;
  border-bottom: 1px solid #363c44;
  margin-bottom: 8px;
}
.mda-console .nav-link {
  border-radius: 4px;
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.mda-console .nav-link.active {
  background: #343b44;
  box-shadow: inset 2px 0 #c78245;
}
.nav-section {
  display: block;
  padding: 18px 14px 7px;
  color: #aab2bd;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.mda-console .topbar {
  height: 60px;
  min-height: 60px;
  background: #fff;
}
.mda-console .content {
  padding: 24px 28px;
}
.mda-console .page-heading {
  margin-bottom: 20px;
}
.mda-console .page-heading .eyebrow {
  display: none;
}
.mda-console .page-heading h1 {
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}
.mda-console .panel,
.mda-console .metric {
  border-radius: 6px;
  box-shadow: none;
}
.mda-console .button {
  border-radius: 5px;
}
.mda-console .button.primary {
  background: #303943;
  border-color: #303943;
  color: #fff;
}
.mda-console .button.primary:hover {
  background: #17212b;
}
.mda-console input,
.mda-console select,
.mda-console textarea {
  border-radius: 4px;
}
.mda-console .app-footer {
  margin-top: 28px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.mda-console .onboarding {
  gap: 8px;
}
.mda-console .install-help {
  display: none;
}
.client-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dce1e7;
  border-radius: 5px;
}
.client-context label {
  margin: 0;
}
.client-context select {
  width: auto;
  min-width: 180px;
  max-width: 100%;
}
.tracking-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #d6dce3;
  margin-bottom: 16px;
}
.tracking-tabs a {
  padding: 9px 0 12px;
  color: #586374;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tracking-tabs a[aria-current] {
  color: #202b39;
  border-bottom-color: #a65b26;
}
.tracking-filters {
  background: #fff;
  border: 1px solid #dce1e7;
  padding: 16px;
  border-radius: 6px;
}
.tracking-filters form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.tracking-filters label {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: #465164;
}
.tracking-filters input,
.tracking-filters select {
  margin: 0;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.84rem;
  width: auto;
  max-width: 100%;
}
.tracking-filters input[type="time"],
.tracking-filters input[name="until_time"] {
  width: 96px;
}
.tracking-filters .filter-address {
  flex: 1 1 190px;
}
.tracking-filters .filter-address input {
  width: 100%;
}
.tracking-coverage {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 0;
  color: #667183;
  font-size: 0.78rem;
}
.coverage-item strong {
  color: #374151;
  padding-right: 4px;
}
.coverage-item.incomplete {
  color: #9a5811;
}
.tracking-workspace {
  display: grid;
  gap: 20px;
  margin-top: 12px;
  align-items: start;
}
.tracking-workspace.has-detail {
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 1fr);
}
.tracking-results,
.message-detail {
  min-width: 0;
  background: #fff;
  border: 1px solid #dce1e7;
  border-radius: 6px;
}
.result-heading,
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e3e7ec;
}
.result-heading h2,
.detail-heading h2 {
  margin: 0;
  font-size: 0.96rem;
}
.result-heading span {
  font-size: 0.78rem;
  color: #697486;
}
.result-heading div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.tracking-table {
  table-layout: fixed;
  width: 100%;
  font-size: 0.84rem;
}
.tracking-table th {
  padding: 10px 14px;
  background: #f7f8fa;
  text-transform: none;
  letter-spacing: 0;
  color: #576274;
  font-size: 0.76rem;
}
.tracking-table td {
  padding: 13px 14px;
  vertical-align: top;
  border-bottom: 1px solid #ebedf1;
  overflow-wrap: anywhere;
}
.tracking-table th:first-child {
  width: 95px;
}
.tracking-table th:nth-child(3) {
  width: 180px;
}
.tracking-table th:last-child {
  width: 64px;
}
.tracking-table tr.selected td {
  background: #f0f4f8;
}
.tracking-table tr:hover td {
  background: #f7f9fb;
}
.tracking-table small {
  display: block;
  margin-top: 5px;
  color: #6c7788;
  font-size: 0.73rem;
}
.event-time time,
.mono {
  font-variant-numeric: tabular-nums;
  font-family: Inter, sans-serif;
}
.event-envelope > span {
  display: block;
  line-height: 1.5;
}
.event-envelope .event-recipient {
  color: #657186;
  font-size: 0.8rem;
  margin-top: 4px;
}
.event-open {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334f71;
}
.outcome {
  display: inline-block;
  font-size: 0.76rem;
  color: #526171;
  background: #eef1f4;
  border-radius: 3px;
  padding: 3px 7px;
}
.outcome-delivered {
  color: #236048;
  background: #edf5f0;
}
.outcome-quarantine {
  color: #865816;
  background: #fbf3e4;
}
.outcome-deferred {
  color: #875019;
  background: #fbefe2;
}
.outcome-rejected {
  color: #98423c;
  background: #fbefed;
}
.review-state {
  color: #65508a !important;
  font-size: 0.78rem;
  font-weight: 600;
}
.technical-label {
  color: #80633e !important;
}
.tracking-pagination {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #657186;
  font-size: 0.78rem;
}
.tracking-pagination > div {
  display: flex;
  gap: 8px;
}
.tracking-footnote {
  padding: 0 18px 16px;
  color: #6b7685;
  font-size: 0.76rem;
  margin: 0;
}
.tracking-empty {
  padding: 45px 24px;
  text-align: center;
  color: #657186;
}
.tracking-empty h3 {
  font-size: 1rem;
  color: #3b4655;
}
.message-detail {
  scroll-margin-top: 16px;
}
.message-detail > :not(.detail-heading) {
  margin: 18px;
}
.detail-kicker {
  display: block;
  color: #687487;
  font-size: 0.74rem;
  margin-bottom: 6px;
}
.message-fields,
.delivery-evidence dl {
  display: grid;
  gap: 13px;
}
.message-fields div,
.delivery-evidence dl div {
  min-width: 0;
}
.message-fields dt,
.delivery-evidence dt {
  color: #6a7687;
  font-size: 0.74rem;
  margin-bottom: 3px;
}
.message-fields dd,
.delivery-evidence dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}
.delivery-evidence,
.review-editor {
  border-top: 1px solid #e1e5eb;
  padding-top: 18px;
}
.message-detail h3 {
  font-size: 0.9rem;
  margin: 0 0 12px;
}
.delivery-evidence p,
.review-editor > p,
.technical-explanation {
  color: #637082;
  font-size: 0.78rem;
  line-height: 1.6;
}
.technical-explanation {
  border-left: 2px solid #b48243;
  padding: 8px 12px;
  background: #faf7f0;
}
.review-editor form {
  display: grid;
  gap: 12px;
}
.review-editor label {
  font-size: 0.8rem;
}
.review-editor select,
.review-editor textarea {
  margin-top: 6px;
}
.native-detail,
.review-history {
  border-top: 1px solid #e1e5eb;
  padding-top: 16px;
  font-size: 0.82rem;
}
.native-detail summary,
.review-history summary {
  cursor: pointer;
  font-weight: 600;
}
.native-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 400px;
  overflow: auto;
  background: #f4f6f8;
  padding: 12px;
  font-size: 0.73rem;
  line-height: 1.7;
}
.review-history article {
  padding: 12px 0;
  border-bottom: 1px solid #e5e9ef;
}
.review-history small {
  display: block;
  color: #6a7687;
  margin-top: 4px;
}
.review-history p {
  overflow-wrap: anywhere;
}
.operations-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.operations-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dce1e7;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 24px;
}
.operations-totals > div {
  padding: 18px 22px;
  border-right: 1px solid #e5e9ee;
}
.operations-totals > div:last-child {
  border-right: 0;
}
.operations-totals span {
  display: block;
  color: #667386;
  font-size: 0.8rem;
}
.operations-totals strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 5px;
}
.mda-console[data-sidebar-mode="compact"] .nav-section {
  display: none;
}
@media (max-width: 1200px) {
  .tracking-workspace.has-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .message-detail {
    grid-row: 1;
  }
}
@media (max-width: 600px) {
  .mda-console .content {
    padding: 18px 12px;
  }
  .tracking-filters {
    padding: 12px;
  }
  .tracking-filters form {
    gap: 12px 8px;
  }
  .tracking-filters label {
    flex: 1 1 120px;
    min-width: 0;
  }
  .tracking-filters input,
  .tracking-filters select {
    width: 100%;
  }
  .tracking-coverage {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  .tracking-table th,
  .tracking-table td {
    padding: 10px 8px;
  }
  .tracking-table th:first-child {
    width: 65px;
  }
  .tracking-table th:nth-child(3) {
    width: 95px;
  }
  .tracking-table th:last-child {
    width: 48px;
  }
  .tracking-table,
  .event-envelope .event-recipient {
    font-size: 0.75rem;
  }
  .outcome {
    font-size: 0.68rem;
    padding: 2px 4px;
  }
  .result-heading > span {
    display: none;
  }
  .tracking-pagination {
    align-items: start;
    flex-direction: column;
  }
  .operations-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operations-totals > div {
    border-bottom: 1px solid #e5e9ee;
    padding: 14px;
  }
}

.native-tests {
  list-style: none;
  padding: 0;
}
.native-tests li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5e9ee;
  padding: 7px 0;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}
.mda-console .content-footer {
  padding-top: 18px;
  padding-bottom: 18px;
}
.tracking-results > .table-wrap {
  margin: 0;
  width: 100%;
  max-width: 100%;
}
.tracking-results .tracking-table {
  min-width: 0;
}

/* Service observation states retain text labels independently of color. */
.status-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}
.status-filters label {
  flex: 1 1 180px;
}
.status-filters select {
  width: 100%;
}
.status-alerts {
  margin: 20px 0;
}
.status-alerts ul {
  padding: 0;
  list-style: none;
}
.status-alerts li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}
.status-alerts code,
.status-code {
  font-family: inherit;
  overflow-wrap: anywhere;
  white-space: normal;
}
.status-code {
  display: block;
}
.status-state {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 600;
}
.status-up {
  background: #e7f4ec;
  color: #205b35;
}
.status-degraded {
  background: #fff2d6;
  color: #765000;
}
.status-down {
  background: #fbe7e7;
  color: #8c2727;
}
.status-unknown {
  background: #edf0f4;
  color: #485365;
}
.status-table {
  min-width: 980px;
}
.status-totals small {
  color: #606978;
}

.sender-policy-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sender-policy-inputs > *,
.sender-preview {
  min-width: 0;
}
.sender-preview .table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.registry-table small {
  display: block;
  margin-top: 5px;
  color: #667085;
}
.registry-table td {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .sender-policy-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
  .sender-preview {
    overflow: hidden;
  }
}
@media (max-width: 600px) {
  .sender-preview thead {
    display: none;
  }
  .sender-preview tr {
    display: block;
    border-bottom: 1px solid #e5e9ee;
    padding: 8px 0;
  }
  .sender-preview td {
    display: block;
    border: 0;
    padding: 5px 0;
    overflow-wrap: anywhere;
  }
  .sender-preview td::before {
    content: attr(data-label);
    display: block;
    color: #667085;
    font-size: 0.7rem;
  }
}
