:root {
  color-scheme: light;
  --bg: #f1f3f5;
  --panel: #ffffff;
  --line: #d1d5db;
  --text: #172033;
  --muted: #6b7280;
  --app-blue: #4b5563;
  --app-blue-dark: #374151;
  --app-blue-mid: #9ca3af;
  --app-blue-soft: #f3f4f6;
  --app-blue-soft-alt: #e5e7eb;
  --green: #16a34a;
  --yellow: #fde047;
  --orange: #fb923c;
  --blue: #2563eb;
  --violet: #7c3aed;
  --gray: #64748b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

button {
  border: 1px solid #9ab8d8;
  background: #eaf2fb;
  color: #1e3a5f;
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
}

button:hover:not(:disabled) {
  border-color: #6f9ac8;
  background: #dbeafe;
  color: #173b67;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

input[type="date"] {
  color-scheme: light;
  accent-color: #4b5563;
  border-color: #cbd5e1;
  background-color: #ffffff;
  color: #111827;
}

input[type="date"]:hover {
  border-color: #9ca3af;
}

input[type="date"]:focus {
  border-color: #6b7280;
  outline: 2px solid rgba(75, 85, 99, 0.24);
  outline-offset: 1px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
  filter: grayscale(1) contrast(1.2) brightness(0.55);
}

input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: grayscale(1) contrast(1.3) brightness(0.35);
}

.app-header {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 7px 12px;
  border-bottom: 1px solid #b9c1cc;
  background: linear-gradient(180deg, #edf0f4 0%, #d7dde5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 1px 0 rgba(15, 23, 42, 0.06);
}

/* Identidade visual das duas instâncias publicadas a partir do mesmo código. */
body[data-instance="EAV"] .app-header {
  border-bottom-color: #7fa6ce;
  background: linear-gradient(180deg, #e8f2fc 0%, #c9ddf1 100%);
}

body[data-instance="EAV"] .app-header strong {
  color: #174a7e;
}

body[data-instance="EAV"] .login-brand {
  background: #2f6da5;
}

body[data-instance="ESJL"] .app-header {
  border-bottom-color: #7dac91;
  background: linear-gradient(180deg, #e8f5ed 0%, #c9e3d3 100%);
}

body[data-instance="ESJL"] .app-header strong {
  color: #245f3c;
}

body[data-instance="ESJL"] .login-brand {
  background: #367a50;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.app-brand-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.current-user-button {
  display: grid;
  gap: 1px;
  min-width: 190px;
  margin-left: auto;
  padding: 5px 10px;
  border-color: #b8c4d1;
  background: rgba(255, 255, 255, 0.58);
  text-align: right;
}

.current-user-button span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.current-user-button strong {
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-user-button strong::after {
  content: none;
}

.current-user-button strong::after {
  content: none;
}

.app-header span,
.detail span,
.kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-header strong {
  color: #374151;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
}

.app-header strong::after {
  content: "|";
  margin-left: 9px;
  color: #6b7280;
  font-weight: 800;
}

.app-header span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 16%, rgba(191, 219, 254, 0.85), transparent 36%),
    linear-gradient(145deg, #eef4fb 0%, #dfe8f2 52%, #cbd7e5 100%);
}

.login-screen.hidden {
  display: none;
}

.login-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px 16px;
  width: min(480px, 100%);
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(30, 41, 59, 0.2);
}

.login-brand {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #3f5f82;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.login-copy {
  display: grid;
  gap: 3px;
}

.login-copy > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0;
  color: #1e293b;
  font-size: 22px;
  line-height: 1.15;
}

.login-copy p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.login-user-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
}

.login-user-field > span {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.login-user-field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #b9c8d8;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
}

.login-card > button {
  grid-column: 1 / -1;
  min-height: 42px;
  border-color: #3f5f82;
  background: #3f5f82;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.login-card > button:hover:not(:disabled) {
  border-color: #2f4a67;
  background: #2f4a67;
  color: #fff;
}

.login-card > small {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: 10px;
  text-align: center;
}

body.app-locked .layout {
  pointer-events: none;
  user-select: none;
}

@media (max-width: 520px) {
  .login-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px;
  }

  .login-brand {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 13px;
  }

  .current-user-button {
    min-width: 0;
    max-width: 52%;
  }
}

.sheet-month-control {
  display: none;
  align-items: center;
  gap: 6px;
}

.sheet-mode .sheet-month-control {
  display: flex;
}

.sheet-month-control[hidden] {
  display: none;
}

.sheet-month-control span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sheet-month-control select {
  min-height: 28px;
  min-width: 105px;
  padding: 3px 8px;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #fff;
  color: #173b67;
  font-size: 12px;
  font-weight: 800;
}

.compact-month-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.compact-month-control span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-month-control select {
  min-height: 28px;
  min-width: 105px;
  padding: 3px 8px;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #fff;
  color: #173b67;
  font-size: 12px;
  font-weight: 800;
}

.header-actions,
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-actions {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 6px;
  margin-left: 2px;
  margin-bottom: 1px;
}

.workspace-actions button {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.backup-menu-wrap {
  position: relative;
}

.backup-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  width: 205px;
  padding: 4px;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 64, 105, 0.18);
}

.backup-menu.hidden {
  display: none;
}

.backup-menu button {
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  white-space: nowrap;
}

.backup-menu button:hover:not(:disabled) {
  background: #eaf2fb;
}

.backup-menu #adminPanelButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.global-filter-combo {
  position: relative;
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-bottom: 1px;
  color: #42658a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.global-filter-combo > select,
.global-filter-combo > input {
  height: 28px;
  padding: 5px 8px;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-transform: none;
}

.global-filter-combo > select {
  width: 128px;
}

.global-filter-combo > input {
  width: min(220px, 20vw);
}

.global-filter-combo > input[type="date"] {
  width: 150px;
}

.global-filter-combo > input:focus,
.global-filter-combo > select:focus {
  border-color: var(--app-blue);
  outline: 2px solid #e5e7eb;
  outline-offset: 0;
}

.global-comment-results {
  position: fixed;
  top: var(--global-comment-top, 116px);
  right: var(--global-comment-right, 12px);
  z-index: 10020;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(520px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - var(--global-comment-top, 116px) - 12px));
  overflow: hidden;
  border: 1px solid #94a3b8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
}

.global-comment-results.hidden {
  display: none;
}

.global-comment-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--app-blue-soft);
}

.global-comment-results-head strong {
  font-size: 12px;
}

.global-comment-results-head button {
  width: 25px;
  height: 25px;
  padding: 0;
  font-size: 17px;
}

.global-comment-results-list {
  min-height: 0;
  overflow: auto;
}

.global-comment-result-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.global-comment-result-row:has(input:checked) {
  background: #f3f4f6;
}

.global-comment-result-check {
  display: grid;
  place-items: start center;
  padding-top: 12px;
  cursor: pointer;
}

.global-comment-result-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--app-blue);
}

