:root {
  --blue-950: #08233f;
  --blue-900: #0b2d50;
  --blue-800: #0d416f;
  --blue-700: #135b98;
  --blue-600: #1976c5;
  --blue-100: #dceeff;
  --blue-50: #eff7ff;
  --ink: #142333;
  --muted: #657689;
  --line: #dce4ec;
  --surface: #ffffff;
  --canvas: #f5f8fb;
  --success: #12765b;
  --warning: #99630b;
  --error: #a63232;
  --shadow: 0 20px 60px rgb(21 49 76 / 10%);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #86c7ff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 12px;
  background: rgb(255 255 255 / 10%);
  font-size: 1.25rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: -2px;
  color: #bcd8ee;
  font-size: 0.72rem;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--blue-700);
  color: white;
}

.button--primary:hover {
  background: var(--blue-800);
}

.button--ghost {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.button--danger,
.button--danger-ghost {
  border-color: #dcaeae;
  color: var(--error);
}

.button--danger {
  background: var(--error);
  color: white;
}

.button--danger-ghost {
  background: white;
}

.button--success {
  background: var(--success);
  color: white;
}

.button--warning-ghost {
  border-color: #dfc287;
  background: white;
  color: var(--warning);
}

.button--warning {
  border-color: var(--warning);
  background: var(--warning);
  color: white;
}

.button--full {
  width: 100%;
}

.flash-stack {
  position: fixed;
  z-index: 20;
  top: 92px;
  right: 18px;
  width: min(390px, calc(100vw - 36px));
}

.flash {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: 9px;
  margin-bottom: 10px;
  padding: 13px 15px;
  background: white;
  box-shadow: var(--shadow);
}

.flash--success {
  border-left-color: var(--success);
}

.flash--warning {
  border-left-color: var(--warning);
}

.flash--error {
  border-left-color: var(--error);
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, 0.9fr) minmax(480px, 1.1fr);
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 72px);
  background:
    radial-gradient(circle at 15% 70%, rgb(40 145 225 / 22%), transparent 30%),
    linear-gradient(145deg, var(--blue-950), var(--blue-800));
  color: white;
}

.login-intro__copy {
  max-width: 560px;
  padding: 80px 0;
}

.login-intro__copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
}

.login-intro__copy p {
  max-width: 510px;
  color: #c9dced;
  font-size: 1.05rem;
}

.login-version {
  color: #9dbbd4;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 34px;
  background: white;
}

.login-card {
  width: min(430px, 100%);
}

.login-card__header {
  margin-bottom: 30px;
}

.login-card__header p,
.page-heading p,
.empty-state p {
  color: var(--muted);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd6e0;
  border-radius: 9px;
  padding: 0 13px;
  outline: none;
  transition: border 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 110px;
  padding: 12px 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgb(25 118 197 / 12%);
}

.field select {
  background: white;
}

.field__error {
  display: block;
  margin-top: 5px;
  color: var(--error);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-direction: column;
  padding: 26px 18px 20px;
  background: var(--blue-950);
  color: white;
}

.brand--sidebar {
  padding: 0 8px 26px;
}

.sidebar__nav {
  flex: 1;
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-top: 22px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  padding: 11px 12px;
  color: #c7d9e9;
  font-weight: 650;
  text-decoration: none;
}

.nav-link svg,
.status-card svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-link--active {
  background: rgb(255 255 255 / 11%);
  color: white;
}

.sidebar__footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding: 18px 8px 0;
  color: #9dbbd4;
  font-size: 0.75rem;
}

.main-column {
  min-width: 0;
}

.topbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(24px, 4vw, 52px);
  background: white;
}

.topbar .eyebrow {
  margin-bottom: 1px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-badge {
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 0.76rem;
  font-weight: 750;
}

.page-content {
  padding: clamp(30px, 5vw, 58px);
}

.page-heading {
  display: flex;
  max-width: 760px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-heading--actions {
  max-width: none;
  align-items: flex-end;
  gap: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.status-grid--identity {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  background: white;
}

.status-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.status-card small,
.status-card strong {
  display: block;
}

.status-card small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-state {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px;
  background: white;
}

.empty-state__number {
  color: var(--blue-100);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.form-card,
.filter-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: 0 8px 30px rgb(21 49 76 / 4%);
}

.form-card {
  max-width: 960px;
  padding: clamp(22px, 4vw, 34px);
}

.form-card--narrow {
  max-width: 560px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.field--compact {
  max-width: 150px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.readonly-field {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 13px;
  background: #f8fafc;
  color: var(--muted);
}

.flow-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 11px;
  margin: 20px 0;
  padding: 18px;
  background: var(--blue-50);
  text-align: center;
}

.flow-summary small,
.flow-summary strong {
  display: block;
}

.flow-summary small {
  color: var(--muted);
}

.checkbox--panel {
  width: fit-content;
  margin: 6px 0 24px;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--blue-50);
  color: var(--ink);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 22px;
}

.filter-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(130px, 0.8fr)) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
}

.filter-card--compact {
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 220px) auto auto;
}

