:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #65707f;
  --panel: #ffffff;
  --line: #dce2ea;
  --teal: #156b6b;
  --teal-dark: #0d4f50;
  --coral: #c9604a;
  --amber: #c99a31;
  --bg: #f6f8fa;
  --danger: #a33d3d;
  --success: #2f6f4f;
}

/* PDF production archive */
.pdf-archive {
  overflow: hidden;
}

.pdf-archive-heading,
.pdf-calendar-toolbar,
.archive-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pdf-archive-heading {
  padding-bottom: 22px;
}

.pdf-archive-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-color: #cfd7ff;
  background: linear-gradient(135deg, #ffffff 0%, #f4f6ff 100%);
}

.pdf-archive-launcher h2,
.pdf-archive-launcher p {
  margin-bottom: 0;
}

.pdf-archive-launcher-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  justify-items: end;
}

.pdf-archive-launcher-actions span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.pdf-archive-launcher-actions small {
  color: #7c6f55;
  font-size: 12px;
  font-weight: 750;
}

.rework-analysis-launcher {
  border-color: #ead7ad;
  background: linear-gradient(135deg, #ffffff 0%, #fff9eb 100%);
}

.rework-analysis-launcher .project-kicker {
  color: #9a6700;
}

.rework-calendar-page { max-width: 1680px; }

.rework-calendar-summary {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dfd5c5;
  border-radius: 16px;
  background: #fff;
}

.rework-calendar-summary div {
  display: grid;
  min-height: 98px;
  padding: 20px 24px;
  align-content: center;
  gap: 4px;
  border-right: 1px solid #e8dfd2;
}

.rework-calendar-summary div:last-child { border-right: 0; }
.rework-calendar-summary strong { color: #8a5900; font-size: 28px; }
.rework-calendar-summary span { color: #69758a; font-size: 13px; font-weight: 800; }
.rework-calendar-card { margin-bottom: 24px; }

.rework-type-legend {
  display: flex;
  padding: 0 24px 18px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #667085;
  font-size: 12px;
}

.rework-type-legend span,
.rework-adjustment-options span {
  padding: 5px 8px;
  border: 1px solid #d7dfeb;
  border-radius: 999px;
  background: #f7f9fc;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.rework-type-legend .reajuste,
.rework-adjustment-options .reajuste.selected {
  border-color: #71b8a1;
  background: #e5f6ef;
  color: #12664d;
}

.rework-type-legend .consumo_id,
.rework-adjustment-options .consumo_id.selected {
  border-color: #8db8e8;
  background: #eaf3ff;
  color: #245f98;
}

.rework-type-legend .placa,
.rework-adjustment-options .placa.selected {
  border-color: #e3b65a;
  background: #fff2ce;
  color: #875900;
}

.rework-calendar .pdf-calendar-day { cursor: default; }
.rework-calendar .pdf-calendar-day.has-files { border-color: #e4bd70; background: #fffaf0; }
.rework-calendar-event { background: #ffeab7; color: #855800; }

.rework-register-card {
  overflow: hidden;
  border: 1px solid #d8e0ec;
  border-radius: 16px;
  background: #fff;
}

.rework-register-card > header {
  display: flex;
  padding: 22px 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e1e7f0;
}

.rework-register-card h2 { margin: 3px 0 0; }
.rework-register-card > header > span { color: #68758a; font-size: 13px; font-weight: 800; }
.rework-table-scroll { overflow-x: auto; }

.rework-register-table {
  width: 100%;
  min-width: 1940px;
  border-collapse: collapse;
  table-layout: fixed;
}

.rework-register-table th,
.rework-register-table td {
  padding: 16px;
  border-right: 1px solid #e1e7f0;
  border-bottom: 1px solid #e1e7f0;
  vertical-align: top;
  text-align: left;
}

.rework-register-table th:last-child,
.rework-register-table td:last-child { border-right: 0; }
.rework-register-table thead th { background: #f5f7fb; color: #42516b; font-size: 12px; text-transform: uppercase; }
.rework-register-table th:nth-child(1) { width: 110px; }
.rework-register-table th:nth-child(2) { width: 125px; }
.rework-register-table th:nth-child(3) { width: 340px; }
.rework-register-table th:nth-child(4) { width: 180px; }
.rework-register-table th:nth-child(5) { width: 180px; }
.rework-register-table th:nth-child(6) { width: 300px; }
.rework-register-table th:nth-child(7) { width: 190px; }
.rework-register-table th:nth-child(8) { width: 300px; }
.rework-register-table th:nth-child(9) { width: 190px; }
.rework-register-table td { color: #4f5d72; font-size: 13px; }
.rework-register-table td > strong,
.rework-register-table td > small { display: block; }
.rework-register-table td > small { margin-top: 5px; color: #7a8597; }
.rework-register-table td > a { color: #1769b0; font-weight: 850; text-decoration: none; }
.rework-sheet-time { color: #2f405d; font-weight: 800; }
.rework-classification,
.rework-sector {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  background: #f5f8fc;
  color: #334766;
  font-weight: 800;
  line-height: 1.25;
}
.rework-sector {
  border-color: #c9dedb;
  background: #eef8f6;
  color: #17655f;
}
.rework-manual-description {
  display: block;
  padding: 10px 12px;
  border-left: 3px solid #e0ad45;
  border-radius: 0 7px 7px 0;
  background: #fff9e9;
  color: #624d22;
  font-weight: 750;
  line-height: 1.45;
}
.rework-adjustment-options { display: flex; flex-wrap: wrap; gap: 5px; }

.won-quotes-traceability-launcher {
  border-color: #b9ddd8;
  background: linear-gradient(135deg, #ffffff 0%, #edf9f7 100%);
}

.won-quotes-traceability-launcher .project-kicker {
  color: #14746f;
}

.pipeline-page {
  max-width: 1840px;
}

.pipeline-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.pipeline-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .94;
}

.pipeline-hero p:last-child {
  max-width: 850px;
  margin: 0;
  color: #5e6a7d;
  font-size: 18px;
}

.pipeline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d5deec;
  border-radius: 18px;
  background: #fff;
}

.pipeline-summary > a {
  display: flex;
  min-height: 112px;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid #e1e7f0;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.pipeline-summary > a:last-child {
  border-right: 0;
}

.pipeline-summary > a:hover {
  background: #f5f9ff;
}

.pipeline-summary > a.active {
  background: #edf5ff;
  box-shadow: inset 0 -4px #3172be;
}

.pipeline-summary strong {
  color: #173f72;
  font-size: 28px;
}

.pipeline-summary span {
  color: #68758a;
  font-size: 13px;
  font-weight: 750;
}

.pipeline-summary small {
  margin-top: 5px;
  color: #2870b7;
  font-size: 11px;
  font-weight: 800;
}

.pipeline-source-status {
  margin: 14px 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eaf7f2;
  color: #176b51;
  font-weight: 700;
}

.pipeline-source-status.snapshot {
  background: #fff7dc;
  color: #8b6400;
}

.pipeline-source-status.unavailable,
.pipeline-source-status.not_configured {
  background: #ffeded;
  color: #a83434;
}

.pipeline-search {
  display: grid;
  margin-bottom: 20px;
  padding: 18px;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto auto minmax(145px, auto);
  align-items: end;
  gap: 12px;
  border: 1px solid #d5deec;
  border-radius: 16px;
  background: #fff;
}

.pipeline-search-count {
  display: grid;
  min-height: 44px;
  padding: 6px 12px;
  align-content: center;
  border-left: 1px solid #dbe3ee;
  color: #4f5d72;
}

.pipeline-search-count strong {
  color: #173f72;
  font-size: 20px;
  line-height: 1;
}

.pipeline-search-count span,
.pipeline-search-count small {
  font-size: 11px;
  font-weight: 750;
}

.pipeline-search label {
  display: grid;
  gap: 7px;
  color: #40506a;
  font-size: 12px;
  font-weight: 800;
}

.pipeline-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd6e5;
  border-radius: 9px;
  background: #fbfcfe;
  color: #172033;
  font: inherit;
}

.pipeline-search input:focus {
  border-color: #3172be;
  outline: 3px solid rgba(49, 114, 190, .14);
}

.pipeline-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid #d7dfeb;
  border-radius: 14px;
  background: #f6f8fb;
}

.pipeline-tabs a {
  display: flex;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  color: #536078;
  font-weight: 800;
  text-decoration: none;
}

.pipeline-tabs a.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 47, 76, .1);
  color: #164e86;
}

.pipeline-tabs span {
  padding: 2px 8px;
  border-radius: 99px;
  background: #e7edf8;
  font-size: 12px;
}

.pipeline-legend {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.pipeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pipeline-legend i,
.pipeline-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #94a3b8;
}

.pipeline-legend .complete i,
.pipeline-process-cell.complete .pipeline-status-dot { background: #19966a; }
.pipeline-legend .in_progress i,
.pipeline-process-cell.in_progress .pipeline-status-dot { background: #3478e5; }
.pipeline-legend .pending i,
.pipeline-process-cell.pending .pipeline-status-dot { background: #d59a17; }
.pipeline-legend .blocked i,
.pipeline-process-cell.blocked .pipeline-status-dot { background: #d64242; }
.pipeline-legend .validate i,
.pipeline-process-cell.validate .pipeline-status-dot { background: #7a57d1; }
.pipeline-legend .not_applicable i,
.pipeline-process-cell.not_applicable .pipeline-status-dot { background: #94a3b8; }

.pipeline-quality-note,
.pipeline-table-card {
  margin-bottom: 20px;
  border: 1px solid #d8e0ec;
  border-radius: 16px;
  background: #fff;
}

.pipeline-quality-note {
  padding: 16px 20px;
}

.pipeline-quality-note summary {
  cursor: pointer;
  color: #8a5f00;
  font-weight: 850;
}

.pipeline-quality-note p,
.pipeline-quality-note ul {
  color: #667085;
  font-size: 13px;
}

.pipeline-table-card > header {
  display: flex;
  padding: 24px 26px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dfe6f0;
}

.pipeline-table-card h2 {
  margin: 3px 0 0;
}

.pipeline-table-card > header > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.pipeline-table-scroll {
  overflow-x: auto;
}

.pipeline-table {
  width: 100%;
  min-width: 1640px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pipeline-table th,
.pipeline-table td {
  padding: 16px;
  vertical-align: top;
  border-right: 1px solid #e1e7ef;
  border-bottom: 1px solid #e1e7ef;
  text-align: left;
}

.pipeline-table thead th {
  background: #f5f7fb;
  color: #42506a;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pipeline-table th:first-child { width: 230px; }
.pipeline-table th:nth-child(2) { width: 390px; }
.pipeline-table th:nth-child(3),
.pipeline-table th:nth-child(4),
.pipeline-table th:nth-child(5) { width: 225px; }
.pipeline-table th:last-child { width: 210px; }

.pipeline-identity > a {
  display: inline-block;
  margin-bottom: 6px;
  color: #1769b0;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.pipeline-identity > strong,
.pipeline-identity > small {
  display: block;
}

.pipeline-identity > strong {
  margin-bottom: 4px;
  color: #243149;
}

.pipeline-identity > small {
  color: #6d788b;
  font-weight: 650;
}

.pipeline-order-links,
.pipeline-work-order-links {
  display: flex;
  margin: 12px 0;
  flex-wrap: wrap;
  gap: 5px;
}

.pipeline-order-links a,
.pipeline-work-order-links a {
  padding: 4px 7px;
  border-radius: 6px;
  background: #eef4fb;
  color: #245f98;
  font-size: 11px;
  text-decoration: none;
}

.pipeline-work-order-links {
  margin-top: -6px;
}

.pipeline-work-order-links a {
  background: #eee8ff;
  color: #6746b5;
}

.pipeline-deadline {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef2f7;
  color: #56647a;
  font-size: 11px;
  font-weight: 850;
}

.pipeline-deadline.complete { background: #e6f5ee; color: #137154; }
.pipeline-deadline.pending { background: #fff1c8; color: #8f6100; }
.pipeline-deadline.blocked { background: #ffe2e2; color: #ae2929; }
.pipeline-deadline.validate { background: #eee8ff; color: #6746b5; }

.pipeline-process-cell {
  min-height: 150px;
  padding: 12px;
  border-left: 4px solid #94a3b8;
  border-radius: 9px;
  background: #f8fafc;
}

.pipeline-process-cell.complete { border-color: #19966a; background: #effaf5; }
.pipeline-process-cell.in_progress { border-color: #3478e5; background: #f0f6ff; }
.pipeline-process-cell.pending { border-color: #d59a17; background: #fff9e8; }
.pipeline-process-cell.blocked { border-color: #d64242; background: #fff2f2; }
.pipeline-process-cell.validate { border-color: #7a57d1; background: #f7f3ff; }

.pipeline-process-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #26344d;
}

.pipeline-process-cell > small {
  display: block;
  margin: 4px 0 9px 17px;
  color: #748096;
  font-weight: 750;
}

.pipeline-process-cell ul {
  margin: 0;
  padding-left: 18px;
  color: #5c687b;
  font-size: 11px;
  line-height: 1.45;
}

.administrative-evidence-cell {
  min-height: 0;
}

.administrative-gate-facts {
  margin-bottom: 14px !important;
}

.administrative-condition {
  margin: 2px 0 10px;
  padding: 8px 9px;
  border: 1px solid rgba(52, 120, 229, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.administrative-condition span,
.administrative-condition strong {
  display: block;
}

.administrative-condition span {
  margin-bottom: 2px;
  color: #748096;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.administrative-condition strong {
  color: #26344d;
  font-size: 10px;
  line-height: 1.35;
}

.pipeline-order-type {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 7px;
  border: 1px solid #cbd8ea;
  border-radius: 999px;
  background: #f1f6fc;
  color: #365374;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.25;
}

.administrative-evidence-details {
  margin-top: 12px;
  border-top: 1px solid rgba(78, 102, 139, .18);
}

.administrative-evidence-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 2px 2px;
  color: #33445f;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  list-style-position: inside;
}

.administrative-evidence-details > summary small {
  color: #6c7890;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.administrative-evidence-details[open] > summary {
  padding-bottom: 4px;
}

.administrative-evidence-group {
  margin-top: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(78, 102, 139, .18);
}

.administrative-evidence-group h4 {
  margin: 0 0 8px;
  color: #3f4f68;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.administrative-record {
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid rgba(88, 111, 148, .17);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.administrative-record > a,
.administrative-record > strong {
  display: block;
}

.administrative-record > a {
  overflow-wrap: anywhere;
  color: #1769b0;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.administrative-record > strong {
  margin-top: 3px;
  color: #4f5d72;
  font-size: 10px;
  line-height: 1.35;
}

.supplier-receipts {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(88, 111, 148, .16);
}

.supplier-receipts h4 {
  margin: 0 0 5px;
  color: #59677c;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.supplier-receipts > a {
  display: block;
  margin-top: 4px;
  color: #1769b0;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.administrative-record-flags {
  display: flex;
  margin-top: 7px;
  flex-wrap: wrap;
  gap: 4px;
}

.administrative-record-flags span {
  padding: 3px 6px;
  border-radius: 5px;
  background: #edf1f6;
  color: #59677c;
  font-size: 9px;
  font-weight: 800;
}

.administrative-record-flags span.complete {
  background: #ddf4e9;
  color: #146b4f;
}

.administrative-record-flags span.pending {
  background: #fff0c2;
  color: #8b5e00;
}

.administrative-record-flags span.blocked {
  background: #ffe0e0;
  color: #a52d2d;
}

.customer-po-evidence {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 7px 8px;
  border-left: 3px solid #d49a17;
  border-radius: 5px;
  background: #fff7df;
  color: #76520b;
  font-size: 9px;
  line-height: 1.35;
}

.customer-po-evidence.complete {
  border-left-color: #21966c;
  background: #e6f6ef;
  color: #135f47;
}

.customer-po-evidence strong,
.customer-po-evidence span,
.customer-po-evidence small {
  display: block;
}

.customer-po-evidence small {
  color: #68758b;
}

.administrative-record-missing {
  margin: 0;
  color: #9a5a00;
  font-size: 10px;
  font-weight: 750;
}

.pipeline-next-action {
  color: #4f5d72;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.pipeline-reconciliation-row {
  background: #fffaf0;
}

.pipeline-reconciliation-status {
  display: block;
  margin-top: 6px;
  color: #7a6842;
}

.pipeline-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pipeline-pagination-shell {
  display: flex;
  min-height: 82px;
  padding: 18px 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  border-top: 1px solid #e1e7f0;
  background: #fbfcfe;
}

.pipeline-pagination-shell p {
  margin: 0;
  color: #536078;
  font-size: 13px;
  font-weight: 800;
}

.pipeline-pagination a {
  padding: 8px 12px;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  color: #345a82;
  font-weight: 750;
  text-decoration: none;
}

.pipeline-pagination a.active {
  border-color: #3172be;
  background: #3172be;
  color: #fff;
}

.pipeline-empty {
  padding: 60px 24px;
  text-align: center;
}

.pipeline-archive-note {
  color: #738095;
  font-size: 12px;
}

.blank-plan-templates {
  margin-top: 24px;
}

.blank-plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.blank-plan-heading h2 {
  margin: 2px 0 6px;
}

.blank-plan-heading p:last-child {
  max-width: 760px;
  margin: 0;
  color: #667085;
}

.blank-plan-heading > span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 99px;
  background: #eaf7f2;
  color: #176b51;
  font-size: 12px;
  font-weight: 800;
}

.blank-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.blank-plan-card {
  display: flex;
  min-height: 118px;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d5deec;
  border-radius: 14px;
  background: #fff;
  color: #1e2a3b;
  text-decoration: none;
}

.blank-plan-card:hover {
  border-color: #157a78;
  box-shadow: 0 8px 22px rgba(18, 74, 82, .1);
}

.blank-plan-card small {
  color: #667085;
  font-weight: 750;
}

.blank-plan-card strong {
  font-size: 17px;
}

.blank-plan-card span {
  color: #126f6c;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .pipeline-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .pipeline-summary {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-summary > a:nth-child(2) {
    border-right: 0;
  }

  .pipeline-summary > a:nth-child(-n+2) {
    border-bottom: 1px solid #e1e7f0;
  }

  .pipeline-table-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pipeline-search {
    grid-template-columns: 1fr 1fr;
  }

  .blank-plan-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .pipeline-summary,
  .pipeline-tabs {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .pipeline-summary > a {
    border-right: 0;
    border-bottom: 1px solid #e1e7f0;
  }


  .pipeline-search {
    grid-template-columns: 1fr;
  }

  .blank-plan-heading { flex-direction: column; }
  .blank-plan-grid { grid-template-columns: 1fr; }
}

.upload-limit-note {
  margin: 2px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.pdf-archive-heading h2,
.pdf-archive-heading p,
.archive-day-heading h1,
.archive-day-heading p {
  margin-bottom: 0;
}

.pdf-file-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef2ff;
  color: #3f51d7;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.pdf-calendar-toolbar {
  border: 1px solid #dce2ee;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 14px 16px;
  background: #fff;
}

.pdf-calendar-view-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  width: min(390px, 100%);
  margin: 0 auto 20px;
  border: 1px solid #d6ddea;
  border-radius: 999px;
  padding: 4px;
  background: #f8fafc;
}

.pdf-calendar-view-switch.four-options {
  width: min(520px, 100%);
  grid-template-columns: repeat(4, minmax(88px, 1fr));
}

.pdf-calendar-view-switch a {
  border-radius: 999px;
  padding: 9px 16px;
  color: #475467;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.pdf-calendar-view-switch a.active {
  background: #e9edff;
  box-shadow: inset 0 0 0 1px #a9b5ff;
  color: #2d3ea8;
}

.planning-state-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: -4px 0 20px;
  color: #667085;
  font-size: 12px;
}

.planning-state-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.planning-state-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.planning-state-legend i.borrador {
  background: #98a2b3;
}

.planning-state-legend i.planificado {
  background: #536dfe;
}

.planning-state-legend i.rendido {
  background: #d59a24;
}

.planning-state-legend i.cerrado {
  background: #26956b;
}

.pdf-calendar-month {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-size: 19px;
}

.pdf-calendar-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d6ddea;
  border-radius: 8px;
  color: #3457d5;
}

.pdf-calendar-navigation {
  display: flex;
  gap: 8px;
}

.pdf-calendar-navigation a,
.pdf-calendar-navigation .disabled {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d6ddea;
  border-radius: 8px;
  padding: 0 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.calendar-year-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  border: 1px solid #dce2ee;
  border-radius: 0 0 12px 12px;
  padding: 18px;
  background: #f8fafc;
}

.calendar-year-month {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 7px;
  border: 1px solid #dce2ee;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  color: #344054;
  text-decoration: none;
}

.calendar-year-month strong {
  font-size: 17px;
}

.calendar-year-month span,
.calendar-year-month small {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.calendar-year-month.has-activity {
  border-color: #aeb9ff;
  background: #f1f3ff;
}

.calendar-year-month.has-activity:hover {
  box-shadow: inset 0 0 0 2px #536dfe;
}

.rework-year-grid .calendar-year-month.has-activity {
  border-color: #e4bd70;
  background: #fff8e8;
}

.calendar-year-month.disabled {
  border-color: #e4e7ec;
  background: #f2f4f7;
  color: #a3adbd;
}

.pdf-calendar-navigation a:hover {
  border-color: #536dfe;
  color: #3457d5;
}

.pdf-calendar-navigation .disabled {
  border-color: #e4e7ec;
  background: #f2f4f7;
  color: #b2bac7;
  cursor: not-allowed;
}

.pdf-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  min-width: 735px;
  border-top: 1px solid #dce2ee;
  border-left: 1px solid #dce2ee;
}

.pdf-calendar-semana {
  grid-template-columns: repeat(7, minmax(105px, 1fr));
}

.pdf-calendar-dia {
  grid-template-columns: 1fr;
  min-width: 0;
}

.pdf-calendar-dia .pdf-calendar-day {
  min-height: 360px;
}

.pdf-calendar-dia .pdf-calendar-event {
  width: min(420px, 100%);
  margin-top: 28px;
  padding: 16px;
  font-size: 15px;
  white-space: normal;
}

.pdf-calendar-dia .pdf-calendar-day-number,
.pdf-calendar-semana .pdf-calendar-day-number {
  display: grid;
  gap: 3px;
  font-size: 20px;
}

.pdf-calendar-day-number small {
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.pdf-calendar-empty {
  display: block;
  margin-top: 28px;
  color: #98a2b3;
}

.pdf-calendar-weekday {
  border-right: 1px solid #dce2ee;
  border-bottom: 1px solid #dce2ee;
  padding: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.pdf-calendar-day {
  position: relative;
  min-height: 108px;
  border-right: 1px solid #dce2ee;
  border-bottom: 1px solid #dce2ee;
  padding: 10px;
  background: #fff;
  color: #344054;
  text-decoration: none;
}

.pdf-calendar-day.outside-month {
  background: #f8fafc;
  color: #a3adbd;
}

.pdf-calendar-day.has-files {
  background: #f7f8ff;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.pdf-calendar-day.has-files:hover {
  z-index: 1;
  background: #eef1ff;
  box-shadow: inset 0 0 0 2px #536dfe;
}

.pdf-calendar-day-number {
  font-size: 13px;
  font-weight: 800;
}

.pdf-calendar-event {
  display: block;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8ecff;
  padding: 7px 9px;
  color: #3346a8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-calendar-day.has-downstream-queue {
  box-shadow: inset 0 0 0 2px #a78bfa;
}

.pdf-calendar-day.has-downstream-queue .pdf-calendar-event {
  box-shadow: inset 0 0 0 1px #a78bfa;
}

.pdf-calendar-event small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
  white-space: normal;
}

.pdf-calendar-event .downstream-queue-label {
  color: #6d28d9;
}

.pdf-calendar-day.plan-state-borrador {
  background: #f7f8fa;
}

.pdf-calendar-day.plan-state-borrador .pdf-calendar-event {
  color: #475467;
  background: #eaecf0;
}

.pdf-calendar-day.plan-state-planificado {
  background: #f7f8ff;
}

.pdf-calendar-day.plan-state-planificado .pdf-calendar-event {
  color: #3346a8;
  background: #e8ecff;
}

.pdf-calendar-day.plan-state-rendido {
  background: #fffbf1;
}

.pdf-calendar-day.plan-state-rendido .pdf-calendar-event {
  color: #825700;
  background: #fff0c9;
}

.pdf-calendar-day.plan-state-cerrado {
  background: #f2fbf7;
}

.pdf-calendar-day.plan-state-cerrado .pdf-calendar-event {
  color: #176447;
  background: #dff5ea;
}

.pdf-calendar-day.plan-state-cerrado:hover {
  background: #eaf8f1;
  box-shadow: inset 0 0 0 2px #3aa278;
}

.archive-day-shell {
  min-height: calc(100vh - 120px);
}

.archive-calendar-shell {
  width: min(1400px, calc(100% - 36px));
}

.archive-day-heading {
  margin-bottom: 24px;
}

.archive-day-heading-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 9px;
  justify-items: end;
}

.archive-day-navigation {
  display: flex;
  gap: 8px;
}

.archive-day-navigation a,
.archive-day-navigation .disabled {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d6ddea;
  border-radius: 9px;
  padding: 7px 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.archive-day-navigation a:hover {
  border-color: #536dfe;
  color: #3457d5;
}

.archive-day-navigation a > span,
.archive-day-navigation .disabled > span {
  display: grid;
  gap: 2px;
}

.archive-day-navigation small {
  color: #7c879a;
  font-size: 10px;
  font-weight: 750;
}

.archive-day-navigation .disabled {
  border-color: #e4e7ec;
  background: #f2f4f7;
  color: #b2bac7;
  cursor: not-allowed;
}

.archive-day-card {
  padding: 0;
}

.process-doc.planning-day-state-card {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 20px 22px;
  border-left: 6px solid #98a2b3;
}

.planning-day-state-card.plan-state-planificado {
  border-left-color: #536dfe;
  background: #f8f9ff;
}

.planning-day-state-card.plan-state-rendido {
  border-left-color: #d59a24;
  background: #fffbf1;
}

.planning-day-state-card.plan-state-cerrado {
  border-left-color: #26956b;
  background: #f2fbf7;
}

.planning-day-state-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.planning-day-state-heading h2,
.planning-day-state-card p {
  margin: 0;
}

.planning-state-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: #475467;
  background: #eaecf0;
  font-size: 12px;
  font-weight: 900;
}

.planning-state-badge.planificado {
  color: #3346a8;
  background: #e8ecff;
}

.planning-state-badge.rendido {
  color: #825700;
  background: #fff0c9;
}

.planning-state-badge.cerrado {
  color: #176447;
  background: #dff5ea;
}

.planning-state-action,
.planning-state-close-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.planning-state-action small {
  color: #667085;
  font-weight: 700;
}

.planning-state-close-form label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 680px;
  font-weight: 750;
}

.planning-state-close-form input[type="checkbox"] {
  margin-top: 4px;
}

.button.success {
  border-color: #26956b;
  color: #fff;
  background: #21805d;
}

.button.success:hover {
  background: #176447;
}

.process-doc.day-attachments-card {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
  padding: 22px;
  border-color: #b9d9d4;
  background: linear-gradient(145deg, #ffffff 0%, #f4faf9 100%);
}

.day-attachments-heading,
.day-attachments-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.day-attachments-heading h2,
.day-attachments-heading p,
.day-attachments-list-heading h3 {
  margin-bottom: 0;
}

.day-attachments-form {
  grid-template-columns: minmax(260px, 1.2fr) minmax(240px, 1fr) auto;
  align-items: end;
  margin-top: 0;
}

.day-attachments-form .production-return-file-field {
  align-self: stretch;
}

.day-attachments-actions {
  display: grid;
  gap: 8px;
  align-self: end;
}

.day-attachments-actions .button {
  min-height: 48px;
  justify-content: center;
}

.day-attachments-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.day-analysis-request-form {
  display: none;
}

.day-productive-analysis {
  display: grid;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid #d7e7e4;
}

.day-productive-analysis-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.day-productive-analysis-heading h3,
.day-productive-analysis-heading p,
.day-productive-analysis-pending p {
  margin-bottom: 0;
}

.day-productive-analysis-body {
  max-height: 900px;
  overflow: auto;
  padding: 22px;
  border: 1px solid #cbdeda;
  border-radius: 18px;
  background: #fff;
}

.day-productive-analysis-pending {
  padding: 18px 20px;
  border: 1px dashed #9fc7c0;
  border-radius: 16px;
  color: #385b56;
  background: #f5fbfa;
}

.day-agents-launch {
  align-items: center;
  background: linear-gradient(135deg, #f1f8f8 0%, #f7f8ff 100%);
  border: 1px solid #bed8dc;
  border-radius: 18px;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 24px;
}

.day-agents-launch h3,
.day-agents-launch p {
  margin: 0;
}

.day-agents-launch h3 {
  margin-bottom: 8px;
}

.day-agents-launch dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0 0;
}

.day-agents-launch dl div {
  display: flex;
  gap: 6px;
}

.day-agents-launch dt {
  color: var(--muted);
  font-weight: 700;
}

.day-agents-launch dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
}

.day-agents-launch-action {
  display: grid;
  flex: 0 0 280px;
  gap: 8px;
  text-align: center;
}

.day-agents-launch-action small {
  color: var(--muted);
}

.day-agents-launch-copy {
  min-width: 0;
}

.day-agents-provisioning {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #f1c46b;
  border-radius: 14px;
  background: #fff8e8;
  color: #6a4b0d;
}

.day-agents-provisioning p {
  margin: 0.35rem 0 0;
}

.day-agents-thread {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  max-height: 32rem;
  overflow-y: auto;
}

.day-agents-message {
  max-width: 86%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #edf3ff;
}

.day-agents-message.assistant {
  margin-right: auto;
  background: #edf8f6;
}

.day-agents-message.user {
  margin-left: auto;
}

.day-agents-message p {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
}

.day-agents-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.day-agents-form textarea {
  width: 100%;
  resize: vertical;
}

@media (max-width: 760px) {
  .day-agents-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .day-agents-launch-action {
    flex-basis: auto;
  }
}

.day-attachments-list {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #d7e7e4;
}

.day-attachments-list-heading {
  align-items: center;
}

.day-attachments-list-heading > span {
  display: grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #165e59;
  background: #e5f4f1;
  font-size: 13px;
  font-weight: 900;
}

.day-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.day-attachment-item {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.day-attachment-item.unclassified {
  border-color: #dfc98d;
  background: #fffbef;
}

.day-attachment-item.duplicate {
  border: 2px solid #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.day-attachments-duplicate-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #1e4f91;
  font-size: 13px;
  font-weight: 750;
}

.day-attachments-duplicate-note > span,
.day-attachment-duplicate-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: #2563eb;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.day-attachments-duplicate-note.clear {
  color: #17694f;
}

.day-attachments-duplicate-note.clear > span {
  background: #1f9369;
}

.day-attachment-duplicate-detail {
  color: #1e4f91 !important;
  font-weight: 750 !important;
}

.day-attachment-item > a {
  display: grid;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.day-attachment-image-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #e9eeee;
}

.day-attachment-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(var(--image-rotation, 0deg));
  transition: transform 180ms ease;
}

.day-attachment-rotate-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.day-attachment-rotate-controls .button {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
}

.day-attachment-rotation-status {
  text-align: center;
  font-weight: 750;
}

.day-attachment-item small,
.day-attachments-empty,
.day-attachments-recovery-note {
  color: var(--muted);
}

.day-attachments-locked {
  border: 1px solid #acd8c4;
  border-radius: 12px;
  padding: 14px 16px;
  color: #176447;
  background: #edf9f3;
}

.draft-download-pending,
.draft-html-indicator {
  display: inline-flex;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  padding: 7px 10px;
  color: #475467;
  background: #f2f4f7;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.day-attachment-item form,
.day-attachment-item button {
  width: 100%;
}

.button.danger {
  border-color: #e6b8af;
  color: #923f31;
  background: #fff1ee;
}

.button.danger:hover {
  border-color: #d89083;
  background: #ffe5df;
}

.day-attachments-empty,
.day-attachments-recovery-note {
  margin: 0;
  font-size: 13px;
}

.process-doc.production-flow-card {
  margin-bottom: 22px;
  padding: 22px;
  border-color: #d8def2;
  background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
}

.production-flow-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.production-flow-heading h2,
.production-flow-heading p,
.production-flow-note {
  margin-bottom: 0;
}

.production-flow-heading h2 {
  margin-top: 2px;
  font-size: clamp(24px, 3vw, 34px);
}

.production-flow-heading > div > p:last-child,
.production-flow-note {
  color: #667085;
}

.production-flow-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  color: #3346a8;
  background: #e8ecff;
  font-size: 12px;
  font-weight: 900;
}

.production-flow-heading-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.production-flow-print-button {
  white-space: nowrap;
}

.production-flow-print-title {
  display: none;
}

.production-flow-snapshot-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid #cfd7ea;
  border-radius: 12px;
  padding: 6px;
  background: #f2f5fa;
}

.production-flow-snapshot-switch > a,
.production-flow-snapshot-switch > span {
  display: grid;
  min-height: 62px;
  align-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 14px;
  color: #536273;
  text-align: center;
  text-decoration: none;
}

.production-flow-snapshot-switch > a.active {
  border-color: #8292ff;
  color: #253a93;
  background: #fff;
  box-shadow: 0 3px 10px rgba(51, 70, 168, 0.08);
}

.production-flow-snapshot-switch span span,
.production-flow-snapshot-switch a span {
  font-weight: 900;
}

.production-flow-snapshot-switch small {
  color: #718096;
  font-size: 11px;
  font-weight: 750;
}

.production-flow-snapshot-switch > .disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.production-flow-wrap {
  border-color: #d8def2;
  background: #fff;
}

.production-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: -4px 0 14px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.production-flow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.production-flow-legend i {
  width: 18px;
  height: 18px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.production-flow-legend i.carryover {
  border-color: #f2c66d;
  background: #fff2cc;
}

.production-flow-legend i.same-day {
  border-color: #93c5fd;
  background: #e8f3ff;
}

.production-flow-legend i.from-cut {
  border-color: #67b7a5;
  background: #e4f7f2;
}

.production-flow-legend i.downstream-queue {
  border-color: #a78bfa;
  background: #ede9fe;
}

.order-deadline-legend,
.id-traceability-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 14px;
  color: #475467;
  font-size: 12px;
}

.production-result-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: -4px 0 14px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.production-result-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.production-result-legend i {
  width: 18px;
  height: 18px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.production-result-legend i.completed {
  border-color: #86d59a;
  background: #e4f8e9;
}

.production-result-legend i.partial {
  border-color: #f2c66d;
  background: #fff2cc;
}

.production-result-legend i.provisional {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.production-result-legend i.zero {
  border-color: #f2a7a7;
  background: #fff0f0;
}

.post-production-explainer {
  margin: -2px 0 14px;
  border-left: 4px solid #7c3aed;
  border-radius: 7px;
  padding: 10px 12px;
  color: #4c3d68;
  background: #f5f0ff;
  font-size: 12px;
  line-height: 1.45;
}

.order-deadline-legend strong,
.order-deadline-legend span,
.id-traceability-legend strong,
.id-traceability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.order-deadline-legend i,
.order-deadline-flag,
.id-traceability-legend i,
.id-traceability-flag {
  font-style: normal;
  line-height: 1;
}

.order-deadline-legend i.green,
.order-deadline-flag.green,
.id-traceability-legend i.green,
.id-traceability-flag.green {
  color: #16803a;
}

.order-deadline-legend i.yellow,
.order-deadline-flag.yellow,
.id-traceability-legend i.yellow,
.id-traceability-flag.yellow {
  color: #d18b00;
}

.order-deadline-legend i.red,
.order-deadline-flag.red,
.id-traceability-legend i.red,
.id-traceability-flag.red {
  color: #dc2626;
}

.production-station-totals {
  margin: 0 0 14px;
  border: 1px solid #d9e2f2;
  border-radius: 12px;
  padding: 12px;
  background: #f8faff;
}

.production-station-totals > strong {
  display: block;
  margin-bottom: 9px;
  color: #173d77;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.production-station-totals > div {
  display: grid;
  grid-template-columns: 14% repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.station-total-spacer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f347f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.production-station-totals article {
  border: 1px solid #e1e7f0;
  border-radius: 9px;
  padding: 9px 8px;
  text-align: center;
  background: #fff;
}

.production-station-totals article.post-production {
  border-color: #d8ccfb;
  background: #f5f0ff;
}

.production-station-totals.end-totals article.confirmed {
  border-color: #93c5fd;
  background: #eff6ff;
}

.production-station-totals.end-totals article.pending {
  border-color: #f2c66d;
  background: #fff8e6;
}

.production-station-totals.end-totals article.closed {
  border-color: #86d59a;
  background: #e4f8e9;
}

.production-station-totals span,
.production-station-totals b {
  display: block;
}

.production-station-totals span {
  margin-bottom: 3px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.production-station-totals b {
  color: #182230;
  font-size: 13px;
}

.station-total-status {
  display: inline-flex;
  margin-top: 7px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #475467;
  background: #eef2f7;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.production-station-totals article.confirmed .station-total-status {
  color: #175cd3;
  background: #dbeafe;
}

.production-station-totals article.pending .station-total-status {
  color: #92400e;
  background: #ffefc2;
}

.production-station-totals article.closed .station-total-status {
  color: #166534;
  background: #ccefd8;
}

.production-flow-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
}

.production-flow-table.transposed {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.production-flow-table.transposed col.production-flow-station-column {
  width: 150px;
}

.production-flow-table.transposed col.production-flow-work-order-column {
  width: 132px;
}

.production-flow-table.transposed col.production-flow-total-column {
  width: 175px;
}

.production-flow-table.transposed .production-flow-ot-heading {
  min-width: 132px;
  padding: 9px 7px;
}

.production-flow-table.transposed .production-flow-ot-heading .production-flow-ot {
  flex-wrap: wrap;
}

.production-flow-table.transposed .production-flow-ot-heading .order-deadline-flag {
  font-size: 15px;
}

.production-flow-table.transposed .production-flow-ot-heading .id-traceability-detail {
  max-width: 118px;
}

.production-flow-table.transposed .production-flow-station-heading {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 150px;
  color: #1f347f;
  background: #f7f8ff;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.production-flow-table.transposed .production-flow-station-heading small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.production-flow-table.transposed .production-flow-station-heading.post-production,
.production-flow-table.transposed tr.post-production-row td {
  border-top: 3px solid #ddd6fe;
  background-color: #faf7ff;
}

.production-flow-table.transposed .production-flow-station-total,
.production-flow-table.transposed .production-flow-total-heading {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 175px;
  border-left: 3px solid #cbd5e1;
  color: #173d77;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 900;
}

.production-flow-table.transposed .production-flow-total-heading {
  z-index: 3;
}

.production-flow-table.transposed .production-flow-station-total.post-production {
  border-left-color: #c4b5fd;
  color: #5b3b91;
  background: #f5f0ff;
}

.production-flow-table.transposed .production-flow-station-total.confirmed {
  color: #175cd3;
  background: #eff6ff;
}

.production-flow-table.transposed .production-flow-station-total.pending {
  color: #92400e;
  background: #fff8e6;
}

.production-flow-table.transposed .production-flow-station-total.closed {
  color: #166534;
  background: #e4f8e9;
}

.production-flow-table col.production-flow-ot-column {
  width: 14%;
}

.production-flow-table col:not(.production-flow-ot-column) {
  width: 14.333%;
}

.production-flow-table th,
.production-flow-table td {
  height: 72px;
  border-right: 1px solid #e6e9f2;
  border-bottom: 1px solid #e6e9f2;
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
}

.production-flow-table thead th {
  height: auto;
  color: #344054;
  background: #f5f7fb;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.production-flow-table thead th.post-production {
  border-left: 3px solid #c4b5fd;
  color: #5b3b91;
  background: #f5f0ff;
}

.production-flow-table thead th.post-production small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.production-flow-cell.post-production {
  border-left: 3px solid #ddd6fe;
}

.production-flow-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 88px;
  color: #1f347f;
  background: #f7f8ff;
  font-size: 16px;
}

.production-flow-table thead th:first-child {
  z-index: 2;
  font-size: 12px;
}

.production-flow-table tfoot th,
.production-flow-table tfoot td {
  height: auto;
  border-top: 3px solid #98a2b3;
  color: #182230;
  background: #eef2f7;
  font-size: 13px;
  font-weight: 800;
}

.production-flow-table tfoot th:first-child {
  z-index: 2;
  color: #173d77;
  background: #e5ecf7;
  font-size: 12px;
  text-transform: uppercase;
}

.production-flow-table tfoot td.post-production {
  border-left: 3px solid #c4b5fd;
  color: #5b3b91;
  background: #f5f0ff;
}

.production-flow-ot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.production-flow-ot-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.production-flow-ot-link:hover,
.production-flow-ot-link:focus-visible {
  color: #075985;
  text-decoration-thickness: 2px;
}

.crm-external-icon {
  font-size: 0.7em;
  line-height: 1;
}

.order-deadline-flag {
  cursor: help;
  font-size: 20px;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.16));
}

.id-traceability-flag {
  cursor: help;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 2px 4px;
  background: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.order-deadline-date {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 9px;
  font-weight: 750;
}

.id-traceability-detail {
  display: block;
  max-width: 145px;
  margin: 4px auto 0;
  color: #667085;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
}

.production-flow-cell {
  min-width: 138px;
}

.production-flow-cell.planned.carryover {
  background: #fff8e6;
}

.production-flow-cell.planned.same-day {
  background: #eef7ff;
}

.production-flow-cell.planned.from-cut {
  background: #eefaf7;
  box-shadow: inset 0 0 0 2px #9dd9cc;
}

.production-flow-cell.planned.from-cut strong {
  color: #116354;
  background: #d9f3ec;
}

.production-flow-cell.planned.mixed {
  background: linear-gradient(135deg, #fff8e6 0 50%, #eef7ff 50% 100%);
}

.production-flow-cell.queued.downstream-queue {
  background: #f5f3ff;
  box-shadow: inset 0 0 0 2px #c4b5fd;
}

.production-flow-cell.queued.downstream-queue strong {
  color: #5b21b6;
  background: #ede9fe;
}

.production-flow-cell.completed {
  background: #effaf2;
}

.production-flow-cell.completed strong {
  color: #166534;
  background: #dcfce7;
}

.production-flow-cell.partial,
.production-flow-cell.in-process {
  background: #fff8e6;
}

.production-flow-cell.partial strong,
.production-flow-cell.in-process strong {
  color: #8a5a00;
  background: #ffedb8;
}

.production-flow-cell.provisional {
  background: #f8fafc;
}

.production-flow-cell.provisional strong {
  color: #475569;
  background: #e2e8f0;
}

.production-flow-cell.zero {
  background: #fff5f5;
}

.production-flow-cell.zero strong {
  color: #991b1b;
  background: #fee2e2;
}

.production-flow-cell.logistics-started {
  background: #eef8ff;
}

.production-flow-cell.logistics-started strong {
  color: #075985;
  background: #d9f1ff;
}

.production-flow-cell strong {
  display: inline-block;
  border-radius: 8px;
  padding: 7px 10px;
  color: #19388f;
  background: #edf1ff;
  font-size: 14px;
  line-height: 1.25;
}

.production-flow-cell.carryover strong {
  color: #7a4b00;
  background: #ffe8aa;
}

.production-flow-cell.same-day strong {
  color: #174ea6;
  background: #dbeeff;
}

.production-flow-origin {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.production-flow-cell.empty span {
  color: #c0c7d4;
}

.production-flow-note {
  margin-top: 12px;
  font-size: 13px;
}

.production-sector-report {
  margin-top: 22px;
  border-top: 1px solid #dfe4ee;
  padding-top: 20px;
}

.production-sector-report > header {
  margin-bottom: 14px;
}

.production-sector-report h3 {
  margin: 2px 0 0;
  font-size: clamp(20px, 2.3vw, 27px);
}

.production-sector-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.production-sector-card {
  border: 1px solid #dfe4ee;
  border-top-width: 4px;
  border-radius: 12px;
  padding: 15px;
  background: #fff;
}

.production-sector-card.completed {
  border-top-color: #22a447;
}

.production-sector-card.partial {
  border-top-color: #e5a000;
}

.production-sector-card.provisional {
  border-top-color: #94a3b8;
}

.production-sector-card.postproduction {
  border-top-color: #7c3aed;
  background: #fcfaff;
}

.production-sector-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.production-sector-card h4 {
  margin: 0;
  color: #17223b;
  font-size: 17px;
}

.production-sector-card-heading span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #475467;
  background: #f1f5f9;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.production-sector-summary {
  margin: 10px 0 8px;
  color: #27364d;
  font-weight: 800;
  line-height: 1.4;
}

.production-sector-card ul {
  margin: 0;
  padding-left: 18px;
  color: #5d697a;
  font-size: 12px;
  line-height: 1.45;
}

.production-sector-card li + li {
  margin-top: 4px;
}

.production-metrics-dashboard {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
}

.production-metrics-heading,
.production-metrics-subheading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.production-metrics-heading h2,
.production-metrics-heading p,
.production-metrics-subheading h3,
.production-metrics-subheading p {
  margin: 0;
}

.production-metrics-heading h2 {
  margin: 3px 0 6px;
  font-size: clamp(25px, 3vw, 36px);
}

.production-metrics-heading > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  color: #285f9e;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 850;
}

.production-metrics-monthly,
.production-metrics-daily {
  margin-top: 26px;
  border-top: 1px solid #dfe5ef;
  padding-top: 22px;
}

.production-metrics-subheading h3 {
  margin-top: 2px;
  color: #17223b;
  font-size: clamp(20px, 2vw, 26px);
}

.production-metrics-subheading > p {
  max-width: 430px;
  color: #667085;
  font-size: 13px;
  text-align: right;
}

.production-metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.production-metric-summary-card {
  display: flex;
  min-height: 186px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dce4f0;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(155deg, #ffffff 0%, #f6f9fd 100%);
}

.production-metric-summary-card.empty {
  opacity: 0.7;
}

.production-metric-summary-card > div:first-child {
  display: grid;
  gap: 5px;
}

.production-metric-summary-card small,
.production-metric-summary-card span {
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.production-metric-summary-card > div:first-child small {
  color: #315a91;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.production-metric-summary-card strong {
  color: #17223b;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.05;
}

.production-metric-objective-track,
.production-metric-bar-track {
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.production-metric-objective-track {
  height: 8px;
  margin-bottom: 7px;
}

.production-metric-objective-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2c70c9, #43a3db);
}

.production-metric-warning {
  display: block;
  color: #8a5b00 !important;
}

.production-metric-quality-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: #566176;
  font-size: 12px;
  font-weight: 750;
}

.production-metric-quality-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.production-metric-quality-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.production-metric-quality-legend i.confirmed,
.production-metric-bar-track i.confirmed {
  background: #2b9b68;
}

.production-metric-quality-legend i.partial,
.production-metric-bar-track i.partial {
  background: #e2a21a;
}

.production-metrics-station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.production-metric-station-card {
  border: 1px solid #dce4f0;
  border-radius: 16px;
  padding: 17px;
  background: #fff;
}

.production-metric-station-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.production-metric-station-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.production-metric-station-card h4 {
  margin: 0;
  color: #17223b;
  font-size: 18px;
}

.production-metric-station-card header span {
  color: #667085;
  font-size: 11px;
}

.production-metric-station-card header > strong {
  color: #245e9d;
  font-size: 17px;
}

.production-metric-bars {
  display: grid;
  gap: 9px;
}

.production-metric-bar-row {
  display: grid;
  grid-template-columns: 44px minmax(100px, 1fr) 44px;
  align-items: center;
  gap: 9px;
}

.production-metric-bar-row time,
.production-metric-bar-row > strong {
  color: #566176;
  font-size: 11px;
  font-weight: 800;
}

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

.production-metric-bar-track {
  height: 12px;
}

.production-metric-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.production-metric-empty {
  margin: 0;
  color: #7a8496;
  font-size: 13px;
}

.production-metrics-footnote {
  margin-top: 20px;
  border-radius: 12px;
  padding: 13px 15px;
  color: #536177;
  background: #f3f6fa;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .production-station-totals > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .station-total-spacer {
    display: none;
  }

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

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

.archive-table-wrap {
  margin: 0;
  border: 0;
  border-radius: inherit;
}

.archive-day-download-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border-bottom: 1px solid #dfe4ee;
}

.archive-day-download-all h2,
.archive-day-download-all p {
  margin: 0;
}

.archive-day-download-all h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

@media (max-width: 760px) {
  .production-metrics-heading,
  .production-metrics-subheading {
    align-items: stretch;
    flex-direction: column;
  }

  .production-metrics-heading > span {
    align-self: flex-start;
  }

  .production-metrics-subheading > p {
    text-align: left;
  }

  .production-metrics-summary-grid,
  .production-metrics-station-grid {
    grid-template-columns: 1fr;
  }

  .production-metric-station-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .archive-day-download-all {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-day-download-all .button {
    justify-content: center;
  }
}

.archive-table {
  margin: 0;
  min-width: 1240px;
}

.archive-table th {
  background: #f5f7fb;
  color: #475467;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.archive-table td {
  vertical-align: middle;
}

.archive-table td:first-child {
  min-width: 260px;
}

.archive-table td small {
  display: block;
  margin-top: 4px;
  color: #778196;
  font-size: 11px;
}

.archive-station-link {
  display: inline-grid;
  gap: 2px;
  color: #2849c7;
  font-weight: 900;
  text-decoration: none;
}

.archive-station-link:hover {
  color: #18328f;
  text-decoration: underline;
}

.archive-station-link small {
  color: #667085;
  font-weight: 750;
}

.task-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.task-summary-band > div {
  display: grid;
  gap: 8px;
  border-right: 1px solid #e3e7ef;
  padding-right: 16px;
}

.task-summary-band > div:last-child {
  border-right: 0;
}

.task-summary-band span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.task-list-table td:first-child {
  min-width: 58px;
}

.task-list-table td:nth-child(3),
.task-list-table td:nth-child(4),
.task-list-table td:nth-child(6) {
  min-width: 220px;
}

/* External contextual feedback */
.external-feedback-ui [hidden] {
  display: none !important;
}

.external-feedback-hint {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  gap: 1px;
  border: 1px solid #9cabff;
  border-radius: 999px;
  background: #304ec9;
  box-shadow: 0 10px 30px rgb(34 52 120 / 22%);
  padding: 10px 17px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.external-feedback-hint small {
  color: #dfe4ff;
  font-size: 10px;
  font-weight: 700;
}

.external-feedback-context {
  position: fixed;
  z-index: 120;
  width: 278px;
  border: 1px solid #d7deea;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(15 23 42 / 20%);
  padding: 6px;
}

.external-feedback-context button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 11px 12px;
  color: #24324a;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.external-feedback-context button:hover {
  background: #eef1ff;
  color: #2945bb;
}

.external-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgb(15 23 42 / 56%);
  padding: 24px;
}

.external-feedback-modal {
  width: min(590px, 100%);
  border: 1px solid #d7deea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgb(15 23 42 / 30%);
  padding: 26px;
}

.external-feedback-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.external-feedback-modal h2,
.external-feedback-modal header p {
  margin-bottom: 0;
}

.external-feedback-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-size: 24px;
  cursor: pointer;
}

.external-feedback-target {
  margin: 18px 0;
  border-left: 3px solid #536dfe;
  background: #f5f7ff;
  padding: 10px 12px;
  color: #667085;
  font-size: 13px;
}

.external-feedback-target strong {
  color: #24324a;
}

.external-feedback-modal select,
.feedback-review-form select {
  width: 100%;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.external-feedback-help {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.external-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.external-feedback-flash {
  position: fixed;
  top: 86px;
  right: 22px;
  z-index: 170;
  max-width: 420px;
  border: 1px solid #bbdec7;
  border-radius: 9px;
  background: #ecfdf3;
  box-shadow: 0 10px 28px rgb(15 23 42 / 14%);
  padding: 13px 16px;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
}

.external-feedback-flash.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.feedback-modal-open {
  overflow: hidden;
}

/* Private feedback review */
.feedback-review-shell {
  width: min(1180px, calc(100% - 36px));
}

.feedback-review-list {
  display: grid;
  gap: 18px;
}

.feedback-review-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feedback-review-card > header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-review-card time {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.feedback-type,
.feedback-review-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
}

.feedback-type {
  background: #eef2ff;
  color: #3346a8;
}

.feedback-type.mejora {
  background: #f3e8ff;
  color: #7e22ce;
}

.feedback-type.nota {
  background: #e0f2fe;
  color: #075985;
}

.feedback-review-status.pending_validation,
.feedback-review-status.approved_execution {
  background: #fff4d6;
  color: #8a5a00;
}

.feedback-review-status.executed,
.feedback-review-status.approved_improvement {
  background: #dcfce7;
  color: #166534;
}

.feedback-review-status.discarded {
  background: #fee2e2;
  color: #991b1b;
}

.feedback-review-card h2 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.feedback-review-content {
  border-left: 3px solid #536dfe;
  background: #f8f9ff;
  padding: 13px 15px;
  color: #26344b;
  white-space: pre-wrap;
}

.feedback-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 18px 0;
}

.feedback-review-meta div {
  display: grid;
  gap: 3px;
}

.feedback-review-meta dt {
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-review-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.feedback-review-form {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(320px, 1.5fr) auto;
  align-items: end;
  gap: 12px;
  border-top: 1px solid #e3e7ef;
  padding-top: 18px;
}

.feedback-empty-state {
  text-align: center;
}

.archive-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.archive-status.planificado {
  background: #e8ecff;
  color: #3346a8;
}

.archive-status.borrador {
  background: #eaecf0;
  color: #475467;
}

.archive-status.rendido {
  background: #fff0c9;
  color: #825700;
}

.archive-status.cerrado {
  background: #dff5ea;
  color: #176447;
}

.archive-status.ejecutado {
  background: #dcfce7;
  color: #166534;
}

.archive-status.cancelado {
  background: #fee2e2;
  color: #991b1b;
}

.archive-status.cola-prevista {
  background: #ede9fe;
  color: #5b21b6;
}

.task-list-table tr.queued-task-row td {
  background: #faf8ff;
}

@media (max-width: 760px) {
  .calendar-year-grid {
    grid-template-columns: repeat(2, minmax(135px, 1fr));
    min-width: 0;
  }

  .pdf-calendar-view-switch.four-options {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    border-radius: 18px;
  }

  .archive-day-heading-actions {
    width: 100%;
    justify-items: stretch;
  }

  .archive-day-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-day-heading-actions > .button {
    width: 100%;
    text-align: center;
  }

  .production-station-totals > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-archive-heading,
  .archive-day-heading,
  .production-flow-heading,
  .pdf-archive-launcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .production-flow-heading-actions {
    width: 100%;
    justify-items: stretch;
  }

  .production-flow-print-button {
    width: 100%;
  }

  .production-flow-snapshot-switch {
    grid-template-columns: 1fr;
  }

  .production-sector-report-grid {
    grid-template-columns: 1fr;
  }

  .pdf-archive-launcher-actions {
    width: 100%;
    justify-items: stretch;
  }

  .pdf-archive-launcher-actions .button {
    text-align: center;
  }

  .task-page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .task-page-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }

  .task-summary-band {
    grid-template-columns: 1fr;
  }

  .task-summary-band > div {
    border-right: 0;
    border-bottom: 1px solid #e3e7ef;
    padding: 0 0 14px;
  }

  .external-feedback-hint {
    right: 12px;
    bottom: 12px;
  }

  .external-feedback-backdrop {
    align-items: end;
    padding: 10px;
  }

  .external-feedback-modal {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .external-feedback-actions,
  .feedback-review-form {
    grid-template-columns: 1fr;
  }

  .external-feedback-actions {
    display: grid;
  }

  .pdf-archive {
    overflow-x: auto;
  }

  .pdf-calendar-toolbar,
  .pdf-calendar-mes,
  .pdf-calendar-semana {
    width: 735px;
  }

  .pdf-calendar-dia,
  .pdf-archive-view-dia .pdf-calendar-toolbar {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 7mm;
  }

  body.print-production-flow {
    color: #111827;
    background: #fff;
  }

  body.print-production-flow > .topbar,
  body.print-production-flow > footer,
  body.print-production-flow .external-feedback-hint,
  body.print-production-flow .external-feedback-backdrop,
  body.print-production-flow .archive-day-shell > :not(.production-flow-card),
  body.print-production-flow .production-flow-heading,
  body.print-production-flow .production-flow-snapshot-switch,
  body.print-production-flow .production-flow-note,
  body.print-production-flow .production-sector-report {
    display: none !important;
  }

  body.print-production-flow main,
  body.print-production-flow .archive-day-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.print-production-flow .process-doc.production-flow-card {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #fff;
    box-shadow: none;
  }

  body.print-production-flow .production-flow-print-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4mm;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 2mm;
    font-size: 10pt;
  }

  body.print-production-flow .production-flow-print-title span {
    color: #475467;
    font-size: 8pt;
  }

  body.print-production-flow .production-flow-legend,
  body.print-production-flow .production-result-legend,
  body.print-production-flow .order-deadline-legend,
  body.print-production-flow .id-traceability-legend,
  body.print-production-flow .post-production-explainer {
    margin-bottom: 2mm;
    gap: 2mm 4mm;
    font-size: 6.5pt;
  }

  body.print-production-flow .production-flow-legend i,
  body.print-production-flow .production-result-legend i {
    width: 3mm;
    height: 3mm;
  }

  body.print-production-flow .production-flow-wrap {
    overflow: visible;
    border: 1px solid #98a2b3;
  }

  body.print-production-flow .production-flow-table.transposed {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    break-inside: avoid;
  }

  body.print-production-flow .production-flow-table.transposed col.production-flow-station-column {
    width: 13%;
  }

  body.print-production-flow .production-flow-table.transposed col.production-flow-work-order-column {
    width: auto;
  }

  body.print-production-flow .production-flow-table.transposed col.production-flow-total-column {
    width: 14%;
  }

  body.print-production-flow .production-flow-table.transposed th,
  body.print-production-flow .production-flow-table.transposed td {
    position: static;
    min-width: 0;
    height: 12mm;
    padding: 1.5mm 1mm;
    font-size: 6pt;
    line-height: 1.15;
  }

  body.print-production-flow .production-flow-table.transposed thead th {
    height: 13mm;
    font-size: 6pt;
  }

  body.print-production-flow .production-flow-table.transposed .production-flow-station-heading,
  body.print-production-flow .production-flow-table.transposed .production-flow-station-total,
  body.print-production-flow .production-flow-table.transposed .production-flow-total-heading {
    min-width: 0;
    font-size: 6.5pt;
  }

  body.print-production-flow .production-flow-cell strong {
    padding: 1.2mm;
    font-size: 6.5pt;
  }

  body.print-production-flow .production-flow-origin,
  body.print-production-flow .order-deadline-date,
  body.print-production-flow .id-traceability-detail,
  body.print-production-flow .station-total-status {
    margin-top: 1mm;
    font-size: 5pt;
  }

  body.print-production-flow .production-flow-ot {
    gap: 1mm;
  }

  body.print-production-flow .order-deadline-flag {
    font-size: 8pt !important;
  }

  body.print-production-flow .id-traceability-flag {
    padding: 0.5mm;
    font-size: 5pt;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(13, 18, 24, 0.76);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 28px);
}

nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.logout-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-launcher {
  position: relative;
}

.app-launcher-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  list-style: none;
}

.app-launcher-button::-webkit-details-marker {
  display: none;
}

.app-launcher-button:hover,
.app-launcher[open] .app-launcher-button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.launcher-dots {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 4px;
}

.launcher-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
}

.app-launcher-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(11, 21, 32, 0.14);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(11, 21, 32, 0.22);
}

.app-launcher-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.app-launcher-heading strong {
  font-size: 16px;
}

.app-launcher-heading a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.launcher-app {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 92px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 6px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.launcher-app:hover,
.launcher-app.active {
  border-color: #bad4d4;
  background: #f2f8f7;
}

.launcher-app > span:not(.app-icon) {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.launcher-app small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.app-icon,
.app-spotlight-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.app-color-0 {
  background: #156b6b;
}

.app-color-1 {
  background: #c9604a;
}

.app-color-2 {
  background: #3275a8;
}

.app-color-3 {
  background: #6b5fb5;
}

.app-color-4 {
  color: #17202a;
  background: #c99a31;
}

.app-color-5 {
  background: #2f6f4f;
}

.app-color-6 {
  background: #8f5b2d;
}

.app-color-7 {
  background: #8a4f7d;
}

.app-color-8 {
  background: #5f6b2f;
}

.app-color-9 {
  background: #3c6f8f;
}

.app-color-10 {
  background: #5a6b7d;
}

.app-color-11 {
  background: #7d634f;
}

.shared-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.shared-badge.dark {
  border-color: var(--line);
  color: var(--teal-dark);
  background: #fff;
}

.shared-logo-strip {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  min-width: 0;
}

.shared-logo-strip img {
  display: block;
  max-width: 100%;
  height: 28px;
  object-fit: contain;
}

.shared-logo-strip img:first-child {
  width: 96px;
}

.shared-logo-strip img:last-child {
  width: 70px;
}

.shared-logo-strip span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: 96px clamp(18px, 5vw, 72px) 56px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.88), rgba(8, 13, 18, 0.58) 46%, rgba(8, 13, 18, 0.16)),
    url("assets/hero-workspace.png") center / cover no-repeat;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: 0;
}

.lede {
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions,
.split-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.small {
  min-height: 36px;
  padding: 8px 12px;
}

.primary {
  background: var(--teal);
  color: #fff;
}

.primary:hover {
  background: var(--teal-dark);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

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

.project-card {
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.project-card strong {
  font-size: 24px;
  line-height: 1.15;
}

.project-card em {
  align-self: end;
  width: max-content;
  border: 1px solid #bad4d4;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: #eef8f7;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card span:last-child,
.muted,
.admin-heading p,
.access-row p,
.access-meta {
  color: var(--muted);
}

.project-kicker {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.muted-card {
  background: #fdfefe;
}

.status-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 40px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.status-band p {
  color: var(--muted);
  margin-bottom: 0;
}

.auth-shell,
.admin-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 112px 0 56px;
}

.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
}

.auth-panel,
.tool-panel,
.list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.auth-panel {
  width: min(460px, 100%);
  padding: 28px;
}

.auth-panel h1,
.admin-heading h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.form-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.notice,
.error {
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
}

.notice {
  color: var(--success);
  background: #eaf5ef;
}

.error {
  color: var(--danger);
  background: #fdecec;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

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

.button.light {
  border-color: var(--line);
  color: var(--teal-dark);
  background: #fff;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.28fr);
  gap: 18px;
  align-items: start;
}

.section-shortcuts,
.client-projects-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

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

.section-shortcut,
.client-project-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}

.section-shortcut:hover,
.client-project-card:hover {
  border-color: #bad4d4;
  background: #f6fbfb;
}

.section-shortcut span,
.client-project-card span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-shortcut strong,
.client-project-card strong {
  font-size: 26px;
  line-height: 1.15;
}

.section-shortcut p,
.client-project-card p {
  margin: 0;
  color: var(--muted);
}

.client-project-card {
  min-height: 238px;
}

.client-project-card div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  align-self: end;
}

.client-project-card em {
  border: 1px solid #bad4d4;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--teal-dark);
  background: #eef8f7;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.client-project-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tool-panel,
.list-panel {
  padding: 22px;
}

.split-fields > * {
  flex: 1 1 160px;
}

.check-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding-top: 24px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.access-list {
  display: grid;
  gap: 12px;
}

.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.access-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.access-row strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 20px;
}

.access-row p {
  margin-bottom: 0;
}

.access-meta {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.access-meta a {
  color: var(--teal-dark);
  font-weight: 800;
}

.app-shell {
  width: min(1240px, calc(100% - 36px));
}

.app-spotlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid #bad4d4;
  border-radius: 8px;
  padding: 20px;
  background: #f6fbfb;
}

.app-spotlight-icon {
  width: 60px;
  height: 60px;
  font-size: 18px;
}

.app-spotlight h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.app-spotlight p {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--muted);
}

.app-meta-row,
.app-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.app-spotlight-actions {
  justify-content: flex-end;
}

.app-spotlight-actions form {
  margin: 0;
}

.static-action {
  cursor: default;
}

.app-product-panel,
.workspace-panel,
.account-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.app-product-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
}

.workspace-panel {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.workspace-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.app-product-panel > *,
.account-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.app-feature-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

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

.account-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.account-list div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.account-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 800;
}

.app-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.app-groups {
  display: grid;
  gap: 18px;
}

.app-group {
  display: grid;
  gap: 12px;
}

.app-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-group-heading h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.app-group-heading span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  min-height: 196px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}

.app-card:hover,
.app-card.active {
  border-color: #bad4d4;
  background: #f6fbfb;
}

.app-card .app-icon {
  grid-row: span 2;
}

.app-card strong {
  font-size: 22px;
  line-height: 1.12;
}

.app-card p,
.app-card small {
  grid-column: 1 / -1;
}

.app-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.app-card small {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.process-shell {
  width: min(1320px, calc(100% - 36px));
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.process-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.process-overview-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}

.process-overview-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.process-overview-card strong {
  align-self: end;
  font-size: 34px;
  line-height: 1;
}

.process-overview-card small {
  color: var(--muted);
  font-size: 16px;
}

.product-process-card {
  border-color: #bad4d4;
  background: #f3fbfa;
}

.product-process-card:hover {
  background: #eef8f7;
}

.payment-process-card {
  border-color: #b9ccea;
  background: #f4f7fd;
}

.payment-process-card:hover {
  background: #edf3fc;
}

.process-area-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.process-area-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: end;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}

.process-area-card:hover {
  border-color: #bad4d4;
  background: #f6fbfb;
}

.process-area-card.active {
  border-color: #94c4c2;
  background: #eef8f7;
}

.process-area-card span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.process-area-card strong {
  font-size: 30px;
  line-height: 1;
}

.process-area-card small {
  justify-self: end;
  color: var(--muted);
  font-weight: 800;
}

.client-project-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.process-index,
.process-doc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
}

.process-index {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.process-index h2 {
  font-size: 24px;
}

.process-area-group {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.process-area-filter {
  display: grid;
  gap: 8px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-area-filter h3 {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.area-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.area-filter-link:hover,
.area-filter-link.active {
  border-color: #bad4d4;
  background: #eef8f7;
}

.area-filter-link em {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.process-area-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.process-area-heading h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.process-area-heading a {
  color: inherit;
  text-decoration: none;
}

.process-area-heading a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.process-area-heading span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #eef8f7;
  font-size: 12px;
  font-weight: 900;
}

.process-area-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.process-link {
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
}

.project-doc-link {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.project-doc-link strong,
.project-doc-link span:last-child {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.doc-link-number,
.doc-section-number {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #f8fbfb;
  font-weight: 900;
}

.doc-link-number {
  grid-row: span 2;
  min-width: 34px;
  height: 34px;
  font-size: 12px;
}

.doc-section-number {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  font-size: 16px;
}

.process-link.active,
.process-link:hover {
  border-color: #bad4d4;
  background: #eef8f7;
}

.process-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.process-link em {
  width: max-content;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--teal-dark);
  background: #eef8f7;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.process-reader {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.process-doc {
  padding: clamp(18px, 3vw, 34px);
  scroll-margin-top: 96px;
}

.process-doc-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.process-doc-heading h2 {
  margin-bottom: 0;
}

.process-doc-heading a {
  color: var(--teal-dark);
  font-weight: 800;
  white-space: nowrap;
}

.payment-intake-card {
  border-color: #a9c8c7;
  background: linear-gradient(180deg, #f5fbfa 0%, #ffffff 42%);
}

.payment-intake-heading,
.payment-cases-heading,
.payment-case-meta,
.payment-intake-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.payment-intake-heading h2,
.payment-cases-heading h2 {
  margin-bottom: 6px;
}

.payment-intake-heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.payment-intake-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
  flex: 0 0 auto;
}

.payment-intake-summary span {
  display: grid;
  gap: 3px;
  min-width: 116px;
  border: 1px solid #c9dfde;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-intake-summary strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.payment-intake-flash {
  margin: 18px 0 0;
  border: 1px solid #a9d7c6;
  border-radius: 8px;
  padding: 12px 14px;
  color: #155e4b;
  background: #ecf9f3;
  font-weight: 800;
}

.payment-intake-flash.error {
  border-color: #e4b5b5;
  color: #8a2626;
  background: #fff1f1;
}

.payment-intake-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.payment-intake-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.payment-file-field {
  border: 1px dashed #91bdbc;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.payment-file-field input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  color: var(--ink);
  background: #f9fbfb;
}

.payment-file-field small,
.payment-intake-action p,
.payment-cases-heading > span,
.payment-case-meta span,
.payment-cases-empty p {
  color: var(--muted);
}

.payment-intake-form textarea {
  resize: vertical;
}

.payment-intake-action {
  align-items: center;
}

.payment-intake-action p {
  margin: 0;
  font-size: 13px;
}

.payment-cases-heading {
  align-items: center;
  margin-bottom: 16px;
}

.payment-cases-heading > span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3f6f6;
  font-size: 12px;
  font-weight: 900;
}

.payment-case-list {
  display: grid;
  gap: 12px;
}

.payment-case-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfc;
}

.payment-case-meta > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment-case-meta strong {
  overflow-wrap: anywhere;
}

.payment-case-meta span {
  font-size: 12px;
}

.payment-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7a4c00 !important;
  background: #fff2cf;
  font-size: 11px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-status-registrado {
  color: #155e4b !important;
  background: #def3e9;
}

.payment-status-listo_para_registrar {
  color: #155e4b !important;
  background: #def3e9;
}

.payment-status-en_proceso {
  color: #164e83 !important;
  background: #e3effb;
}

.payment-status-requiere_datos {
  color: #8a2626 !important;
  background: #fde7e7;
}

.payment-status-descartado {
  color: #4d5961 !important;
  background: #e8ecee;
}

.payment-case-note,
.payment-case-result {
  margin: 0;
}

.payment-registration-draft {
  display: grid;
  gap: 14px;
  border: 1px solid #a9c8c7;
  border-radius: 8px;
  padding: 16px;
  background: #f4faf9;
}

.payment-registration-draft-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.payment-registration-draft-heading > div {
  display: grid;
  gap: 3px;
}

.payment-registration-draft-heading span,
.payment-registration-draft dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-registration-draft-heading > strong {
  color: var(--teal-dark);
  font-size: 22px;
  white-space: nowrap;
}

.payment-registration-draft dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.payment-registration-draft dl > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-top: 1px solid #d4e5e3;
  padding-top: 8px;
}

.payment-registration-draft dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.payment-registration-draft > p {
  margin: 0;
  color: #405154;
  font-size: 13px;
}

.payment-registration-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid #c9dfde;
  padding-top: 14px;
}

.payment-registration-form label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #34474b;
  font-size: 13px;
  font-weight: 700;
}

.payment-notification-option {
  display: grid;
  gap: 5px;
  border: 1px solid #c9dfde;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
}

.payment-notification-option small,
.payment-notification-unavailable {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.payment-notification-option small {
  padding-left: 27px;
}

.payment-notification-unavailable {
  border-radius: 7px;
  padding: 10px 12px;
  background: #eef2f2;
}

.payment-registration-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.payment-registration-form .button {
  width: max-content;
}

.payment-registration-complete,
.payment-registration-waiting {
  border-radius: 7px;
  padding: 10px 12px;
  font-weight: 800;
}

.payment-registration-complete {
  width: max-content;
  color: #155e4b;
  background: #def3e9;
}

.payment-registration-waiting {
  display: grid;
  gap: 3px;
  color: #5d4a18;
  background: #fff7dc;
}

.payment-registration-waiting span,
.payment-registration-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.payment-registration-error {
  margin: 0;
  border-left: 3px solid #d87a7a;
  padding: 8px 10px;
  color: #8a2626;
  background: #fff3f3;
}

.payment-case-note {
  border-left: 3px solid #bad4d4;
  padding-left: 10px;
  color: #34474b;
}

.payment-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.payment-file-list a {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.payment-file-list a:hover {
  border-color: #94c4c2;
  background: #f3faf9;
}

.payment-file-list span {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.payment-file-list small {
  color: var(--muted);
}

.payment-cases-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
}

.payment-cases-empty p {
  margin: 5px 0 0;
}

.doc-disclosure {
  display: grid;
}

.doc-disclosure-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.doc-disclosure-summary::-webkit-details-marker {
  display: none;
}

.doc-disclosure-summary > div {
  min-width: 0;
}

.doc-disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.doc-disclosure-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-disclosure-state::before {
  content: "Ocultar";
}

.doc-disclosure:not([open]) .doc-disclosure-state::before,
.markdown-subsection:not([open]) .doc-disclosure-state::before {
  content: "Mostrar";
}

.doc-disclosure-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #f8fbfb;
}

.doc-disclosure-icon::before,
.doc-disclosure-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.doc-disclosure-icon::after {
  transform: rotate(90deg);
}

.doc-disclosure[open] .doc-disclosure-icon::after,
.markdown-subsection[open] .doc-disclosure-icon::after {
  transform: rotate(0);
}

.doc-disclosure:not([open]) .doc-disclosure-summary {
  margin-bottom: 0;
}

.doc-disclosure-content {
  padding-top: 0;
}

.markdown-subsection {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.markdown-subsection:first-child {
  border-top: 0;
  padding-top: 0;
}

.markdown-subsection-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.markdown-subsection-summary::-webkit-details-marker {
  display: none;
}

.markdown-subsection-summary h3,
.markdown-subsection-summary h4 {
  margin: 0;
}

.markdown-subsection-summary .doc-disclosure-toggle {
  margin-top: 1px;
}

.markdown-subsection-content {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.markdown-subsection:not([open]) .markdown-subsection-content {
  display: none;
}

.doc-summary {
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
}

.project-diagram {
  margin: 22px 0;
  scroll-margin-top: 96px;
}

.project-diagram img {
  display: block;
  width: 100%;
  max-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.project-diagram figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.process-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 980px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fbfb;
}

.process-progress div {
  display: grid;
  gap: 2px;
}

.process-progress span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.process-progress strong {
  color: var(--teal-dark);
}

.process-progress progress {
  width: min(240px, 100%);
  height: 12px;
  accent-color: var(--teal);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.asset-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.asset-card:hover {
  border-color: #bad4d4;
  background: #f6fbfb;
}

.asset-card span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.asset-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.asset-card em {
  width: max-content;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--teal-dark);
  background: #eef8f7;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.salary-control {
  border-color: #b9d8d5;
  background: linear-gradient(180deg, #f6fbfa 0%, #ffffff 34%);
}

.salary-control-page {
  width: min(1320px, calc(100% - 36px));
}

.salary-control-reader {
  max-width: none;
}

.salary-control-heading,
.salary-current-layout,
.salary-calendar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.salary-control-heading {
  margin-bottom: 18px;
}

.salary-control-heading h2,
.salary-control-heading p,
.salary-calendar-heading h3,
.salary-calendar-heading p {
  margin-bottom: 0;
}

.salary-control-heading > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: #755900;
  background: #fff4cc;
  font-size: 12px;
  font-weight: 900;
}

.salary-flash {
  margin: 0 0 18px;
  border: 1px solid #a9d7c6;
  border-radius: 8px;
  padding: 12px 14px;
  color: #155e4b;
  background: #ecf9f3;
  font-weight: 800;
}

.salary-flash.error {
  border-color: #e4b5b5;
  color: #8a2626;
  background: #fff1f1;
}

.salary-current-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  margin-top: 14px;
}

.salary-current-panel,
.salary-upload-form {
  border: 1px solid #d7e3e4;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.salary-current-panel h3,
.salary-upload-form h3 {
  margin-bottom: 12px;
}

.salary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 8px;
}

.salary-metrics span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  padding: 10px;
  background: #f9fbfb;
}

.salary-metrics strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.salary-metrics small,
.salary-source-note,
.salary-calendar-heading p,
.salary-month p {
  color: var(--muted);
}

.salary-metrics small {
  font-size: 12px;
  font-weight: 850;
}

.salary-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.salary-source-note {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 750;
}

.salary-upload-form {
  display: grid;
  gap: 12px;
}

.salary-upload-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

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

.salary-upload-form input,
.salary-upload-form select,
.salary-upload-form textarea {
  width: 100%;
}

.salary-upload-form textarea {
  resize: vertical;
}

.salary-file-field {
  display: grid;
  gap: 6px;
  border: 1px dashed #94bfbd;
  border-radius: 8px;
  padding: 12px;
  background: #f9fcfc;
}

.salary-file-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.salary-leadership {
  margin-top: 24px;
  border: 1px solid #d7e3e4;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.salary-leadership-heading,
.salary-leadership-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.salary-leadership-heading h3,
.salary-leadership-heading p,
.salary-leadership-card h4 {
  margin-bottom: 0;
}

.salary-leadership-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  margin: 0;
  flex: 0 0 min(380px, 100%);
}

.salary-leadership-summary div {
  display: grid;
  gap: 3px;
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  padding: 10px;
  background: #f9fbfb;
}

.salary-leadership-summary dt,
.salary-leadership-totals small,
.salary-leadership-month small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-leadership-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.salary-leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.salary-leadership-card {
  display: grid;
  gap: 14px;
  border: 1px solid #e1e7ec;
  border-radius: 8px;
  padding: 14px;
  background: #fcfdfd;
}

.salary-leadership-card header small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

.salary-leadership-card header > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  color: #825700;
  background: #fff0c9;
  font-size: 12px;
  font-weight: 900;
}

.salary-leadership-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.salary-leadership-totals span {
  display: grid;
  gap: 3px;
  border-radius: 7px;
  padding: 10px;
  background: #f4f7f8;
}

.salary-leadership-totals strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.salary-leadership-months {
  display: grid;
  gap: 8px;
}

.salary-leadership-month {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.salary-leadership-month > span {
  color: #53606f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-leadership-bars {
  display: grid;
  gap: 4px;
}

.salary-leadership-bars label {
  display: grid;
  grid-template-columns: 42px minmax(72px, 1fr) minmax(86px, auto);
  gap: 8px;
  align-items: center;
}

.salary-leadership-bars i {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #edf1f2;
  overflow: hidden;
}

.salary-leadership-bars i::before {
  content: "";
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.salary-leadership-bars label:last-child i::before {
  background: var(--coral);
}

.salary-leadership-bars strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.salary-leadership-month.missing {
  opacity: 0.62;
}

.salary-leadership-total-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.salary-leadership-total-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e1e7ec;
  border-radius: 8px;
  padding: 12px;
  background: #fcfdfd;
}

.salary-leadership-total-card header,
.salary-leadership-month-card header,
.salary-leadership-person-name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.salary-leadership-total-card header strong,
.salary-leadership-person-name strong {
  min-width: 0;
  color: var(--ink);
  line-height: 1.15;
}

.salary-leadership-total-card header span,
.salary-leadership-person-name span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #825700;
  background: #fff0c9;
  font-size: 11px;
  font-weight: 900;
}

.salary-leadership-total-card dl,
.salary-leadership-month-card header dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.salary-leadership-total-card dl div,
.salary-leadership-month-card header dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.salary-leadership-total-card dt,
.salary-leadership-month-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-leadership-total-card dd,
.salary-leadership-month-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.salary-leadership-month-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.salary-leadership-month-card {
  display: grid;
  gap: 12px;
  border: 1px solid #dce7e8;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.salary-leadership-month-card h4 {
  margin-bottom: 0;
}

.salary-leadership-month-card header small {
  color: var(--muted);
  font-weight: 800;
}

.salary-leadership-people {
  display: grid;
  gap: 10px;
}

.salary-leadership-person {
  display: grid;
  gap: 6px;
  border-top: 1px solid #edf1f2;
  padding-top: 10px;
}

.salary-leadership-person:first-child {
  border-top: 0;
  padding-top: 0;
}

.salary-leadership-person.missing {
  opacity: 0.62;
}

.salary-leadership-matrix-wrap {
  margin-top: 16px;
  border: 1px solid #dce7e8;
  border-radius: 8px;
  background: #fff;
  overflow-x: auto;
}

.salary-leadership-matrix {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
}

.salary-leadership-matrix caption {
  padding: 12px 14px;
  border-bottom: 1px solid #dce7e8;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}

.salary-leadership-matrix th,
.salary-leadership-matrix td {
  border-right: 1px solid #edf1f2;
  border-bottom: 1px solid #edf1f2;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.salary-leadership-matrix th:last-child,
.salary-leadership-matrix td:last-child {
  border-right: 0;
}

.salary-leadership-matrix tr:last-child th,
.salary-leadership-matrix tr:last-child td {
  border-bottom: 0;
}

.salary-leadership-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f8fafb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-leadership-matrix thead th:first-child,
.salary-leadership-matrix tbody th {
  position: sticky;
  left: 0;
}

.salary-leadership-matrix thead th:first-child {
  z-index: 3;
}

.salary-leadership-matrix tbody th {
  z-index: 2;
  width: 92px;
  background: #fbfcfd;
}

.salary-leadership-matrix tbody th strong,
.salary-leadership-matrix tbody th small {
  display: block;
}

.salary-leadership-matrix tbody th small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.salary-leadership-matrix td {
  min-width: 176px;
}

.salary-leadership-matrix td.missing {
  opacity: 0.62;
}

.salary-table-metric {
  display: grid;
  grid-template-columns: 44px minmax(64px, 1fr) minmax(82px, auto);
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.salary-table-metric small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-table-metric i {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #edf1f2;
  overflow: hidden;
}

.salary-table-metric i::before {
  content: "";
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.salary-table-metric.cost i::before {
  background: var(--coral);
}

.salary-table-metric strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.salary-leadership-matrix td em {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 7px;
  color: #825700;
  background: #fff0c9;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.salary-calendar-heading {
  align-items: center;
  margin-top: 24px;
}

.salary-year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.salary-year-tabs a {
  border: 1px solid #d6ddea;
  border-radius: 999px;
  padding: 7px 12px;
  color: #42505c;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.salary-year-tabs a.active {
  border-color: #87b8b6;
  color: var(--teal-dark);
  background: #eaf6f5;
}

.salary-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.salary-month {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 156px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.salary-month header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.salary-month header span {
  color: #53606f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-month header strong {
  border-radius: 999px;
  padding: 4px 8px;
  color: #475467;
  background: #eef1f4;
  font-size: 11px;
  font-weight: 900;
}

.salary-month p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.salary-month dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.salary-month dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.salary-month dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-month dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.salary-month-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.salary-month-actions a {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--teal-dark);
  background: #edf7f6;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.salary-month-validada {
  border-color: #add4c4;
  background: #f4fbf8;
}

.salary-month-validada header strong {
  color: #176447;
  background: #dff5ea;
}

.salary-month-cargada {
  border-color: #d9c07c;
  background: #fffaf0;
}

.salary-month-cargada header strong {
  color: #825700;
  background: #fff0c9;
}

.salary-month-pendiente {
  border-color: #dcb3b3;
  background: #fff7f7;
}

.salary-month-pendiente header strong {
  color: #8a2626;
  background: #fde7e7;
}

.salary-month-futura {
  background: #f8fafc;
}

.salary-month.latest {
  box-shadow: inset 0 0 0 2px #5fa7a3;
}

.markdown-body {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: 18px;
}

.markdown-body h2 {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 28px;
}

.markdown-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.markdown-body h3 {
  font-size: 22px;
}

.markdown-body h4 {
  font-size: 18px;
}

.markdown-body .markdown-subsection-summary h3,
.markdown-body .markdown-subsection-summary h4 {
  margin: 0;
}

.markdown-body p,
.markdown-body ul {
  margin: 0;
}

.markdown-body ul {
  padding-left: 22px;
}

.markdown-body li + li {
  margin-top: 6px;
}

.markdown-body .task-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.markdown-body .task-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
}

.task-box {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid #b8c4cf;
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.task-item.done .task-box {
  border-color: var(--success);
  background: var(--success);
}

.task-item.pending .task-box {
  background: #fff;
}

.markdown-body code {
  border-radius: 6px;
  padding: 2px 5px;
  color: #0d4f50;
  background: #eef8f7;
  font-size: 0.92em;
}

.markdown-body pre {
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #101820;
}

.markdown-body pre code {
  padding: 0;
  color: #f5f8fb;
  background: transparent;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.markdown-body th {
  color: var(--teal-dark);
  background: #f2f8f7;
  font-size: 14px;
  text-transform: uppercase;
}

.markdown-body a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration-color: rgba(13, 79, 80, 0.32);
  text-underline-offset: 3px;
}

.shared-document-page {
  --quote-blue: #2f75b5;
  --quote-dark-blue: #1f4e79;
  --quote-soft: #f1f4f8;
  --quote-line: #c8d2e2;
  overflow-x: hidden;
  background: #ffffff;
}

.shared-document-page .topbar {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--quote-line);
  backdrop-filter: none;
}

.shared-document-page .brand {
  color: var(--ink);
}

.shared-document-page .shared-badge {
  border-color: var(--quote-line);
  color: var(--quote-dark-blue);
  background: var(--quote-soft);
}

.shared-document-page main,
.shared-document-page footer {
  background: #ffffff;
}

.shared-document-page .process-shell {
  width: min(1440px, calc(100% - 36px));
}

.shared-document-page .admin-heading {
  align-items: start;
  border-bottom: 2px solid var(--quote-blue);
  padding-bottom: 18px;
}

.shared-document-page .admin-heading h1 {
  max-width: 960px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
}

.shared-document-page .eyebrow,
.shared-document-page .project-kicker,
.shared-document-page .asset-card span {
  color: var(--quote-blue);
}

.shared-document-page .shared-badge.dark {
  border-color: var(--quote-line);
  color: var(--quote-dark-blue);
  background: var(--quote-soft);
}

.shared-document-page .client-project-layout {
  grid-template-columns: minmax(260px, 0.28fr) minmax(0, 1fr);
  gap: 22px;
}

.shared-document-page .process-index,
.shared-document-page .process-doc,
.shared-document-page .asset-card,
.shared-document-page .table-wrap,
.shared-document-page .project-diagram img {
  border-color: var(--quote-line);
  box-shadow: none;
}

.shared-document-page .process-index {
  top: 88px;
  background: #ffffff;
}

.shared-document-page .process-index h2 {
  color: var(--quote-dark-blue);
}

.shared-document-page .process-link {
  border-radius: 8px;
}

.shared-document-page .process-link:hover,
.shared-document-page .process-link.active {
  border-color: var(--quote-blue);
  background: var(--quote-soft);
}

.shared-document-page .doc-link-number,
.shared-document-page .doc-section-number,
.shared-document-page .doc-disclosure-icon {
  border-color: var(--quote-line);
  color: var(--quote-dark-blue);
  background: var(--quote-soft);
}

.shared-document-page .doc-disclosure-state {
  color: var(--quote-dark-blue);
}

.shared-document-page .process-doc {
  background: #ffffff;
}

.shared-document-page .process-doc-heading {
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--quote-line);
}

.shared-document-page .process-doc-heading h2 {
  color: var(--quote-dark-blue);
}

.shared-document-page .doc-summary {
  color: var(--muted);
}

.shared-document-page .markdown-body h2,
.shared-document-page .markdown-body h3,
.shared-document-page .markdown-body h4 {
  color: var(--quote-dark-blue);
}

.shared-document-page .markdown-body h2 {
  border-top-color: var(--quote-line);
}

.shared-document-page .markdown-body th {
  color: var(--quote-dark-blue);
  background: var(--quote-soft);
}

.shared-document-page .markdown-body code {
  color: var(--quote-dark-blue);
  background: var(--quote-soft);
}

.shared-document-page .markdown-body a {
  color: var(--quote-dark-blue);
  text-decoration-color: rgba(47, 117, 181, 0.35);
}

@media (max-width: 820px) {
  .shared-document-page .client-project-layout {
    grid-template-columns: 1fr;
  }

  .shared-document-page .process-index {
    position: static;
  }

  .shared-document-page .admin-heading {
    flex-direction: column;
    align-items: start;
  }

  .shared-document-page .admin-shell {
    padding-top: 28px;
  }

  .shared-document-page .topbar {
    position: sticky;
    grid-template-columns: 1fr auto;
  }

  .shared-document-page .brand {
    grid-column: 1;
  }

  .shared-document-page .shared-logo-strip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .shared-document-page .shared-logo-strip img:first-child {
    width: 88px;
  }

  .shared-document-page .shared-logo-strip img:last-child {
    width: 62px;
  }

  .shared-document-page nav {
    grid-column: 2;
    grid-row: 1;
    width: auto;
  }

  .shared-document-page .doc-disclosure-toggle {
    gap: 6px;
  }

  .shared-document-page .doc-disclosure-state {
    display: none;
  }
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

.production-returns-shell {
  display: grid;
  gap: 24px;
}

.production-return-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.production-return-upload-column {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.production-return-upload-card {
  position: static;
}

.production-return-bulk-card {
  border-color: #9cc7c2;
  background: linear-gradient(155deg, #ffffff 0%, #f2faf8 100%);
}

.production-return-bulk-button {
  width: 100%;
  justify-content: center;
}

.production-return-single-card {
  box-shadow: none;
}

.production-return-upload-card header h2,
.production-return-history-heading h2,
.production-return-day h3 {
  margin: 0;
}

.production-return-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.production-return-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

.production-return-form input,
.production-return-form select,
.production-return-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.production-return-form textarea {
  resize: vertical;
}

.production-return-file-field {
  padding: 16px;
  border: 1px dashed #8cafaf;
  border-radius: 14px;
  background: #f3f9f8;
}

.production-return-file-field input {
  padding: 8px;
  background: transparent;
}

.production-return-form small,
.production-return-image small {
  color: var(--muted);
  font-weight: 500;
}

.production-return-flash {
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid #b9d9d4;
  background: #edf8f6;
  color: #165e59;
  font-weight: 700;
}

.production-return-flash.error {
  border-color: #e6b8af;
  background: #fff1ee;
  color: #923f31;
}

.production-return-history {
  display: grid;
  gap: 18px;
}

.production-return-history-heading,
.production-return-day > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.production-return-history-heading {
  padding: 4px 2px;
}

.production-return-history-heading > span {
  color: var(--muted);
  font-weight: 700;
}

.production-return-day,
.production-return-empty {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 42, 50, 0.05);
}

.production-return-status {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.production-return-status.pending {
  background: #fff3d8;
  color: #825700;
}

.production-return-status.complete {
  background: #e6f6ef;
  color: #176447;
}

.production-return-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.production-return-image {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
  background: #fbfcfd;
}

.production-return-image:hover {
  border-color: #78aaa5;
  transform: translateY(-1px);
}

.production-return-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 9px;
  background: #e9eeee;
}

.production-return-image span {
  font-weight: 800;
}

.production-return-image.unclassified {
  border-color: #dfc98d;
  background: #fffbef;
}

.production-return-classification-notice,
.production-return-completeness {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
}

.production-return-classification-notice {
  border: 1px solid #ead7a4;
  background: #fff9e8;
  color: #715215;
}

.production-return-classification-notice span,
.production-return-completeness p {
  margin: 0;
  color: var(--muted);
}

.production-return-completeness {
  border: 1px solid var(--line);
  background: #f8fafb;
}

.production-return-completeness p.complete {
  color: #176447;
  font-weight: 700;
}

.production-return-analysis,
.production-return-pending-copy {
  margin-top: 18px;
}

.production-return-analysis summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
}

.production-return-pending-copy,
.production-return-empty p {
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .topbar {
    position: absolute;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .logout-form {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .app-launcher-panel {
    left: 0;
    right: auto;
  }

  .hero {
    min-height: 90vh;
    padding-top: 152px;
    background:
      linear-gradient(90deg, rgba(8, 13, 18, 0.9), rgba(8, 13, 18, 0.64)),
      url("assets/hero-workspace.png") center / cover no-repeat;
  }

  .project-grid,
  .status-band,
  .admin-grid,
  .section-shortcuts,
  .client-projects-grid,
  .app-overview,
  .app-card-grid,
  .app-spotlight,
  .app-product-panel,
  .workspace-panel,
  .account-grid,
  .process-overview,
  .process-area-overview,
  .process-layout,
  .client-project-layout,
  .asset-grid,
  .salary-current-layout,
  .salary-month-grid,
  .salary-leadership-grid,
  .salary-leadership-total-grid,
  .salary-leadership-month-grid,
  .access-row {
    grid-template-columns: 1fr;
  }

  .production-return-layout {
    grid-template-columns: 1fr;
  }

  .day-attachments-heading,
  .day-attachments-form {
    grid-template-columns: 1fr;
  }

  .day-attachments-heading {
    flex-direction: column;
  }

  .production-return-upload-column {
    position: static;
  }

  .production-return-history-heading,
  .production-return-day > header {
    align-items: flex-start;
  }

  .process-index {
    position: static;
  }

  .process-doc-heading,
  .salary-control-heading,
  .salary-calendar-heading,
  .salary-leadership-heading,
  .salary-leadership-card header,
  .salary-leadership-month-card header,
  .payment-intake-heading,
  .payment-cases-heading,
  .payment-case-meta,
  .payment-intake-action,
  .admin-heading,
  footer {
    flex-direction: column;
    align-items: start;
  }

  .payment-intake-summary {
    width: 100%;
  }

  .payment-registration-draft dl {
    grid-template-columns: 1fr;
  }

  .payment-registration-draft-heading {
    flex-direction: column;
  }

  .salary-metrics,
  .salary-upload-grid,
  .salary-leadership-summary,
  .salary-leadership-totals,
  .salary-leadership-month-card header dl {
    grid-template-columns: 1fr;
  }

  .salary-current-actions .button,
  .payment-intake-action .button {
    width: 100%;
    justify-content: center;
  }

  .payment-registration-form .button {
    width: 100%;
    justify-content: center;
  }

  .heading-actions {
    justify-content: flex-start;
  }
}
