body {
  --argo-bg: #f8f9fb;
  --argo-panel: #ffffff;
  --argo-border: #dee2e6;
  --argo-text: #111827;
  --argo-muted: #6c757d;
  --argo-primary: #e66239;
  --argo-primary-soft: #fff1ed;
  --argo-success: #00b96b;
  --argo-success-soft: #eaf8ef;
  --argo-info: #13b7cf;
  --argo-info-soft: #e9f8fb;
  --argo-warning: #f5b400;
  --argo-warning-soft: #fff8e6;
  --argo-danger: #ef4056;
  --argo-danger-soft: #fff0f2;
  background: var(--argo-bg);
  color: var(--argo-text);
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  font-size: 15px;
}

a {
  color: var(--argo-primary);
  text-decoration: none;
}

.toast-stack {
  position: fixed;
  top: 1rem;
  left: 50%;
  width: min(24rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  z-index: 1080;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(248, 249, 251, 0.78);
  backdrop-filter: blur(2px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-overlay-card {
  width: min(22rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.4rem 1.25rem;
  background: #fff;
  border: 1px solid var(--argo-border);
  border-radius: 0.65rem;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
  text-align: center;
}

.loading-spinner {
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid rgba(230, 98, 57, 0.18);
  border-top-color: var(--argo-primary);
  border-radius: 999px;
  animation: argo-spin 0.8s linear infinite;
}

.loading-title {
  color: var(--argo-text);
  font-size: 1rem;
  font-weight: 700;
}

.loading-text {
  color: var(--argo-muted);
  font-size: 0.9rem;
}

body.loading-active {
  overflow: hidden;
}

@keyframes argo-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-page {
  min-height: 100vh;
  background: #f8f9fb;
}

.login-wrapper,
.placeholder-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card,
.placeholder-card {
  width: min(28rem, 100%);
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--argo-border);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.03);
}

.login-brand {
  font-size: 1.45rem;
  font-weight: 700;
}

.login-subtitle,
.page-subtitle,
.panel-text,
.table-subtitle,
.mini-stat-label {
  color: var(--argo-muted);
}

.admin-layout {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  width: 236px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--argo-border);
}

.sidebar-overlay {
  display: none;
}

.logo-area {
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--argo-border);
  color: var(--argo-text);
}

.brand-full-image {
  max-width: 100%;
  height: 36px;
  display: block;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  align-items: center;
  gap: 0.55rem;
}

.brand-symbol,
.brand-symbol-fallback {
  position: relative;
  width: 24px;
  height: 26px;
  display: inline-block;
}

.brand-symbol span,
.brand-symbol-fallback span {
  position: absolute;
  left: 2px;
  width: 20px;
  height: 7px;
  transform: skewY(-28deg);
}

.brand-symbol span:nth-child(1),
.brand-symbol-fallback span:nth-child(1) {
  top: 2px;
  background: #657e92;
}

.brand-symbol span:nth-child(2),
.brand-symbol-fallback span:nth-child(2) {
  top: 9px;
  background: #302c4d;
}

.brand-symbol span:nth-child(3),
.brand-symbol-fallback span:nth-child(3) {
  top: 16px;
  background: var(--argo-primary);
}

.brand {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span {
  color: #302c4d;
}

.brand strong {
  color: var(--argo-primary);
}

.brand-subtitle {
  display: block;
  color: #a0a7b2;
  font-size: 0.64rem;
  line-height: 1.2;
}

.sidebar-section-label {
  padding: 0.95rem 1.25rem 0.45rem;
  color: #111827;
  font-size: 0.82rem;
}

.sidebar-section-account {
  padding-top: 1.6rem;
}

.sidebar-nav {
  gap: 0.2rem;
  padding: 0 0.8rem 1rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 36px;
  padding: 0.48rem 0.72rem;
  color: #111827;
  border-radius: 0.32rem;
  font-weight: 400;
}

.sidebar-nav .nav-link i {
  width: 1rem;
  color: currentColor;
  font-size: 1.08rem;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sidebar-nav .nav-link .icon {
  width: 1.08rem;
  height: 1.08rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--argo-primary);
  background: var(--argo-primary-soft);
}

.nav-link-muted {
  color: #111827;
}

.topbar {
  position: fixed;
  top: 0;
  left: 236px;
  right: 0;
  z-index: 1020;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--argo-border);
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.notification-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.18rem;
  min-width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--argo-danger);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-dropdown {
  padding: 0;
  border: 0;
  background: transparent;
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #4f9cf9);
  border-radius: 50%;
  font-weight: 800;
}