.filter-card--protocols {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto auto;
}

.filter-card--receipts {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto auto;
}

.filter-card--pending {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto auto;
}

.table-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.table-card__header h2 {
  margin: 0;
}

.table-text {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.filter-card .field {
  margin-bottom: 0;
}

.filter-card .field input,
.filter-card .field select {
  min-height: 42px;
}

.table-card {
  overflow: hidden;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px 17px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfdff;
}

.table-actions {
  text-align: right;
}

.table-empty {
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-pill--active {
  background: #e8f7f1;
  color: var(--success);
}

.status-pill--inactive {
  background: #f0f2f4;
  color: #66717c;
}

.status-pill--draft,
.status-pill--neutral {
  background: #eef2f5;
  color: #53616f;
}

.status-pill--waiting,
.status-pill--sent,
.status-pill--within,
.status-pill--received,
.status-pill--concluded {
  background: #e8f7f1;
  color: var(--success);
}

.status-pill--outside {
  background: #fff3da;
  color: var(--warning);
}

.status-pill--checking {
  background: var(--blue-50);
  color: var(--blue-700);
}

.status-pill--pending,
.status-pill--missing,
.status-pill--divergent,
.status-pill--resent {
  background: #fff3da;
  color: var(--warning);
}

.status-pill--canceled {
  background: #fbeaea;
  color: var(--error);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.metric-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-600);
  border-radius: 12px;
  padding: 20px;
  background: white;
}

.metric-card small,
.metric-card strong {
  display: block;
}

.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  margin-top: 7px;
  font-size: 2rem;
}

.metric-card--warning {
  border-top-color: var(--warning);
}

.metric-card--success {
  border-top-color: var(--success);
}

.heading-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.protocol-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 20px;
  background: var(--line);
}

.protocol-meta > div {
  min-width: 0;
  padding: 18px;
  background: white;
}

.protocol-meta small,
.protocol-meta strong {
  display: block;
}

.protocol-meta small {
  margin-bottom: 4px;
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--blue-600);
  border-radius: 9px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--blue-50);
}

.notice--warning {
  border-left-color: var(--warning);
  background: #fff8e9;
}

.notice--error {
  border-left-color: var(--error);
  background: #fbeaea;
}

.notice--success {
  border-left-color: var(--success);
  background: #e8f7f1;
}

.protocol-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.protocol-actions form {
  margin: 0;
}

.history-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
  background: white;
}

.history-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.history-item > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--blue-600);
}

.history-item small {
  display: block;
  color: var(--muted);
}

.dashboard-queue {
  margin: 22px 0;
}

.dashboard-queue .table-card__header p {
  margin: 3px 0 0;
  color: var(--muted);
}

.protocol-meta--receipt {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.receipt-notes {
  display: grid;
  gap: 18px;
  margin: 22px 0;
}

.receipt-note {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: 0 8px 30px rgb(21 49 76 / 4%);
}

.receipt-note--problem {
  border-left: 4px solid var(--warning);
}

.receipt-note__header,
.receipt-note__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.receipt-note__header {
  border-bottom: 1px solid var(--line);
}

.receipt-note__header h2,
.receipt-note__header .eyebrow {
  margin: 0;
}

.receipt-note__data,
.conference-result,
.readonly-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.receipt-note__data > div,
.conference-result > div,
.readonly-summary > div {
  min-width: 0;
  padding: 16px 20px;
}

.receipt-note__data small,
.receipt-note__data strong,
.conference-result small,
.conference-result strong,
.readonly-summary small,
.readonly-summary strong {
  display: block;
}

.receipt-note__data small,
.conference-result small,
.readonly-summary small {
  margin-bottom: 4px;
  color: var(--muted);
}

.conference-result {
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.receipt-note__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.receipt-note__actions form {
  margin: 0;
}

.readonly-summary {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 24px;
  background: #f8fafc;
}

.text-link,
.text-button {
  border: 0;
  padding: 3px 5px;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover,
.text-button:hover {
  color: var(--blue-900);
  text-decoration: underline;
}

.inline-form {
  display: inline;
}

.pending-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.detail-list {
  margin: 18px 0 0;
}

.detail-list > div {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-list dd {
  margin: 4px 0 0;
}

.pending-resend,
.pending-versions {
  margin: 20px 0;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: start;
  padding: 30px;
  background: white;
}

.documents-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
  padding: 24px;
}

.section-heading--actions,
.section-heading__actions,
.document-row,
.document-row__meta,
.document-row__actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.section-heading--actions {
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading--actions h2 {
  margin: 3px 0;
}

.section-heading--actions p {
  color: var(--muted);
  margin: 0;
}

.documents-list {
  display: grid;
  gap: 10px;
}

.document-row {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px;
}

.document-row > div:first-child,
.document-row__email {
  display: grid;
  gap: 4px;
}

.document-row small,
.document-row__meta {
  color: var(--muted);
  font-size: .8rem;
}

.document-row__error {
  color: var(--danger);
  flex-basis: 100%;
  margin: 4px 0 0;
}

.diagnostic-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.diagnostic-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.diagnostic-grid small {
  color: var(--muted);
}

.report-filters,
.report-chart {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: 0 8px 30px rgb(21 49 76 / 4%);
}

.report-filters {
  margin-bottom: 16px;
  padding: 22px;
}

.report-filters__heading,
.report-filter-actions,
.report-section-heading,
.export-actions,
.page-size-form,
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-filters__heading {
  justify-content: space-between;
  margin-bottom: 18px;
}

.report-filters__heading h2,
.report-section-heading h2 {
  margin: 2px 0 0;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 0 14px;
}

.report-filter-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 20px;
}

.active-filters span {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: .74rem;
  font-weight: 700;
}

.report-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.report-shortcuts a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: 12px;
  padding: 20px;
  background: white;
  color: var(--ink);
  text-decoration: none;
}

.report-shortcuts a:hover {
  border-left-color: var(--blue-800);
  box-shadow: var(--shadow);
}

.report-shortcuts small,
.muted,
.report-list-header p {
  color: var(--muted);
}

.report-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-metrics .metric-card {
  min-width: 0;
}

.report-metrics .metric-card strong {
  font-size: clamp(1.35rem, 2vw, 2rem);
  overflow-wrap: anywhere;
}

.metric-card .metric-card__time {
  font-size: 1.15rem;
}

.report-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.report-chart {
  min-width: 0;
  padding: 22px;
}

.report-section-heading {
  justify-content: space-between;
  margin-bottom: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(100px, 1.3fr) 42px;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: .8rem;
}

.bar-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef3;
}

.bar-row i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--blue-600);
}

