/* Provider complaints list + detail — matches complaints-list / complaint-detail HTML */

article.content:has(.pc-page) .mud-main-content,
article.content:has(.pc-page) .mud-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.pc-page {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  color: var(--mrp-text, #1d252c);
  background: var(--mrp-bg, #f0fcff);
  min-width: 0;
}

.pc-page a {
  color: var(--mrp-link, #00708c);
  text-decoration: none;
}

.pc-page a:hover {
  color: var(--mrp-link-hover, #005468);
}

.pc-page :focus-visible {
  outline: 2px solid var(--mrp-brand, #07aed3);
  outline-offset: 2px;
}

.pc-mrp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 20px;
  background: var(--mrp-surface, #fff);
  border-bottom: 1px solid var(--mrp-border, #dfe7ec);
  position: sticky;
  top: 0;
  z-index: 5;
}

.pc-mrp-header__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.pc-mrp-header__back {
  font-size: 12.5px;
}

.pc-mrp-header__sep {
  color: var(--mrp-sep, #b6c2ca);
}

.pc-mrp-header__title {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.pc-mrp-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pc-mrp-header__meta {
  font-size: 12px;
  color: var(--mrp-label, #5b6670);
}

.pc-mrp-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 20px 20px;
}

.pc-mrp-card {
  background: var(--mrp-surface, #fff);
  border: 1px solid var(--mrp-border, #dfe7ec);
  border-radius: 10px;
  min-width: 0;
}

.pc-mrp-section {
  background: var(--mrp-surface, #fff);
  border: 1px solid var(--mrp-border, #dfe7ec);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 0;
}

.pc-mrp-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}

.pc-mrp-section__title {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mrp-link, #00708c);
}

.pc-mrp-fields {
  display: grid;
  gap: 2px 22px;
  grid-template-columns: minmax(0, 1fr);
}

.pc-mrp-fields--2col {
  grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 22px) / 2)), 1fr));
}

.pc-mrp-field {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border-bottom: 1px dashed var(--mrp-divider, #edf1f3);
}

.pc-mrp-field__label {
  font-size: 12px;
  color: var(--mrp-label, #5b6670);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-mrp-field__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.pc-page .pc-mrp-input,
.pc-page .pc-mrp-select {
  height: 30px;
  width: 100%;
  border: 1px solid var(--mrp-border-input, #cfd8de);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 12.5px;
  color: var(--mrp-text, #1d252c);
  background: var(--mrp-surface, #fff);
}

.pc-page textarea.pc-mrp-input {
  height: auto;
  padding: 7px 10px;
  resize: vertical;
  line-height: 1.45;
}

.pc-page .pc-mrp-input::placeholder {
  color: var(--mrp-muted, #6b7680);
}

.pc-page .pc-mrp-input:focus,
.pc-page .pc-mrp-select:focus {
  outline: none;
  border-color: var(--mrp-brand, #07aed3);
  box-shadow: 0 0 0 3px rgba(7, 174, 211, 0.2);
}

.pc-page .pc-mrp-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--mrp-border-input, #cfd8de);
  background: var(--mrp-surface, #fff);
  color: var(--mrp-text, #1d252c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}

.pc-page .pc-mrp-btn--primary {
  background: var(--mrp-primary, #007a99);
  border-color: var(--mrp-primary, #007a99);
  color: #fff;
}

.pc-page .pc-mrp-btn--primary:hover:not(:disabled) {
  background: var(--mrp-primary-hover, #006680);
}

.pc-page .pc-mrp-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--mrp-link, #00708c);
}

.pc-page .pc-mrp-btn--sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.pc-page .pc-mrp-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.pc-mrp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.pc-mrp-pill--neutral {
  background: var(--mrp-neutral-bg, #eef2f4);
  color: var(--mrp-neutral-ink, #3c4750);
}

.pc-mrp-pill--info {
  background: var(--mrp-info-bg, #e1f5fa);
  color: var(--mrp-info-ink, #00566d);
}

.pc-mrp-pill--success {
  background: var(--mrp-ok-bg, #e7f6ec);
  color: var(--mrp-ok-ink, #067647);
}

.pc-mrp-pill--warning {
  background: var(--mrp-warn-bg, #fff4e5);
  color: var(--mrp-warn-ink, #93370d);
}

.pc-mrp-pill--danger {
  background: var(--mrp-fail-bg, #fdecec);
  color: var(--mrp-fail-ink, #b42318);
}

.pc-mrp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 4px 0 9px;
  border-radius: 12px;
  background: var(--mrp-tint, #e1f5fa);
  color: var(--mrp-tint-ink, #00566d);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.pc-mrp-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
}

.pc-mrp-chip button:hover {
  background: rgba(0, 86, 109, 0.12);
}

.pc-mrp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 14px;
}

.pc-mrp-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pc-mrp-filter__label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mrp-text-3, #4a5560);
}

.pc-mrp-filter--id {
  flex: 1 1 140px;
}

.pc-mrp-filter--select {
  flex: 1 1 170px;
}

.pc-mrp-filter--range {
  flex: 1 1 300px;
}

.pc-mrp-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-mrp-range .pc-mrp-input {
  min-width: 0;
}

.pc-mrp-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 14px 12px;
  margin-top: -2px;
}

.pc-mrp-applied__label {
  font-size: 12px;
  color: var(--mrp-label, #5b6670);
  margin-right: 2px;
}

.pc-mrp-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--mrp-border-soft, #e3e9ed);
}

.pc-mrp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pc-mrp-table th {
  position: sticky;
  top: 0;
  background: var(--mrp-surface-alt, #fafdfe);
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mrp-text-3, #4a5560);
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--mrp-border-soft, #e3e9ed);
  white-space: nowrap;
}

.pc-mrp-table td {
  height: 38px;
  padding: 4px 12px;
  border-bottom: 1px solid var(--mrp-divider, #edf1f3);
  vertical-align: middle;
}

.pc-mrp-table tbody tr {
  cursor: pointer;
}

.pc-mrp-table tbody tr:hover {
  background: var(--mrp-tint-soft, #f2fafc);
}

.pc-mrp-table tbody tr:hover .pc-c-go a {
  color: var(--mrp-tint-ink, #00566d);
  background: var(--mrp-tint, #e1f5fa);
}

.pc-mrp-sort {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pc-mrp-sort:hover {
  color: var(--mrp-tint-ink, #00566d);
}

.pc-mrp-sort--on {
  color: var(--mrp-tint-ink, #00566d);
}

.pc-c-type,
.pc-c-qr,
.pc-c-sp {
  min-width: 0;
}

.pc-c-id {
  width: 76px;
  font-variant-numeric: tabular-nums;
}

.pc-mrp-idlink {
  display: inline-flex;
  align-items: center;
  min-width: 32px;
  height: 26px;
  font-weight: 600;
  color: var(--mrp-link, #00708c);
  text-decoration: underline;
  text-decoration-color: rgba(0, 112, 140, 0.35);
  text-underline-offset: 3px;
}

.pc-mrp-idlink:hover {
  color: var(--mrp-link-hover, #005468);
  text-decoration-color: currentColor;
}

.pc-c-status {
  width: 128px;
}

.pc-c-date {
  width: 168px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--mrp-text-2, #3c4750);
}

.pc-c-go {
  width: 52px;
  text-align: right;
}

.pc-c-go a {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mrp-label, #5b6670);
}

.pc-ell {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-ref {
  color: var(--mrp-label, #5b6670);
  font-variant-numeric: tabular-nums;
}

.pc-mrp-table-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--mrp-label, #5b6670);
}

.pc-mrp-pager {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.pc-mrp-pager button {
  min-width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--mrp-border-input, #cfd8de);
  background: var(--mrp-surface, #fff);
  font: inherit;
  font-size: 12.5px;
  color: var(--mrp-text-2, #3c4750);
  cursor: pointer;
  padding: 0 8px;
}

.pc-mrp-pager button[aria-current="page"] {
  background: var(--mrp-tint, #e1f5fa);
  border-color: #9fdcec;
  color: var(--mrp-tint-ink, #00566d);
  font-weight: 600;
}

.pc-mrp-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.pc-mrp-empty {
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--mrp-label, #5b6670);
}

.pc-mrp-empty strong {
  color: var(--mrp-text, #1d252c);
  font-size: 14px;
}

.pc-muted {
  color: var(--mrp-label, #5b6670);
}

.pc-mrp-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.pc-mrp-layout__main {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pc-mrp-layout__side {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 64px;
}

.pc-mrp-desc {
  margin: 8px 0 2px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mrp-text, #1d252c);
  white-space: pre-line;
}

.pc-mrp-desc--empty {
  color: var(--mrp-muted, #6b7680);
  font-style: italic;
  font-size: 12.5px;
}

.pc-mrp-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0 12px;
  border-bottom: 1px solid var(--mrp-divider, #edf1f3);
}

.pc-mrp-composer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.pc-mrp-hint {
  font-size: 12px;
  color: var(--mrp-label, #5b6670);
}

.pc-mrp-timeline {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
}

.pc-mrp-tl {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--mrp-divider, #edf1f3);
}

.pc-mrp-tl:last-child {
  border-bottom: 0;
}

.pc-mrp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--mrp-tint, #e1f5fa);
  color: #00607a;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-mrp-tl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--mrp-label, #5b6670);
}

.pc-mrp-tl__who {
  font-weight: 600;
  color: var(--mrp-text, #1d252c);
  font-size: 12.5px;
}

.pc-mrp-tl__body {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.pc-mrp-status-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-loading {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--mrp-label, #5b6670);
}

.pc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pc-rows-select {
  width: 72px;
  height: 28px;
}

.pc-val-banner {
  margin: 0 14px 12px;
  padding: 12px 14px;
  background: var(--mrp-danger-bg, #fff6f5);
  border: 1px solid #f0c2bc;
  border-radius: 10px;
  font-size: 13px;
  color: #5c2a24;
}

@media (max-width: 720px) {
  .pc-mrp-header {
    padding: 10px 12px;
  }

  .pc-mrp-main {
    padding: 10px 12px 16px;
  }

  .pc-mrp-filters {
    padding: 10px 12px;
  }

  .pc-mrp-filter--select,
  .pc-mrp-filter--range {
    flex: 1 1 100%;
  }

  .pc-mrp-filter--id {
    flex: 1 1 40%;
  }

  .pc-page .pc-mrp-input,
  .pc-page .pc-mrp-select {
    height: 38px;
    font-size: 14px;
  }

  .pc-mrp-layout__side {
    position: static;
    order: -1;
  }

  .pc-mrp-field {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 36px;
  }

  .pc-page textarea.pc-mrp-input {
    height: auto;
  }

  .pc-page .pc-mrp-btn {
    height: 40px;
  }

  .pc-mrp-table thead {
    display: none;
  }

  .pc-mrp-table,
  .pc-mrp-table tbody {
    display: block;
  }

  .pc-mrp-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "id st"
      "ty ty"
      "qr qr"
      "sp dt";
    gap: 3px 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--mrp-divider, #edf1f3);
  }

  .pc-mrp-table td {
    display: block;
    height: auto;
    padding: 0;
    border: 0;
    width: auto;
  }

  .pc-mrp-table .pc-c-id {
    grid-area: id;
  }

  .pc-mrp-table .pc-c-status {
    grid-area: st;
    justify-self: end;
  }

  .pc-mrp-table .pc-c-type,
  .pc-mrp-table td.pc-c-type {
    grid-area: ty;
    font-weight: 600;
  }

  .pc-mrp-table .pc-c-qr,
  .pc-mrp-table td.pc-c-qr {
    grid-area: qr;
    font-size: 12.5px;
  }

  .pc-mrp-table .pc-c-sp,
  .pc-mrp-table td.pc-c-sp {
    grid-area: sp;
    font-size: 12.5px;
    color: var(--mrp-text-2, #3c4750);
  }

  .pc-mrp-table .pc-c-date {
    grid-area: dt;
    font-size: 12px;
    justify-self: end;
    width: auto;
  }

  .pc-mrp-table .pc-c-go {
    display: none;
  }

  .pc-mrp-pager {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .pc-mrp-pager button {
    height: 38px;
    min-width: 38px;
  }
}