.user-avatar-img {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-upload-form {
  width: 220px;
}

.main-panel {
  min-width: 0;
  margin-left: 236px;
  padding: 6.35rem 1.25rem 2rem;
  background: var(--argo-bg);
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.55rem;
}

.page-title {
  margin: 0 0 0.28rem;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 0;
  color: #111827;
}

.metric-card {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.55rem;
  border: 1px solid var(--argo-border);
  border-radius: 0.35rem;
  background: #fff;
}

.metric-card h2 {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.metric-card h3 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
}

.metric-card p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
}

.metric-coral-card {
  background: var(--argo-primary-soft);
  border-color: rgba(230, 98, 57, 0.28);
}

.metric-green-card {
  background: var(--argo-success-soft);
  border-color: rgba(0, 185, 107, 0.28);
}

.metric-info-card {
  background: var(--argo-info-soft);
  border-color: rgba(19, 183, 207, 0.28);
}

.metric-warning-card {
  background: var(--argo-warning-soft);
  border-color: rgba(245, 180, 0, 0.28);
}

.icon-shape {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 0.35rem;
  font-size: 1.25rem;
}

.icon-shape .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.bg-coral {
  background: var(--argo-primary);
}

.text-coral {
  color: var(--argo-primary);
}

.summary-card,
.dashboard-card,
.panel-card {
  background: #fff;
  border: 1px solid var(--argo-border);
  border-radius: 0.35rem;
}

.summary-card {
  min-height: 172px;
  padding: 1.45rem 1.55rem;
}

.summary-main {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.summary-main h3 {
  margin: 0 0 0.42rem;
  font-size: 1.55rem;
  font-weight: 800;
}

.summary-main span {
  color: #111827;
}

.summary-icon {
  width: 1.95rem;
  height: 1.95rem;
  stroke-width: 1.6;
}

.summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: #495057;
  font-size: 0.88rem;
}

.summary-footer a {
  text-decoration: underline;
}

.dashboard-card-header,
.panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid #e9ecef;
}

.dashboard-card-header h3,
.dashboard-card-header h4,
.panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.dashboard-card-header .form-select {
  width: auto;
  min-width: 116px;
}

.dashboard-card-body,
.panel-card {
  padding: 1.5rem;
}

.small-panel-title {
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.bar-chart {
  height: 314px;
  display: flex;
  align-items: flex-end;
  gap: 1.4rem;
  padding: 1rem 1.5rem 0;
  background:
    linear-gradient(to top, #e9ecef 1px, transparent 1px) 0 100% / 100% 20%,
    #fff;
}

.bar-chart span {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  height: 100%;
}

.bar-chart span::before,
.bar-chart span::after {
  content: "";
  display: block;
  flex: 1;
  border-radius: 0.22rem 0.22rem 0 0;
}

.bar-chart span::before {
  height: var(--a);
  background: #ffa38c;
}

.bar-chart span::after {
  height: var(--b);
  max-height: 100%;
  background: var(--argo-primary);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 2rem;
  min-height: 216px;
}

.donut-chart {
  width: 146px;
  height: 146px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#4cd997 0 28%, #0b7d76 28% 40%, #ffc95c 40% 62%, #ff8b4a 62% 78%, #f1f3f5 78% 100%);
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: #fff;
  border: 8px solid #f4f4f4;
  border-radius: 50%;
}

.overview-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.overview-numbers > div + div {
  border-left: 1px solid #e9ecef;
}

.overview-numbers h2 {
  margin: 0 0 0.25rem;
  font-size: 1.9rem;
  font-weight: 500;
}

.overview-numbers p {
  margin: 0 0 0.45rem;
}

.list-group-item {
  padding: 0.9rem 1.5rem;
  border-color: #e9ecef;
}

.doc-thumb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--argo-primary);
  background: var(--argo-primary-soft);
  border-radius: 0.35rem;
  font-size: 1.35rem;
}