.bar-row strong {
  text-align: right;
}

.schedule-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.schedule-comparison > div {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: #e8f7f1;
  color: var(--success);
}

.schedule-comparison > div + div {
  border-left: 1px solid var(--line);
}

.schedule-comparison .schedule-comparison--warning {
  background: #fff8e9;
  color: var(--warning);
}

.schedule-comparison strong {
  font-size: 2rem;
}

.report-table-section {
  margin-top: 20px;
}

.report-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.report-data-table {
  min-width: max-content;
}

.report-long-text {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-sort {
  color: inherit;
  text-decoration: none;
}

.report-sort:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.report-list-header p {
  margin: 4px 0 0;
}

.page-size-form label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.page-size-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: white;
}

.pagination {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 16px 20px;
}

.button--disabled {
  cursor: not-allowed;
  opacity: .45;
  pointer-events: none;
}

@media (max-width: 880px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 310px;
  }

  .login-intro__copy {
    padding: 56px 0 30px;
  }

  .login-intro__copy h1 {
    font-size: 2.6rem;
  }

  .app-shell {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
  }

  .sidebar__nav,
  .sidebar__footer {
    display: none;
  }

  .brand--sidebar {
    padding-bottom: 0;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-grid--identity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    gap: 16px;
  }

  .sidebar__nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    overflow-x: visible;
    border-top: 1px solid rgb(255 255 255 / 10%);
    padding-top: 14px;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid,
  .protocol-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .receipt-note__data,
  .conference-result,
  .readonly-summary,
  .pending-detail-grid,
  .diagnostic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .login-intro {
    min-height: 260px;
    padding: 26px;
  }

  .login-intro__copy {
    padding: 40px 0 12px;
  }

  .login-intro__copy h1 {
    font-size: 2.05rem;
  }

  .login-panel {
    padding: 40px 24px;
  }

  .topbar {
    align-items: flex-start;
  }

  .profile-badge {
    display: none;
  }

  .page-content {
    padding: 30px 20px;
  }

  .empty-state {
    flex-direction: column;
  }

  .page-heading--actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .filter-card,
  .status-grid--identity,
  .metric-grid,
  .protocol-meta,
  .receipt-note__data,
  .conference-result,
  .readonly-summary,
  .pending-detail-grid,
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .section-heading--actions,
  .document-row {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-shortcuts,
  .report-chart-grid,
  .report-filter-grid,
  .report-metrics {
    grid-template-columns: 1fr;
  }

  .report-filters__heading,
  .report-filter-actions,
  .export-actions,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .report-filter-actions .button,
  .export-actions .button,
  .pagination .button {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: minmax(85px, .8fr) minmax(80px, 1.2fr) 34px;
  }

  .schedule-comparison {
    grid-template-columns: 1fr;
  }

  .schedule-comparison > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading__actions .button,
  .section-heading__actions form,
  .section-heading__actions form .button {
    width: 100%;
  }

  .receipt-note__header,
  .receipt-note__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-note__actions .button,
  .receipt-note__actions form,
  .receipt-note__actions form .button {
    width: 100%;
  }

  .protocol-actions,
  .table-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  .protocol-actions .button,
  .protocol-actions form,
  .protocol-actions form .button {
    width: 100%;
  }

  .field--compact {
    max-width: none;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  th,
  td {
    padding: 13px 14px;
  }
}