.global-comment-result {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.global-comment-result:hover {
  background: #f3f4f6;
}

.global-comment-result > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.global-comment-result b {
  color: #172033;
  font-size: 12px;
}

.global-comment-result em {
  color: #4b5563;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.global-comment-result small,
.global-comment-limit {
  color: #64748b;
  font-size: 10px;
}

.global-comment-selection {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.global-comment-selection span {
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.global-comment-selection div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.global-comment-selection button {
  min-width: 0;
  padding: 6px 9px;
  font-size: 11px;
}

.global-comment-selection .primary {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.global-comment-result p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.global-comment-empty,
.global-comment-limit {
  margin: 0;
  padding: 12px;
  text-align: center;
}

.clear-filters {
  position: relative;
  padding-right: 12px;
}

.clear-filters:has(.filter-count:not(.hidden)) {
  padding-right: 34px;
}

.filter-count {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.filter-count.hidden {
  display: none;
}

.hidden-file {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--detail-width, 390px);
  gap: 12px;
  height: 100vh;
  padding: 12px;
  overflow: hidden;
}

.detail-collapsed .layout {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.workspace,
.detail {
  min-width: 0;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

.workspace-tabs {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  row-gap: 5px;
  min-height: 42px;
  padding: 6px 10px 7px;
  border-bottom: 1px solid #9fb5cc;
  background: linear-gradient(180deg, #edf3f9 0%, #d8e5f1 100%);
}

.workspace-tabs::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #7f9fbd;
}

.workspace-tabs > button {
  position: relative;
  z-index: 1;
  height: 32px;
  margin-bottom: -1px;
  padding: 5px 14px 7px;
  border: 1px solid #a8bfd8;
  border-bottom-color: #9ab8d8;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, #eef5fc 0%, #dce9f6 100%);
  color: #46617f;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.workspace-tabs > #consultTabButton {
  display: none !important;
}

.workspace-tabs > button.active {
  z-index: 3;
  height: 35px;
  border-color: #7ca6d8;
  border-bottom-color: var(--panel);
  background: var(--panel);
  color: #173b67;
  box-shadow: 0 -1px 0 #d7e6f5, 0 -3px 8px rgba(37, 99, 235, 0.08);
}

.workspace-tabs > button:hover:not(:disabled) {
  border-color: #7ca6d8;
  border-bottom-color: #7ca6d8;
  background: linear-gradient(180deg, #f8fbff 0%, #e6f0fb 100%);
  color: #173b67;
}

.workspace-tabs > button.active:hover:not(:disabled) {
  border-bottom-color: var(--panel);
  background: var(--panel);
}

.workspace-tabs > button.has-priority-alert {
  color: #7c2d12;
}

.workspace-tabs > button.has-evaluator-alert {
  color: #1d4ed8;
}

.tab-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  vertical-align: 1px;
}

.sheet-view,
.meta-view {
  min-width: 0;
  min-height: 0;
  display: none;
}

.sheet-view.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 18px;
  overflow: hidden;
}

.sheet-view:fullscreen {
  height: 100vh;
  padding: 10px;
  background: #f3f8fd;
}

.sheet-view-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: #f7fbff;
}

.sheet-view-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
  min-width: max-content;
}

#sheetFullscreenButton[hidden] {
  display: none !important;
}

.meta-view.active {
  display: block;
  overflow: auto;
}

.kpis {
  display: none;
  grid-template-columns: repeat(9, minmax(48px, 1fr));
  gap: 3px;
  padding: 3px;
  border-bottom: 1px solid var(--line);
  background: #eef2f6;
}

#sheetView .kpis {
  grid-template-columns: repeat(8, minmax(62px, 1fr));
}

.sheet-mode .kpis {
  display: grid;
}

.sheet-view-toolbar .kpis {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.kpis div,
.kpis > button {
  --kpi-accent: #7ca6d8;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px 6px 10px;
  border: 1px solid rgba(213, 222, 232, 0.9);
  border-left: 3px solid var(--kpi-accent);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 58, 92, 0.06);
  transition: filter 0.16s ease, opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.sheet-view-toolbar .kpis div,
.sheet-view-toolbar .kpis > button {
  min-height: 40px;
  padding: 4px 7px;
}

.kpis > button {
  text-align: left;
}

.kpis > button:hover {
  filter: brightness(0.985) saturate(1.04);
  transform: translateY(-1px);
}

.kpis > button.active-status-filter {
  position: relative;
  z-index: 1;
  border-color: #7ca6d8;
  border-left-color: var(--kpi-accent);
  filter: saturate(1.16);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 4px 10px rgba(26, 58, 92, 0.12);
}

.kpis > button.active-status-filter span,
.kpis > button.active-status-filter strong {
  color: #173b67;
}

.kpis.has-active-status > button[data-filter-status]:not(.active-status-filter) {
  opacity: 0.48;
  filter: grayscale(0.18) saturate(0.74) brightness(1.05);
}

.kpis.has-active-status > button[data-filter-status]:not(.active-status-filter):hover {
  opacity: 0.78;
  filter: saturate(0.95) brightness(1.02);
}

.kpis span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  color: #42658a;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.kpis strong {
  display: block;
  margin-top: 1px;
  color: #173b67;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}

#sheetView .kpis .kpi-metrics-value {
  font-size: 13px;
  white-space: nowrap;
}

.kpis .kpi-total {
  --kpi-accent: #8fa3b8;
}

.kpis .kpi-processes {
  --kpi-accent: #173b67;
}

.kpis .status-n-o-distribu-do {
  --kpi-accent: #94a3b8;
}

.kpis .status-distribu-do {
  --kpi-accent: #38a3d6;
}

.kpis .status-revisar {
  --kpi-accent: #f07171;
}

.kpis .status-revisado {
  --kpi-accent: #5d8ee8;
}

.kpis .status-ver-ajustes {
  --kpi-accent: #e0b12d;
}

.kpis .status-homologar {
  --kpi-accent: #94bd36;
}

.kpis .status-enviado {
  --kpi-accent: #38b36a;
}

.meta-dashboard {
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
}

.prioritization-view {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
}

.prioritization-view.active {
  display: block;
}

.team-view {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
}

.team-view.active {
  display: block;
}

.cronograms-view {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
}

.cronograms-view.active {
  display: block;
}

.deliveries-view {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
}

.deliveries-view.active {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.consult-view {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #f8fafc;
}

.consult-view.active {
  display: block;
}

.consult-mode .layout {
  grid-template-columns: minmax(0, 1fr);
}

.consult-mode .detail-wrap,
.consult-mode .kpis {
  display: none;
}

.consult-mode .workspace {
  grid-template-rows: auto minmax(0, 1fr);
}

.consult-mode .global-filter-combo {
  display: none;
}

.consult-dashboard {
  min-height: 100%;
}

.consult-mobile-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.consult-header {
  padding: 4px 0 12px;
}

.consult-header h1 {
  margin: 0;
  color: #173b67;
  font-size: 22px;
  line-height: 1.15;
}

.consult-search {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.consult-search label {
  color: #42658a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.consult-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.consult-search input {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #9ab8d8;
  border-radius: 7px;
  color: #173b67;
  font-size: 16px;
  font-weight: 800;
}

.consult-search button {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
}

.consult-results {
  display: grid;
  gap: 10px;
}

.consult-card,
.consult-empty {
  border: 1px solid #c9d9ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 59, 103, 0.08);
}

.consult-empty {
  padding: 18px;
  color: #42658a;
  font-size: 14px;
  font-weight: 800;
}

.consult-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #d7e6f5;
  background: #eef6ff;
}

.consult-card-head span {
  display: block;
  color: #42658a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.consult-card-head strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #173b67;
  font-size: 20px;
  line-height: 1.1;
}

.consult-card-head .process-info {
  flex: 0 0 auto;
}

.consult-card-head .process-info,
.consult-card-head .process-info.no-comments,
.consult-card-head .process-info.has-comments {
  color: #fff;
}

.consult-card-head .process-info.no-comments {
  border-color: #64748b;
  background: #64748b;
}

.consult-card-head .process-info span {
  display: inline;
  color: inherit;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

.consult-inscription-note {
  margin: 0;
  padding: 8px 12px 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.consult-fields {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 6px 12px 12px;
}

.consult-field {
  display: grid;
  grid-template-columns: minmax(96px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

.consult-field:last-child {
  border-bottom: 0;
}

.consult-field dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.consult-field dd {
  margin: 0;
  color: #173b67;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.consult-field.accent dd {
  color: #8a3f09;
}

@media (max-width: 760px) {
  .consult-mode .app-header {
    display: none;
  }

  .consult-mode .layout {
    height: 100vh;
    padding: 0;
  }

  .consult-mode .workspace {
    border: 0;
    border-radius: 0;
  }

  .consult-mode .workspace-tabs {
    min-height: 0;
    padding: 0;
    border-bottom: 0;
  }

  .consult-mode .workspace-tabs::after,
  .consult-mode .workspace-tabs > button,
  .consult-mode .global-filter-combo {
    display: none;
  }

  .consult-mode .consult-mobile-panel {
    padding: 14px 12px 24px;
  }

  .consult-search > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .consult-search button {
    width: 100%;
  }

  .consult-field {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Navegação contextual por aba e ações globais do cabeçalho. */
.workspace {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.app-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  margin-left: auto;
}

.app-header-actions > button,
.header-file-menu > button,
.other-instance-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid #aeb6c1;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #edf0f3 100%);
  color: #374151;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 1px 2px rgba(15, 23, 42, 0.08);
}

.other-instance-link {
  min-height: 25px;
  padding: 4px 8px;
  border-color: #b8bec7;
  background: #eef0f2;
  color: #565d66;
  text-decoration: none;
  box-shadow: none;
}

.other-instance-link[hidden] {
  display: none;
}

.other-instance-link:hover {
  border-color: #979ea8;
  background: #e2e5e8;
  color: #343a42;
}

body[data-instance="EAV"] .app-brand-links .other-instance-link {
  border-color: rgba(55, 103, 151, 0.24);
  background: rgba(201, 221, 241, 0.72);
  color: #315f8c;
}

body[data-instance="EAV"] .app-brand-links .other-instance-link:hover {
  border-color: rgba(55, 103, 151, 0.38);
  background: rgba(184, 210, 235, 0.9);
  color: #214f7c;
}

body[data-instance="ESJL"] .app-brand-links .other-instance-link {
  border-color: rgba(50, 112, 74, 0.23);
  background: rgba(201, 227, 211, 0.74);
  color: #356c49;
}

body[data-instance="ESJL"] .app-brand-links .other-instance-link:hover {
  border-color: rgba(50, 112, 74, 0.38);
  background: rgba(184, 216, 196, 0.9);
  color: #245b39;
}

.app-header-actions > .process-locator-button {
  border-color: #9caabd;
  background: #e8edf3;
  color: #334155;
}

.current-user-button {
  display: grid;
  flex: 0 1 auto;
  gap: 0;
  min-width: 0;
  max-width: 220px;
  margin: 0;
  padding: 1px 5px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
  cursor: default;
}

.current-user-button span {
  color: #7b8490;
  font-size: 8px;
  line-height: 1;
}

.current-user-button strong {
  overflow: hidden;
  color: #4b5563;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-file-menu {
  flex: 0 0 auto;
}

.backup-menu .logout-menu-button {
  margin-top: 3px;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 4px 4px;
  color: #7f1d1d;
}

.tab-search-toolbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  min-height: 54px;
  padding: 7px 10px 8px;
  border-bottom: 1px solid #c5ccd5;
  background: #f6f7f9;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.tab-search-toolbar.hidden {
  display: none;
}

.tab-search-field,
.tab-deadline-control {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tab-search-field > span,
.tab-deadline-control > span {
  color: #667085;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.tab-search-field input,
.tab-deadline-control input {
  height: 31px;
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid #b8c2cf;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  font-size: 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tab-search-field input:focus,
.tab-deadline-control input:focus {
  border-color: #7b8797;
  outline: 2px solid rgba(100, 116, 139, 0.18);
}

.tab-deadline-control input {
  width: 145px;
}

.tab-deadline-control[hidden] {
  display: none;
}

.tab-alert-control {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 6px;
  height: 31px;
  padding: 5px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}

.tab-alert-control[hidden] {
  display: none;
}

.tab-alert-control input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #b91c1c;
}

.tab-alert-control > .process-alert-indicator {
  width: 16px;
  height: 15px;
  cursor: inherit;
}

.tab-alert-control:has(input:checked) {
  border-color: #dc2626;
  background: #fff7f7;
  color: #991b1b;
}

.tab-search-toolbar .clear-filters {
  height: 31px;
  min-width: 118px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.process-locator-modal {
  z-index: 1120;
  padding: clamp(10px, 3vh, 28px);
}

.process-locator-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 13px;
  width: min(760px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 24px));
  padding: 17px;
  overflow: hidden;
  border-radius: 12px;
}

.process-locator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.process-locator-head > div {
  min-width: 0;
}

.process-locator-head span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.process-locator-head h2 {
  margin: 2px 0 3px;
  color: #1f2937;
  font-size: 18px;
}

.process-locator-head p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.process-locator-head > button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  font-size: 18px;
}

.process-locator-search {
  display: grid;
  gap: 4px;
}

.process-locator-search span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.process-locator-search input {
  width: 100%;
  height: 36px;
  border-radius: 7px;
  font-size: 13px;
}

.process-locator-results {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 120px;
  overflow: auto;
  overscroll-behavior: contain;
}

.process-locator-result {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(220px, 1.5fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.process-locator-result:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.process-locator-result > span:first-child {
  display: grid;
  gap: 2px;
}

.process-locator-result strong {
  color: #1f2937;
  font-size: 12px;
}

.process-locator-result small,
.process-locator-result > span:nth-child(2) {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-locator-empty {
  align-self: center;
  margin: 22px 8px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.consult-mode .workspace {
  grid-template-rows: auto auto minmax(0, 1fr);
}

@media (max-width: 760px) {
  .app-header {
    align-items: center;
    gap: 6px;
  }

  .app-brand span {
    display: none;
  }

  .app-brand strong {
    font-size: 0;
  }

  .app-brand strong::before {
    content: "EAV";
    font-size: 16px;
  }

  .app-brand strong::after {
    content: none;
  }

  .app-header-actions {
    gap: 4px;
  }

  .app-header-actions > button,
  .header-file-menu > button {
    padding-inline: 7px;
    font-size: 10px;
  }

  .current-user-button {
    max-width: 105px;
  }

  .current-user-button span {
    display: none;
  }

  .tab-search-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px 8px 7px;
  }

  .tab-search-field {
    grid-column: 1 / -1;
  }

  .tab-deadline-control input {
    width: 140px;
  }

  .process-locator-result {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .process-locator-result > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .consult-mode .workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }
}

/* Comentários do processo: composição por assunto e linha do tempo unificada. */
.comment-composer {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.comment-composer-fields {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.comment-composer-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.comment-composer-fields label > span {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comment-composer select,
.comment-composer textarea {
  width: 100%;
  border-color: #b8c2cf;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
}

.comment-composer select {
  min-height: 38px;
}

.comment-composer textarea {
  min-height: 70px;
  padding: 8px 9px;
  line-height: 1.35;
  resize: vertical;
}

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

.comment-composer-actions small {
  margin-right: auto;
  color: #64748b;
  font-size: 11px;
}

.comment-composer-actions button {
  min-height: 36px;
  border-color: #475569;
  background: #475569;
  color: #fff;
  white-space: nowrap;
}

.comment-composer-actions button:hover:not(:disabled) {
  border-color: #334155;
  background: #334155;
}

.comment-composer-actions button:disabled {
  border-color: #d1d5db;
  background: #e5e7eb;
  color: #9ca3af;
}

.model-event-composer {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #d8e0e9;
  border-radius: 9px;
  background: #f8fafc;
}

.model-event-composer.hidden {
  display: none;
}

.model-event-composer > strong {
  align-self: center;
  color: #475569;
  font-size: 11px;
  white-space: nowrap;
}

.model-event-fields {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(150px, 1fr) 105px 125px minmax(150px, 0.8fr) auto;
  gap: 6px;
  align-items: end;
  min-width: 0;
}

.model-event-fields label {
  display: grid;
  gap: 2px;
}

.model-event-fields label > span {
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-event-fields input,
.model-event-fields select,
.model-event-fields button {
  min-height: 30px;
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 11px;
}

.model-event-fields input,
.model-event-fields select {
  width: 100%;
  border: 1px solid #b9c5d2;
  background: #fff;
  color: #273449;
}

.model-event-fields input:focus,
.model-event-fields select:focus {
  border-color: #64748b;
  outline: 2px solid rgba(100, 116, 139, 0.16);
}

.model-event-fields button {
  border-color: #64748b;
  background: #64748b;
  color: #fff;
  white-space: nowrap;
}

.model-event-fields button:disabled {
  border-color: #d1d9e2;
  background: #e8edf2;
  color: #9aa6b2;
}

@media (max-width: 900px) {
  .model-event-composer {
    align-items: stretch;
    flex-direction: column;
  }

  .model-event-fields {
    grid-template-columns: 1fr 1fr;
  }

  .model-event-fields label:first-child {
    grid-column: 1 / -1;
  }
}

.comment-filterbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e8f0;
}

.comment-filterbar > span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comment-filterbar > div {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
}

.comment-filterbar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border-color: transparent;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}

.comment-filterbar button:hover:not(:disabled) {
  border-color: #d1d5db;
  background: #f1f5f9;
  color: #334155;
}

.comment-filterbar button.active {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #1f2937;
}

.comment-filterbar button em {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.comment-timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.comment-timeline-head strong {
  color: #334155;
  font-size: 12px;
}

.comment-timeline-head small {
  color: #64748b;
  font-size: 10px;
}

.macro-info-list.comment-timeline {
  position: relative;
  gap: 12px;
  padding: 2px 4px 4px 28px;
}

.comment-timeline::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 10px;
  width: 2px;
  border-radius: 999px;
  background: #d7dee8;
  content: "";
}

.macro-comment.comment-timeline-item {
  --timeline-accent: #64748b;
  overflow: visible;
  gap: 9px;
  padding: 11px 40px 11px 12px;
  border: 1px solid #d8dee7;
  border-left: 3px solid var(--timeline-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.05);
}

.macro-comment.comment-timeline-item::before {
  position: absolute;
  top: 17px;
  left: -25px;
  width: 10px;
  height: 10px;
  border: 3px solid #f8fafc;
  border-radius: 50%;
  background: var(--timeline-accent);
  box-shadow: 0 0 0 1px #cbd5e1;
  content: "";
}

.comment-timeline-item.category-entrada {
  --timeline-accent: #64748b;
}

.comment-timeline-item.category-imovel {
  --timeline-accent: #a16207;
}

.comment-timeline-item.category-triagem {
  --timeline-accent: #b45309;
}

.comment-timeline-item.category-prazos {
  --timeline-accent: #15803d;
}

.comment-timeline-item.category-produtos {
  --timeline-accent: #7e22ce;
}

.comment-timeline-item.category-communications {
  --timeline-accent: #0f766e;
}

.comment-timeline-item.is-readonly {
  padding-right: 14px;
  background: #f8fffd;
}

.process-communication-text {
  display: grid;
  gap: 5px;
}

.process-communication-text strong {
  color: #134e4a;
  font-size: 12px;
}

.process-communication-summary {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px dashed #b9dfd7;
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
}

.process-communication-summary small {
  color: #4b6f6a;
  font-size: 10px;
  font-weight: 700;
}

.comment-timeline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.comment-subject {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--timeline-accent) 25%, #e2e8f0);
  border-radius: 999px;
  background: color-mix(in srgb, var(--timeline-accent) 8%, #fff);
  color: var(--timeline-accent);
  font-size: 10px;
  font-weight: 800;
}

.comment-timeline-meta small {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-timeline-item textarea {
  min-height: 66px;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.comment-timeline .macro-empty {
  position: relative;
  border-color: #cbd5e1;
  background: #fff;
  color: #64748b;
}

@media (max-width: 720px) {
  .macro-info-panel {
    padding: 12px;
  }

  .comment-composer-fields {
    grid-template-columns: 1fr;
  }

  .comment-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-composer-actions button {
    width: 100%;
  }

  .comment-filterbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-filterbar > div {
    width: 100%;
  }

  .comment-timeline-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .comment-timeline-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .comment-timeline-meta small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

.team-dashboard,
.cronograms-dashboard {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
  height: calc(100vh - 168px);
  min-width: 0;
  padding: 10px;
}

.cronograms-dashboard.app-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 14px;
  background: #f3f8fd;
}

html:fullscreen .cronograms-dashboard.app-fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.cronogram-fullscreen-open {
  overflow: hidden;
}

.cronograms-dashboard.app-fullscreen .cronogram-process-list {
  max-height: calc(100vh - 235px);
}

.team-dashboard-head,
.cronograms-dashboard-head,
.deliveries-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.team-dashboard-head > div:first-child:not(.cronograms-controls),
.cronograms-dashboard-head > div:first-child:not(.cronograms-controls),
.deliveries-dashboard-head > div:first-child {
  display: grid;
  gap: 2px;
}

.team-dashboard-head > div:first-child:not(.cronograms-controls) span,
.cronograms-dashboard-head > div:first-child:not(.cronograms-controls) span,
.deliveries-dashboard-head > div:first-child span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-dashboard-head > div:first-child:not(.cronograms-controls) strong,
.cronograms-dashboard-head > div:first-child:not(.cronograms-controls) strong,
.deliveries-dashboard-head > div:first-child strong {
  color: #173b67;
  font-size: 16px;
}

.cronograms-dashboard-head > .cronograms-controls,
.cronograms-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 1 0 100%;
  gap: 8px;
  min-width: 0;
}

.cronograms-dashboard-head {
  gap: 6px;
}

.cronograms-dashboard-head .team-month-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cronograms-dashboard-head .team-month-control select {
  min-width: 105px;
}

.cronograms-dashboard-head .cronogram-visible-toggle,
.cronograms-dashboard-head .meta-link-button {
  flex: 0 0 auto;
}

.team-workspace-mode {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #c3cad3;
  border-radius: 7px;
  background: #e8ebef;
}

.team-workspace-mode button {
  min-height: 25px;
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5b6470;
  font-size: 10px;
  font-weight: 900;
  box-shadow: none;
}

.team-workspace-mode button.active {
  background: #ffffff;
  color: #244d76;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.13);
}

.activity-report-layout {
  min-height: 0;
}

.activity-report-workspace {
  min-width: 0;
  min-height: 0;
}

.activity-person-menu-legend {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 5px 10px;
  border-bottom: 1px solid #d8dee6;
  color: #64748b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.activity-person-menu-legend span:last-child {
  width: 37px;
  text-align: center;
}

.activity-person-menu-counts {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(30px, auto));
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.activity-person-menu-counts b,
.activity-person-menu-counts small {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.activity-person-menu-counts b {
  background: #dce7f1;
  color: #315574;
}

.activity-person-menu-counts small {
  background: #e5e7eb;
  color: #4b5563;
}

.activity-report {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 10px 12px 14px;
  overflow: hidden;
}

.activity-report-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #cdd4dc;
  border-radius: 9px;
  background: #f7f8fa;
}

.activity-report-summary > div:first-child {
  display: grid;
  gap: 2px;
}

.activity-report-summary > div:first-child > span,
.activity-report-summary > div:first-child > small {
  color: #6b7280;
  font-size: 10px;
  font-weight: 800;
}

.activity-report-summary > div:first-child > span {
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.activity-report-summary > div:first-child > strong {
  color: #263b52;
  font-size: 18px;
}

.activity-report-summary-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-report-summary-actions > button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.activity-absence-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 6px;
  min-width: 150px;
  padding: 6px 8px;
  border: 1px solid #d5dbe2;
  border-radius: 7px;
  background: #fff;
}

.activity-absence-summary > span,
.activity-absence-summary > small {
  color: #6b7280;
  font-size: 9px;
  font-weight: 800;
}

.activity-absence-summary > small {
  grid-column: 1 / -1;
}

.activity-absence-summary .field-edit-control {
  width: 82px;
}

.activity-absence-input {
  box-sizing: border-box;
  width: 50px;
  min-height: 27px;
  padding: 3px 6px;
  border: 1px solid #aab8c7;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.activity-log-meter {
  display: grid;
  gap: 4px;
  width: min(310px, 42vw);
}

.activity-log-meter > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.activity-log-meter small {
  color: #6b7280;
  font-size: 9px;
  font-weight: 800;
}

.activity-log-meter b {
  color: #36485b;
  font-size: 13px;
}

.activity-log-meter > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce1e7;
}

.activity-log-meter > div > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #758ba0;
}

.activity-report-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(115px, 1fr));
  gap: 6px;
}

.activity-report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #c7ced6;
  border-radius: 6px;
  background: #f3f5f7;
  color: #475569;
  text-align: left;
}

.activity-report-card span {
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.activity-report-card b {
  font-size: 18px;
}

.activity-report-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid #ccd3db;
  border-radius: 8px;
  background: #fff;
}

.activity-report-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11px;
}

.activity-report-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 9px;
  border-bottom: 1px solid #c5ccd4;
  background: #e9edf1;
  color: #475569;
  font-size: 9px;
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
}

.activity-report-table td {
  padding: 7px 9px;
  border-bottom: 1px solid #e5e7eb;
  color: #3f4a57;
  vertical-align: top;
}

.activity-report-grouped-cell span {
  display: block;
  min-height: 17px;
  padding: 1px 0;
}

.activity-report-grouped-cell span + span {
  border-top: 1px solid #edf0f3;
}

.activity-report-table tbody tr[data-activity-row-number] {
  cursor: pointer;
}

.activity-report-table tbody tr[data-activity-row-number]:hover td {
  background: #f2f6fa;
}

.activity-report-table th:nth-child(1),
.activity-report-table td:nth-child(1) {
  width: 18%;
  font-weight: 800;
}

.activity-report-table th:nth-child(2),
.activity-report-table td:nth-child(2) {
  width: 28%;
}

.activity-report-table th:nth-child(3),
.activity-report-table td:nth-child(3) {
  width: 17%;
}

.activity-report-table th:nth-child(4),
.activity-report-table td:nth-child(4) {
  width: 14%;
  white-space: nowrap;
}

.activity-report-table th:nth-child(5),
.activity-report-table td:nth-child(5) {
  width: 23%;
}

.activity-report-empty {
  padding: 28px !important;
  color: #6b7280 !important;
  text-align: center;
}

@media (max-width: 980px) {
  .activity-report-cards {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 700px) {
  .activity-report-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-report-summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-log-meter {
    width: 100%;
  }

  .activity-report-cards {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

.cronogram-person-tabs {
  display: flex;
  align-items: flex-end;
  flex: 1 0 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0 0;
  border-bottom: 1px solid #9ab8d8;
  scrollbar-width: thin;
}

.cronogram-person-tabs button {
  position: relative;
  bottom: -1px;
  flex: 0 0 auto;
  min-height: 31px;
  padding: 6px 13px 7px;
  border: 1px solid #b8cce3;
  border-bottom-color: #9ab8d8;
  border-radius: 8px 8px 0 0;
  background: #eaf2fb;
  color: #3d5f84;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.cronogram-person-tabs button + button {
  margin-left: 3px;
}

.cronogram-person-tabs button:hover {
  border-color: #7da8dc;
  background: #f5f9fe;
  color: #173b67;
}

.cronogram-person-tabs button.active {
  border-color: #7da8dc;
  border-bottom-color: #fff;
  background: #fff;
  color: #0f3767;
  box-shadow: 0 -2px 0 #3b82f6 inset;
}

.cronogram-person-tabs .cronogram-add-person-tab {
  border-style: dashed;
  background: #f8fbff;
  color: #1e4f83;
}

.cronogram-person-picker {
  flex: 0 0 210px;
  align-self: center;
  height: 30px;
  margin-left: 6px;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  padding: 4px 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.cronogram-person-tabs > span {
  padding: 7px 2px 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.cronogram-visible-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  color: #42658a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cronogram-process-panel {
  border: 1px solid #c8d7e7;
  background: #f8fbff;
}

.cronogram-process-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 4px 8px;
  border-bottom: 1px solid #c8d7e7;
  background: #eef4fa;
}

.cronogram-process-toolbar .cronogram-visible-toggle {
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #c8d7e7;
  border-radius: 999px;
  background: #fff;
  color: #173b67;
  font-size: 10px;
}

.cronogram-process-toolbar .cronogram-visible-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #2563eb;
}

.cronogram-manual-add {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 6px;
}

.cronogram-manual-add[hidden] {
  display: none;
}

.cronogram-manual-add select,
.cronogram-manual-add input {
  height: 30px;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.cronogram-manual-add input {
  width: 160px;
}

.cronogram-manual-add button {
  height: 30px;
  padding: 5px 10px;
}

.deliveries-dashboard {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  height: 100%;
  padding: 10px;
}

.deliveries-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(124px, 1fr));
  gap: 5px;
  min-height: 0;
  padding: 6px;
  border: 1px solid #b8cbe0;
  border-radius: 6px;
  background: #fff;
  overflow-x: auto;
}

.delivery-bucket {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: start;
  min-width: 118px;
  min-height: 78px;
  padding: 6px 7px;
  border: 1px solid #6b7280;
  border-left: 5px solid #4b5563;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  text-align: left;
  overflow: hidden;
}

.delivery-bucket:hover,
.delivery-bucket.active {
  border-color: #4b5563;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #6b7280;
}

.delivery-bucket strong {
  order: -2;
  color: #173b67;
  font-size: 14px;
  line-height: 1.05;
}

.delivery-bucket b {
  order: -3;
  color: #173b67;
  font-size: 13px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.delivery-bucket small {
  order: -1;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.deliveries-detail {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #b8cbe0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.deliveries-detail > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #d7e1ec;
  background: #dceaf7;
}

.deliveries-detail > header span {
  display: block;
  color: #244b75;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.deliveries-detail > header strong {
  color: #173b67;
  font-size: 13px;
}

.deliveries-detail > header b {
  min-width: 90px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: #173b67;
  text-align: center;
}

.deliveries-list {
  min-height: 0;
  overflow: auto;
}

.deliveries-list-head,
.delivery-item {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.3fr)
    minmax(125px, 0.85fr)
    minmax(200px, 1.25fr)
    minmax(70px, 0.45fr)
    minmax(90px, 0.55fr)
    105px
    minmax(105px, 0.8fr)
    minmax(105px, 0.8fr)
    minmax(100px, 0.7fr);
  min-width: 1230px;
}

.deliveries-list-head {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #eef4fa;
}

.deliveries-list-head span {
  padding: 6px 8px;
  border-right: 1px solid #d7e1ec;
  border-bottom: 1px solid #d7e1ec;
  color: #244b75;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-item {
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #d7e1ec;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.delivery-item:hover {
  background: #f8fbff;
}

.delivery-item > span {
  min-width: 0;
  padding: 7px 8px;
  border-right: 1px solid #d7e1ec;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.delivery-item strong {
  display: block;
  color: #173b67;
}

.delivery-process-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
}

.delivery-process-line strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-process-line .status-pill,
.delivery-process-line .process-info {
  flex: 0 0 auto;
}

.delivery-process-line .status-pill {
  padding: 2px 5px;
  font-size: 9px;
}

.delivery-item small {
  display: block;
  color: #64748b;
  font-size: 10px;
}

.deliveries-empty {
  margin: 0;
  padding: 12px;
  color: #64748b;
  font-size: 12px;
}

.team-summary {
  display: flex;
  align-items: stretch;
  gap: 5px;
}

.team-month-control {
  display: grid;
  gap: 3px;
  min-width: 130px;
}

.team-month-control span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-month-control select {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #fff;
  color: #173b67;
  font-size: 12px;
  font-weight: 800;
}

.team-month-control.compact-month-control select {
  min-height: 28px;
  padding: 3px 8px;
}

.team-month-control.compact-month-control span {
  font-size: 11px;
}

.team-summary > span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #b8cbe0;
  border-radius: 5px;
  background: #fff;
}

.team-summary small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-summary b {
  color: #173b67;
  font-size: 15px;
}

.team-summary > .team-summary-with-deadline {
  border-color: #60a5fa;
  background: #dbeafe;
  box-shadow: inset 0 -2px 0 #3b82f6;
}

.team-summary > .team-summary-with-deadline small,
.team-summary > .team-summary-with-deadline b {
  color: #1e3a8a;
}

.team-table-wrap {
  max-width: 100%;
  min-height: 0;
  overflow: auto;
  border: 1px solid #b8cbe0;
  background: #fff;
}

.team-workspace-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #b8cbe0;
  border-radius: 8px;
  background: #fff;
}

.team-professional-menu {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #cbd5e1;
  background: #f3f6f9;
}

.team-professional-menu > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #cbd5e1;
  background: #e5eaf0;
}

.team-professional-menu > header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.team-professional-menu > header span {
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.team-professional-menu > header small {
  color: #64748b;
  font-size: 10px;
}

.team-professional-menu > header > b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 12px;
}

.team-professional-menu-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px;
  scrollbar-color: #9ca3af #e5e7eb;
}

.team-professional-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 7px 8px 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #374151;
  text-align: left;
}

.team-professional-menu-item:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.team-professional-menu-item.selected {
  border-color: #94a3b8;
  background: #fff;
  color: #111827;
  box-shadow: inset 3px 0 0 #4b5563, 0 1px 3px rgba(15, 23, 42, 0.08);
}

.team-professional-menu-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: normal;
}

.team-professional-menu-counts {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.team-professional-menu-counts b {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(14px, 1fr));
  place-items: center;
  min-width: 36px;
  height: 20px;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.team-professional-menu-counts b small {
  display: grid;
  width: 100%;
  height: 14px;
  border-left: 1px solid currentColor;
  place-items: center;
  font: inherit;
  opacity: 0.75;
}

.team-professional-menu-counts .metric-attribution {
  background: #e2e8f0;
  color: #334155;
}

.team-professional-menu-counts .metric-evaluator {
  background: #dbeafe;
  color: #1e3a8a;
}

.team-professional-menu-counts .metric-reviewer {
  background: #ede9fe;
  color: #6d28d9;
}

.team-professional-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
}

.team-professional-panel-head {
  display: grid;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #cbd5e1;
  background: #fff;
}

.team-professional-panel-head > div:first-child {
  display: grid;
  gap: 2px;
}

.team-professional-panel-head > div:first-child span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-professional-panel-head > div:first-child strong {
  color: #1f2937;
  font-size: 17px;
}

.team-professional-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 5px;
}

.team-professional-stats > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #f8fafc;
}

.team-professional-stats > span.primary {
  border-color: #93c5fd;
  background: #eff6ff;
}

.team-professional-stats small {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.team-professional-stats b {
  color: #374151;
  font-size: 14px;
}

.team-professional-stats > span.primary b {
  color: #1e3a8a;
}

.team-professional-processes {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.team-professional-processes .team-process-list {
  min-width: 850px;
  border-top: 0;
  border-left: 0;
}

.team-professional-empty {
  grid-column: 1 / -1;
  padding: 28px 18px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.team-professional-menu-empty {
  margin: 0;
  padding: 16px 10px;
  color: #64748b;
  font-size: 11px;
  text-align: center;
}

.team-professional-empty-panel {
  align-self: center;
}

@media (max-width: 1050px) {
  .team-workspace-layout {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  }

  .team-professional-stats {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
  }
}

@media (max-width: 760px) {
  .team-workspace-layout {
    grid-template-columns: minmax(155px, 185px) minmax(0, 1fr);
  }

  .team-professional-menu > header {
    padding: 8px;
  }

  .team-professional-menu > header small,
  .team-professional-menu-counts small {
    display: none;
  }

  .team-professional-menu-item {
    padding: 6px;
  }

  .team-professional-panel-head {
    padding: 8px;
  }

  .team-professional-stats {
    grid-template-columns: repeat(2, minmax(82px, 1fr));
  }
}

.cronogram-team-layout {
  height: 100%;
}

.cronogram-person-menu-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 5px 8px;
  border-bottom: 1px solid #d1d5db;
  background: #f8fafc;
}

.cronogram-person-menu-legend > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.cronogram-person-menu-legend > span small {
  flex-basis: 100%;
  color: #94a3b8;
  font-size: 6px;
  line-height: 1;
  text-align: center;
}

.cronogram-person-menu-legend i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.cronogram-person-menu-legend .metric-attribution i {
  background: #64748b;
}

.cronogram-person-menu-legend .metric-evaluator i {
  background: #3b82f6;
}

.cronogram-person-menu-legend .metric-reviewer i {
  background: #8b5cf6;
}

.cronogram-person-menu-item.has-communication-alert {
  background: #fff8e7;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.cronogram-person-menu-item.has-evaluator-alert {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.cronogram-person-menu-item.selected {
  box-shadow: inset 3px 0 0 #4b5563, 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cronogram-person-menu-item .work-communication-person-badge {
  position: static;
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 9px;
}

.cronogram-person-workspace {
  background: #fff;
}

.cronogram-person-summary {
  gap: 8px;
}

.cronogram-person-summary-main {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cronogram-person-summary-main > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cronogram-person-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.cronogram-person-name-row > strong {
  overflow-wrap: anywhere;
}

.cronogram-person-identity > small {
  color: #b45309;
  font-size: 10px;
  font-weight: 800;
}

.cronogram-role-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.cronogram-role-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
}

.cronogram-role-summary small {
  color: inherit;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.cronogram-role-summary small i {
  display: block;
  font-size: 6px;
  font-style: normal;
  opacity: 0.7;
}

.cronogram-role-summary b {
  font-size: 12px;
}

.cronogram-role-summary .metric-attribution {
  background: #e2e8f0;
  color: #334155;
}

.cronogram-role-summary .metric-evaluator {
  background: #dbeafe;
  color: #1e3a8a;
}

.cronogram-role-summary .metric-reviewer {
  background: #ede9fe;
  color: #6d28d9;
}

.cronogram-role-summary .metric-inactive {
  background: #fef3c7;
  color: #92400e;
}

.cronogram-person-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.cronogram-person-actions button {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 27px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.cronogram-person-actions .cronogram-person-export-button {
  width: auto;
  min-width: 45px;
  padding: 0 7px;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.cronogram-person-actions .cronogram-person-export-xlsx {
  border-color: #93c5aa;
  background: #eaf7ef;
  color: #217346;
}

.cronogram-person-actions .cronogram-person-export-word {
  border-color: #91b5dc;
  background: #edf4fb;
  color: #185abd;
}

.cronogram-person-actions .cronogram-person-export-xlsx:hover:not(:disabled) {
  border-color: #4f9a6d;
  background: #d9f0e2;
}

.cronogram-person-actions .cronogram-person-export-word:hover:not(:disabled) {
  border-color: #4d86c2;
  background: #dceafa;
}

.cronogram-person-actions button:hover:not(:disabled) {
  border-color: #9ca3af;
  background: #e5e7eb;
}

.cronogram-person-actions .cronogram-person-delete-button {
  border-color: #e8c0c0;
  background: #fff7f7;
  color: #a33b3b;
  font-size: 17px;
}

.cronogram-person-actions .cronogram-person-delete-button:hover:not(:disabled) {
  border-color: #d66a6a;
  background: #fee2e2;
  color: #8f1f1f;
}

.cronogram-operational-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 360px));
  justify-content: start;
  gap: 18px 28px;
}

.cronogram-metric-group {
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
}

.cronogram-metric-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.cronogram-metric-group > header > span {
  color: #334155;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.cronogram-metric-group > header > small {
  color: #64748b;
  font-size: 8px;
  font-weight: 700;
}

.cronogram-metric-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 1px;
  background: #e2e8f0;
}

.cronogram-metric-cards > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 35px;
  padding: 5px 7px;
  background: #fff;
}

.cronogram-metric-cards small {
  color: #64748b;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.cronogram-metric-cards b {
  color: #334155;
  font-size: 13px;
}

.cronogram-adjustment-stat {
  grid-template-columns: auto minmax(58px, 1fr) !important;
}

.cronogram-adjustment-stat .field-edit-control {
  min-width: 0;
}

.cronogram-adjustment-stat .cronogram-availability-input {
  width: 54px;
  min-width: 0;
}

.cronogram-adjustment-stat .field-confirm-button {
  flex-basis: 21px;
  width: 21px;
  height: 21px;
}

.cronogram-sidebar-content-wrap {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 0;
}

.cronogram-sidebar-content-wrap .cronogram-process-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 1280px;
  min-height: 100%;
  border: 0;
}

.cronogram-sidebar-content-wrap .cronogram-process-list {
  max-height: none;
  overflow: visible;
}

.cronograms-dashboard.app-fullscreen .cronogram-team-layout {
  min-height: 0;
}

@media (max-width: 1200px) {
  .cronogram-operational-groups {
    grid-template-columns: minmax(250px, 360px);
    row-gap: 18px;
  }
}