.doc-thumb .icon {
  width: 1.38rem;
  height: 1.38rem;
}

.badge-icon,
.btn-inline-icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.25rem;
  vertical-align: -0.12rem;
}

.doc-thumb-green {
  color: var(--argo-success);
  background: var(--argo-success-soft);
}

.doc-thumb-warning {
  color: var(--argo-warning);
  background: var(--argo-warning-soft);
}

.stock-count {
  min-width: 4.5rem;
  text-align: center;
}

.stock-count span {
  display: block;
  color: var(--argo-primary);
  font-weight: 700;
}

.stock-count small {
  color: var(--argo-muted);
}

.badge {
  font-weight: 600;
}

.status-pill,
.badge.status-processado,
.badge.status-pendente,
.badge.status-alerta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-processado,
.badge.status-processado {
  color: var(--argo-success);
  background: var(--argo-success-soft);
}

.status-disponivel,
.badge.status-disponivel {
  color: var(--argo-success);
  background: var(--argo-success-soft);
}

.status-pendente,
.badge.status-pendente {
  color: var(--argo-warning);
  background: var(--argo-warning-soft);
}

.status-alerta,
.badge.status-alerta {
  color: var(--argo-danger);
  background: var(--argo-danger-soft);
}

.status-sucesso,
.badge.status-sucesso {
  color: var(--argo-success);
  background: var(--argo-success-soft);
}

.status-erro,
.badge.status-erro {
  color: var(--argo-danger);
  background: var(--argo-danger-soft);
}

.status-em_execucao,
.badge.status-em_execucao {
  color: var(--argo-info);
  background: var(--argo-info-soft);
}

.form-control,
.form-select {
  min-height: 2.45rem;
  border-radius: 0.25rem;
  border-color: var(--argo-border);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(230, 98, 57, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(230, 98, 57, 0.12);
}

.autocomplete {
  position: relative;
}

.autocomplete-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--argo-border);
  border-radius: 0.35rem;
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.1);
}

.autocomplete-menu.show {
  display: grid;
  gap: 0.15rem;
}

.autocomplete-item {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.45rem 0.6rem;
  color: var(--argo-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item:hover,
.autocomplete-item:focus {
  color: var(--argo-primary);
  background: var(--argo-primary-soft);
  outline: 0;
}

.btn-argo,
.btn-outline-primary,
.btn-outline-secondary,
.btn-primary {
  border-radius: 0.3rem;
  font-weight: 500;
}

.btn-primary,
.btn-argo-primary {
  background: var(--argo-primary);
  border-color: var(--argo-primary);
}

.btn-primary:hover,
.btn-argo-primary:hover {
  background: #d7542e;
  border-color: #d7542e;
}

.btn-argo-outline,
.btn-outline-primary {
  color: var(--argo-primary);
  background: #fff;
  border-color: rgba(230, 98, 57, 0.35);
}

.btn-argo-outline:hover,
.btn-outline-primary:hover {
  color: #fff;
  background: var(--argo-primary);
  border-color: var(--argo-primary);
}

.table-modern thead th {
  color: var(--argo-muted);
  font-size: 0.76rem;
  border-bottom: 1px solid #e9ecef;
  padding: 0.75rem 0.6rem;
}

.table-modern tbody td {
  border-color: #e9ecef;
  padding: 0.95rem 0.6rem;
}

.table-title {
  color: var(--argo-text);
  font-weight: 600;
}

.alert-stack,
.entity-summary-list,
.results-stack {
  display: grid;
  gap: 0.8rem;
}

.alert-item,
.entity-summary-item,
.mini-stat-card,
.empty-state-block,
.document-card {
  padding: 0.95rem;
  border: 1px solid #e9ecef;
  border-radius: 0.35rem;
  background: #fff;
}

.alert-item-head,
.entity-summary-item,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.alert-item-title,
.entity-summary-metric {
  font-weight: 700;
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.55rem;
  color: var(--argo-muted);
  font-size: 0.84rem;
}

.mini-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.mini-stat-value {
  margin-top: 0.25rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.role-badge {
  text-transform: capitalize;
  padding: 0.45rem 0.7rem;
}

.role-admin {
  background: #ffe9e1;
  color: #b94521;
}

.role-gestor {
  background: #dcf5ea;
  color: #126548;
}

.role-operador {
  background: #fff0d6;
  color: #935f08;
}

.document-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem;
  gap: 1rem;
}

.document-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.document-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  color: var(--argo-primary);
  background: var(--argo-primary-soft);
  border: 1px solid rgba(230, 98, 57, 0.18);
  border-radius: 0.45rem;
  flex: 0 0 auto;
}

.document-card-icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.result-eyebrow,
.result-label {
  color: var(--argo-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 700;
}

.result-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #b94521;
  background: var(--argo-primary-soft);
  font-weight: 700;
  font-size: 0.88rem;
}

.chip-highlight {
  color: var(--argo-success);
  background: var(--argo-success-soft);
}

.document-page-count {
  font-size: 2rem;
  font-weight: 800;
}

.result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid #e9ecef;
}