@media (max-width: 760px) {
  .cronogram-operational-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .cronogram-person-menu-legend {
    gap: 4px;
  }

  .cronogram-person-menu-legend > span {
    font-size: 7px;
  }

  .cronogram-metric-group > header > small {
    display: none;
  }
}

.cronograms-dashboard .team-table-wrap {
  min-width: 0;
  overflow-anchor: none;
}

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

.cronograms-table {
  min-width: 1160px;
}

.team-table th,
.team-table td {
  padding: 7px 8px;
  border-right: 1px solid #d7e1ec;
  border-bottom: 1px solid #d7e1ec;
  text-align: center;
}

.team-table th:first-child,
.team-table td:first-child {
  width: 230px;
  text-align: left;
}

.team-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #dceaf7;
  color: #244b75;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 22px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
}

.team-sort-button:hover,
.team-sort-button.active {
  background: #c9def1;
  color: #173b67;
}

.team-sort-button b {
  color: #527aa5;
  font-size: 10px;
}

.team-sort-button.active b {
  color: #173b67;
}

.team-person-row {
  background: #fff;
}

.team-person-row:hover,
.team-person-row.expanded {
  background: #f1f7fd;
}

.team-person-row.has-communication-alert {
  background: #fff8e7;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.team-person-row.has-communication-alert:hover,
.team-person-row.has-communication-alert.expanded {
  background: #fff3d5;
}

.team-person-row.has-evaluator-communication-alert {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.team-person-row.has-evaluator-communication-alert:hover,
.team-person-row.has-evaluator-communication-alert.expanded {
  background: #dbeafe;
}

.team-person-row td:first-child button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #173b67;
  text-align: left;
}

.team-person-row td:first-child button > span {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #9ab8d8;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  line-height: 1;
}

.team-person-row td:first-child strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cronogram-person-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cronogram-person-cell > button:first-child {
  flex: 1;
  min-width: 0;
}

.team-person-row td:first-child .cronogram-link-button,
.team-person-row td:first-child .cronogram-person-export-button,
.team-person-row td:first-child .cronogram-person-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  min-width: 28px;
  min-height: 24px;
  padding: 0;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #eef4fa;
  color: #244b75;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.team-person-row td:first-child .cronogram-link-button:hover,
.team-person-row td:first-child .cronogram-person-export-button:hover {
  border-color: #3b82f6;
  background: #dbeafe;
  color: #1e3a8a;
}

.team-person-row td:first-child .cronogram-person-delete-button {
  border-color: #e8c0c0;
  background: #fff7f7;
  color: #a33b3b;
  font-size: 16px;
  line-height: 1;
}

.team-person-row td:first-child .cronogram-person-delete-button:hover:not(:disabled) {
  border-color: #d66a6a;
  background: #fee2e2;
  color: #8f1f1f;
}

.team-person-row td:first-child .cronogram-person-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.team-count {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef4fa;
  color: #334155;
  font-size: 12px;
}

.team-count.primary {
  background: #dbeafe;
  color: #1e3a8a;
}

.team-count.with-deadline {
  border: 1px solid #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 900;
}

.team-detail-row > td {
  width: auto !important;
  padding: 0 12px 10px 37px;
  background: #f8fbff;
}

.cronograms-table .team-detail-row > td {
  padding: 5px 8px 10px;
  background: #f8fbff;
}

.team-process-list {
  width: 100%;
  border-top: 1px solid #d7e1ec;
  border-left: 1px solid #d7e1ec;
  background: #fff;
}

.cronogram-process-list {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: min(560px, calc(100vh - 285px));
  overflow: auto;
  border: 0;
  background: #f8fbff;
}

.team-process-list-head,
.team-process-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(165px, 0.95fr) minmax(105px, 0.65fr) minmax(120px, 0.75fr) minmax(115px, 0.7fr) minmax(120px, 0.75fr);
}

.cronogram-process-list-head,
.cronogram-process-row {
  grid-template-columns: 34px minmax(260px, 0.9fr) minmax(185px, 1fr) minmax(130px, 0.72fr) 68px 84px 86px 78px 200px 124px;
  min-width: 1280px;
}

.team-process-list-head > span,
.team-process-row > div {
  min-width: 0;
  padding: 6px 8px;
  border-right: 1px solid #d7e1ec;
  border-bottom: 1px solid #d7e1ec;
  text-align: left;
}

.team-process-list-head > span {
  background: #eef4fa;
  color: #42658a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cronogram-process-list-head {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 #9ab8d8;
}

.cronogram-process-list-head > span {
  border-color: #c8d7e7;
  background: #eef4fa;
  color: #173b67;
  font-size: 11px;
  letter-spacing: 0;
}

.cronogram-process-row > div {
  border-color: #d7e1ec;
  background: #fff;
  min-height: 38px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.16;
}

.cronogram-process-row > div:nth-child(2) {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cronogram-process-row > div:nth-child(2) > small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
}

.cronogram-order-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.cronogram-order-cell strong {
  min-width: 22px;
  color: #173b67;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.cronogram-order-cell > span {
  display: inline-flex;
  gap: 3px;
}

.cronogram-order-cell button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #a9c7e8;
  border-radius: 5px;
  background: #f8fbff;
  color: #173b67;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.cronogram-order-cell button:hover:not(:disabled) {
  border-color: #6c9ed1;
  background: #e8f3ff;
}

.cronogram-order-cell button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cronogram-order-number {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid #c8d7e7;
  border-radius: 999px;
  background: #f8fbff;
  color: #244b75;
  font-size: 13px;
  font-weight: 900;
}

.cronogram-order-drag-handle {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 22px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  cursor: grab;
  user-select: none;
}

.cronogram-order-drag-handle:hover {
  border-color: #b8cbe0;
  background: #eef4fa;
  color: #244b75;
}

.cronogram-order-drag-handle:active {
  cursor: grabbing;
}

.cronogram-grip-dots {
  width: 10px;
  height: 16px;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.6px);
  background-position: 0 0;
  background-size: 6px 6px;
  opacity: 0.85;
}

.cronogram-process-row.is-dragging > div {
  opacity: 0.55;
  background: #eef4fa;
}

.cronogram-process-row.drag-before > div {
  box-shadow: inset 0 3px 0 #2563eb;
}

.cronogram-process-row.drag-after > div {
  box-shadow: inset 0 -3px 0 #2563eb;
}

.cronogram-process-empty {
  padding: 12px;
  border-bottom: 1px solid #d7e1ec;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.cronogram-process-list-head > span:nth-child(1),
.cronogram-process-row > div:nth-child(1),
.cronogram-process-list-head > span:nth-child(5),
.cronogram-process-row > div:nth-child(5),
.cronogram-process-list-head > span:nth-child(6),
.cronogram-process-row > div:nth-child(6),
.cronogram-process-list-head > span:nth-child(7),
.cronogram-process-row > div:nth-child(7),
.cronogram-process-list-head > span:nth-child(8),
.cronogram-process-row > div:nth-child(8),
.cronogram-process-list-head > span:nth-child(9),
.cronogram-process-row > div:nth-child(9),
.cronogram-process-list-head > span:nth-child(10),
.cronogram-process-row > div:nth-child(10) {
  text-align: center;
}

.cronogram-process-row > div:nth-child(1),
.cronogram-process-row > div:nth-child(5),
.cronogram-process-row > div:nth-child(6),
.cronogram-process-row > div:nth-child(7),
.cronogram-process-row > div:nth-child(8),
.cronogram-process-row > div:nth-child(9),
.cronogram-process-row > div:nth-child(10) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cronogram-process-row > div:nth-child(3),
.cronogram-process-row > div:nth-child(4) {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

.cronogram-process-row > div:nth-child(5),
.cronogram-process-row > div:nth-child(6),
.cronogram-process-row > div:nth-child(7) {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cronogram-address-label,
.cronogram-nickname-priority {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #244b75;
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cronogram-nickname-priority {
  color: #475569;
}

.cronogram-address-label:hover,
.cronogram-address-label:focus,
.cronogram-nickname-priority:hover,
.cronogram-nickname-priority:focus {
  position: absolute;
  z-index: 8;
  left: 7px;
  top: 50%;
  width: max-content;
  max-width: min(520px, 70vw);
  padding: 5px 8px;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 64, 100, 0.18);
  color: #173b67;
  overflow: visible;
  text-overflow: clip;
  transform: translateY(-50%);
  white-space: normal;
}

.cronogram-process-parent > div {
  background: #f3f8fe;
  font-weight: 400;
}

.cronogram-process-child > div:nth-child(2) {
  padding-left: 8px;
}

.cronogram-process-child > div {
  background: #fff;
}

.cronogram-parent-process-cell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  min-width: 0;
}

.cronogram-parent-process-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cronogram-parent-process-main .team-process-title {
  gap: 6px;
}

.cronogram-process-row .status-pill {
  padding: 2px 6px;
  font-size: 9px;
}

.cronogram-process-row .team-deadline {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 11px;
}

.cronogram-activity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.cronogram-activity-pill.elaborar {
  background: #e0f2fe;
  color: #075985;
}

.cronogram-activity-pill.ajustes {
  background: #fef3c7;
  color: #92400e;
}

.cronogram-activity-pill.revisar {
  background: #fee2e2;
  color: #991b1b;
}

.cronogram-activity-pill.concluido {
  background: #dcfce7;
  color: #166534;
}

.cronogram-activity-pill.neutra {
  background: #f1f5f9;
  color: #475569;
}

.cronogram-process-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #f8fbff;
  color: #173b67;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  box-shadow: none;
  font-family: Arial, sans-serif;
  text-align: center;
}

.cronogram-process-toggle:hover {
  background: #e8f3ff;
}

.cronogram-process-toggle.expanded {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
}

.cronogram-process-row .team-process-title {
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.cronogram-process-row .team-process-title strong,
.cronogram-process-parent .team-process-title strong {
  color: #123b68;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.cronogram-process-main-line strong {
  flex: 0 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cronogram-process-main-line .status-pill,
.cronogram-process-main-line .process-info {
  flex: 0 0 auto;
}

.work-communication-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  margin-left: 4px;
  padding: 2px 7px;
  border: 1px solid #a9c7e8;
  border-radius: 999px;
  background: #f8fbff;
  color: #173b67;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.work-communication-button:hover {
  background: #e8f3ff;
}

.cronogram-process-row .work-communication-button {
  min-height: 22px;
  margin-left: 0;
  padding: 2px 6px;
  font-size: 9px;
}

.cronogram-process-row .process-info {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.work-communication-badge,
.work-communication-person-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.work-communication-badge.pending,
.work-communication-person-badge,
.communication-alert b {
  background: #fef3c7;
  color: #92400e;
}

.work-communication-badge.done {
  background: #dcfce7;
  color: #166534;
}

.work-communication-person-alert {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #f6c453;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.cronogram-days-input,
.cronogram-availability-input {
  box-sizing: border-box;
  width: 78px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid #9ab8d8;
  border-radius: 4px;
  background: #fff;
  color: #173b67;
  font-size: 12px;
  font-weight: 800;
}

.cronogram-days-editor {
  display: grid;
  grid-template-columns: 58px 28px minmax(86px, 1fr);
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.cronogram-activity-lines {
  display: block;
  min-width: 0;
  width: 100%;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cronogram-activity-lines.empty {
  color: #94a3b8;
  font-weight: 700;
  text-align: left;
}

.cronogram-days-editor .cronogram-days-input {
  width: 58px;
  min-height: 24px;
  padding: 3px 6px;
  font-size: 11px;
}

.cronogram-days-input[readonly] {
  background: #f8fafc;
  color: #334155;
  cursor: default;
}

.cronogram-activity-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border-color: #6c9ed1;
  border-radius: 4px;
  background: #f8fbff;
  color: #173b67;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.cronogram-row-tools {
  gap: 0;
  padding-right: 3px !important;
  padding-left: 3px !important;
}

.cronogram-role-label,
.cronogram-property-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cronogram-activity-button:hover {
  background: #e8f3ff;
}

.cronogram-activity-detail-button {
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #a9c7e8;
  border-radius: 5px;
  background: #f8fbff;
  color: #173b67;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.cronogram-activity-detail-button:hover {
  background: #e8f3ff;
}

.cronogram-meta-control-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #cfe0f2;
  background: #eef4fa;
}

.cronogram-meta-control-modal-head h2 {
  margin: 0;
}

.cronogram-meta-control-modal-head p {
  margin: 3px 0 0;
}

.cronogram-meta-control-modal-head button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  background: #fff;
  color: #173b67;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.cronogram-meta-control-modal-body {
  min-height: 0;
  overflow: hidden;
}

.cronogram-meta-control {
  border: 0;
  background: #fff;
}

.cronogram-meta-control > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #d7e1ec;
  background: #eef4fa;
}

.cronogram-meta-control > header > div:first-child {
  display: grid;
  gap: 1px;
}

.cronogram-meta-control > header span {
  color: #42658a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cronogram-meta-control > header strong {
  color: #173b67;
  font-size: 14px;
}

.cronogram-meta-control-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.cronogram-meta-control-summary span {
  display: grid;
  min-width: 86px;
  padding: 5px 8px;
  border: 1px solid #b9d3ee;
  border-radius: 5px;
  background: #fff;
  text-align: center;
}

.cronogram-meta-control-summary small {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.cronogram-meta-control-summary b {
  color: #173b67;
  font-size: 13px;
}

.cronogram-meta-control-wrap {
  overflow: auto;
  max-height: calc(100vh - 192px);
}

.cronogram-meta-control-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #173b67;
  font-size: 12px;
}

.cronogram-meta-control-table th,
.cronogram-meta-control-table td {
  min-width: 46px;
  padding: 5px 7px;
  border-right: 1px solid #d7e1ec;
  border-bottom: 1px solid #d7e1ec;
  background: #fff;
  text-align: center;
  white-space: nowrap;
}

.cronogram-meta-control-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #dbeafe;
  color: #173b67;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.cronogram-meta-control-table thead tr:nth-child(2) th {
  top: 28px;
}

.cronogram-meta-static-head {
  height: 20px;
  background: #eef4fa !important;
}

.cronogram-meta-process-action {
  max-width: 52px;
  min-width: 52px;
  height: 20px;
  padding: 3px 4px !important;
  background: #f8fbff !important;
  color: #64748b !important;
  font-size: 8.5px !important;
  line-height: 1.08;
  white-space: normal !important;
}

.cronogram-meta-process-head {
  max-width: 52px;
  min-width: 52px;
  height: 118px;
  padding: 6px 3px !important;
  vertical-align: bottom;
}

.cronogram-meta-process-head span {
  display: inline-block !important;
  max-width: none !important;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10.5px;
  white-space: nowrap !important;
  line-height: 1;
}

.cronogram-meta-control-table th:first-child,
.cronogram-meta-control-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 310px;
  max-width: 310px;
  background: #fffdf8;
  color: #7c2d12;
  text-align: left;
  white-space: normal;
}

.cronogram-meta-control-table th:first-child {
  z-index: 3;
  background: #ffedd5;
}

.cronogram-meta-control-table th:nth-child(2),
.cronogram-meta-control-table td:nth-child(2),
.cronogram-meta-control-table th:nth-child(3),
.cronogram-meta-control-table td:nth-child(3) {
  min-width: 56px;
}

.cronogram-meta-control-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.cronogram-meta-control-table tbody tr:nth-child(even) td:first-child {
  background: #fff7ed;
}

.cronogram-meta-control-table tfoot td {
  position: sticky;
  bottom: 0;
  background: #eef4fa;
  font-weight: 900;
}

.cronogram-meta-control-table tfoot td:first-child {
  background: #ffedd5;
  text-align: right;
}

.cronogram-meta-control-empty td {
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

.cronogram-availability-input {
  border-color: #93c5fd;
  color: #1e3a8a;
}

.cronogram-availability-input:disabled {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #94a3b8;
}

.cronogram-days-input:focus,
.cronogram-availability-input:focus {
  outline: 2px solid #fed7aa;
  outline-offset: 1px;
}

.cronogram-balance {
  display: inline-flex;
  justify-content: center;
  min-width: 38px;
  padding: 2px 6px;
  border-radius: 4px;
}

.cronogram-eligible-count {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.cronogram-balance.available {
  background: #dcfce7;
  color: #166534;
}

.cronogram-balance.tight {
  background: #fef3c7;
  color: #92400e;
}

.cronogram-balance.overloaded {
  background: #fee2e2;
  color: #991b1b;
}

.team-process-row {
  cursor: pointer;
}

.team-process-row:hover > div {
  background: #eff6ff;
}

.team-process-row > div:first-child {
  display: grid;
  gap: 2px;
}

.team-process-row > div:first-child strong {
  color: #173b67;
  font-size: 12px;
}

.team-process-title,
.priority-card-process {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 3px;
}

.team-process-title .process-info,
.priority-card-process .process-info {
  margin-left: 0;
}

.team-process-row > div:first-child small {
  color: #64748b;
  font-size: 10px;
}

.team-task-badge,
.team-deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border: 1px solid #b8cbe0;
  border-radius: 4px;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.team-task-badge.active,
.team-deadline.scheduled {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e40af;
}

.team-deadline.soon {
  border-color: #facc15;
  background: #fefce8;
  color: #854d0e;
}

.team-deadline.overdue {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.team-deadline small {
  font-size: 9px;
  font-weight: 700;
}

.cronograms-empty {
  padding: 14px;
  color: #64748b;
  font-size: 12px;
  text-align: left !important;
}

.prioritization-board {
  display: grid;
  gap: 12px;
  height: calc(100vh - 168px);
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

.priority-flow {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.priority-kanban {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 8px;
  min-width: 1588px;
  padding-bottom: 6px;
}

.priority-kanban-toolbar {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.priority-kanban-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #4b5563;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-kanban-toolbar select {
  min-width: 178px;
  min-height: 32px;
  padding: 6px 30px 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.priority-kanban-toolbar select:focus {
  border-color: #6b7280;
  outline: 2px solid rgba(75, 85, 99, 0.2);
  outline-offset: 1px;
}

.priority-kanban-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.priority-horizontal-scroll {
  width: 100%;
  height: 18px;
  overflow-x: scroll;
  overflow-y: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f3f4f6;
  scrollbar-color: #9ca3af #f3f4f6;
  scrollbar-width: auto;
}

.priority-horizontal-scroll > div {
  height: 1px;
}

.priority-horizontal-scroll::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.priority-horizontal-scroll::-webkit-scrollbar-track {
  border-radius: 4px;
  background: #f3f4f6;
}

.priority-horizontal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #f3f4f6;
  border-radius: 7px;
  background: #9ca3af;
}

.priority-not-entered-column {
  width: 100%;
  min-width: 1005px;
  background: #f8fafc;
}

.priority-request-entry {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.priority-request-entry > header {
  min-height: 34px;
  padding: 7px 8px;
  border-bottom: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
  font-size: 10px;
  font-weight: 800;
}

.priority-request-body {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.priority-new-request-card {
  display: grid;
  grid-template-columns: 180px 150px 135px minmax(260px, 1fr) 90px;
  gap: 7px;
  align-items: end;
  padding: 9px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
}

.priority-new-request-card label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.priority-new-request-card label > span {
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-new-request-card input,
.priority-new-request-card textarea {
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 18px;
}

.priority-new-request-card textarea {
  height: 34px;
  resize: vertical;
}

.priority-new-request-card input::placeholder,
.priority-new-request-card textarea::placeholder {
  color: #64748b;
  opacity: 0.86;
}

/* Novo pedido: linguagem visual da área de comunicações, sem alterar o Kanban. */
.priority-request-entry {
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(30, 64, 175, 0.07);
}

.priority-request-entry > header {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 62%, #f8fafc 100%);
  color: #1e3a5f;
}

.priority-request-entry > header span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.priority-request-entry > header::after {
  content: "Registre o processo e complemente somente as informações disponíveis.";
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.priority-request-body {
  gap: 10px;
  padding: 11px 12px 12px;
  background: #fff;
}

.priority-new-request-card {
  grid-template-columns: minmax(190px, 1.25fr) minmax(150px, 0.9fr) minmax(145px, 0.8fr) minmax(260px, 2fr) 112px;
  gap: 10px;
  padding: 11px;
  border: 1px solid #dbe7f3;
  border-left: 4px solid #60a5fa;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045);
}

.priority-new-request-card label {
  gap: 5px;
}

.priority-new-request-card label > span {
  color: #526b86;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.priority-new-request-card input,
.priority-new-request-card textarea {
  min-height: 36px;
  padding: 8px 9px;
  border-color: #c7d8e9;
  border-radius: 6px;
  background: #fff;
  color: #243b53;
  font-weight: 700;
}

.priority-new-request-card textarea {
  height: 36px;
}

.priority-new-request-card input:focus,
.priority-new-request-card textarea:focus {
  border-color: #60a5fa;
  outline: 3px solid #dbeafe;
  outline-offset: 1px;
}

.priority-new-request-card > .priority-row-add {
  min-height: 36px;
  border: 1px solid #3b82f6 !important;
  border-radius: 7px !important;
  background: #2563eb !important;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.18);
  color: #fff !important;
  font-size: 10px;
  letter-spacing: 0.025em;
}

.priority-new-request-card > .priority-row-add:hover {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
}

@media (max-width: 980px) {
  .priority-not-entered-column {
    min-width: 720px;
  }

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

  .priority-new-comment-field,
  .priority-new-request-card > .priority-row-add {
    grid-column: 1 / -1;
  }
}

.priority-pending-table {
  min-width: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.priority-pending-table::-webkit-scrollbar,
.priority-kanban-viewport::-webkit-scrollbar {
  display: none;
}

.priority-pending-head,
.priority-pending-row {
  display: grid;
  grid-template-columns: 180px 150px 135px minmax(240px, 1fr) 90px;
  min-width: 800px;
}

.priority-pending-head > span {
  padding: 5px 6px;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.priority-pending-row {
  border-left: 1px solid #cbd5e1;
}

.priority-pending-row > input,
.priority-pending-row > textarea,
.priority-pending-row > output,
.priority-pending-row > .priority-pending-actions,
.priority-pending-row > button {
  min-width: 0;
  min-height: 38px;
  padding: 5px 6px;
  border: 0;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.priority-pending-row > textarea {
  height: 38px;
  resize: vertical;
}

.priority-pending-row > input:disabled {
  background: #eef2f7;
  color: #475569;
  opacity: 1;
}

.priority-eav-state {
  display: grid;
  place-items: center;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.priority-eav-state.yes {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.priority-eav-state.no {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

.priority-new-row {
  margin-bottom: 7px;
  box-shadow: 0 0 0 2px #d1d5db;
}

.priority-new-row > input,
.priority-new-row > textarea {
  background: #fff;
}

.priority-pending-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.priority-pending-actions button,
.priority-row-add {
  min-width: 0;
  min-height: 28px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 800;
}

.priority-row-add {
  align-self: stretch;
  border-color: #cbd5e1 !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
}

.priority-new-request-card > .priority-row-add {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 5px !important;
  font-size: 11px;
}

.priority-row-save {
  flex: 1;
  border-color: #cbd5e1;
  background: #f3f4f6;
  color: #374151;
}

.priority-column {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.priority-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 36px;
  padding: 7px 8px;
  border-bottom: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
  font-size: 10px;
  font-weight: 800;
}

.priority-column > header b {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff;
  text-align: center;
}

.priority-column-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 130px;
  padding: 7px;
}

.priority-card {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #6b7280;
  border-left: 5px solid #4b5563;
  border-radius: 6px;
  background: #f1f3f5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.priority-card[hidden] {
  display: none;
}

.prioritized-card {
  cursor: pointer;
}

.prioritized-card.is-prioritized {
  border-color: #6b7280;
  border-left-color: #4b5563;
  background: #f1f3f5;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.prioritized-card.is-prioritized-without-deadline {
  border-color: #6b7280;
  border-left-color: #4b5563;
  background: #f1f3f5;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.prioritized-card.is-external-request {
  border-color: #6b7280;
  border-left-color: #4b5563;
  background: #f1f3f5;
}

.prioritized-card:hover {
  border-color: #4b5563;
  background: #e5e7eb;
}

.prioritized-card.is-prioritized:hover {
  border-color: #4b5563;
  background: #e5e7eb;
}

.prioritized-card.is-prioritized-without-deadline:hover {
  border-color: #4b5563;
  background: #e5e7eb;
}

.prioritized-card.is-external-request:hover {
  border-color: #4b5563;
  background: #e5e7eb;
}

.priority-card.status-n-o-distribu-do {
  --priority-status-border: #64748b;
  --priority-status-background: #f8fafc;
  --priority-status-hover: #f1f5f9;
}

.priority-card.status-distribu-do {
  --priority-status-border: #0284c7;
  --priority-status-background: #f0f9ff;
  --priority-status-hover: #e0f2fe;
}

.priority-card.status-revisar {
  --priority-status-border: #dc2626;
  --priority-status-background: #fff7f7;
  --priority-status-hover: #feecec;
}

.priority-card.status-revisado,
.priority-card.status-revis-o-1 {
  --priority-status-border: #2563eb;
  --priority-status-background: #f5f8ff;
  --priority-status-hover: #eaf1ff;
}

.priority-card.status-ver-ajustes {
  --priority-status-border: #ca8a04;
  --priority-status-background: #fffdf0;
  --priority-status-hover: #fef9c3;
}

.priority-card.status-homologar {
  --priority-status-border: #65a30d;
  --priority-status-background: #f9fdeb;
  --priority-status-hover: #f1f9d7;
}

.priority-card.status-enviado {
  --priority-status-border: #16a34a;
  --priority-status-background: #f3fcf6;
  --priority-status-hover: #e7f8ed;
}

.priority-card[class*="status-"] {
  border-color: var(--priority-status-border, #64748b);
  border-left-color: var(--priority-status-border, #64748b);
  background: var(--priority-status-background, #f8fafc);
}

.priority-card[class*="status-"]:hover {
  border-color: var(--priority-status-border, #475569);
  border-left-color: var(--priority-status-border, #475569);
  background: var(--priority-status-hover, #f1f5f9);
}

.priority-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.priority-card-head strong {
  color: #173b67;
  font-size: 11px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.priority-card .priority-card-head .status-pill {
  flex: 0 0 auto;
  max-width: 96px;
  padding: 2px 5px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 9px;
  white-space: normal;
  text-align: center;
}

.priority-card-head-actions {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  flex: 0 0 auto;
}

.priority-card-remove {
  width: 22px;
  height: 22px;
  padding: 0;
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
  font-size: 15px;
  line-height: 1;
}

.priority-card-remove:hover {
  background: #fee2e2;
}

.priority-card-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.priority-card-nickname,
.priority-card-priority,
.priority-card-deadline-alert,
.priority-card-external-label {
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.priority-card-deadline-alert {
  border: 1px solid #fdba74;
  background: #ffedd5;
  color: #9a3412;
}

.priority-card-external-label {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.priority-card-nickname {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e40af;
}

.priority-card-priority {
  border: 1px solid #bfdbfe;
  background: #dbeafe;
  color: #1d4ed8;
}

.priority-card-delete {
  width: 23px;
  height: 23px;
  padding: 0;
  color: #991b1b;
  font-size: 16px;
  line-height: 1;
}

.priority-label {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid #93c5fd;
  border-radius: 4px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 10px;
  font-weight: 400;
}

.priority-card p {
  margin: 0;
  color: #475569;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.priority-card p b {
  color: #244b75;
  font-weight: 400;
}

.priority-card small {
  color: #64748b;
  font-size: 10px;
}

.priority-card-edit label {
  display: grid;
  gap: 3px;
}

.priority-card-edit label > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

.priority-card-edit input,
.priority-card-edit textarea {
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #b8cbe0;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.priority-card-edit textarea {
  min-height: 52px;
  resize: vertical;
}

.priority-card-save {
  min-height: 28px;
  padding: 4px 7px;
  border-color: #7ca6d8;
  background: #e8f2ff;
  color: #244b75;
  font-size: 10px;
  font-weight: 800;
}

.priority-card dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.priority-card dl > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 5px;
}

.priority-card dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

.priority-card dd {
  min-width: 0;
  margin: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.priority-deadline-missing {
  justify-self: start;
  padding: 1px 5px;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e !important;
}

.priority-empty {
  margin: 0;
  padding: 12px 8px;
  color: #64748b;
  font-size: 10px;
  text-align: center;
}

.meta-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.meta-dashboard-head strong,
.meta-dashboard-head span,
.meta-month-control {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.meta-dashboard-head strong {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

.meta-month-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-month-control.compact-month-control {
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
}

.meta-month-control span {
  border: 0;
  padding: 0;
  background: transparent;
}

.meta-month-control select,
.meta-homologador-select {
  min-height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.meta-month-control select {
  min-width: 105px;
}

.meta-month-control.compact-month-control select {
  min-height: 28px;
  padding: 3px 8px;
  border-color: #9ab8d8;
  color: #173b67;
  font-size: 12px;
  font-weight: 800;
}

.meta-link-button {
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  background: #eef4fa;
  color: #244b75;
  font-size: 12px;
  font-weight: 800;
}

.meta-link-button:hover {
  border-color: #3b82f6;
  background: #dbeafe;
  color: #1e3a8a;
}

.cronogram-fullscreen-button {
  white-space: nowrap;
}

.meta-summary-fields {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-right: auto;
}

.meta-process-summary-fields {
  width: max-content;
  min-width: 0;
  margin: 0 0 8px;
  padding: 6px;
  border: 1px solid #c9d7e6;
  border-radius: 6px;
  background: #f8fbff;
}

.meta-summary-field {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #b8cbe0;
  border-radius: 5px;
  background: #fff;
}

.meta-summary-field span {
  color: #42658a;
  font-size: 10px;
  font-weight: 800;
}

.meta-summary-field strong {
  color: #173b67;
  font-size: 13px;
}

.meta-target-field input {
  width: 72px;
  min-height: 24px;
  padding: 2px 5px;
  border: 1px solid #9ab8d8;
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  text-align: center;
}

.meta-target-field input:focus {
  border-color: var(--app-blue);
  outline: 2px solid #bfdbfe;
  outline-offset: 0;
}

.meta-dashboard-content {
  max-height: calc(100vh - 210px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f9fc;
  scrollbar-gutter: stable both-edges;
}

.meta-subtabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  min-height: 42px;
  padding: 7px 10px 0;
  border-bottom: 1px solid #9ab8d8;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f1fa 100%);
}

.meta-subtabs button {
  position: relative;
  bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin-bottom: 0;
  padding: 5px 14px 7px;
  border: 1px solid #a8bfd8;
  border-bottom-color: #9ab8d8;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, #eef5fc 0%, #dce9f6 100%);
  color: #46617f;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.meta-subtabs button:hover {
  border-color: #7ca6d8;
  border-bottom-color: #7ca6d8;
  background: linear-gradient(180deg, #f8fbff 0%, #e6f0fb 100%);
  color: #173b67;
}

.meta-subtabs button.active {
  z-index: 2;
  min-height: 35px;
  border-color: #76a6dc;
  border-bottom-color: #fff;
  background: #fff;
  color: #173b67;
  box-shadow: 0 -1px 0 #d7e6f5, 0 -3px 8px rgba(37, 99, 235, 0.08);
}

.meta-subtabs button.active:hover {
  border-bottom-color: #fff;
  background: #fff;
}

.meta-subtabs b {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  text-align: center;
}

.meta-executive-summary {
  width: calc(100% - 16px);
  min-width: 900px;
  max-width: 1120px;
  margin: 10px 8px 14px;
  padding: 10px;
  border: 1px solid #b8cbe0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 135, 0.08);
}

.meta-executive-summary h2 {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b8d7f0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #eaf6ff, #dbeafe);
  color: #123e6d;
  font-size: 18px;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
}

.meta-executive-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: #111827;
  font-size: 12px;
}

.meta-executive-section-col {
  width: 220px;
}

.meta-executive-value-col {
  width: 110px;
}

.meta-executive-table th,
.meta-executive-table td {
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid #d7e0eb;
  vertical-align: middle;
}

.meta-executive-table th {
  color: #244b75;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

.meta-executive-table th.merged-section {
  background: linear-gradient(180deg, #e8f3ff, #f5fbff);
  border-left: 4px solid #7ca6d8;
  color: #173b67;
  letter-spacing: 0;
}

.meta-executive-table th.blank-section {
  background: #f8fbff;
  border-left: 4px solid #d7e0eb;
}

.meta-executive-table .meta-summary-label {
  color: #173b67;
  font-weight: 600;
  text-transform: uppercase;
}

.meta-executive-table .meta-summary-value {
  background: #f8fbff;
  color: #0f3762;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.meta-executive-table .total-row td {
  background: #f8fbff;
  color: #173b67;
}

.meta-executive-table .section-row td {
  background: #fff;
}

.meta-executive-table .group-start th,
.meta-executive-table .group-start td {
  border-top: 2px solid #aac3dc;
}

.meta-executive-table .group-end th,
.meta-executive-table .group-end td {
  border-bottom: 2px solid #d3e2ef;
}

.meta-executive-table .section-row.group-end td:nth-child(2) {
  color: #0f3762;
}

.meta-process-overview {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
}

.meta-process-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.meta-process-summary-card {
  position: relative;
  border: 1px solid #c9d8e8;
  border-left: 5px solid #7fa7d2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: #173b67;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(24, 59, 103, 0.08);
}

.meta-process-summary-card:nth-child(2) {
  border-left-color: #6fb4d9;
}

.meta-process-summary-card:nth-child(3) {
  border-left-color: #8fa8c3;
}

.meta-process-summary-card:nth-child(4) {
  border-left-color: #4f80b4;
}

.meta-process-summary-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #d5e2ef;
  background: #eef4fa;
  color: #173b67;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.meta-process-summary-card h3 small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: lowercase;
}

.meta-summary-line,
.meta-summary-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 31px;
  padding: 6px 10px;
  border-bottom: 1px solid #e1ebf4;
  font-size: 12px;
  line-height: 1.15;
}

.meta-summary-line:last-child,
.meta-summary-inline:last-child {
  border-bottom: 0;
}

.meta-summary-line span {
  min-width: 0;
  color: #315b86;
  font-weight: 400;
}

.meta-summary-line strong,
.meta-summary-inline strong {
  color: #0f3762;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.meta-summary-inline {
  justify-content: space-between;
}

.meta-summary-inline span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  color: #315b86;
  font-weight: 400;
}

.meta-bar-chart {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.meta-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  color: #315b86;
  font-size: 12px;
  font-weight: 400;
}

.meta-bar-row strong {
  color: #0f3762;
  font-size: 13px;
  font-weight: 500;
}

.meta-bar-row i {
  grid-column: 1 / -1;
  display: block;
  height: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.meta-bar-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9ca3af;
}

.meta-bar-row.achieved i b {
  background: #111827;
}

.meta-evaluator-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.meta-evaluator-inline input,
.meta-summary-number-input {
  width: 56px;
  min-height: 24px;
  padding: 2px 5px;
  border: 1px solid #9ab8d8;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: center;
}

.meta-evaluator-inline strong {
  font-size: 14px;
}

.meta-table-wrap {
  width: max-content;
  min-width: 1260px;
  padding: 8px;
}

.meta-process-table-wrap {
  width: 1530px;
  min-width: 100%;
  padding: 6px;
}

.meta-table {
  width: 1530px;
  min-width: 1530px;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.meta-table th:nth-child(1),
.meta-table td:nth-child(1) {
  width: 150px;
}

.meta-table th:nth-child(2),
.meta-table td:nth-child(2) {
  width: 190px;
}

.meta-table th:nth-child(3),
.meta-table td:nth-child(3) {
  width: 82px;
}

.meta-table th:nth-child(4),
.meta-table td:nth-child(4) {
  width: 160px;
}

.meta-table th:nth-child(5),
.meta-table td:nth-child(5) {
  width: 120px;
}

.meta-table th:nth-child(6),
.meta-table td:nth-child(6) {
  width: 120px;
}

.meta-table th:nth-child(7),
.meta-table td:nth-child(7) {
  width: 130px;
}

.meta-table th:nth-child(8),
.meta-table td:nth-child(8) {
  width: 82px;
}

.meta-table th:nth-child(9),
.meta-table td:nth-child(9) {
  width: 58px;
}

.meta-table th:nth-child(10),
.meta-table td:nth-child(10) {
  width: 210px;
}

.meta-table th:nth-child(11),
.meta-table td:nth-child(11) {
  width: 150px;
}

.meta-table th,
.meta-table td {
  max-width: none;
  padding: 6px 8px;
  border: 1px solid #d7e0eb;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.2;
}

.meta-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #dbeafe;
  text-align: center;
  font-size: 10px;
}

.meta-table th.meta-weighted-column {
  z-index: 3;
  padding-inline: 4px;
}

.meta-process-table {
  width: 100%;
  min-width: 100%;
  font-size: 12px;
}

.meta-process-table th:nth-child(1),
.meta-process-table td:nth-child(1) {
  width: 16%;
}

.meta-process-table th:nth-child(2),
.meta-process-table td:nth-child(2) {
  width: 10%;
}

.meta-process-table th:nth-child(3),
.meta-process-table td:nth-child(3) {
  width: 7%;
}

.meta-process-table th:nth-child(4),
.meta-process-table td:nth-child(4) {
  width: 10%;
}

.meta-process-table th:nth-child(5),
.meta-process-table td:nth-child(5) {
  width: 7%;
}

.meta-process-table th:nth-child(6),
.meta-process-table td:nth-child(6) {
  width: 7%;
}

.meta-process-table th:nth-child(7),
.meta-process-table td:nth-child(7) {
  width: 7%;
}

.meta-process-table th:nth-child(8),
.meta-process-table td:nth-child(8) {
  width: 7%;
}

.meta-process-table th:nth-child(9),
.meta-process-table td:nth-child(9) {
  width: 7%;
}

.meta-process-table th:nth-child(10),
.meta-process-table td:nth-child(10) {
  width: 4%;
}

.meta-process-table th:nth-child(11),
.meta-process-table td:nth-child(11) {
  width: 12%;
}

.meta-process-table th:nth-child(12),
.meta-process-table td:nth-child(12) {
  width: 6%;
}

.meta-process-table th,
.meta-process-table td {
  padding: 4px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.meta-process-table th {
  min-height: 42px;
  padding-block: 7px;
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
}

.meta-weighted-head {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.meta-weighted-trigger {
  min-width: 0;
  width: 100%;
  min-height: 24px;
  padding: 2px 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: 1.15;
  text-align: center;
  text-transform: inherit;
  cursor: help;
}

.meta-weighted-trigger:hover,
.meta-weighted-trigger:focus-visible {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meta-weighted-popover {
  position: fixed;
  top: var(--weighted-popover-top, 8px);
  left: var(--weighted-popover-left, 8px);
  z-index: 60;
  display: none;
  width: 275px;
  max-height: var(--weighted-popover-height, calc(100vh - 16px));
  overflow-y: auto;
  padding: 9px;
  border: 1px solid #94a3b8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
  color: #334155;
  text-align: left;
  white-space: normal;
}

.meta-weighted-head:hover .meta-weighted-popover,
.meta-weighted-head:focus-within .meta-weighted-popover {
  display: grid;
  gap: 0;
}

.meta-weighted-popover > strong {
  padding: 2px 4px 8px;
  color: #1e3a5f;
  font-size: 12px;
}

.meta-weighted-rule-head,
.meta-weighted-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  min-height: 25px;
  padding: 4px 6px;
  border-top: 1px solid #e2e8f0;
}

.meta-weighted-rule-head {
  background: var(--app-blue-soft);
  color: #244b75;
  font-size: 9px;
}

.meta-weighted-rule-head b:last-child,
.meta-weighted-rule-row b {
  text-align: center;
}

.meta-weighted-rule-row {
  font-size: 11px;
}

.meta-weighted-rule-row:nth-child(even) {
  background: #f8fafc;
}

.meta-table tbody tr:not(.meta-empty-row):hover td {
  background: #f8fafc;
}

.meta-table td:nth-child(5),
.meta-table td:nth-child(6),
.meta-table td:nth-child(8),
.meta-table td:nth-child(7),
.meta-table td:nth-child(9) {
  text-align: center;
}

.meta-deadline-control {
  display: grid;
  gap: 10px;
  min-width: 920px;
  padding: 10px;
}

.meta-deadline-control-head {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #b8cbe0;
  border-radius: 6px;
  background: #fff;
}

.meta-deadline-control-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-deadline-control-head strong {
  color: #173b67;
  font-size: 15px;
}

.meta-deadline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(430px, 1fr));
  gap: 10px;
}

.meta-deadline-section {
  width: 100%;
  border: 1px solid #b8cbe0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(37, 99, 135, 0.07);
}

.meta-deadline-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 10px;
  color: #173b67;
}

.meta-deadline-section.itbi > header {
  background: #dbeafe;
}

.meta-deadline-section.recompra > header {
  background: #eaf2fb;
  box-shadow: inset 4px 0 0 #7ca6d8;
}

.meta-deadline-section > header strong {
  font-size: 13px;
}

.meta-deadline-section > header span {
  color: #42658a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-deadline-table-wrap {
  overflow-x: auto;
}

.meta-deadline-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.meta-deadline-table th,
.meta-deadline-table td {
  padding: 7px 8px;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  text-align: center;
}

.meta-deadline-table th {
  background: #dceaf7;
  color: #244b75;
  font-size: 10px;
  font-weight: 800;
}

.meta-deadline-table th:nth-child(1),
.meta-deadline-table td:nth-child(1) {
  width: 42px;
}

.meta-deadline-table th:nth-child(2),
.meta-deadline-table td:nth-child(2) {
  width: 175px;
  text-align: left;
}

.meta-deadline-table th:nth-child(3),
.meta-deadline-table td:nth-child(3),
.meta-deadline-table th:nth-child(4),
.meta-deadline-table td:nth-child(4),
.meta-deadline-table th:nth-child(5),
.meta-deadline-table td:nth-child(5) {
  width: 92px;
}

.meta-deadline-table th:nth-child(6),
.meta-deadline-table td:nth-child(6) {
  width: 125px;
}

.meta-deadline-table th:nth-child(7),
.meta-deadline-table td:nth-child(7) {
  width: 100px;
}

.meta-deadline-table tbody tr {
  cursor: pointer;
}

.meta-deadline-table tbody tr:hover td {
  background: #eff6ff;
}

.meta-deadline-table tfoot td {
  background: #eaf2fb;
  color: #315b86;
  font-weight: 800;
}

.meta-deadline-table tfoot td:first-child {
  text-align: right;
}

.meta-deadline-days {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 66px;
  padding: 2px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  color: #475569;
  font-weight: 900;
}

.meta-deadline-days small {
  font-size: 9px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.meta-deadline-days.scheduled {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

.meta-deadline-days.soon {
  border-color: #facc15;
  background: #fef9c3;
  color: #854d0e;
}

.meta-deadline-days.overdue {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.meta-deadline-days.completed {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.meta-special-deadline {
  display: inline-grid;
  grid-template-columns: auto;
  justify-items: center;
  gap: 1px;
  max-width: 100%;
  padding: 2px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
  color: #334155;
  font-size: 10px;
  line-height: 1.05;
}

.meta-special-deadline b,
.meta-special-deadline span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-special-deadline.itbi {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

.meta-special-deadline.recompra {
  border-color: #facc15;
  background: #fef9c3;
  color: #854d0e;
}

.meta-process-cell {
  display: block;
  min-width: 0;
}

.meta-process-line {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.meta-process-line > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-process-line .status-pill,
.meta-process-line .process-info {
  flex: 0 0 auto;
  margin-left: 0;
}

.meta-process-cell .status-pill {
  border-radius: 999px;
  padding: 2px 6px;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.meta-homologador-select {
  width: 100%;
}

.meta-weighted-input,
.meta-analyzed-input {
  width: 72px;
  min-height: 27px;
  padding: 3px 6px;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: center;
}

.meta-observation-input {
  width: 100%;
  min-height: 42px;
  resize: vertical;
  padding: 5px 6px;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.meta-process-table .meta-weighted-input,
.meta-process-table .meta-analyzed-input,
.meta-process-table .meta-homologador-select {
  width: 100%;
  min-height: 28px;
  font-size: 12px;
}

.meta-process-table .meta-weighted-input,
.meta-process-table .meta-analyzed-input {
  min-width: 0;
  padding-inline: 3px;
}

.meta-process-table .meta-observation-input {
  min-height: 28px;
  height: 28px;
  resize: none;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

.meta-weighted-input:focus,
.meta-analyzed-input:focus,
.meta-observation-input:focus {
  border-color: var(--app-blue);
  outline: 2px solid #bfdbfe;
  outline-offset: 0;
}

.detail label {
  display: grid;
  gap: 5px;
}

.detail input,
.detail select,
.detail textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b8c4d4;
  border-radius: 5px;
  padding: 8px;
  background: #fff;
  color: var(--text);
}

.horizontal-scroll {
  margin-left: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #e7f0f9;
  scrollbar-color: #5f8fc2 #dbe7f3;
  scrollbar-width: auto;
}

.horizontal-scroll div {
  height: 1px;
  min-height: 1px;
}

.meta-horizontal-scroll {
  margin: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.table-shell {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  scrollbar-color: #5f8fc2 #dbe7f3;
  scrollbar-width: auto;
}

.horizontal-scroll::-webkit-scrollbar,
.table-shell::-webkit-scrollbar,
.meta-dashboard-content::-webkit-scrollbar,
.detail::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.horizontal-scroll::-webkit-scrollbar-track,
.table-shell::-webkit-scrollbar-track,
.meta-dashboard-content::-webkit-scrollbar-track,
.detail::-webkit-scrollbar-track {
  background: #dbe7f3;
  border-radius: 999px;
}

.horizontal-scroll::-webkit-scrollbar-thumb,
.table-shell::-webkit-scrollbar-thumb,
.meta-dashboard-content::-webkit-scrollbar-thumb,
.detail::-webkit-scrollbar-thumb {
  background: #5f8fc2;
  border: 3px solid #dbe7f3;
  border-radius: 999px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover,
.table-shell::-webkit-scrollbar-thumb:hover,
.meta-dashboard-content::-webkit-scrollbar-thumb:hover,
.detail::-webkit-scrollbar-thumb:hover {
  background: #3f73aa;
}

table {
  width: max-content;
  min-width: 2100px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

th {
  color: #172033;
  padding: 8px 7px;
  text-align: left;
  white-space: nowrap;
  border-right: 1px solid #c7d4e2;
  border-bottom: 1px solid #b8c8d8;
}

.group-head {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 6px 7px;
}

.group-head[data-group-category="triagem"],
.group-head[data-group-category="produtos"] {
  position: relative;
}

.field-visibility-header-button {
  position: absolute;
  top: 50%;
  right: 6px;
  min-height: 22px;
  padding: 2px 7px;
  transform: translateY(-50%);
  border: 1px solid rgba(30, 64, 175, 0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.field-visibility-header-button:hover {
  border-color: rgba(30, 64, 175, 0.48);
  background: #fff;
}

.field-visibility-header-button.is-toolbar-fallback {
  position: static;
  align-self: end;
  min-height: 30px;
  padding: 5px 9px;
  transform: none;
  background: #fff;
}

.column-head {
  font-size: 12px;
  padding: 5px 5px 5px 7px;
}

.column-head.filtered {
  box-shadow: inset 0 -3px 0 #374151;
}

.column-head-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 88px;
}

.column-head-content > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.column-head-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.column-head-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-pin-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  cursor: pointer;
}

.process-pin-control input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--app-blue);
  cursor: pointer;
}

.column-filter-button {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border-color: #c3cad3;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.column-filter-button span {
  position: absolute;
  top: 9px;
  left: 7px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #4b5563;
}

.column-filter-button:hover:not(:disabled) {
  border-color: #9ca3af;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.column-filter-button.active {
  border-color: #374151;
  background: linear-gradient(180deg, #4b5563, #374151);
}

.column-filter-button.active span {
  border-top-color: #fff;
}

.column-filter-popover {
  position: fixed;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
  width: 282px;
  height: min(380px, calc(100vh - 16px));
  max-height: 380px;
  padding: 10px;
  border: 1px solid #9ca3af;
  border-radius: 7px;
  background: #f9fafb;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.22);
}

.column-filter-popover.hidden {
  display: none;
}

.column-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.column-filter-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-size: 13px;
}

.column-filter-head button {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border-color: #cbd5e1;
  background: #ffffff;
  color: #374151;
  font-size: 17px;
}

.column-filter-head button:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.column-filter-search {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #111827;
}

.column-filter-search:focus {
  border-color: #6b7280;
  outline: 2px solid rgba(75, 85, 99, 0.2);
  outline-offset: 1px;
}

.column-filter-summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 10px;
  font-weight: 700;
}

.column-filter-summary b {
  color: #111827;
  font-weight: 800;
}

.column-filter-select-all,
.column-filter-values label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
}

.column-filter-select-all {
  padding: 5px 4px 7px;
  border-bottom: 1px solid #d1d5db;
  font-weight: 700;
}

.column-filter-values {
  display: grid;
  gap: 2px;
  min-height: 0;
  max-height: 180px;
  overflow: auto;
}

.column-filter-values label {
  min-height: 24px;
  padding: 4px;
  border-radius: 4px;
}

/* A regra de layout acima usa display:flex; sem esta exceção, ela substitui
   o atributo hidden aplicado aos valores que não correspondem à pesquisa. */
.column-filter-values [data-filter-option][hidden] {
  display: none !important;
}

.column-filter-month {
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
}

.column-filter-month[hidden] {
  display: none;
}

.column-filter-month summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 5px 6px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.column-filter-month summary::-webkit-details-marker {
  display: none;
}

.column-filter-month summary::before {
  content: "▸";
  width: 10px;
  color: #6b7280;
  font-size: 10px;
}

.column-filter-month[open] summary::before {
  content: "▾";
}

.column-filter-month summary small {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 10px;
  font-weight: 900;
}

.column-filter-month > div {
  display: grid;
  gap: 1px;
  padding: 0 4px 4px 22px;
}

.column-filter-empty {
  margin: 4px 0 2px;
  padding: 8px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.column-filter-values label:hover {
  background: #f3f4f6;
}

.column-filter-values input,
.column-filter-select-all input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #374151;
}

.column-filter-values span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 38px;
  padding-top: 6px;
  border-top: 1px solid #d1d5db;
}

.column-filter-actions button {
  min-height: 30px;
  padding: 7px 10px;
}

.column-filter-actions .primary {
  border-color: #374151;
  background: linear-gradient(180deg, #4b5563, #374151);
  color: #fff;
}

.column-filter-actions .primary:hover {
  background: #1f2937;
}

.group-head.category-entrada,
.column-head.category-entrada {
  background: var(--app-blue-soft);
}

.group-head.category-imovel,
.column-head.category-imovel {
  background: var(--app-blue-soft-alt);
}

.group-head.category-triagem,
.column-head.category-triagem {
  background: var(--app-blue-soft);
}

.group-head.category-prazos,
.column-head.category-prazos {
  background: var(--app-blue-soft-alt);
}

.group-head.category-produtos,
.column-head.category-produtos {
  background: var(--app-blue-soft);
}

.column-head.category-start,
td.category-start {
  border-left: 1px solid #7f9fbe;
}

td {
  max-width: 230px;
  padding: 7px;
  border: 0;
  border-right: 1px solid #d9e2ec;
  border-bottom: 1px solid #d9e2ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

tbody tr {
  cursor: pointer;
}

tbody td:hover,
tbody td[data-active-cell="true"] {
  outline: 2px solid #1d4ed8;
  outline-offset: -2px;
}

tbody tr.selected td {
  background-image: linear-gradient(to right, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.04));
}

tbody tr.selected td[data-active-cell="true"] {
  background-image: none;
}

tbody tr.pending-triage td {
  background-color: #fff1f2;
}

tbody tr.pending-triage td[data-column="Processo SEI"] {
  color: #991b1b;
}

body.pin-process tr.pending-triage td[data-column="Processo SEI"] {
  background-color: #fff1f2;
}

.process-expander {
  width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0;
  border-radius: 4px;
  line-height: 1;
  font-weight: 800;
  vertical-align: middle;
}

.process-cell-content {
  display: grid;
  gap: 4px;
  justify-items: start;
  width: 100%;
  min-width: 0;
}

.process-line {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.process-line .process-expander {
  margin-left: auto;
}

.process-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}

.process-cell-content .status-pill {
  border-radius: 999px;
  padding: 2px 7px;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.process-deadline {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.process-deadline.overdue {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.process-deadline.soon {
  border-color: #facc15;
  background: #fef9c3;
  color: #854d0e;
}

.process-deadline.scheduled {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.process-info {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-left: 3px;
  padding: 0;
  border-radius: 50%;
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.process-info.no-comments {
  border-color: #a8b6c5;
  background: #f8fafc;
  color: #64748b;
}

.process-info.has-comments {
  border-color: #111827;
  background: #111827;
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
}

.process-copy-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
}

.process-copy-icon:hover,
.process-copy-icon:focus-visible {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #0f172a;
}

.process-copy-icon:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.process-alert-indicator {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 15px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(127, 29, 29, 0.25));
}

.process-alert-indicator::before {
  position: absolute;
  inset: 0;
  background: #dc2626;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.process-alert-triangle {
  position: relative;
  z-index: 1;
  padding-top: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.process-alert-tooltip {
  position: fixed;
  z-index: 10000;
  display: block;
  width: max-content;
  max-width: min(300px, calc(100vw - 32px));
  padding: 8px 10px;
  border: 1px solid #334155;
  border-radius: 7px;
  background: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 100ms ease, transform 100ms ease, visibility 100ms ease;
  visibility: hidden;
}

.process-alert-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.process-alert-indicator:hover::before,
.process-alert-indicator:focus-visible::before {
  background: #b91c1c;
}

.process-alert-indicator:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

.process-alert-detail {
  width: 25px;
  height: 25px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff7f7;
  filter: none;
}

.process-alert-detail::before {
  inset: 4px 4px 5px;
  background: #ef4444;
}

.process-alert-detail > .process-alert-triangle {
  padding-top: 4px;
  font-size: 8px;
}

.process-alert-detail:hover,
.process-alert-detail:focus-visible {
  border-color: #f87171;
  background: #fff1f2;
}

.process-alert-add-button {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 3px 7px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.process-alert-add-button:hover {
  border-color: #f87171;
  background: #fff1f2;
  color: #b91c1c;
}

.process-number {
  flex: 0 1 auto;
  min-width: 0;
}

.repeat-value-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.repeat-value-cell > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.repeat-count-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.repeat-count-badge:hover,
.repeat-count-badge:focus-visible {
  border-color: #94a3b8;
  background: #eef2f7;
  color: #334155;
}

.repeat-count-badge:focus-visible {
  outline: 2px solid #cbd5e1;
  outline-offset: 1px;
}

th[data-column="Processo SEI"],
td[data-column="Processo SEI"] {
  box-sizing: border-box;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
}

th[data-column="DOC_SEI"],
td[data-column="DOC_SEI"] {
  width: 115px;
  min-width: 115px;
}

th[data-column="DESTINO"],
td[data-column="DESTINO"] {
  width: 170px;
  min-width: 170px;
}

th[data-column="Retorno 1"],
td[data-column="Retorno 1"],
th[data-column="Retorno 2"],
td[data-column="Retorno 2"] {
  box-sizing: border-box;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
}

td[data-column="Retorno 1"] .table-select,
td[data-column="Retorno 2"] .table-select {
  min-width: 68px;
}

body.pin-process th[data-column="Processo SEI"],
body.pin-process td[data-column="Processo SEI"] {
  position: sticky;
  left: 0;
}

body.pin-process th[data-column="Processo SEI"] {
  z-index: 6;
  box-shadow: 2px 0 0 rgba(37, 99, 235, 0.3);
}

body.pin-process td[data-column="Processo SEI"] {
  z-index: 1;
  background-color: #fff;
  box-shadow: 2px 0 0 rgba(37, 99, 235, 0.2);
}

body.pin-process tr.selected td[data-column="Processo SEI"] {
  background-color: #eff6ff;
}

tbody tr.pending-triage.selected td,
body.pin-process tr.pending-triage.selected td[data-column="Processo SEI"] {
  background-color: #fff1f2;
  background-image: none;
}

tbody tr.process-parent td {
  background-color: #f4f8fc;
}

tbody tr.process-parent td.process-parent-empty {
  color: transparent;
}

tbody tr.process-child td[data-column="Processo SEI"] {
  position: relative;
  padding-left: 32px;
  background-color: #f8fbff;
}

tbody tr.process-child td[data-column="Processo SEI"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  border-left: 1px solid #b8cbe0;
}

tbody tr.process-child td {
  background-image: linear-gradient(to right, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0));
}

.status-cell {
  background: #fff;
}

.judicial-sem-prazo {
  background: #fef3c7;
  color: #78350f;
  font-weight: 700;
}

.judicial-com-prazo {
  background: #fecaca;
  color: #7f1d1d;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px #dc2626;
}

.special-deadline-cell {
  background: #fff7d6;
  color: #7c2d12;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px #f2b84b;
}

.table-input {
  width: 100%;
  min-width: 118px;
  height: 28px;
  border: 1px solid #93c5fd;
  border-radius: 4px;
  padding: 3px 6px;
  background: #ffffff;
  font: inherit;
}

.table-select {
  min-width: 142px;
}

.table-input.empty-date {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #94a3b8;
}

.table-input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 0;
}

.field-edit-control {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.field-edit-control > input,
.field-edit-control > select,
.field-edit-control > textarea {
  flex: 1 1 auto;
  min-width: 0;
}

.field-confirm-button {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: default;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.field-confirm-button.is-dirty {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.field-confirm-button.is-dirty:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
}

.field-confirm-button.is-conflict {
  border-color: #d97706;
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.field-confirm-button.is-remote {
  border-color: #16a34a;
  background: #dcfce7;
  color: #15803d;
  animation: field-remote-pulse 700ms ease-out;
}

.field-confirm-button.is-saving {
  opacity: 0.7;
  cursor: progress;
}

.field-confirm-button:disabled:not(.is-remote) {
  opacity: 0.62;
}

.field-edit-control.has-draft > input,
.field-edit-control.has-draft > select,
.field-edit-control.has-draft > textarea {
  border-color: #60a5fa;
  background: #eff6ff;
}

.field-edit-control.has-conflict > input,
.field-edit-control.has-conflict > select,
.field-edit-control.has-conflict > textarea {
  border-color: #f59e0b;
  background: #fffbeb;
}

.meta-summary-line .field-edit-control {
  width: auto;
}

.meta-process-table .field-edit-control {
  gap: 3px;
}

.meta-process-table .field-confirm-button {
  flex-basis: 21px;
  width: 21px;
  height: 21px;
  border-radius: 5px;
  font-size: 11px;
}

.field-edit-control-comment {
  align-items: flex-start;
}

.field-edit-control-comment .field-confirm-button {
  margin-top: 2px;
}

@keyframes field-remote-pulse {
  from {
    transform: scale(0.82);
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.2);
  }
  to {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.comment-badge {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 7px;
  background: #6d28d9;
  color: #fff;
  font-weight: 700;
}

.detail-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.detail-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -7px;
  z-index: 3;
  width: 13px;
  cursor: col-resize;
  touch-action: none;
}

.detail-resize-handle::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 12px;
  left: 6px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}

.detail-resize-handle:hover::after,
body.resizing-detail .detail-resize-handle::after {
  background: #94a3b8;
}

body.resizing-detail {
  cursor: col-resize;
  user-select: none;
}

.detail-toggle {
  position: absolute;
  top: 10px;
  left: -12px;
  z-index: 24;
  width: 28px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border-color: #94a3b8;
  background: #ffffff;
  color: #243247;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.detail-wrap.collapsed .detail {
  display: none;
}

.detail-wrap.collapsed {
  background: transparent;
}

.detail-wrap.collapsed .detail-resize-handle {
  display: none;
}

.detail {
  height: 100%;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  scrollbar-color: #aab4c2 #eef2f7;
}

.detail-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  height: 100%;
  padding: 24px;
  text-align: center;
}

.detail-head {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid #d8dee7;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 10px 18px rgba(15, 23, 42, 0.06);
}

.detail-head strong {
  font-size: 16px;
  color: #111827;
}

.detail-head-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-head-topline > span {
  min-width: 0;
}

.detail-process-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detail-process-line strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-process-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.copy-process-button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #c3ccd8;
  border-radius: 6px;
  background: #ffffff;
  color: #243247;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.copy-process-button:hover {
  border-color: #9aa6b5;
  background: #f1f5f9;
  color: #111827;
}

.detail-head em {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 9px;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
}

.delete-row-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 9px;
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
  font-size: 12px;
}

@container (max-width: 390px) {
  .detail-process-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-process-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.delete-row-button:hover {
  border-color: #ef4444;
  background: #fff1f2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

td[data-column="STATUS"] .status-pill {
  padding: 5px 11px;
  font-size: 12px;
}

.status-pill.status-enviado {
  background: #dcfce7;
  color: #166534;
}

.status-pill.status-homologar {
  background: #ecfccb;
  color: #365314;
}

.status-pill.status-ver-ajustes {
  background: #fef9c3;
  color: #854d0e;
}

.status-pill.status-revisado,
.status-pill.status-revis-o-1 {
  background: #dbeafe;
  color: #1e3a8a;
}

.status-pill.status-revisar {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.status-distribu-do {
  background: #e0f2fe;
  color: #075985;
}

.status-pill.status-n-o-distribu-do {
  background: #f1f5f9;
  color: #475569;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
  gap: 10px;
  padding: 12px;
}

.info-popover {
  position: fixed;
  z-index: 20;
  top: 74px;
  left: 50%;
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 92px);
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.3);
}

.info-popover.hidden {
  display: none;
}

.macro-info-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
}

.macro-info-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 34px;
}

.macro-info-head > div {
  display: grid;
  gap: 2px;
}

.macro-info-head strong {
  font-size: 16px;
  color: #243247;
}

.macro-info-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}

.macro-info-head span {
  color: #fff;
  background: #111827;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.info-popover-close {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

.macro-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.macro-tabs button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border-color: #c3ccd8;
  border-left-width: 4px;
  background: #f8fafc;
  color: #334155;
  text-align: left;
}

.macro-tabs button.has-comments {
  border-color: #111827;
  background: #f1f5f9;
  box-shadow: inset 0 3px 0 #111827;
  opacity: 1;
}

.macro-tabs button.no-comments {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  opacity: 0.58;
}

.macro-tabs button span {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  white-space: normal;
}

.macro-tabs button em {
  justify-self: end;
  min-width: 0;
  padding: 2px 5px;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.macro-tabs button.has-comments em {
  background: #111827;
  color: #fff;
}

.macro-tabs button.active {
  box-shadow: inset 0 -3px 0 currentColor, inset 0 3px 0 #111827;
}

.macro-tabs button.active {
  opacity: 1;
  border-color: #111827;
  background: #e5e7eb;
  color: #111827;
}

.macro-note > span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
}

.macro-info-list {
  display: grid;
  gap: 10px;
  max-height: min(460px, calc(100vh - 350px));
  overflow: auto;
}

.macro-info-item {
  min-width: 0;
}

.macro-comment {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 42px 12px 14px;
  border: 1px solid #d1d5db;
  border-left: 4px solid #111827;
  border-radius: 8px;
  background: #fff;
}

.macro-comment > span {
  color: #475569;
  font-size: 12px;
  line-height: 1.25;
}

.macro-comment > button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
}

.macro-comment textarea {
  min-height: 82px;
  padding: 8px 9px;
  border-color: #c3ccd8;
  font-size: 13px;
  line-height: 1.35;
  resize: vertical;
}

.macro-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  text-align: center;
}

.popover-comment-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-left: 4px solid #6b7280;
  border-radius: 8px;
  background: #fff;
}

.popover-comment-entry textarea {
  min-height: 66px;
  padding: 8px 9px;
  font-size: 13px;
  line-height: 1.35;
  resize: vertical;
}

.popover-comment-entry button {
  min-height: 36px;
  white-space: nowrap;
}

.detail-group {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-left-width: 6px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.detail-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #334155;
  letter-spacing: 0;
}

.detail-group h3 > span {
  min-width: 0;
}

.detail-group-info.process-info,
.detail-group-info.process-info.no-comments,
.detail-group-info.process-info.has-comments {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.detail-group-info.process-info.has-comments {
  border-color: #020617;
  background: #020617;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.detail-group-info.process-info.has-comments span {
  color: #ffffff;
  line-height: 1;
}

.detail-group-grid {
  display: grid;
  /* Os controles possuem um botão compacto de confirmação; 120px preserva
     duas colunas nos cartões da lateral sem comprimir o campo editável. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 6px;
}

.detail-group.category-entrada {
  background: #f7fbff;
  border-left-color: #7ca6d8;
}

.detail-group.category-imovel {
  background: #fffaf3;
  border-left-color: #f0b45f;
}

.detail-group.category-triagem {
  background: #fffdf0;
  border-left-color: #e7c948;
}

.detail-group.category-prazos {
  background: #f6fff8;
  border-left-color: #76b987;
}

.detail-group.category-produtos {
  background: #fff7fb;
  border-left-color: #d889b6;
}

.group-comment-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
  padding-top: 7px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.group-comment-entry textarea {
  min-height: 48px;
  resize: vertical;
}

.group-comment-entry button {
  min-height: 34px;
  padding: 7px 9px;
  white-space: nowrap;
}

.detail-field {
  min-width: 0;
}

.detail-field span {
  font-size: 10px;
  color: #475569;
  font-weight: 800;
  text-transform: uppercase;
}

.detail output {
  min-height: 29px;
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #d8dee7;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.detail input,
.detail textarea {
  padding: 6px 8px;
  border-color: #c3ccd8;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}

.detail textarea {
  min-height: 58px;
  resize: vertical;
}

.comments {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comments-head span {
  color: #fff;
  background: #6d28d9;
  border-radius: 999px;
  padding: 2px 8px;
}

.comment-list {
  display: grid;
  gap: 8px;
}

.comment-list article {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 9px 34px 9px 10px;
  border: 1px solid #ddd6fe;
  border-left: 4px solid #7c3aed;
  border-radius: 6px;
  background: #faf5ff;
}

.comment-list article button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-color: #c4b5fd;
  background: #fff;
  color: #6d28d9;
}

.comment-list p {
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(480px, calc(100vw - 36px));
  padding: 11px 14px;
  border-radius: 7px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.toast.error {
  background: #991b1b;
}

.toast.remote {
  background: #17365d;
}

.toast.hidden {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.38);
}

.confirm-modal.password-confirmation {
  z-index: 150;
}

.confirm-modal.audit-log-modal {
  z-index: 180;
  padding: 12px;
  overflow: hidden;
}

.confirm-modal.hidden {
  display: none;
}

.confirm-modal-card {
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid #9ab8d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.confirm-modal-card h2 {
  margin: 0;
  color: #173b67;
  font-size: 18px;
}

.confirm-modal-card p {
  margin: 10px 0 16px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.process-alert-modal-card {
  width: min(480px, calc(100vw - 32px));
}

.process-alert-message-field {
  display: grid;
  gap: 6px;
}

.process-alert-message-field > span {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.process-alert-message-field textarea {
  width: 100%;
  min-height: 108px;
  padding: 9px 10px;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  background: #fffafb;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
}

.process-alert-message-field textarea:focus {
  border-color: #dc2626;
  outline: 2px solid rgba(252, 165, 165, 0.5);
  outline-offset: 1px;
}

.process-alert-modal-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #fee2e2;
}

.process-alert-modal-primary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 auto;
}

.confirm-password-wrap {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}

.confirm-password-wrap.hidden {
  display: none;
}

.confirm-password-wrap span {
  color: #42658a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.confirm-password-wrap input {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  color: #173b67;
  font-size: 13px;
  font-weight: 700;
}

.confirm-modal-card.cronogram-meta-control-modal-card {
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
}

.cronogram-activity-modal-card {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
}

.cronogram-activity-detail-card {
  width: min(560px, calc(100vw - 32px));
}

.cronogram-activity-detail-body {
  display: grid;
  gap: 10px;
  margin: 6px 0 14px;
}

.cronogram-activity-detail-list {
  display: grid;
  gap: 6px;
}

.cronogram-activity-detail-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  background: #f8fbff;
}

.cronogram-activity-detail-list strong {
  color: #173b67;
  font-size: 13px;
  line-height: 1.25;
}

.cronogram-activity-detail-list span {
  color: #42658a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cronogram-activity-detail-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-top: 2px solid #cfe0f2;
  color: #173b67;
  font-weight: 900;
}

.cronogram-activity-detail-empty {
  padding: 14px;
  border: 1px dashed #c8d7e7;
  border-radius: 6px;
  background: #f8fbff;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

.cronogram-activity-list {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  max-height: min(76vh, 760px);
  margin: 10px 0 12px;
  overflow: auto;
  padding-right: 4px;
}

.cronogram-activity-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  background: #f8fbff;
}

.cronogram-activity-option:has(input[type="checkbox"]:checked) {
  border-color: #6c9ed1;
  background: #e8f3ff;
}

.cronogram-activity-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}

.cronogram-activity-option-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cronogram-activity-option-main strong {
  color: #173b67;
  font-size: 12px;
  line-height: 1.25;
}

.cronogram-activity-option-main small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.cronogram-activity-option input[type="number"] {
  box-sizing: border-box;
  width: 76px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid #93b6dc;
  border-radius: 5px;
  color: #173b67;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.cronogram-activity-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 0 14px;
  color: #42658a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cronogram-activity-total strong {
  min-width: 76px;
  padding: 5px 10px;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #f8fbff;
  color: #173b67;
  font-size: 18px;
  text-align: center;
}

.work-communication-modal-card {
  width: min(820px, 100%);
}

.audit-log-modal-card {
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  min-height: 0;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
}

.audit-log-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #dbe7f3;
  background: #f8fbff;
}

.audit-log-modal-head p {
  margin: 6px 0 0;
}

.audit-log-modal-head button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #9ab8d8;
  border-radius: 999px;
  background: #f8fbff;
  color: #173b67;
  font-size: 20px;
  font-weight: 900;
  line-height: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.audit-log-modal-head button:hover {
  border-color: #2563eb;
  background: #dbeafe;
  color: #0f2f57;
  transform: translateY(-1px);
}

.audit-log-modal-head button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.audit-log-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 12px 14px 16px;
}

.audit-log-filters {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 10px;
  background: #fff;
}

.audit-log-filters button {
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid #bfd3e8;
  border-radius: 6px;
  background: #f8fbff;
  color: #173b67;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.audit-log-filters button.active {
  border-color: #6f94bd;
  background: #e6eef8;
  box-shadow: inset 0 -2px 0 #2f5d8c;
}

.audit-log-table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
  color: #173b67;
  font-size: 12px;
}

.audit-log-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 9px;
  border: 1px solid #cfe0f2;
  background: #eaf3fc;
  color: #173b67;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.audit-log-table td {
  padding: 7px 9px;
  border: 1px solid #dbe7f3;
  vertical-align: top;
  line-height: 1.3;
  white-space: pre-wrap;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip;
}

.audit-log-table td.audit-log-description {
  min-width: 320px;
  max-width: 520px;
}

.audit-log-table td.audit-log-value {
  min-width: 220px;
  max-width: 460px;
}

.audit-log-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.audit-log-empty {
  padding: 24px;
  border: 1px dashed #bdd2e8;
  border-radius: 8px;
  background: #f8fbff;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

.work-communication-note-box {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.work-communication-note-box span,
.work-communication-edit-note span {
  color: #42658a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-communication-note-box textarea,
.work-communication-edit-note textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  padding: 8px 9px;
  border: 1px solid #bdd2e8;
  border-radius: 6px;
  background: #fff;
  color: #173b67;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.work-communication-note-box textarea:focus,
.work-communication-edit-note textarea:focus {
  outline: 2px solid #bfdbfe;
  border-color: #3b82f6;
}

.work-communication-note-actions {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(140px, 0.65fr);
  gap: 8px;
}

.work-communication-note-actions select,
.work-communication-note-actions button {
  min-height: 32px;
  border: 1px solid #9ab8d8;
  border-radius: 6px;
  background: #fff;
  color: #173b67;
  font-size: 12px;
  font-weight: 900;
}

.work-communication-note-actions button {
  background: #eaf3fc;
  cursor: pointer;
}

.work-communication-note-actions button:hover {
  border-color: #3b82f6;
  background: #dbeafe;
}

.work-communication-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.work-communication-group {
  padding: 10px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #f8fbff;
}

.work-communication-group h3 {
  margin: 0 0 8px;
  color: #173b67;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-communication-group > div {
  display: grid;
  gap: 7px;
}

.work-communication-action {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #cfe0f2;
  border-radius: 7px;
  background: #f8fbff;
  color: #173b67;
  text-align: left;
  cursor: pointer;
}

.work-communication-action.evaluator {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

.work-communication-action.reviewer {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.work-communication-action:hover {
  border-color: #f0b46d;
  background: #fff7ed;
}

.work-communication-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid #cfe0f2;
  border-radius: 7px;
  background: #fff;
  color: #173b67;
  cursor: pointer;
}

.work-communication-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}

.work-communication-clear {
  align-self: stretch;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.work-communication-clear:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.work-communication-check input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.work-communication-check time {
  grid-column: 2;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.work-communication-check.evaluator {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.work-communication-check.reviewer {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.work-communication-check.checked {
  box-shadow: inset 3px 0 0 #3b82f6;
}

.work-communication-check.reviewer.checked {
  box-shadow: inset 3px 0 0 #22c55e;
}

.work-communication-actions span,
.work-communication-actions small {
  display: block;
}

.work-communication-actions span {
  font-size: 12px;
  font-weight: 900;
}

.work-communication-actions small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-communication-action.evaluator small {
  color: #2563eb;
}

.work-communication-action.reviewer small {
  color: #15803d;
}

.work-communication-history {
  display: grid;
  gap: 7px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding-right: 4px;
}

.work-communication-history h3 {
  margin: 8px 0 0;
  color: #173b67;
  font-size: 13px;
}

.work-communication-note-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.work-communication-note-header > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-communication-note-header button {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.work-communication-note-header button:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.work-communication-pending,
.work-communication-record,
.work-communication-empty {
  padding: 8px 10px;
  border: 1px solid #dbe7f3;
  border-radius: 7px;
  background: #fff;
}

.work-communication-pending {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border-color: #facc15;
  background: #fefce8;
}

.work-communication-pending strong,
.work-communication-record strong {
  color: #173b67;
  font-size: 12px;
}

.work-communication-record-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.work-communication-record-main > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-communication-record-main small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.work-communication-note {
  margin: 7px 0 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-wrap;
}

.work-communication-record-main button,
.work-communication-edit-form button {
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #9ab8d8;
  border-radius: 5px;
  background: #fff;
  color: #173b67;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.work-communication-record-main button:hover,
.work-communication-edit-form button:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.work-communication-pending span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
}

.work-communication-pending span.evaluator {
  background: #dbeafe;
  color: #1d4ed8;
}

.work-communication-note-record {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #dbe7f3;
  border-left: 4px solid #9ab8d8;
  border-radius: 7px;
  background: #fff;
}

.work-communication-note-record strong {
  color: #173b67;
  font-size: 12px;
}

.work-communication-note-record time {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.work-communication-note-record p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-wrap;
}

.work-communication-record span,
.work-communication-empty {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.work-communication-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #cbd5e1;
}

.work-communication-edit-form.hidden {
  display: none;
}

.work-communication-edit-form label {
  display: grid;
  gap: 3px;
}

.work-communication-edit-form label span {
  color: #42658a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-communication-edit-form select,
.work-communication-edit-form input {
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #bdd2e8;
  border-radius: 5px;
  background: #fff;
  color: #173b67;
  font-size: 12px;
  font-weight: 700;
}

.work-communication-edit-note {
  grid-column: 1 / -1;
}

.work-communication-edit-form > div {
  grid-column: 1 / -1;
}

.work-communication-edit-form > div {
  display: flex;
  gap: 6px;
}

.work-communication-edit-form button.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.work-communication-edit-form button.danger:hover {
  border-color: #f87171;
  background: #fee2e2;
  color: #7f1d1d;
}

.work-communication-record.evaluator {
  border-left: 4px solid #60a5fa;
  background: #eff6ff;
}

.work-communication-record.reviewer {
  border-left: 4px solid #4ade80;
  background: #f0fdf4;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.field-visibility-options {
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
}

.field-visibility-modal-card {
  max-height: min(90vh, 680px);
  overflow-y: auto;
}

.field-visibility-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #d5dde7;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.field-visibility-options input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.field-visibility-actions {
  align-items: center;
  justify-content: space-between;
}

.field-visibility-actions > div {
  display: flex;
  gap: 8px;
}

button.danger {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
}

button.danger:hover:not(:disabled) {
  border-color: #dc2626;
  background: #fecaca;
  color: #7f1d1d;
}

/* Tema estrutural neutro: preserva cores condicionais de status, prazos e alertas. */
button {
  border-color: #cbd5e1;
  background: #f3f4f6;
  color: #374151;
}

button:hover:not(:disabled) {
  border-color: #9ca3af;
  background: #e5e7eb;
  color: #1f2937;
}

.workspace,
.detail,
.consult-card,
.consult-empty {
  border-color: #d1d5db;
}

.workspace-tabs {
  border-bottom-color: #aeb7c2;
  background: linear-gradient(180deg, #f5f6f8 0%, #e5e7eb 100%);
}

.workspace-tabs::after {
  background: #9ca3af;
}

.workspace-tabs > button {
  border-color: #c4cad2;
  border-bottom-color: #b8c0ca;
  background: linear-gradient(180deg, #f9fafb 0%, #e9ecef 100%);
  color: #4b5563;
}

.workspace-tabs > button.active {
  border-color: #9ca3af;
  border-bottom-color: var(--panel);
  color: #1f2937;
  box-shadow: 0 -1px 0 #eef0f2, 0 -3px 8px rgba(31, 41, 55, 0.08);
}

.workspace-tabs > button:hover:not(:disabled) {
  border-color: #9ca3af;
  border-bottom-color: #9ca3af;
  background: linear-gradient(180deg, #ffffff 0%, #edf0f3 100%);
  color: #1f2937;
}

.sheet-view-toolbar,
.global-comment-results-head,
.team-process-list-head > span,
.cronogram-process-list-head > span,
.priority-column > header,
.priority-pending-head > span,
.meta-deadline-table th {
  background: #f3f4f6;
  color: #374151;
}

.sheet-view,
.meta-dashboard,
.prioritization-view,
.team-view,
.cronograms-view,
.deliveries-view,
.consult-view,
.team-dashboard,
.cronograms-dashboard,
.cronogram-process-list,
.table-shell,
.detail-panel {
  background-color: #f8fafc;
}

.sheet-month-control span,
.compact-month-control span,
.global-filter-combo,
.consult-search label,
.consult-card-head span,
.kpis span,
.team-dashboard-head > div:first-child:not(.cronograms-controls) span,
.cronograms-dashboard-head > div:first-child:not(.cronograms-controls) span,
.deliveries-dashboard-head > div:first-child span,
.detail span {
  color: #6b7280;
}

.sheet-month-control select,
.compact-month-control select,
.global-filter-combo > select,
.global-filter-combo > input,
.consult-search input,
input,
select,
textarea {
  border-color: #cbd5e1;
}

.sheet-month-control select,
.compact-month-control select,
.consult-header h1,
.consult-card-head strong,
.consult-field dd,
.kpis strong,
.team-dashboard-head > div:first-child:not(.cronograms-controls) strong,
.cronograms-dashboard-head > div:first-child:not(.cronograms-controls) strong,
.deliveries-dashboard-head > div:first-child strong,
.team-process-title strong,
.cronogram-process-row .team-process-title strong,
.cronogram-process-parent .team-process-title strong,
.cronogram-address-label,
.team-count,
.meta-card strong,
.detail h2,
.detail h3 {
  color: #374151;
}

.global-filter-combo > input:focus,
.global-filter-combo > select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #6b7280;
  outline-color: #e5e7eb;
}

.backup-menu,
.global-comment-results,
.cronogram-address-label:hover,
.cronogram-address-label:focus,
.cronogram-nickname-priority:hover,
.cronogram-nickname-priority:focus {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.14);
}

.backup-menu button:hover:not(:disabled),
.global-comment-result:hover,
.cronogram-process-toggle:hover,
.work-communication-button:hover,
.cronogram-activity-button:hover,
.cronogram-activity-detail-button:hover,
.work-communication-note-actions button:hover {
  background: #f3f4f6;
}

.cronogram-process-row > div,
.team-process-row > div,
td,
th,
.priority-column,
.priority-card,
.priority-pending-row,
.meta-deadline-table th,
.meta-deadline-table td {
  border-color: #d1d5db;
}

.cronogram-process-parent > div,
.team-person-row.expanded,
.meta-deadline-table tbody tr:hover td {
  background: #f3f4f6;
}

.cronogram-order-drag-handle:hover,
.cronogram-process-toggle.expanded,
.team-count.with-deadline {
  border-color: #cbd5e1;
  background: #f3f4f6;
  color: #374151;
}

.kpis > button.active-status-filter {
  border-color: #9ca3af;
  box-shadow: inset 0 0 0 1px rgba(75, 85, 99, 0.16), 0 4px 10px rgba(31, 41, 55, 0.12);
}

.kpis > button.active-status-filter span,
.kpis > button.active-status-filter strong {
  color: #374151;
}

button.danger {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
}

button.danger:hover:not(:disabled) {
  border-color: #dc2626;
  background: #fecaca;
  color: #7f1d1d;
}

/* Complemento do tema neutro para lateral, comentarios, modais e subtabelas. */
.detail-head,
.macro-info-panel,
.comments,
.confirm-modal-card,
.audit-log-modal-head,
.audit-log-filters,
.work-communication-modal-card,
.cronogram-meta-control-modal-head,
.cronogram-meta-control > header,
.deliveries-detail > header,
.meta-dashboard-content,
.meta-process-summary-fields,
.meta-executive-summary,
.meta-process-summary-card,
.meta-deadline-control-head,
.meta-deadline-section > header {
  border-color: #d1d5db;
  background: #f8fafc;
}

.detail-head strong,
.detail-process-line strong,
.macro-info-head strong,
.detail-group h3,
.comments-head strong,
.confirm-modal-card h2,
.audit-log-modal-head h2,
.cronogram-meta-control-modal-head h2,
.cronogram-meta-control > header strong,
.deliveries-detail > header strong,
.deliveries-detail > header b,
.meta-dashboard-head strong,
.meta-executive-summary h2,
.meta-executive-table th,
.meta-executive-table .meta-summary-label,
.meta-executive-table .meta-summary-value,
.meta-process-summary-card h3,
.meta-summary-line strong,
.meta-summary-inline strong,
.meta-bar-row strong,
.meta-weighted-popover > strong,
.cronogram-activity-detail-list strong,
.cronogram-activity-detail-total,
.cronogram-activity-option-main strong,
.cronogram-activity-total strong,
.audit-log-table,
.audit-log-table th,
.delivery-bucket strong,
.delivery-bucket b,
.delivery-item strong {
  color: #374151;
}

.copy-process-button,
.detail-toggle,
.meta-link-button,
.info-popover-close,
.macro-tabs button,
.macro-comment > button,
.group-comment-entry button,
.popover-comment-entry button,
.comment-list article button,
.confirm-modal-card button:not(.danger),
.audit-log-modal-head button,
.audit-log-filters button,
.cronogram-activity-total strong {
  border-color: #cbd5e1;
  background: #f3f4f6;
  color: #374151;
}

.copy-process-button:hover,
.detail-toggle:hover,
.meta-link-button:hover,
.info-popover-close:hover,
.macro-tabs button:hover,
.macro-comment > button:hover,
.group-comment-entry button:hover,
.popover-comment-entry button:hover,
.comment-list article button:hover,
.audit-log-modal-head button:hover,
.audit-log-filters button:hover {
  border-color: #9ca3af;
  background: #e5e7eb;
  color: #1f2937;
}

.info-popover,
.macro-comment,
.popover-comment-entry,
.group-comment-entry,
.comment-list article,
.comments,
.confirm-modal-card,
.cronogram-activity-detail-list > div,
.cronogram-activity-detail-empty,
.cronogram-activity-option,
.audit-log-empty,
.deliveries-detail,
.deliveries-timeline,
.delivery-bucket,
.deliveries-list-head span,
.delivery-item,
.delivery-item > span,
.team-table th,
.team-table td,
.cronograms-table th,
.cronograms-table td,
.team-process-list-head > span,
.team-process-row > div,
.meta-executive-table th,
.meta-executive-table td,
.meta-table th,
.meta-table td,
.meta-process-table th,
.meta-process-table td,
.meta-weighted-popover,
.meta-weighted-rule-head,
.meta-weighted-rule-row,
.meta-deadline-control-head,
.meta-deadline-section,
.meta-deadline-table th,
.meta-deadline-table td {
  border-color: #d1d5db;
}

.macro-comment,
.comment-list article,
.cronogram-activity-detail-list > div,
.cronogram-activity-detail-empty,
.cronogram-activity-option,
.audit-log-empty,
.delivery-item:hover,
.audit-log-table tbody tr:nth-child(even),
.meta-executive-table .meta-summary-value,
.meta-executive-table .total-row td,
.meta-executive-table th.blank-section,
.meta-weighted-rule-head,
.meta-weighted-rule-row:nth-child(even) {
  background: #f8fafc;
}

.comments-head span,
.macro-info-head span,
.deliveries-detail > header b,
.meta-subtabs b {
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

.macro-tabs button,
.macro-tabs button.active,
.meta-subtabs,
.meta-subtabs button,
.meta-subtabs button.active,
.cronogram-person-tabs,
.cronogram-person-tabs button,
.cronogram-person-tabs button.active,
.cronogram-person-tabs .cronogram-add-person-tab {
  border-color: #cbd5e1;
  background: #f3f4f6;
  color: #374151;
}

.macro-tabs button.active,
.meta-subtabs button.active,
.cronogram-person-tabs button.active {
  background: #fff;
  box-shadow: inset 0 -3px 0 #6b7280;
}

.meta-subtabs,
.cronogram-person-tabs {
  background: linear-gradient(180deg, #f8fafc 0%, #eef0f2 100%);
}

.deliveries-list-head,
.audit-log-table th,
.cronogram-meta-static-head,
.cronogram-meta-control-table th,
.meta-table th,
.meta-process-table th,
.meta-executive-summary h2,
.meta-process-summary-card h3,
.meta-executive-table th.merged-section,
.meta-deadline-section > header {
  background: #f3f4f6;
  color: #374151;
}

.meta-process-summary-card,
.meta-executive-summary {
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.08);
}

.meta-process-summary-card,
.meta-process-summary-card:nth-child(2),
.meta-process-summary-card:nth-child(3),
.meta-process-summary-card:nth-child(4),
.meta-executive-table th.merged-section {
  border-left-color: #9ca3af;
}

.detail input,
.detail textarea,
.macro-comment textarea,
.popover-comment-entry textarea,
.group-comment-entry textarea,
.comment-list textarea,
.confirm-password-wrap input,
.cronogram-activity-option input[type="number"],
.meta-weighted-input,
.meta-analyzed-input,
.meta-observation-input,
.meta-summary-number-input,
.meta-evaluator-inline input {
  border-color: #cbd5e1;
  color: #374151;
}

.detail output {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

.macro-comment,
.comment-list article {
  border-left-color: #9ca3af;
}

.cronogram-activity-option:has(input[type="checkbox"]:checked) {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.macro-tabs button.active,
.meta-subtabs button.active,
.cronogram-person-tabs button.active {
  color: #1f2937;
}

/* Ajustes finos do tema neutro: areas estruturais sem significado condicional. */
.cronogram-person-tabs {
  border-bottom-color: #cbd5e1;
}

.cronogram-person-tabs button,
.cronogram-person-tabs .cronogram-add-person-tab,
.cronogram-person-picker,
.cronogram-process-toolbar .cronogram-visible-toggle,
.cronogram-order-cell button,
.cronogram-order-number,
.cronogram-activity-button,
.cronogram-activity-detail-button,
.priority-new-request-card input,
.priority-new-request-card textarea,
.priority-pending-row > input,
.priority-pending-row > textarea,
.priority-pending-row > output,
.priority-pending-row > .priority-pending-actions,
.priority-pending-row > button {
  border-color: #cbd5e1;
  background: #fff;
  color: #374151;
}

.cronogram-person-tabs button:hover,
.cronogram-person-tabs .cronogram-add-person-tab:hover,
.cronogram-order-cell button:hover:not(:disabled),
.cronogram-order-drag-handle:hover,
.cronogram-activity-button:hover,
.cronogram-activity-detail-button:hover,
.priority-pending-actions button:hover,
.priority-row-add:hover,
.priority-row-save:hover {
  border-color: #9ca3af;
  background: #f3f4f6 !important;
  color: #1f2937;
}

.cronogram-person-tabs button.active {
  border-color: #9ca3af;
  border-bottom-color: #fff;
  background: #fff;
  color: #1f2937;
  box-shadow: inset 0 -3px 0 #6b7280;
}

.cronogram-visible-toggle,
.cronogram-person-tabs > span,
.priority-new-request-card label > span,
.priority-eav-state,
.team-process-list-head > span {
  color: #6b7280;
}

.cronogram-process-panel,
.cronogram-process-toolbar,
.priority-request-entry,
.priority-new-request-card,
.priority-pending-table {
  border-color: #d1d5db;
  background: #f8fafc;
}

.cronogram-process-toolbar,
.priority-request-entry > header,
.priority-pending-head > span,
.team-process-list-head > span,
.cronogram-process-list-head > span {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

.cronogram-process-list-head {
  box-shadow: 0 1px 0 #d1d5db;
}

.cronogram-process-row.is-dragging > div {
  background: #f3f4f6;
}

.cronogram-process-row.drag-before > div {
  box-shadow: inset 0 3px 0 #6b7280;
}

.cronogram-process-row.drag-after > div {
  box-shadow: inset 0 -3px 0 #6b7280;
}

.cronogram-process-toolbar .cronogram-visible-toggle input,
.cronogram-activity-option input[type="checkbox"] {
  accent-color: #6b7280;
}

.priority-row-add,
.priority-row-save,
.priority-new-request-card > .priority-row-add {
  border-color: #cbd5e1 !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
}

.priority-new-row {
  box-shadow: 0 0 0 2px #d1d5db;
}

.priority-new-row > input,
.priority-new-row > textarea {
  background: #fff;
}

.detail-group.category-entrada,
.detail-group.category-imovel,
.detail-group.category-triagem,
.detail-group.category-prazos,
.detail-group.category-produtos {
  border-left-color: #9ca3af;
  background: #fff;
}

.macro-tabs button {
  border-color: #cbd5e1;
  background: #f3f4f6;
  color: #374151;
}

.macro-tabs button.active {
  border-color: #9ca3af;
  background: #fff;
  color: #1f2937;
  box-shadow: inset 0 -3px 0 #6b7280;
}

.cronogram-manual-add select,
.cronogram-manual-add input,
.team-month-control select,
.team-table-wrap,
.team-process-list,
.cronogram-process-toggle,
.work-communication-button,
.cronogram-days-editor,
.cronogram-days-input,
.cronogram-availability-input,
.cronogram-meta-control,
.cronogram-meta-control-table th,
.cronogram-meta-control-table td,
.cronogram-meta-process-head,
.team-person-row td:first-child button > span,
.team-person-row td:first-child .cronogram-link-button,
.team-person-row td:first-child .cronogram-person-export-button {
  border-color: #cbd5e1;
}

.team-table th,
.cronograms-table th,
.cronogram-meta-control-table th,
.cronogram-meta-static-head,
.cronogram-meta-process-head,
.cronogram-meta-control > header,
.team-detail-row > td,
.cronograms-table .team-detail-row > td {
  background: #f3f4f6;
  color: #374151;
}

.team-table td,
.cronograms-table td,
.team-process-list-head > span,
.team-process-row > div,
.cronogram-process-row > div {
  border-color: #d1d5db;
}

.team-sort-button:hover,
.team-sort-button.active,
.team-person-row:hover,
.team-person-row.expanded,
.cronogram-process-parent > div,
.cronogram-process-list,
.cronogram-days-editor,
.team-person-row td:first-child .cronogram-link-button,
.team-person-row td:first-child .cronogram-person-export-button,
.team-count,
.team-count.primary,
.team-count.with-deadline {
  background: #f3f4f6;
  color: #374151;
}

.team-sort-button b,
.team-sort-button.active b,
.team-person-row td:first-child button,
.team-person-row td:first-child .cronogram-link-button,
.team-person-row td:first-child .cronogram-person-export-button,
.team-count,
.team-count.primary,
.team-count.with-deadline,
.cronogram-order-cell strong,
.cronogram-process-toggle,
.work-communication-button,
.cronogram-days-editor,
.cronogram-property-label {
  color: #374151;
}

.team-person-row td:first-child .cronogram-link-button:hover,
.team-person-row td:first-child .cronogram-person-export-button:hover,
.cronogram-process-toggle:hover,
.work-communication-button:hover,
.cronogram-days-editor:hover {
  border-color: #9ca3af;
  background: #e5e7eb;
  color: #1f2937;
}

/* Leitura tabular: alternancia discreta de linhas e rolagens neutras. */
.table-shell,
.horizontal-scroll,
.meta-dashboard-content,
.detail,
.cronogram-process-list,
.team-table-wrap,
.priority-kanban-viewport,
.priority-horizontal-scroll,
.priority-pending-table,
.deliveries-list,
.deliveries-timeline,
.audit-log-modal-body,
.macro-info-list,
.comments-list {
  scrollbar-color: #9ca3af #e5e7eb;
}

.horizontal-scroll {
  background: #f3f4f6;
}

.horizontal-scroll::-webkit-scrollbar-track,
.table-shell::-webkit-scrollbar-track,
.meta-dashboard-content::-webkit-scrollbar-track,
.detail::-webkit-scrollbar-track,
.cronogram-process-list::-webkit-scrollbar-track,
.team-table-wrap::-webkit-scrollbar-track,
.priority-kanban-viewport::-webkit-scrollbar-track,
.priority-horizontal-scroll::-webkit-scrollbar-track,
.priority-pending-table::-webkit-scrollbar-track,
.deliveries-list::-webkit-scrollbar-track,
.deliveries-timeline::-webkit-scrollbar-track,
.audit-log-modal-body::-webkit-scrollbar-track,
.macro-info-list::-webkit-scrollbar-track,
.comments-list::-webkit-scrollbar-track {
  background: #e5e7eb;
}

.horizontal-scroll::-webkit-scrollbar-thumb,
.table-shell::-webkit-scrollbar-thumb,
.meta-dashboard-content::-webkit-scrollbar-thumb,
.detail::-webkit-scrollbar-thumb,
.cronogram-process-list::-webkit-scrollbar-thumb,
.team-table-wrap::-webkit-scrollbar-thumb,
.priority-kanban-viewport::-webkit-scrollbar-thumb,
.priority-horizontal-scroll::-webkit-scrollbar-thumb,
.priority-pending-table::-webkit-scrollbar-thumb,
.deliveries-list::-webkit-scrollbar-thumb,
.deliveries-timeline::-webkit-scrollbar-thumb,
.audit-log-modal-body::-webkit-scrollbar-thumb,
.macro-info-list::-webkit-scrollbar-thumb,
.comments-list::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-color: #e5e7eb;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover,
.table-shell::-webkit-scrollbar-thumb:hover,
.meta-dashboard-content::-webkit-scrollbar-thumb:hover,
.detail::-webkit-scrollbar-thumb:hover,
.cronogram-process-list::-webkit-scrollbar-thumb:hover,
.team-table-wrap::-webkit-scrollbar-thumb:hover,
.priority-kanban-viewport::-webkit-scrollbar-thumb:hover,
.priority-horizontal-scroll::-webkit-scrollbar-thumb:hover,
.priority-pending-table::-webkit-scrollbar-thumb:hover,
.deliveries-list::-webkit-scrollbar-thumb:hover,
.deliveries-timeline::-webkit-scrollbar-thumb:hover,
.audit-log-modal-body::-webkit-scrollbar-thumb:hover,
.macro-info-list::-webkit-scrollbar-thumb:hover,
.comments-list::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

tbody tr:not(.selected):not(.pending-triage):not(.process-parent):not(.process-child):nth-child(even) td {
  background-color: #f6f7f9;
}

tbody tr:not(.selected):not(.pending-triage):not(.process-parent):not(.process-child):nth-child(odd) td {
  background-color: #fff;
}

.team-process-row:nth-child(even) > div,
.cronogram-process-row:nth-child(even) > div,
.delivery-item:nth-child(even) > span,
.priority-pending-row:nth-child(even) > input,
.priority-pending-row:nth-child(even) > textarea,
.priority-pending-row:nth-child(even) > output,
.priority-pending-row:nth-child(even) > .priority-pending-actions,
.priority-pending-row:nth-child(even) > button,
.meta-process-table tbody tr:nth-child(even) td,
.meta-table tbody tr:nth-child(even) td,
.meta-deadline-table tbody tr:nth-child(even) td,
.audit-log-table tbody tr:nth-child(even) td,
.cronogram-meta-control-table tbody tr:nth-child(even) td {
  background-color: #f6f7f9;
}

.team-process-row:nth-child(odd) > div,
.cronogram-process-row:nth-child(odd) > div,
.delivery-item:nth-child(odd) > span,
.priority-pending-row:nth-child(odd) > input,
.priority-pending-row:nth-child(odd) > textarea,
.priority-pending-row:nth-child(odd) > output,
.priority-pending-row:nth-child(odd) > .priority-pending-actions,
.priority-pending-row:nth-child(odd) > button,
.meta-process-table tbody tr:nth-child(odd) td,
.meta-table tbody tr:nth-child(odd) td,
.meta-deadline-table tbody tr:nth-child(odd) td,
.audit-log-table tbody tr:nth-child(odd) td,
.cronogram-meta-control-table tbody tr:nth-child(odd) td {
  background-color: #fff;
}

.cronogram-process-parent > div,
tbody tr.process-parent td {
  background-color: #eceff3;
}

.team-process-row:hover > div,
.cronogram-process-row:hover > div,
.delivery-item:hover > span,
.meta-process-table tbody tr:hover td,
.meta-table tbody tr:not(.meta-empty-row):hover td,
.meta-deadline-table tbody tr:hover td {
  background-color: #eef0f3;
}

/* Acabamento visual: profundidade e fluidez sem alterar estados condicionais. */
.workspace,
.detail {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.workspace-tabs {
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08), 0 2px 9px rgba(15, 23, 42, 0.06);
}

.sheet-view-toolbar,
.cronograms-dashboard-head,
.deliveries-dashboard-head,
.meta-dashboard-head,
.priority-request-entry > header,
.detail-head {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.kpis {
  gap: 0;
  background: #eef0f2;
}

.kpis div,
.kpis > button {
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.kpis div::after,
.kpis > button::after {
  content: "";
  position: absolute;
  inset: 6px auto 6px 0;
  width: 1px;
  background: rgba(15, 23, 42, 0.08);
}

.kpis div:first-child::after,
.kpis > button:first-child::after {
  display: none;
}

.kpis > button:hover:not(:disabled),
.kpis > button.active-status-filter {
  z-index: 1;
}

.meta-process-summary-card,
.meta-executive-summary,
.priority-request-entry,
.priority-column,
.macro-info-panel,
.comments,
.confirm-modal-card,
.work-communication-modal-card,
.audit-log-modal-card,
.cronogram-meta-control,
.deliveries-detail,
.delivery-bucket {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.priority-card,
.consult-card,
.macro-comment,
.comment-list article,
.work-communication-record,
.work-communication-note-record,
.work-communication-pending,
.cronogram-activity-option {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.priority-card:hover,
.delivery-bucket:hover,
.consult-card:hover,
.macro-comment:hover,
.comment-list article:hover,
.cronogram-activity-option:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
}

.table-shell table thead th,
.team-table th,
.cronograms-table th,
.meta-process-table th,
.meta-table th,
.deliveries-list-head span,
.cronogram-process-list-head > span,
.team-process-list-head > span,
.priority-pending-head > span {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(75, 85, 99, 0.32);
  outline-offset: 2px;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

@media (prefers-reduced-motion: no-preference) {
  button,
  select,
  input,
  textarea,
  .workspace-tabs > button,
  .meta-subtabs button,
  .macro-tabs button,
  .cronogram-person-tabs button,
  .priority-card,
  .delivery-bucket,
  .consult-card,
  .macro-comment,
  .comment-list article,
  .cronogram-activity-option,
  .kpis > button {
    transition:
      background-color 140ms ease,
      border-color 140ms ease,
      box-shadow 140ms ease,
      color 140ms ease,
      opacity 140ms ease,
      transform 140ms ease;
  }

  .workspace-tabs > button:hover:not(:disabled),
  .meta-subtabs button:hover:not(:disabled),
  .cronogram-person-tabs button:hover:not(:disabled),
  .macro-tabs button:hover:not(:disabled),
  .kpis > button:hover:not(:disabled),
  .priority-card:hover,
  .delivery-bucket:hover,
  .consult-card:hover {
    transform: translateY(-1px);
  }

  .meta-link-button:active:not(:disabled),
  .backup-menu button:active:not(:disabled),
  .priority-row-add:active:not(:disabled),
  .priority-row-save:active:not(:disabled),
  .cronogram-activity-button:active:not(:disabled),
  .cronogram-activity-detail-button:active:not(:disabled),
  .work-communication-button:active:not(:disabled) {
    transform: translateY(1px);
  }
}

/* Polimento visivel: moldura mais moderna sem tocar nas cores de resultado. */
body {
  background:
    linear-gradient(180deg, #eef0f3 0%, #f7f8fa 42%, #eceff2 100%);
}

.layout {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.1));
}

.workspace {
  border-color: #c3cad3;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 18px 42px rgba(15, 23, 42, 0.14);
}

.detail {
  border-color: #c3cad3;
  background: #fbfcfd;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 18px 38px rgba(15, 23, 42, 0.13);
}

.workspace-tabs {
  border-bottom-color: #8f98a5;
  background: linear-gradient(180deg, #eef0f2 0%, #d8dde3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(15, 23, 42, 0.12),
    0 5px 14px rgba(15, 23, 42, 0.1);
}

.workspace-tabs::after {
  background: #7b8490;
}

.workspace-tabs > button {
  border-color: #aeb6c1;
  border-bottom-color: #9ea7b3;
  background: linear-gradient(180deg, #ffffff 0%, #e5e8ec 100%);
  color: #374151;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 1px 2px rgba(15, 23, 42, 0.08);
}

.workspace-tabs > button.active {
  border-color: #7f8791;
  border-bottom-color: #fff;
  background: #fff;
  color: #111827;
  box-shadow:
    inset 0 -3px 0 #4b5563,
    0 -2px 8px rgba(15, 23, 42, 0.12);
}

.workspace-tabs > button:hover:not(:disabled) {
  border-color: #8f98a5;
  background: linear-gradient(180deg, #ffffff 0%, #eef0f3 100%);
  color: #111827;
}

.global-filter-combo,
.workspace-actions button,
.sheet-month-control,
.compact-month-control,
.meta-link-button,
.backup-menu-wrap > button {
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
}

.global-filter-combo > select,
.global-filter-combo > input,
.sheet-month-control select,
.compact-month-control select,
.workspace-actions button,
.meta-link-button,
.backup-menu-wrap > button {
  border-color: #aeb6c1;
  background: linear-gradient(180deg, #ffffff 0%, #f0f2f4 100%);
  color: #1f2937;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.sheet-view-toolbar,
.cronograms-dashboard-head,
.deliveries-dashboard-head,
.meta-dashboard-head {
  border-color: #c3cad3;
  background: linear-gradient(180deg, #f8fafc 0%, #edf0f3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

.kpis div,
.kpis > button,
.meta-process-summary-card,
.meta-executive-summary,
.priority-request-entry,
.priority-column,
.deliveries-detail,
.delivery-bucket,
.macro-info-panel,
.comments {
  border-color: #cbd1d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(15, 23, 42, 0.09);
}

.kpis div,
.kpis > button {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
}

.table-shell,
.team-table-wrap,
.cronogram-process-list,
.meta-process-table-wrap,
.deliveries-list,
.detail-body {
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.table-shell table thead th,
.team-table th,
.cronograms-table th,
.meta-process-table th,
.meta-table th,
.deliveries-list-head span,
.cronogram-process-list-head > span,
.team-process-list-head > span,
.priority-pending-head > span {
  background: linear-gradient(180deg, #f2f4f6 0%, #e4e8ed 100%);
  color: #1f2937;
}

.team-process-row:hover > div,
.cronogram-process-row:hover > div,
tbody tr:not(.selected):not(.pending-triage):hover td,
.delivery-item:hover > span,
.meta-process-table tbody tr:hover td,
.meta-table tbody tr:not(.meta-empty-row):hover td,
.meta-deadline-table tbody tr:hover td {
  background-color: #e9ecef;
}

/* META: remove tons azuis remanescentes dos cards e resumos. */
.meta-card,
.meta-process-summary-card,
.meta-executive-summary,
.meta-summary-field {
  color: #1f2937;
}

.meta-card span,
.meta-summary-field span,
.meta-process-summary-card h3 small,
.meta-summary-line span,
.meta-summary-inline span,
.meta-bar-row span,
.meta-executive-table td {
  color: #4b5563;
}

.meta-card strong,
.meta-summary-field strong,
.meta-process-summary-card,
.meta-process-summary-card h3,
.meta-summary-line strong,
.meta-summary-inline strong,
.meta-bar-row strong,
.meta-executive-summary h2,
.meta-executive-table th,
.meta-executive-table th.merged-section,
.meta-executive-table .meta-summary-label,
.meta-executive-table .meta-summary-value,
.meta-executive-table .total-row td,
.meta-executive-table .section-row.group-end td:nth-child(2) {
  color: #1f2937;
}

.meta-process-summary-card h3,
.meta-executive-summary h2,
.meta-executive-table th.merged-section,
.meta-executive-table .meta-summary-value,
.meta-executive-table .total-row td {
  background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* KPIs da planilha: preserva a cor de cada card de resumo. */
.kpis div,
.kpis > button {
  border-left-color: var(--kpi-accent);
}

.kpis > button.active-status-filter {
  border-left-color: var(--kpi-accent);
}

/* META: cards executivos mais leves e fáceis de comparar. */
.meta-process-summary-grid {
  gap: 12px;
}

.meta-process-summary-card,
.meta-process-summary-card:nth-child(2),
.meta-process-summary-card:nth-child(3),
.meta-process-summary-card:nth-child(4) {
  border: 1px solid #dbe3ec;
  border-top: 4px solid #64748b;
  border-left-width: 1px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.meta-process-summary-card:nth-child(2) {
  border-top-color: #0f766e;
}

.meta-process-summary-card:nth-child(3) {
  border-top-color: #4f46e5;
}

.meta-process-summary-card:nth-child(4) {
  border-top-color: #d97706;
}

.meta-process-summary-card h3,
.meta-process-summary-card:nth-child(2) h3,
.meta-process-summary-card:nth-child(3) h3,
.meta-process-summary-card:nth-child(4) h3 {
  min-height: 34px;
  padding: 7px 11px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.meta-process-summary-card:nth-child(2) h3 {
  background: #ecfdf5;
  color: #115e59;
}

.meta-process-summary-card:nth-child(3) h3 {
  background: #eef2ff;
  color: #3730a3;
}

.meta-process-summary-card:nth-child(4) h3 {
  background: #fffbeb;
  color: #92400e;
}

.meta-process-summary-card h3 small {
  color: currentColor;
  font-size: 8px;
  letter-spacing: 0;
  opacity: 0.68;
}

.meta-process-summary-card .meta-summary-line,
.meta-process-summary-card .meta-summary-inline {
  min-height: 29px;
  padding: 4px 11px;
  border-bottom-color: #edf1f5;
}

.meta-process-summary-card .meta-summary-line:nth-child(odd),
.meta-process-summary-card .meta-summary-inline:nth-child(odd) {
  background: #fbfcfd;
}

.meta-process-summary-card .meta-summary-line span,
.meta-process-summary-card .meta-summary-inline span,
.meta-process-summary-card .meta-bar-row span {
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.meta-process-summary-card .meta-summary-line strong,
.meta-process-summary-card .meta-summary-inline strong,
.meta-process-summary-card .meta-bar-row strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.meta-process-summary-card .meta-summary-number-input,
.meta-process-summary-card .meta-evaluator-inline input {
  min-height: 22px;
  height: 22px;
  border-color: #cbd5e1;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.meta-process-summary-card .meta-bar-chart {
  gap: 12px;
  padding: 12px;
}

.meta-process-summary-card .meta-bar-row i {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
}

.meta-process-summary-card .meta-bar-row i b {
  border-radius: inherit;
}

/* Lateral: acabamento cinza mais sobrio, alinhado ao cabeçalho do app. */
.detail-wrap {
  background: linear-gradient(180deg, #d9dee5 0%, #cbd2dc 100%);
  border-left: 1px solid #aab4c2;
}

.detail {
  background: transparent;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.42);
}

.detail-head {
  border-bottom-color: #aab4c2;
  background: linear-gradient(180deg, #edf0f4 0%, #d7dde5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 2px 8px rgba(15, 23, 42, 0.08);
}

.detail-head-topline > span {
  color: #4b5563;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid {
  gap: 9px;
  padding: 11px;
}

.detail-group,
.detail-group.category-entrada,
.detail-group.category-imovel,
.detail-group.category-triagem,
.detail-group.category-prazos,
.detail-group.category-produtos {
  border-color: #c3ccd8;
  border-left-color: #6b7280;
  background: linear-gradient(180deg, #f8fafc 0%, #eef1f5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 2px 8px rgba(15, 23, 42, 0.07);
}

.detail-group h3 {
  color: #1f2937;
}

.detail output {
  border-color: #cbd5e1;
  background: #ffffff;
}

.detail input,
.detail textarea {
  border-color: #b8c2cf;
}

.detail input:focus,
.detail textarea:focus {
  border-color: #6b7280;
  outline: 2px solid rgba(107, 114, 128, 0.22);
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(180px, 24vh);
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .workspace {
    min-height: 0;
  }

  .detail-resize-handle {
    display: none;
  }

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

  .kpis div,
  .kpis > button {
    padding: 5px 3px;
  }

  .kpis span {
    font-size: 8px;
  }

  .kpis strong {
    font-size: 14px;
  }

  .workspace-tabs {
    align-items: flex-end;
  }

  .global-filter-combo {
    flex: 1 1 100%;
    order: 10;
    margin-left: 0;
  }

  .global-filter-combo > input {
    flex: 1 1 auto;
    width: auto;
    min-width: 120px;
  }

  .workspace-actions {
    order: 11;
    margin-left: auto;
  }
}

/* Acabamento do modal de comentários. */
.info-popover {
  inset: 0;
  z-index: 260;
  display: grid;
  width: auto;
  max-height: none;
  padding: clamp(14px, 3vh, 32px);
  overflow: hidden;
  transform: none;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.48);
  box-shadow: none;
  backdrop-filter: blur(3px);
}

.info-popover.hidden {
  display: none;
}

.info-popover .macro-info-panel {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 13px;
  align-self: center;
  justify-self: center;
  width: min(1040px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 40px));
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.75);
  border-radius: 15px;
  background: #f8fafc;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.info-popover .macro-info-head {
  min-height: 40px;
  padding: 0 86px 11px 2px;
  border-bottom: 1px solid #dbe2ea;
}

.info-popover .macro-info-head > div {
  gap: 1px;
}

.info-popover .macro-info-head strong {
  color: #172033;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.info-popover .macro-info-head small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.info-popover .macro-info-head > span {
  position: absolute;
  top: 1px;
  right: 41px;
  min-width: 29px;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  background: #eef2f7;
  color: #334155;
  font-size: 12px;
  text-align: center;
}

.info-popover .info-popover-close {
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-color: #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #475569;
}

.info-popover .info-popover-close:hover {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #b91c1c;
}

.info-popover .comment-composer {
  gap: 8px;
  padding: 11px 12px;
  border-color: #d4dce6;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.045);
}

.info-popover .comment-composer-fields {
  grid-template-columns: minmax(205px, 0.26fr) minmax(0, 1fr);
  gap: 12px;
}

.info-popover .comment-composer select {
  min-height: 36px;
  border-radius: 7px;
}

.info-popover .comment-composer textarea {
  min-height: 58px;
  border-radius: 7px;
}

.info-popover .comment-composer select:focus,
.info-popover .comment-composer textarea:focus {
  border-color: #64748b;
  outline: 2px solid rgba(100, 116, 139, 0.16);
}

.info-popover .comment-composer-actions {
  min-height: 34px;
}

.info-popover .comment-composer-actions button {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 7px;
}

.info-popover .comment-filterbar {
  padding: 0 1px 10px;
}

.info-popover .comment-filterbar > div {
  scrollbar-width: none;
}

.info-popover .comment-filterbar > div::-webkit-scrollbar {
  display: none;
}

.info-popover .comment-filterbar button {
  min-height: 27px;
  border-radius: 999px;
}

.info-popover .comment-filterbar button.active {
  border-color: #b8c2cf;
  background: #e5eaf0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07);
}

.info-popover .comment-timeline-head {
  padding: 0 4px;
}

.info-popover .macro-info-list.comment-timeline {
  min-height: 0;
  max-height: none;
  padding: 3px 6px 8px 29px;
  overscroll-behavior: contain;
}

.info-popover .macro-comment.comment-timeline-item {
  gap: 8px;
  padding: 12px 76px 13px 14px;
  border-color: #d8e0e9;
  border-left-color: var(--timeline-accent);
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.info-popover .macro-comment.comment-timeline-item:hover {
  border-color: #c5ced9;
  border-left-color: var(--timeline-accent);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}

.info-popover .macro-comment.comment-timeline-item.is-editing {
  padding-right: 14px;
  border-color: color-mix(in srgb, var(--timeline-accent) 40%, #cbd5e1);
  background: #fbfdff;
}

.info-popover .macro-comment.comment-timeline-item.is-readonly {
  padding-right: 14px;
  border-color: #b9dfd7;
  border-left-color: var(--timeline-accent);
  background: #f8fffd;
}

.comment-timeline-actions {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  gap: 4px;
}

.comment-timeline-actions button,
.comment-timeline-editor > button {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border-color: #d2dae4;
  border-radius: 7px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1;
}

.comment-timeline-actions button:hover,
.comment-timeline-editor > button:hover {
  border-color: #aeb9c7;
  background: #eef2f7;
  color: #1f2937;
}

.comment-timeline-actions button:last-child:hover {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #b91c1c;
}

.comment-timeline-text {
  margin: 1px 0 0;
  color: #273449;
  font-size: 13px;
  line-height: 1.48;
  overflow-wrap: anywhere;
  white-space: normal;
}

.comment-timeline-editor {
  display: grid;
  gap: 7px;
}

.comment-timeline-editor .field-edit-control {
  align-items: flex-start;
}

.comment-timeline-editor textarea {
  min-height: 82px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #fff;
  color: #273449;
  font-size: 13px;
  line-height: 1.45;
}

.comment-timeline-editor > button {
  justify-self: end;
  width: auto;
  min-width: 68px;
}

@media (max-width: 720px) {
  .info-popover {
    padding: 0;
    backdrop-filter: none;
  }

  .info-popover .macro-info-panel {
    align-self: stretch;
    width: 100%;
    max-height: 100vh;
    padding: 13px;
    border: 0;
    border-radius: 0;
  }

  .info-popover .comment-composer-fields {
    grid-template-columns: 1fr;
  }

  .info-popover .macro-comment.comment-timeline-item {
    padding-right: 68px;
  }

  .info-popover .comment-timeline-meta {
    padding-right: 0;
  }
}

/* Carregador global reutilizável para operações assíncronas da base. */
.global-loading {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(1px);
}

.global-loading.hidden {
  display: none;
}

.global-loading-card {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.global-loading-spinner {
  width: 19px;
  height: 19px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: global-loading-spin 700ms linear infinite;
}

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

/* Compositor da linha do tempo: assunto, contexto e ação com hierarquia clara. */
.info-popover .comment-composer {
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  background:
    linear-gradient(135deg, rgba(226, 232, 240, 0.7), rgba(255, 255, 255, 0.96) 42%),
    #fff;
}

.comment-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-composer-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.comment-composer-head > div > div {
  display: grid;
  gap: 1px;
}

.comment-composer-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #334155;
  color: #fff;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.comment-composer-head strong {
  color: #1e293b;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.comment-composer-head small {
  color: #64748b;
  font-size: 10px;
}

.comment-composer-required {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #d5dee8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-popover .comment-composer-fields {
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
}

.info-popover .comment-composer-fields > label {
  padding: 9px;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
}

.info-popover .comment-composer-fields > label > span {
  color: #475569;
  font-size: 9px;
}

.info-popover .comment-composer select,
.info-popover .comment-composer textarea {
  border-color: #b9c5d2;
  background: #fff;
}

.info-popover .comment-composer textarea {
  min-height: 62px;
}

.info-popover .comment-composer-actions {
  min-height: 39px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 213, 225, 0.82);
}

.info-popover .comment-composer-actions small {
  color: #64748b;
  font-size: 10px;
}

.info-popover .comment-composer-actions #popoverAddComment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #1e3a8a;
  border-radius: 8px;
  background: #1e3a8a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: none;
}

.info-popover .comment-composer-actions #popoverAddComment > span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.info-popover .comment-composer-actions #popoverAddComment:hover:not(:disabled),
.info-popover .comment-composer-actions #popoverAddComment:focus-visible:not(:disabled) {
  border-color: #172554 !important;
  background: #172554 !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.24);
}

.info-popover .comment-composer-actions #popoverAddComment:disabled {
  border-color: #d7dee7;
  background: #e9edf2;
  color: #94a3b8;
  box-shadow: none;
}

@media (max-width: 720px) {
  .comment-composer-head {
    align-items: flex-start;
  }

  .comment-composer-required {
    display: none;
  }

  .info-popover .comment-composer-fields {
    grid-template-columns: 1fr;
  }
}

/* Compositor simplificado: um único formulário, sem blocos decorativos. */
.info-popover .comment-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "topic topic"
    "comment action";
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border-color: #d4dde7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
}

.info-popover .comment-composer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.info-popover .comment-composer-field > span {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.info-popover .comment-composer-topic select {
  min-height: 36px;
  width: min(320px, 100%);
  margin: 0;
}

.info-popover .comment-composer-topic {
  grid-area: topic;
  display: grid;
  grid-template-columns: 76px minmax(180px, 320px);
  align-items: center;
  gap: 10px;
}

.info-popover .comment-composer-topic > span {
  align-self: center;
}

.info-popover .comment-composer-text textarea {
  min-height: 66px;
  margin: 0;
  resize: vertical;
}

.info-popover .comment-composer-actions {
  grid-area: action;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  padding: 0;
  border: 0;
}

.info-popover .comment-composer-text {
  grid-area: comment;
}

.info-popover .comment-composer-actions #popoverAddComment {
  min-height: 38px;
  padding: 7px 14px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .info-popover .comment-composer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topic"
      "comment"
      "action";
  }

  .info-popover .comment-composer-topic {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .info-popover .comment-composer-topic select {
    width: 100%;
  }

  .info-popover .comment-composer-actions {
    align-items: stretch;
  }

  .info-popover .comment-composer-actions #popoverAddComment {
    width: 100%;
  }
}

/* Grade da lateral: preenche a largura sem deixar cartões soltos. */
.detail-wrap {
  background: linear-gradient(180deg, #e7ecf2 0%, #dbe3ec 100%);
}

.detail-grid {
  align-content: start;
}

/* Cada coluna é independente: o cartão abaixo começa logo após o anterior,
   sem ficar preso à altura do cartão vizinho. */
.detail-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.detail-grid.detail-grid-layout-one {
  grid-template-columns: minmax(0, 1fr);
}

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

.detail-grid.detail-grid-layout-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid.detail-grid-layout-three .detail-group.category-prazos .detail-group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@container (max-width: 599px) {
  .detail-grid.detail-grid-layout-two,
  .detail-grid.detail-grid-layout-three {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Comunicação do trabalho em formato de linha do tempo. */
.work-communication-modal-card {
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
}

.work-communication-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px 14px;
  border-bottom: 1px solid #dbe2ea;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.work-communication-modal-head > div {
  min-width: 0;
}

.work-communication-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-communication-modal-head h2 {
  margin: 0;
  color: #1e293b;
  font-size: 20px;
}

.work-communication-modal-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.work-communication-modal-head button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 21px;
  line-height: 1;
}

.work-communication-modal-head button:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #0f172a;
}

.work-communication-composer {
  display: grid;
  gap: 0;
  margin: 10px 18px 0;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
}

.work-communication-composer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #bfdbfe !important;
  box-shadow: none;
  color: #1e3a5f;
  text-align: left;
}

.work-communication-composer-toggle:hover {
  background: #93c5fd !important;
  color: #172554;
}

.work-communication-composer-toggle > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-communication-composer-toggle strong {
  letter-spacing: 0.045em;
  font-size: 11px;
  font-weight: 900;
}

.work-communication-composer-chevron {
  color: currentColor;
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.work-communication-composer-toggle.is-open .work-communication-composer-chevron {
  transform: rotate(180deg);
}

.work-communication-composer-body {
  display: grid;
  gap: 10px;
  padding: 10px 14px 12px;
}

.work-communication-composer-body.hidden {
  display: none;
}

.work-communication-composer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.05fr 1.65fr 1fr;
  gap: 8px;
}

.work-communication-fact-options {
  display: grid;
  grid-template-columns: minmax(180px, 1fr);
  gap: 8px;
  max-width: 260px;
}

.work-communication-fact-options.hidden {
  display: none;
}

.work-communication-composer label,
.work-communication-note-box {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.work-communication-composer label > span,
.work-communication-note-box > span {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.work-communication-composer select,
.work-communication-composer input,
.work-communication-composer textarea {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.work-communication-composer textarea {
  min-height: 52px;
  line-height: 1.35;
  resize: vertical;
}

.work-communication-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-communication-composer-footer small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.work-communication-composer-footer button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #334155;
  border-radius: 7px;
  background: #334155;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.work-communication-composer-footer button:hover:not(:disabled) {
  border-color: #1e293b;
  background: #1e293b;
  color: #fff !important;
}

.work-communication-composer-footer button:disabled {
  border-color: #dbe2ea;
  background: #e2e8f0;
  color: #94a3b8;
}

.work-communication-timeline-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 0 18px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.work-communication-timeline-toolbar > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 160px;
}

.work-communication-timeline-toolbar strong {
  color: #1e293b;
  font-size: 14px;
}

.work-communication-timeline-toolbar > div:first-child span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.work-communication-history {
  flex: 1 1 auto;
  min-height: 170px;
  max-height: none;
  overflow: auto;
  padding: 7px 18px 18px;
  background: #fff;
}

.work-timeline-list {
  position: relative;
  display: grid;
  gap: 11px;
}

.work-timeline-list::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 2px;
  border-radius: 999px;
  background: #dbe2ea;
}

.work-timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.work-timeline-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 1px #cbd5e1;
}

.work-timeline-entry.type-delivery .work-timeline-dot { background: #3b82f6; }
.work-timeline-entry.type-review .work-timeline-dot { background: #8b5cf6; }
.work-timeline-entry.type-adjustments .work-timeline-dot { background: #f59e0b; }
.work-timeline-entry.type-sei .work-timeline-dot { background: #0f766e; }
.work-timeline-entry.type-fact .work-timeline-dot { background: #64748b; }

.work-timeline-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid #dbe2ea;
  border-left: 4px solid #94a3b8;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.work-timeline-entry.type-delivery .work-timeline-card { border-left-color: #60a5fa; }
.work-timeline-entry.type-review .work-timeline-card { border-left-color: #a78bfa; }
.work-timeline-entry.type-adjustments .work-timeline-card { border-left-color: #fbbf24; }
.work-timeline-entry.type-sei .work-timeline-card { border-left-color: #14b8a6; }
.work-timeline-entry.pending .work-timeline-card { background: #fffdf5; }

.work-timeline-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.work-timeline-card > header > div {
  display: grid;
  gap: 2px;
}

.work-timeline-type {
  color: #1e293b;
  font-size: 12px;
  font-weight: 900;
}

.work-timeline-card header small {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-timeline-delete {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-timeline-delete:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.work-timeline-event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
}

.work-timeline-event-meta strong {
  color: #334155;
  font-size: 11px;
}

.work-timeline-author-role {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-timeline-event-meta time {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.work-timeline-status {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.work-timeline-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.work-timeline-status.done {
  background: #dcfce7;
  color: #166534;
}

.work-timeline-card > p {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 8px 9px;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.work-timeline-sciences {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px dashed #dbe2ea;
}

.work-timeline-science {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
  font-size: 10px;
  font-weight: 900;
}

.work-timeline-science.done > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.work-timeline-science.done span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #dcfce7;
  font-size: 9px;
  text-transform: uppercase;
}

.work-timeline-science.pending {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.45fr) auto;
  align-items: end;
  padding: 8px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #334155;
}

.work-timeline-science.pending label {
  display: grid;
  gap: 4px;
}

.work-timeline-science.pending label > span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.work-timeline-science.pending input,
.work-timeline-science.pending select {
  width: 100%;
  min-height: 31px;
  padding: 5px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.work-timeline-science.pending select:disabled {
  opacity: 1;
  background: #f1f5f9;
  color: #475569;
}

.work-timeline-science time {
  color: #4b7a5a;
  font-size: 10px;
}

.work-timeline-ack-button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
}

.work-timeline-ack-button.reviewer {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.work-timeline-ack-button:hover {
  filter: brightness(0.97);
}

.work-timeline-no-science {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.work-timeline-empty {
  padding: 28px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 720px) {
  .work-communication-modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

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

  .work-communication-fact-options {
    max-width: none;
  }

  .work-communication-composer-footer,
  .work-communication-timeline-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .work-communication-composer-footer button {
    width: 100%;
  }

  .work-timeline-science.pending {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .work-communication-composer {
    margin-inline: 10px;
  }

  .work-communication-composer-grid {
    grid-template-columns: 1fr;
  }

}

.permission-hidden {
  display: none !important;
}

/* Navegação principal compacta, alinhada aos atalhos do cabeçalho. */
.workspace-tabs {
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 4px 8px;
  background: #eef0f2;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
}

.workspace-tabs::after {
  background: #b8c0ca;
}

.workspace-tabs > button {
  height: 25px;
  min-height: 25px;
  margin: 0;
  padding: 4px 9px;
  border-color: #b8bec7;
  border-radius: 6px;
  background: #e5e7ea;
  color: #565d66;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.workspace-tabs > button.active,
.workspace-tabs > button.active:hover:not(:disabled) {
  height: 25px;
  border-color: #8f99a5;
  background: #d4d9df;
  color: #1f2937;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.workspace-tabs > button:hover:not(:disabled) {
  border-color: #9ca5af;
  background: #dadee3;
  color: #343a42;
}

body[data-instance="EAV"] .workspace-tabs {
  border-bottom-color: #9eb8d1;
  background: linear-gradient(180deg, #edf5fc 0%, #dceaf6 100%);
}

body[data-instance="EAV"] .workspace-tabs::after {
  background: #8faecb;
}

body[data-instance="EAV"] .workspace-tabs > button {
  border-color: #afc6dc;
  border-right-color: #91afca;
  border-left-color: #91afca;
  background: #dceaf6;
  color: #42698e;
}

body[data-instance="EAV"] .workspace-tabs > button.active,
body[data-instance="EAV"] .workspace-tabs > button.active:hover:not(:disabled) {
  border-color: #7298ba;
  border-right-width: 2px;
  border-left-width: 2px;
  background: #c7ddef;
  color: #214f7c;
}

body[data-instance="EAV"] .workspace-tabs > button:hover:not(:disabled) {
  border-color: #83a5c3;
  background: #d0e2f1;
  color: #294f73;
}

body[data-instance="ESJL"] .workspace-tabs {
  border-bottom-color: #9dbfa9;
  background: linear-gradient(180deg, #eef7f1 0%, #dceee2 100%);
}

body[data-instance="ESJL"] .workspace-tabs::after {
  background: #8bb39a;
}

body[data-instance="ESJL"] .workspace-tabs > button {
  border-color: #b0cfba;
  border-right-color: #8fb69c;
  border-left-color: #8fb69c;
  background: #dceee2;
  color: #467456;
}

body[data-instance="ESJL"] .workspace-tabs > button.active,
body[data-instance="ESJL"] .workspace-tabs > button.active:hover:not(:disabled) {
  border-color: #6f9e7f;
  border-right-width: 2px;
  border-left-width: 2px;
  background: #c8e3d1;
  color: #245b39;
}

body[data-instance="ESJL"] .workspace-tabs > button:hover:not(:disabled) {
  border-color: #7faa8e;
  background: #d0e7d7;
  color: #2f6241;
}

.detail-group,
.detail-group.category-entrada,
.detail-group.category-imovel,
.detail-group.category-triagem,
.detail-group.category-prazos,
.detail-group.category-produtos {
  border-left-width: 1px;
}

body[data-instance="EAV"] .detail-wrap {
  border-left-color: #abc3da;
  background: linear-gradient(180deg, #edf5fc 0%, #dceaf6 100%);
}

body[data-instance="EAV"] .detail-head {
  border-bottom-color: #abc3da;
  background: linear-gradient(180deg, #f4f9fd 0%, #d8e8f5 100%);
}

body[data-instance="EAV"] .detail-group,
body[data-instance="EAV"] .detail-group.category-entrada,
body[data-instance="EAV"] .detail-group.category-imovel,
body[data-instance="EAV"] .detail-group.category-triagem,
body[data-instance="EAV"] .detail-group.category-prazos,
body[data-instance="EAV"] .detail-group.category-produtos {
  border-color: #b9ccde;
  border-left-width: 1px;
  background: linear-gradient(180deg, #fbfdff 0%, #eef5fb 100%);
}

body[data-instance="EAV"] .detail-group h3,
body[data-instance="EAV"] .detail-head-topline > span {
  color: #315f8c;
}

body[data-instance="ESJL"] .detail-wrap {
  border-left-color: #aac7b4;
  background: linear-gradient(180deg, #eef7f1 0%, #dceee2 100%);
}

body[data-instance="ESJL"] .detail-head {
  border-bottom-color: #aac7b4;
  background: linear-gradient(180deg, #f4faf6 0%, #d8eadf 100%);
}

body[data-instance="ESJL"] .detail-group,
body[data-instance="ESJL"] .detail-group.category-entrada,
body[data-instance="ESJL"] .detail-group.category-imovel,
body[data-instance="ESJL"] .detail-group.category-triagem,
body[data-instance="ESJL"] .detail-group.category-prazos,
body[data-instance="ESJL"] .detail-group.category-produtos {
  border-color: #bad2c2;
  border-left-width: 1px;
  background: linear-gradient(180deg, #fbfefc 0%, #eef7f1 100%);
}

body[data-instance="ESJL"] .detail-group h3,
body[data-instance="ESJL"] .detail-head-topline > span {
  color: #356c49;
}

.detail select {
  min-height: 31px;
  padding: 6px 8px;
  border: 1px solid #b8c2cf;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 12px;
}

.detail select:focus {
  border-color: #6b7280;
  outline: 2px solid rgba(107, 114, 128, 0.22);
}

.detail input,
.detail select,
.detail output {
  box-sizing: border-box;
  min-height: 31px;
}

.detail output[data-output-field="TIPO_TRABALHO"] {
  height: 31px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tipografia mais compacta apenas na aba lateral. */
.detail {
  font-size: 11px;
}

.detail-head strong,
.detail-process-line strong {
  font-size: 14px;
}

.detail-head-topline > span,
.detail-head em {
  font-size: 10px;
}

.detail-group h3 {
  font-size: 10px;
}

.detail-field span {
  font-size: 9px;
}

.detail input,
.detail select,
.detail textarea,
.detail output {
  font-size: 11px;
}

.detail .copy-process-button,
.detail .delete-row-button,
.detail .process-alert-add-button {
  font-size: 10px;
}

.detail .field-confirm-button {
  font-size: 11px;
}

.permission-readonly {
  opacity: 0.78;
}

.admin-panel-card {
  display: flex;
  flex-direction: column;
  width: min(1440px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
}

.admin-panel-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 0;
}

.admin-panel-intro {
  padding: 10px 12px;
  border: 1px solid #cbdcec;
  border-radius: 8px;
  background: #f2f7fc;
  color: #173b67;
}

.admin-panel-intro strong {
  font-size: 13px;
}

.admin-panel-intro p {
  margin: 3px 0 0;
  color: #536b86;
  font-size: 11px;
}

.admin-permission-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.admin-permission-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
  color: #334155;
  font-size: 11px;
}

.admin-permission-table th,
.admin-permission-table td {
  min-width: 94px;
  padding: 7px 6px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  vertical-align: middle;
}

.admin-permission-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #eaf1f8;
  color: #294b70;
  font-weight: 900;
}

.admin-permission-table thead th span,
.admin-permission-table thead th small {
  display: block;
}

.admin-permission-table thead th small {
  margin-top: 2px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
}

.admin-permission-table tbody tr:hover td,
.admin-permission-table tbody tr:hover th {
  background: #f8fbff;
}

.admin-permission-table .admin-user-column {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background: #fff;
  text-align: left;
}

.admin-permission-table thead .admin-user-column {
  z-index: 5;
  background: #eaf1f8;
}

.admin-permission-table .admin-actor-column {
  position: sticky;
  left: 250px;
  z-index: 2;
  width: 64px;
  min-width: 64px;
  background: #f8fafc;
}

.admin-permission-table thead .admin-actor-column {
  z-index: 5;
  background: #dce9f5;
}

.admin-user-column > span {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-fixed-badge {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.admin-checkbox {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.admin-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-checkbox span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #9fb4ca;
  border-radius: 5px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.admin-checkbox input:checked + span {
  border-color: #2563eb;
  background: #2563eb;
}

.admin-checkbox input:checked + span::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.admin-checkbox:hover span {
  transform: scale(1.08);
}

.admin-checkbox input:focus-visible + span {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.admin-panel-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #dbe7f3;
  background: #f8fbff;
}

.admin-panel-footer button {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #aebfd1;
  border-radius: 7px;
  background: #fff;
  color: #294b70;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.admin-panel-footer #adminPanelSave {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.admin-panel-footer #adminPanelSave:hover:not(:disabled) {
  background: #1d4ed8;
}

.admin-panel-footer button:disabled {
  cursor: wait;
  opacity: 0.6;
}

/* Controles contextuais: cada aba define a ordem operacional de seus filtros. */
.sheet-view.active {
  grid-template-rows: auto auto minmax(0, 1fr) 18px;
}

.sheet-search-slot,
.priority-query-row,
.cronogram-search-slot,
.meta-search-slot {
  min-width: 0;
}

.sheet-search-slot > .tab-search-toolbar,
.priority-query-row .tab-search-toolbar,
.cronogram-search-slot > .tab-search-toolbar,
.meta-search-slot > .tab-search-toolbar {
  min-height: 0;
  border: 0;
  box-shadow: none;
}

.sheet-search-slot > .tab-search-toolbar {
  grid-template-columns: auto auto minmax(260px, 1fr) auto auto auto;
  align-items: end;
  padding: 7px 10px;
  border-bottom: 1px solid #c5ccd5;
}

.sheet-search-slot .sheet-month-control,
.sheet-search-slot #sortStatusButton {
  align-self: end;
}

.priority-query-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.priority-query-row #priorityScopeSlot {
  flex: 0 0 auto;
}

.priority-query-row #prioritySearchSlot {
  flex: 1 1 360px;
  min-width: 0;
}

.priority-query-row .priority-kanban-toolbar {
  justify-content: flex-start;
}

.priority-query-row .tab-search-toolbar,
.cronogram-search-slot > .tab-search-toolbar,
.meta-search-slot > .tab-search-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.priority-query-row .tab-search-field,
.cronogram-search-slot .tab-search-field,
.meta-search-slot .tab-search-field {
  flex: 1 1 auto;
}

.priority-query-row .clear-filters,
.cronogram-search-slot .clear-filters,
.meta-search-slot .clear-filters {
  flex: 0 0 auto;
}

.cronograms-dashboard-head > .cronograms-controls {
  flex-wrap: nowrap;
  justify-content: stretch;
}

.cronogram-search-slot {
  flex: 1 1 auto;
}

.cronogram-search-slot > .tab-search-toolbar {
  width: 100%;
}

.meta-dashboard-head {
  align-items: flex-end;
  justify-content: flex-start;
}

.meta-dashboard-actions {
  flex: 0 0 auto;
  margin-left: 0;
}

.meta-search-slot {
  flex: 1 1 360px;
}

.meta-search-slot > .tab-search-toolbar {
  width: 100%;
}

/* Evita que o rótulo da busca herde o estilo dos cartões-resumo da Meta. */
.meta-search-slot .tab-search-field > span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .sheet-search-slot > .tab-search-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sheet-search-slot .tab-search-field {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .sheet-search-slot .sheet-month-control {
    grid-column: 1;
    grid-row: 2;
  }

  .sheet-search-slot #sortStatusButton {
    grid-column: 2;
    grid-row: 2;
  }

  .sheet-search-slot .tab-deadline-control {
    grid-column: 1;
    grid-row: 3;
  }

  .sheet-search-slot .tab-alert-control {
    grid-column: 2;
    grid-row: 3;
  }

  .sheet-search-slot .clear-filters {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .priority-query-row,
  .cronograms-dashboard-head > .cronograms-controls,
  .meta-dashboard-head {
    flex-wrap: wrap;
  }

  .priority-query-row #prioritySearchSlot,
  .cronogram-search-slot,
  .meta-search-slot {
    flex-basis: 100%;
  }

  .priority-query-row .tab-search-toolbar,
  .cronogram-search-slot > .tab-search-toolbar,
  .meta-search-slot > .tab-search-toolbar {
    flex-wrap: wrap;
  }

  .priority-query-row .tab-search-field,
  .cronogram-search-slot .tab-search-field,
  .meta-search-slot .tab-search-field {
    flex-basis: 100%;
  }
}

/* Cabeçalho: ações globais arejadas e identidade junto da navegação. */
.app-header {
  padding-right: 15px;
  padding-left: 15px;
}

.app-header-actions {
  gap: 12px;
  padding-left: 18px;
}

.workspace-tabs > .current-user-button {
  display: inline-flex;
  align-items: baseline;
  align-self: center;
  flex: 0 1 auto;
  gap: 5px;
  min-width: 0;
  max-width: 300px;
  min-height: 30px;
  order: 10;
  margin: 0 0 0 auto;
  padding: 4px 7px 4px 11px;
  border: 1px solid #c4cad2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  color: #4b5563;
  text-align: left;
}

.workspace-tabs > .current-user-button span {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.workspace-tabs > .current-user-button strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tabs > .current-user-button strong::after {
  content: none;
}

@media (max-width: 760px) {
  .app-header-actions {
    gap: 8px;
    padding-left: 8px;
  }

  .workspace-tabs > .current-user-button {
    flex-basis: 100%;
    max-width: none;
    min-height: 20px;
    margin: 0;
    padding: 3px 6px;
    border: 1px solid #c4cad2;
    justify-content: flex-end;
  }
}

/* Pedidos já registrados como faixas longas, no padrão das comunicações. */
.priority-pending-table {
  display: grid;
  gap: 7px;
  padding-top: 2px;
  overflow: visible;
}

.priority-pending-head {
  display: none;
}

.priority-pending-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(170px, 0.9fr) minmax(145px, 0.7fr) minmax(280px, 2fr) 112px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-left: 4px solid #60a5fa;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.045);
}

.priority-pending-row > input,
.priority-pending-row > textarea,
.priority-pending-row > output,
.priority-pending-row > .priority-pending-actions,
.priority-pending-row > button,
.priority-pending-row:nth-child(even) > input,
.priority-pending-row:nth-child(even) > textarea,
.priority-pending-row:nth-child(even) > output,
.priority-pending-row:nth-child(even) > .priority-pending-actions,
.priority-pending-row:nth-child(odd) > input,
.priority-pending-row:nth-child(odd) > textarea,
.priority-pending-row:nth-child(odd) > output,
.priority-pending-row:nth-child(odd) > .priority-pending-actions {
  min-height: 43px;
  padding: 8px 10px;
  border: 0;
  border-left: 1px solid #edf2f7;
  border-radius: 0;
  background: #fff;
  color: #334155;
  font-weight: 700;
}

.priority-pending-row > input:first-child {
  border-left: 0;
  color: #173b67;
  font-weight: 900;
}

.priority-pending-row > textarea {
  height: 43px;
  line-height: 25px;
  resize: vertical;
}

.priority-pending-row > input:focus,
.priority-pending-row > textarea:focus {
  position: relative;
  z-index: 1;
  background: #f8fbff;
  outline: 2px solid #bfdbfe;
  outline-offset: -2px;
}

.priority-pending-row > .priority-pending-actions {
  justify-content: flex-end;
  gap: 5px;
  padding: 6px 7px;
  background: #f8fafc;
}

.priority-pending-actions .priority-row-add {
  min-height: 29px;
  padding: 4px 8px;
  border: 1px solid #9ab8d8 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #173b67 !important;
}

.priority-pending-actions .priority-card-delete {
  width: 29px;
  height: 29px;
  min-height: 29px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff;
}

@media (max-width: 980px) {
  .priority-pending-table {
    overflow-x: auto;
  }

  .priority-pending-row {
    min-width: 820px;
  }
}

/* Priorização: tipografia compacta e leve no formulário e nos pedidos salvos. */
.priority-request-entry > header,
.priority-request-entry > header span,
.priority-request-entry > header::after,
.priority-new-request-card,
.priority-new-request-card label > span,
.priority-new-request-card input,
.priority-new-request-card textarea,
.priority-new-request-card button,
.priority-pending-row,
.priority-pending-row > input,
.priority-pending-row > textarea,
.priority-pending-row > output,
.priority-pending-row button,
.priority-pending-row > input:first-child {
  font-weight: 400 !important;
}

.priority-request-entry > header span {
  font-size: 10px;
}

.priority-request-entry > header::after,
.priority-new-request-card label > span {
  font-size: 9px;
}

.priority-new-request-card input,
.priority-new-request-card textarea,
.priority-pending-row > input,
.priority-pending-row > textarea,
.priority-pending-row > output {
  font-size: 11px;
}

.priority-new-request-card button,
.priority-pending-row button {
  font-size: 9px;
}