.result-footer code {
  max-width: 100%;
  padding: 0.25rem 0.45rem;
  color: #39475c;
  background: #f1f4f8;
  border-radius: 0.25rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.pipeline-panel {
  padding: 0;
}

.pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0;
}

.pipeline-flow {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-x: auto;
}

.pipeline-node {
  min-width: 15rem;
  max-width: 18rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--argo-border);
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.04);
}

.pipeline-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pipeline-node-order {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  font-size: 0.78rem;
  font-weight: 700;
}

.pipeline-node-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.pipeline-node-message {
  min-height: 3.25rem;
  margin: 0;
  color: var(--argo-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pipeline-node-actions {
  margin-top: auto;
}

.pipeline-node-helper {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--argo-muted);
  font-size: 0.82rem;
}

.pipeline-connector {
  width: 2.2rem;
  align-self: center;
  flex: 0 0 2.2rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(108, 117, 125, 0.2), rgba(108, 117, 125, 0.65), rgba(108, 117, 125, 0.2));
  position: relative;
}

.pipeline-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid rgba(108, 117, 125, 0.65);
  border-right: 2px solid rgba(108, 117, 125, 0.65);
  transform: rotate(45deg);
}

.pipeline-node-pendente {
  border-color: rgba(245, 180, 0, 0.26);
  background: linear-gradient(180deg, #fff 0%, var(--argo-warning-soft) 100%);
}

.pipeline-node-em_execucao {
  border-color: rgba(19, 183, 207, 0.26);
  background: linear-gradient(180deg, #fff 0%, var(--argo-info-soft) 100%);
}

.pipeline-node-sucesso {
  border-color: rgba(0, 185, 107, 0.26);
  background: linear-gradient(180deg, #fff 0%, var(--argo-success-soft) 100%);
}

.pipeline-node-erro {
  border-color: rgba(239, 64, 86, 0.26);
  background: linear-gradient(180deg, #fff 0%, var(--argo-danger-soft) 100%);
}

.pipeline-node-alerta {
  border-color: rgba(230, 98, 57, 0.26);
  background: linear-gradient(180deg, #fff 0%, var(--argo-primary-soft) 100%);
}

@media (max-width: 991px) {
  .sidebar {
    width: min(280px, 84vw);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0.75rem 0 2rem rgba(15, 23, 42, 0.12);
  }

  .topbar {
    position: fixed;
    left: 0;
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1025;
    display: block;
    background: rgba(15, 23, 42, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .sidebar-open .topbar {
    left: 0;
  }

  .main-panel {
    margin-left: 0;
    padding-top: 6.35rem;
  }

  .page-heading,
  .dashboard-card-header,
  .summary-footer,
  .panel-head,
  .entity-summary-item {
    flex-direction: column;
    align-items: stretch;
  }

  .overview-grid,
  .document-result-grid,
  .mini-stats-grid {
    grid-template-columns: 1fr;
  }

  .overview-numbers > div + div {
    border-left: 0;
  }

  .pipeline-head,
  .document-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-flow {
    flex-direction: column;
  }

  .pipeline-node {
    max-width: none;
  }

  .pipeline-connector {
    width: 2px;
    height: 1.8rem;
    margin: 0 auto;
  }

  .pipeline-connector::after {
    top: auto;
    bottom: 0;
    left: -3px;
    right: auto;
    transform: rotate(135deg);
  }
}
