:root {
  --navy: #11183d;
  --navy-2: #0b102e;
  --navy-soft: #20284f;
  --cyan: #62c5cc;
  --cyan-soft: #e3f7f9;
  --orange: #ef7d2d;
  --orange-soft: #fff0e4;
  --brand-red: #ef442c;
  --brand-red-soft: #ffe9e4;
  --purple: var(--orange);
  --purple-2: var(--brand-red);
  --purple-soft: var(--orange-soft);
  --purple-line: #f6bd8a;
  --bg: var(--white);
  --bg-lilac: #f5f8f8;
  --white: #fffdfa;
  --ink: var(--navy);
  --muted: #667085;
  --line: #dfe8ec;
  --blue: var(--cyan);
  --blue-soft: var(--cyan-soft);
  --green: var(--cyan);
  --green-soft: var(--cyan-soft);
  --yellow: var(--orange);
  --yellow-soft: var(--orange-soft);
  --red: var(--brand-red);
  --red-soft: var(--brand-red-soft);
  --shadow: 0 18px 45px rgba(11, 16, 46, 0.16);
  --shadow-soft: 0 10px 25px rgba(11, 16, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  max-width: none;
  overflow-x: hidden;
}

html {
  background: var(--white);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 65% 58%, rgba(98, 197, 204, 0.95) 0 10%, transparent 18%),
    radial-gradient(circle at 78% 58%, rgba(239, 125, 45, 0.95) 0 10%, transparent 18%),
    radial-gradient(circle at 91% 58%, rgba(239, 68, 44, 0.95) 0 10%, transparent 18%),
    linear-gradient(135deg, #ffffff 0%, #f7fafb 100%);
}

.glass-frame {
  width: min(78vw, 940px);
  min-height: min(58vw, 575px);
  display: grid;
  grid-template-columns: 1fr 320px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 26px;
  background: var(--navy);
  box-shadow: 0 24px 90px rgba(11, 16, 46, 0.34);
  backdrop-filter: blur(2px);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 54px 40px;
}

.login-form {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateX(7px);
}

.login-form h1 {
  margin: 0 0 50px;
  text-align: center;
  font-size: clamp(2rem, 3.4vw, 2.55rem);
  line-height: 1;
  font-weight: 800;
}

.login-form label {
  margin: 0 0 5px 4px;
  font-size: 0.86rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
}

.login-form input {
  width: 100%;
  height: 40px;
  margin: 0 0 18px;
  padding: 0 18px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.02);
}

.login-form input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.login-form button[type="submit"] {
  height: 42px;
  margin: 54px 0 0;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  background: var(--orange);
  box-shadow: 5px 6px 16px rgba(239, 125, 45, 0.3);
}

.sso-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.sso-divider::before,
.sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sso-button {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sso-button:hover {
  background: var(--bg-lilac);
  border-color: var(--muted);
}

.login-form p {
  min-height: 20px;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.image-card {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  margin: -2px -2px -2px 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
}

.security-mark {
  width: 190px;
  transform: translateY(-13px);
}

.office-logo-card {
  height: auto;
  max-width: 72%;
  object-fit: contain;
}

.security-mark svg {
  width: 100%;
  display: block;
}

.cloud {
  fill: rgba(98, 197, 204, 0.22);
}

.lock-shackle {
  fill: none;
  stroke: rgba(239, 125, 45, 0.68);
  stroke-width: 9;
  stroke-linecap: round;
}

.lock-body {
  fill: rgba(98, 197, 204, 0.9);
}

.check-bg {
  fill: rgba(255, 255, 255, 0.8);
}

.check {
  fill: none;
  stroke: rgba(239, 68, 44, 0.8);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-card span {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(17, 24, 61, 0.54);
  font-size: 1rem;
}

.legal-app {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
  background: var(--white);
  isolation: isolate;
  --sidebar-width: 86px;
}

.legal-app.sidebar-expanded {
  --sidebar-width: 260px;
}

.legal-app.sidebar-hidden {
  --sidebar-width: 54px;
}

.legal-app.sidebar-hidden .app-sidebar {
  width: 54px;
  min-width: 54px;
  padding: 14px 8px;
}

.legal-app.sidebar-hidden .sidebar-brand {
  justify-content: center;
  padding-bottom: 0;
}

.legal-app.sidebar-hidden .brand-mark {
  display: none;
}

.legal-app.sidebar-hidden .sidebar-nav,
.legal-app.sidebar-hidden .sidebar-footer {
  display: grid;
}

.legal-app.sidebar-hidden .sidebar-nav {
  justify-items: center;
  gap: 10px;
}

.legal-app.sidebar-hidden .sidebar-footer {
  justify-items: center;
}

.legal-app.sidebar-hidden .sidebar-nav button,
.legal-app.sidebar-hidden .sidebar-utility {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
}

.legal-app.sidebar-hidden .sidebar-nav button.active,
.legal-app.sidebar-hidden .sidebar-nav button:hover,
.legal-app.sidebar-hidden .sidebar-utility:hover {
  box-shadow: none;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 9;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--ink);
  border-right: 1px solid #edf0f5;
  background: #ffffff;
  box-shadow: none;
  transition: width 0.2s ease, min-width 0.2s ease, transform 0.2s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 0 18px;
}

.sidebar-logo {
  width: min(112px, calc(100% - 46px));
  height: auto;
  max-height: 48px;
  display: block;
  object-fit: contain;
  flex: 0 1 auto;
}

.legal-app:not(.sidebar-expanded) .sidebar-brand {
  flex-direction: column;
}

.sidebar-toggle-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: var(--purple);
  background: #ffffff;
}

.legal-app:not(.sidebar-expanded) .sidebar-toggle-button {
  margin-left: 0;
}

.app-sidebar .topbar-menu-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-mark,
.mini-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ddd6fe;
  background: #111827;
  font-size: 0.76rem;
  font-weight: 800;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.sidebar-nav button {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #1f2937;
  background: transparent;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.1;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon-fill {
  fill: currentColor;
  stroke: none;
}

.sidebar-nav button.active,
.sidebar-nav button:hover {
  color: var(--white);
  background: var(--purple);
  box-shadow: 0 10px 22px rgba(111, 60, 195, 0.24);
}

.sidebar-nav button.active::after {
  content: none;
}

.sidebar-footer {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sidebar-utility {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #1f2937;
  background: transparent;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
}

.sidebar-brand div:not(.brand-mark),
.sidebar-nav button span,
.sidebar-utility span {
  display: none;
}

.legal-app:not(.sidebar-expanded) .sidebar-logo {
  display: none;
}

.legal-app.sidebar-expanded .sidebar-brand {
  justify-content: flex-start;
  padding-left: 4px;
}

.legal-app.sidebar-expanded .sidebar-brand div:not(.brand-mark),
.legal-app.sidebar-expanded .sidebar-nav button span,
.legal-app.sidebar-expanded .sidebar-utility span {
  display: block;
}

.legal-app.sidebar-expanded .app-sidebar {
  padding: 14px 16px;
}

.legal-app.sidebar-expanded .sidebar-nav button,
.legal-app.sidebar-expanded .sidebar-utility {
  justify-content: flex-start;
  padding: 0 14px;
}

.sidebar-utility:hover {
  color: var(--white);
  background: var(--purple);
}

.responsaveis-workspace {
  display: grid;
  gap: 18px;
}

.clientes-dashboard {
  min-height: calc(100vh - 164px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}

.clientes-sidebar-panel,
.clientes-main-panel {
  min-width: 0;
}

.clientes-sidebar-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.clientes-side-menu,
.clientes-deadline-card,
.clientes-recent-card,
.cliente-project-card {
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(70, 84, 120, 0.06);
}

.clientes-side-menu {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.clientes-side-menu button {
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #657083;
  background: #ffffff;
  text-align: left;
}

.clientes-side-menu button.active,
.clientes-side-menu button:hover {
  color: #f06449;
  background: #fff7f5;
}

.clientes-side-menu strong,
.clientes-side-menu small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clientes-side-menu strong {
  font-size: 0.78rem;
}

.clientes-side-menu small {
  font-size: 0.7rem;
  font-weight: 800;
}

.cliente-side-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5f7fb;
}

.cliente-side-icon::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.cliente-side-icon.chart::before {
  height: 10px;
  border-top: 0;
  border-right: 0;
  box-shadow: 5px -3px 0 -2px currentColor, 10px -7px 0 -2px currentColor;
}

.clientes-deadline-card,
.clientes-recent-card {
  padding: 14px;
}

.deadline-project {
  width: 100%;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: #dd6b4c;
  background: #fff4ee;
  text-align: left;
}

.deadline-project span,
.deadline-project strong {
  display: block;
}

.deadline-project span {
  font-size: 0.68rem;
  font-weight: 800;
}

.deadline-project strong {
  color: #111827;
  font-size: 0.78rem;
}

.clientes-small-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cliente-mini-stat {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(70, 84, 120, 0.06);
}

.cliente-mini-stat strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.78rem;
}

.cliente-mini-stat.green strong { background: #39d66f; }
.cliente-mini-stat.purple strong { background: #7c3aed; }
.cliente-mini-stat.blue strong { background: #4f7cff; }
.cliente-mini-stat.orange strong { background: #ff7043; }

.cliente-mini-stat span {
  color: #657083;
  font-size: 0.72rem;
  font-weight: 800;
}

.clientes-recent-list {
  display: grid;
  gap: 8px;
}

.clientes-recent-list button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #657083;
  background: #f8fafc;
  text-align: left;
}

.clientes-main-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.clientes-tabs {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.clientes-tabs button {
  min-height: 36px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 4px;
  color: #8a93a6;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 800;
}

.clientes-tabs button.active,
.clientes-tabs button:hover {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.clientes-searchbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.clientes-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 22px;
}

.cliente-project-card {
  min-height: 214px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 15px;
}

.cliente-project-card header,
.cliente-project-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cliente-project-card header button {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  color: #a5adbb;
  background: #f8fafc;
}

.cliente-photo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #ffffff;
  background: #94a3b8;
  font-size: 0.74rem;
  font-weight: 900;
}

.cliente-project-card.rose .cliente-photo { background: #e9a093; }
.cliente-project-card.blue .cliente-photo { background: #7ba5ff; }
.cliente-project-card.green .cliente-photo { background: #65c18c; }
.cliente-project-card.amber .cliente-photo { background: #e8b45f; }
.cliente-project-card.violet .cliente-photo { background: #9f7aea; }
.cliente-project-card.slate .cliente-photo { background: #64748b; }

.cliente-project-card strong,
.cliente-project-card small {
  display: block;
}

.cliente-project-card header strong {
  color: #111827;
  font-size: 0.82rem;
}

.cliente-project-card header small {
  margin-top: 3px;
  color: #8a93a6;
  font-size: 0.68rem;
  font-weight: 800;
}

.cliente-project-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  padding: 10px 0;
  border-top: 1px solid #f0f3f7;
  border-bottom: 1px solid #f0f3f7;
}

.cliente-project-stats span {
  min-width: 0;
  display: grid;
  grid-template-columns: 14px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: #7b8495;
}

.cliente-project-stats i {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.cliente-project-stats b {
  color: #64748b;
  font-size: 0.68rem;
}

.cliente-project-stats small {
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cliente-project-card footer {
  justify-content: space-between;
}

.cliente-project-card footer button {
  min-height: 30px;
  flex: 1 1 0;
  border: 1px solid #edf1f6;
  border-radius: 7px;
  color: #7b8495;
  background: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
}

.cliente-project-card footer button:hover {
  color: var(--purple);
  border-color: var(--purple-line);
  background: var(--purple-soft);
}

.clientes-load-row {
  display: flex;
  justify-content: center;
}

.responsaveis-hero,
.responsavel-column {
  border: 1px solid #dfe8ee;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
  box-shadow: 0 16px 34px rgba(72, 94, 122, 0.09);
}

.responsaveis-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1fr);
  gap: 18px;
  padding: 20px;
}

.responsaveis-hero h2 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.responsaveis-hero p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.responsaveis-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.responsaveis-metrics .summary-card {
  min-height: 104px;
  border-radius: 14px;
  box-shadow: none;
}

.responsaveis-filters {
  box-shadow: none;
}

.responsaveis-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.responsavel-column {
  min-height: 260px;
  padding: 16px;
}

.responsavel-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.responsavel-column h3 {
  margin: 0;
  font-size: 0.98rem;
}

.responsavel-card-list {
  display: grid;
  gap: 10px;
}

.responsavel-card-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e4ecf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  text-align: left;
}

button.responsavel-card-item:hover,
.clickable-row:hover {
  background: #f3f9f6;
}

.responsavel-card-item > div:not(.responsavel-avatar) strong,
.responsavel-card-item > div:not(.responsavel-avatar) span {
  display: block;
}

.responsavel-card-item > div:not(.responsavel-avatar) strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.responsavel-card-item > div:not(.responsavel-avatar) span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.responsavel-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #2f6f52;
  background: #dff5e8;
  font-size: 0.9rem;
  font-weight: 800;
}

.responsavel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.responsavel-avatar.small {
  width: 40px;
  height: 40px;
  font-size: 0.78rem;
}

.responsavel-table-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.responsaveis-list {
  border-radius: 18px;
}

.responsaveis-command-center {
  display: grid;
  gap: 18px;
  padding: 2px;
  border-radius: 24px;
  background: #edf2f7;
}

.responsaveis-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 0;
}

.responsaveis-page-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.responsaveis-page-head p {
  margin: 0;
  color: var(--muted);
}

.responsaveis-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.responsaveis-searchbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(150px, 0.75fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid #dfe7ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.responsaveis-searchbar.compact label:not(:first-child) {
  display: none;
}

.responsaveis-flow {
  display: block;
}

.responsaveis-flow-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 14px;
}

.responsavel-flow-column,
.responsaveis-quick-types,
.responsaveis-pendency-panel,
.responsaveis-list-panel,
.responsaveis-summary-panel,
.responsavel-side-panel {
  border: 1px solid #dfe7ee;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 38px rgba(77, 96, 122, 0.08);
}

.responsaveis-pendency-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.responsaveis-pendency-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.responsaveis-pendency-head h2,
.responsaveis-pendency-head span,
.responsaveis-pendency-column header strong,
.responsaveis-pendency-column header small {
  margin: 0;
}

.responsaveis-pendency-head h2 {
  font-size: 1rem;
}

.responsaveis-pendency-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.responsaveis-pendency-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.responsaveis-pendency-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pendency-toggle {
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
}

.responsaveis-pendency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 2px;
}

.responsaveis-pendency-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-left-width: 5px;
  border-radius: 18px;
  background: #ffffff;
}

.responsaveis-pendency-column header {
  display: grid;
  gap: 4px;
}

.responsaveis-pendency-column header strong {
  color: #111827;
  font-size: 0.92rem;
}

.responsaveis-pendency-column header small {
  color: var(--muted);
  font-size: 0.74rem;
}

.pendency-kind-label {
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pendency-kind-missing {
  border-left-color: #f59e0b;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 42%);
}

.pendency-kind-missing .pendency-kind-label {
  color: #92400e;
  background: #fef3c7;
}

.pendency-kind-inconsistency {
  border-left-color: #dc2626;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 42%);
}

.pendency-kind-inconsistency .pendency-kind-label {
  color: #991b1b;
  background: #fee2e2;
}

.responsaveis-pendency-list {
  display: grid;
  gap: 10px;
}

.responsavel-pendency-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
}

.responsavel-pendency-row[data-responsavel-pendency="sem_responsavel"] {
  border-left-color: #f59e0b;
}

.responsavel-pendency-row[data-responsavel-pendency="inconsistencia"] {
  border-left-color: #dc2626;
}

.pendency-row-main {
  min-width: 0;
}

.pendency-row-main strong,
.pendency-row-main span,
.pendency-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pendency-row-main strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.pendency-row-main span,
.pendency-row-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.pendency-row-controls {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(116px, 0.65fr);
  gap: 8px;
  align-items: center;
}

.pendency-row-controls select {
  min-width: 0;
  height: 36px;
  border: 1px solid #d7e1e9;
  border-radius: 10px;
  padding: 0 10px;
  background: #f8fafc;
}

.pendency-row-controls .small-button {
  min-height: 36px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 0.75rem;
}

.inline-check input {
  width: 16px;
  height: 16px;
}

.responsavel-flow-column {
  position: relative;
  min-height: 330px;
  padding: 14px;
}

.responsavel-flow-column::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 2px;
  background: #b8c7d8;
}

.responsavel-flow-column:last-child::after {
  content: none;
}

.responsavel-flow-column header,
.responsaveis-list-panel .panel-title,
.responsaveis-summary-panel .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.responsavel-flow-column h3,
.responsaveis-quick-title {
  margin: 0;
  font-size: 0.9rem;
}

.flow-actions,
.panel-actions {
  display: inline-flex;
  gap: 8px;
}

.mini-circle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d6e0e8;
  border-radius: 50%;
  color: #4b5563;
  background: #f8fafc;
}

.flow-card-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.responsavel-mini-card {
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 18px;
  padding: 10px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 8px 20px rgba(77, 96, 122, 0.07);
}

.responsavel-mini-card:hover,
.responsavel-type-card:hover {
  transform: translateY(-1px);
}

.responsavel-mini-card-pendency {
  background: #fffaf1;
}

.responsavel-mini-card-pendency .mini-card-actions {
  color: #b45309;
}

.mini-card-main strong,
.mini-card-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card-main strong {
  font-size: 0.82rem;
}

.mini-card-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.mini-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #4f9a78;
  font-size: 0.8rem;
  font-weight: 800;
}

.mini-card-actions i {
  color: #6b7280;
  font-style: normal;
}

.flow-more {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border: 1px dashed #c8d5df;
  border-radius: 14px;
  color: #4b5563;
  background: transparent;
}

.responsaveis-quick-types {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.responsaveis-quick-title {
  grid-column: 1 / -1;
}

.responsavel-type-card {
  min-height: 74px;
  border: 0;
  border-radius: 16px;
  padding: 12px;
  color: #374151;
  background: #ffffff;
  text-align: left;
  transition: transform 0.16s ease;
}

.responsavel-type-card.active {
  color: #ffffff;
  background: #111827;
}

.responsavel-type-card strong,
.responsavel-type-card span {
  display: block;
}

.responsavel-type-card strong {
  font-size: 0.78rem;
}

.responsavel-type-card span {
  margin-top: 7px;
  color: inherit;
  opacity: 0.72;
  font-size: 0.72rem;
}

.responsaveis-bottom-grid {
  display: grid;
  grid-template-columns: minmax(680px, 1.25fr) minmax(360px, 0.75fr);
  align-items: start;
  gap: 20px;
}

.responsaveis-list-panel,
.responsaveis-summary-panel {
  min-width: 0;
  padding: 16px;
}

.responsaveis-list-panel {
  overflow-x: auto;
}

.responsaveis-list-panel table {
  min-width: 1080px;
}

.responsaveis-list-panel th,
.responsaveis-list-panel td {
  padding: 12px 16px;
}

.responsaveis-list-panel th:nth-child(1),
.responsaveis-list-panel td:nth-child(1) {
  width: 240px;
}

.responsaveis-list-panel th:nth-child(5),
.responsaveis-list-panel td:nth-child(5),
.responsaveis-list-panel th:nth-child(6),
.responsaveis-list-panel td:nth-child(6),
.responsaveis-list-panel th:nth-child(7),
.responsaveis-list-panel td:nth-child(7),
.responsaveis-list-panel th:nth-child(8),
.responsaveis-list-panel td:nth-child(8) {
  white-space: nowrap;
}

.responsaveis-list-panel td:nth-child(8) {
  width: 116px;
}

.responsaveis-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.responsaveis-summary-grid .summary-card {
  min-height: 118px;
  padding: 18px;
  border-radius: 18px;
  box-shadow: none;
}

.responsaveis-summary-grid .summary-card strong {
  font-size: 1.85rem;
}

.responsaveis-type-bars,
.responsavel-panel-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.responsavel-type-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 34px;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.responsavel-type-bar strong {
  color: var(--ink);
  text-align: right;
}

.responsavel-type-bar div {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.responsavel-type-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #91d5ad;
}

.responsavel-side-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(760px, calc(100vw - 36px));
  padding: 16px;
  overflow: auto;
  background: #fbfcf8;
}

.responsavel-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4ece7;
}

.responsavel-panel-head > div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.responsavel-panel-head h2,
.responsavel-panel-head p {
  margin: 0;
}

.responsavel-panel-head p {
  margin-top: 4px;
  color: var(--muted);
}

.responsavel-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.responsavel-panel-section table {
  min-width: 680px;
}

.clickable-row {
  cursor: pointer;
}

.responsavel-detail-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 16px;
}

.responsavel-contact-list,
.responsavel-profile-panel,
.responsavel-notes-panel {
  min-width: 0;
  border: 1px solid #e0e7df;
  border-radius: 18px;
  background: #f8faf4;
  box-shadow: 0 16px 34px rgba(72, 94, 122, 0.08);
}

.responsavel-contact-list,
.responsavel-notes-panel {
  padding: 12px;
}

.responsavel-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 8px;
}

.responsavel-contact-items,
.responsavel-notes-list,
.responsavel-process-grid {
  display: grid;
  gap: 10px;
}

.responsavel-contact {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.responsavel-contact.active,
.responsavel-contact:hover {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(72, 94, 122, 0.08);
}

.responsavel-contact strong,
.responsavel-contact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.responsavel-contact strong {
  font-size: 0.82rem;
}

.responsavel-contact small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.responsavel-profile-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fbfcf8;
}

.responsavel-profile-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.responsavel-photo {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  color: #2f6f52;
  background: linear-gradient(135deg, #dff5e8 0%, #bfe8d0 100%);
  font-size: 2.2rem;
  font-weight: 800;
}

.responsavel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.responsavel-profile-head h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.responsavel-profile-head span {
  color: var(--muted);
}

.responsavel-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.responsavel-detail-metrics .summary-card {
  min-height: 110px;
  border-radius: 16px;
  box-shadow: none;
}

.responsavel-distribution {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e8eee8;
  border-radius: 16px;
  background: #ffffff;
}

.distribution-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 42px minmax(140px, 1.3fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.distribution-row strong {
  color: var(--ink);
  text-align: right;
}

.distribution-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

.distribution-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9cec6b;
}

.responsavel-process-search {
  box-shadow: none;
}

.responsavel-process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.responsavel-process-card,
.responsavel-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e7eee8;
  border-radius: 16px;
  background: #ffffff;
}

.responsavel-process-card strong,
.responsavel-note strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.responsavel-process-card span,
.responsavel-process-card small,
.responsavel-note span,
.responsavel-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.responsavel-notes-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.responsavel-note p {
  line-height: 1.35;
}

.responsavel-profile-dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 14px;
  min-height: 680px;
  padding: 14px;
  border-radius: 26px;
  background: #eef2ec;
}

.responsavel-clients-pane,
.responsavel-profile-main,
.profile-updates-card,
.profile-notes-card {
  border: 1px solid #e1e5dc;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 38px rgba(71, 81, 62, 0.08);
}

.responsavel-clients-pane {
  align-self: start;
  padding: 12px;
}

.profile-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 12px;
}

.profile-client-list,
.profile-right-pane,
.profile-process-list {
  display: grid;
  gap: 10px;
}

.profile-client-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  padding: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.profile-client-card:hover {
  background: #ffffff;
}

.profile-client-card strong,
.profile-client-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-client-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.responsavel-profile-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-hero-card .responsavel-photo {
  width: 150px;
  height: 150px;
  border-radius: 34px;
  font-size: 2.35rem;
}

.profile-identity h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-info-grid .detail-item {
  min-height: 58px;
  border: 1px solid #e8ece4;
  border-radius: 14px;
  background: #ffffff;
}

.profile-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.round-action {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4da;
  border-radius: 50%;
  color: #315c48;
  background: #ffffff;
}

.round-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.profile-analytics-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid #e8ece4;
  border-radius: 20px;
  background: #ffffff;
}

.analytics-main-number span,
.analytics-main-number small {
  display: block;
  color: var(--muted);
}

.analytics-main-number strong {
  display: block;
  margin: 8px 0;
  color: #111827;
  font-size: 3rem;
  line-height: 1;
}

.analytics-distribution {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  gap: 10px;
}

.analytics-metric {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 92px;
}

.analytics-metric span {
  color: var(--muted);
  font-size: 0.72rem;
}

.analytics-metric strong {
  font-size: 1.1rem;
}

.analytics-metric div {
  height: 22px;
  overflow: hidden;
  border-radius: 7px;
  background: repeating-linear-gradient(-45deg, #f0f2ed 0 4px, #e2e6dd 4px 8px);
}

.analytics-metric i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f8ed58;
}

.profile-process-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: end;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-process-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-process-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e4e9df;
  border-radius: 18px;
  background: #ffffff;
}

.profile-process-card strong,
.profile-process-card span,
.profile-process-card small {
  display: block;
}

.profile-process-card span,
.profile-process-card small,
.profile-process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.process-card-tags,
.process-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-right-pane {
  align-content: start;
}

.profile-updates-card,
.profile-notes-card {
  padding: 12px;
}

.profile-update-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 15px;
  background: #ffffff;
}

.profile-update-item strong,
.profile-update-item p,
.profile-update-item span {
  margin: 0;
}

.profile-update-item p,
.profile-update-item span,
.profile-note-bubble span {
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-note-bubble {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
}

.profile-notes-card textarea {
  width: 100%;
  min-height: 92px;
  margin: 10px 0;
  resize: vertical;
}

.mini-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-weight: 800;
}

.app-main {
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
  max-width: 100%;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.2s ease, width 0.2s ease;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(223, 236, 227, 0.76);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(18px);
}

.topbar-menu-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.global-search {
  width: min(100%, 620px);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.global-search span {
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.global-search span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: var(--muted);
  transform: rotate(45deg);
}

.global-search input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button,
.account-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.icon-button {
  width: 42px;
  color: var(--purple);
  font-weight: 800;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 156px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border-color: #e8edf3;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.06);
}

.account-button .mini-avatar {
  background: linear-gradient(135deg, var(--purple), #a7dcbc);
}

.account-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-copy strong,
.account-copy small {
  display: block;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  color: #111827;
  font-size: 0.84rem;
  line-height: 1;
}

.account-copy small {
  color: #6b7280;
  font-size: 0.66rem;
  font-weight: 700;
}

.screen-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 22px 16px 32px;
}

.primary-panel,
.detail-sidebar {
  min-width: 0;
}

.primary-panel {
  display: grid;
  gap: 18px;
  width: 100%;
}

.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.screen-header h1 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.1;
}

.screen-header p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
}

.screen-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.screen-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.detail-sidebar {
  display: none;
}

.card,
.summary-card,
.table-card,
.filters,
.detail-panel,
.right-card,
.timeline-card,
.wizard-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.summary-grid,
.grid.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-card,
.card {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 16px;
  border-left: 4px solid var(--purple);
}

.summary-card span,
.card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.summary-card strong,
.card strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.summary-card small,
.card small {
  color: var(--muted);
}

.summary-card.blue,
.card.teal {
  border-left-color: var(--blue);
}

.summary-card.green,
.card.green {
  border-left-color: var(--green);
}

.summary-card.yellow,
.card.amber {
  border-left-color: var(--yellow);
}

.summary-card.red,
.card.red {
  border-left-color: var(--red);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.print-dashboard {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 14px;
}

.print-top {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
}

.print-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.print-kpi-card,
.print-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #e8eaf1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
  overflow: hidden;
}

.print-kpi-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 16px;
}

.print-kpi-card span {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.print-kpi-card strong {
  color: #111827;
  font-size: 1.55rem;
  line-height: 1;
}

.print-kpi-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #c9c4ff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #5d45d6;
  background: #eeeaff;
}

.print-kpi-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 13px 0 -7px currentColor;
}

.print-kpi-icon.pending::before,
.print-kpi-icon.motion::before {
  border-radius: 4px;
  box-shadow: inset 0 -6px 0 -3px currentColor;
}

.print-kpi-card footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
}

.print-kpi-card small {
  color: #7b8495;
  font-size: 0.76rem;
}

.print-kpi-card b {
  min-width: 48px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.72rem;
}

.print-kpi-card b.positive {
  color: #15a06f;
  background: #e7f8f0;
}

.print-kpi-card b.negative {
  color: #d86a4a;
  background: #fff0ea;
}

.print-card {
  padding: 16px;
}

.print-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.print-card-head h2 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
}

.print-card-head button,
.print-card-actions button {
  min-height: 32px;
  border: 1px solid #f6bd8a;
  border-radius: 8px;
  padding: 0 10px;
  color: #9b4a13;
  background: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.print-card-actions {
  display: flex;
  gap: 8px;
}

.print-chart-card {
  min-width: 0;
  min-height: 270px;
}

.print-chart-card .print-card-actions {
  display: none;
}

.print-chart {
  min-width: 0;
  min-height: 205px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.print-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.72rem;
}

.print-bars {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(22px, 1fr));
  align-items: end;
  gap: 6px;
  border-left: 1px solid #f0f2f7;
  background: repeating-linear-gradient(to bottom, #f0f2f7 0 1px, transparent 1px 44px);
  padding: 12px 8px 0;
}

.print-bar-column {
  min-width: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 8px;
}

.print-bar {
  position: relative;
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8d9e4, #eff0f6);
}

.print-bar.active {
  background: linear-gradient(180deg, #6f3cc3, #2f2ccf);
}

.print-bar span {
  position: absolute;
  left: 50%;
  top: -44px;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 8px;
  padding: 8px 10px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.14);
  font-size: 0.72rem;
  font-weight: 800;
}

.print-bar-column small {
  color: #64748b;
  font-size: 0.68rem;
}

.print-bottom {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
}

.print-left-column {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.print-overview-total {
  display: block;
  color: #111827;
  font-size: 1.65rem;
}

.print-overview-label {
  color: #6b7280;
  font-size: 0.82rem;
}

.print-progress-row {
  height: 14px;
  display: flex;
  gap: 4px;
  margin: 16px 0 12px;
}

.print-progress-segment {
  border-radius: 999px;
  background: var(--cyan);
}

.print-progress-segment.segment-1 {
  background: var(--orange);
}

.print-progress-segment.segment-2 {
  background: var(--brand-red);
}

.print-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.print-type-grid strong,
.print-type-grid span {
  display: block;
}

.print-type-grid strong {
  color: #111827;
  font-size: 1rem;
}

.print-type-grid span {
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: 0.72rem;
}

.print-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #f1f2f6;
  padding: 4px;
}

.print-tabs span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #737b8c;
  font-size: 0.76rem;
  font-weight: 800;
}

.print-tabs span.active {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(31, 41, 55, 0.08);
}

.responsavel-mini-list {
  display: grid;
  gap: 10px;
}

.responsavel-mini-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfbff 100%);
}

.responsavel-mini-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.responsavel-mini-head strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.responsavel-mini-head b {
  min-width: 34px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #6f3cc3;
  background: #f1edff;
  font-size: 0.78rem;
}

.responsavel-mini-bar {
  height: 7px;
  margin: 7px 0 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f6;
}

.responsavel-mini-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f3cc3, #2c9c98);
}

.responsavel-mini-item small {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
}

.print-compact-table,
.print-process-table {
  width: 100%;
  border-collapse: collapse;
}

.print-process-card {
  overflow-x: auto;
}

.print-process-table {
  min-width: 0;
  table-layout: fixed;
}

.print-compact-table th,
.print-compact-table td,
.print-process-table th,
.print-process-table td {
  border-bottom: 1px solid #eef1f6;
  padding: 10px 7px;
  text-align: left;
  color: #1f2937;
  font-size: 0.74rem;
}

.print-compact-table th,
.print-process-table th {
  color: #64748b;
  font-weight: 800;
}

.print-process-table th:nth-child(1),
.print-process-table td:nth-child(1) {
  width: 42px;
}

.print-process-table th:nth-child(2),
.print-process-table td:nth-child(2) {
  width: 34%;
}

.print-process-table th:nth-child(3),
.print-process-table td:nth-child(3) {
  width: 18%;
}

.print-process-table th:nth-child(4),
.print-process-table td:nth-child(4) {
  width: 30%;
}

.print-process-table th:nth-child(5),
.print-process-table td:nth-child(5) {
  width: 18%;
}

.print-process-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.print-avatar,
.print-person {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #6f3cc3, #8bd7c6);
  font-weight: 800;
}

.print-avatar img,
.print-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.responsavel-mini-item .print-avatar {
  width: 38px;
  height: 38px;
}

.print-avatar.tone-1 {
  background: linear-gradient(135deg, #3136c9, #8bd7c6);
}

.print-avatar.tone-2 {
  background: linear-gradient(135deg, #2c9c98, #8b5cf6);
}

.print-avatar.tone-3 {
  background: linear-gradient(135deg, #f59e0b, #8b5cf6);
}

.print-avatar.tone-4 {
  background: linear-gradient(135deg, #ef4444, #6f3cc3);
}

.print-process-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.print-process-name div {
  min-width: 0;
}

.print-process-name strong,
.print-process-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-process-name small {
  margin-top: 3px;
  color: #64748b;
}

.timeline-card {
  min-height: 260px;
  padding: 18px;
}

.timeline-head,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-head h2,
.panel-title h2 {
  margin: 0;
  font-size: 1rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.timeline-time {
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--purple);
  background: var(--purple-soft);
  font-weight: 800;
  font-size: 0.82rem;
}

.rank-list,
.context-list,
.stack-list {
  display: grid;
  gap: 10px;
}

.rank-item,
.context-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fbfefb;
}

.rank-item strong,
.context-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.rank-item span,
.context-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.chip.active {
  border-color: var(--purple-line);
  color: var(--purple);
  background: var(--purple-soft);
}

.field {
  min-width: 160px;
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.button,
.small-button,
.danger-button,
.secondary-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.button,
.small-button {
  border: 0;
  color: var(--white);
  background: var(--purple);
  box-shadow: none;
}

.small-button,
.danger-button {
  min-height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.danger-button {
  border: 0;
  color: var(--white);
  background: var(--red);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.screen-actions .button,
.screen-actions .secondary-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce8e1;
  color: #315c48;
  background: #ffffff;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 700;
}

.screen-actions .button {
  color: #ffffff;
  border-color: #6ab691;
  background: #6ab691;
}

.screen-actions .button:hover,
.screen-actions .secondary-button:hover {
  border-color: #9bd4b4;
  background: #edf8f1;
  color: #315c48;
}

.icon-action .action-glyph,
.icon-action span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  line-height: 1;
}

.icon-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-action svg.action-icon-fill {
  fill: currentColor;
  stroke: none;
}

.screen-actions .icon-action[aria-label*="Novo"] svg,
.screen-actions .icon-action[aria-label*="Editar"] svg,
.screen-actions .icon-action[aria-label*="Registrar"] svg {
  width: 19px;
  height: 19px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-card {
  overflow: auto;
  padding: 0;
  max-width: 100%;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #f3faf5;
}

td {
  color: var(--ink);
  font-size: 0.88rem;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

tbody tr:hover {
  background: #f7fcf8;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-pill,
.badge.info {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge.success {
  color: var(--green);
  background: var(--green-soft);
}

.badge.warning {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.badge.danger {
  color: var(--red);
  background: var(--red-soft);
}

.badge.purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.right-card {
  padding: 16px;
}

.profile-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #a7dcbc);
  box-shadow: 0 16px 30px rgba(95, 174, 140, 0.24);
  font-size: 1.8rem;
  font-weight: 800;
}

.profile-card h2 {
  margin: 6px 0 0;
  font-size: 1.15rem;
}

.profile-card > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.profile-stats div {
  padding: 10px;
  border-radius: 8px;
  background: #fbfefb;
}

.profile-stats small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-stats strong {
  display: block;
  margin-top: 4px;
}

.security-warning {
  border: 1px solid var(--yellow);
  border-radius: 8px;
  padding: 14px;
  color: #854d0e;
  background: var(--yellow-soft);
}

.empty,
.error-state,
.loading {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.error-state {
  color: var(--red);
  background: var(--red-soft);
}

.detail-panel,
.info-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.detail-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #fbfefb;
}

.detail-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.detail-item strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.row-actions .small-button,
.row-actions .secondary-button {
  width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dce8e1;
  color: #315c48;
  background: #ffffff;
  box-shadow: none;
  font-size: 0.95rem;
}

.row-actions .small-button:first-child {
  color: #3f8b68;
  background: #edf8f1;
  border-color: #c5ead3;
}

.row-actions .small-button:hover,
.row-actions .secondary-button:hover {
  color: #1f4d38;
  border-color: #9bd4b4;
  background: #f7fcf8;
}

.process-dashboard {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.tracking-workspace {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.tracking-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tracking-metric,
.tracking-queue-panel,
.tracking-detail-panel {
  border: 1px solid #dfe8ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
}

.tracking-metric {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 15px;
  border-left: 4px solid var(--cyan);
}

.tracking-metric.yellow {
  border-left-color: var(--orange);
}

.tracking-metric.red {
  border-left-color: var(--brand-red);
}

.tracking-metric.green,
.tracking-metric.blue {
  border-left-color: var(--cyan);
}

.tracking-metric span,
.tracking-metric small {
  color: var(--muted);
}

.tracking-metric span {
  font-size: 0.78rem;
  font-weight: 800;
}

.tracking-metric strong {
  color: var(--navy);
  font-size: 1.85rem;
  line-height: 1;
}

.tracking-board {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tracking-queue-panel {
  min-width: 0;
  overflow: hidden;
}

.tracking-panel-head {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #edf1f6;
}

.tracking-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tracking-head-actions .secondary-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.tracking-panel-head h2,
.tracking-detail-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.tracking-panel-head span,
.tracking-detail-head p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.tracking-queue-list {
  max-height: calc(100vh - 378px);
  min-height: 320px;
  display: grid;
  align-content: start;
  overflow: auto;
}

.tracking-queue-item {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.tracking-queue-item:hover,
.tracking-queue-item.active {
  background: #f6fbfc;
}

.tracking-queue-item.active {
  box-shadow: inset 4px 0 0 var(--orange);
}

.tracking-queue-main,
.tracking-queue-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.tracking-queue-main strong,
.tracking-queue-main small,
.tracking-queue-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-queue-main strong {
  color: var(--navy);
  font-size: 0.86rem;
}

.tracking-queue-main small,
.tracking-queue-meta small {
  color: var(--muted);
  font-size: 0.74rem;
}

.tracking-queue-meta {
  justify-items: end;
}

.tracking-detail-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.tracking-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tracking-detail-head.compact {
  align-items: center;
}

.tracking-detail-head h2 {
  margin-top: 10px;
  font-size: 1.25rem;
}

.tracking-info-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.tracking-info-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f8fbfc;
}

.tracking-info-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.tracking-info-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-cnj-strip {
  display: grid;
  gap: 4px;
  border: 1px solid #bde8ec;
  border-radius: 8px;
  padding: 12px;
  color: #1b6f77;
  background: var(--cyan-soft);
}

.tracking-cnj-strip.warning {
  border-color: #f6bd8a;
  color: #9b4a13;
  background: var(--orange-soft);
}

.tracking-cnj-strip strong,
.tracking-cnj-strip span {
  display: block;
}

.tracking-cnj-strip span {
  font-size: 0.78rem;
}

.tracking-source-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

.tracking-tool-button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
}

.tracking-tool-button span[aria-hidden="true"] {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
}

.tracking-tool-button svg,
.tracking-result-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tracking-tool-button strong,
.tracking-tool-button small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-tool-button strong {
  color: var(--navy);
  font-size: 0.78rem;
}

.tracking-tool-button small {
  color: var(--muted);
  font-size: 0.68rem;
}

.tracking-note-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 12px;
}

.tracking-note {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.tracking-note > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.tracking-note > strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.tracking-note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tracking-note .field {
  min-width: 0;
}

.tracking-note textarea {
  min-height: 78px;
}

.tracking-command-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 10px;
}

.tracking-result-button {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
}

.tracking-result-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.tracking-result-button.new {
  background: var(--cyan);
}

.tracking-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tracking-result-button:disabled,
.tracking-head-actions button:disabled,
.tracking-secondary-actions button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.process-query-panel {
  gap: 14px;
}

.process-top-cards {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-insight-card {
  min-width: 0;
  min-height: 236px;
  padding: 15px;
  border: 1px solid #e8eaf1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
}

.process-insight-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.process-insight-head h2 {
  margin: 0;
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.2;
}

.process-card-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #c9c4ff;
  border-radius: 8px;
  color: #5d45d6;
  background: #eeeaff;
}

.process-card-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.process-card-icon.motion::before {
  border-radius: 50%;
  box-shadow: 7px -5px 0 -5px currentColor, -7px 5px 0 -5px currentColor;
}

.process-card-icon.tags::before {
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
}

.process-card-icon.pending::before {
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 15px solid currentColor;
  border-left: 8px solid transparent;
  border-top: 0;
  border-radius: 0;
}

.process-insight-list {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.process-insight-row {
  min-width: 0;
  min-height: 36px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid #f0f2f7;
  border-radius: 8px;
  background: #fbfbff;
}

.process-insight-row.quick-filter {
  width: 100%;
  border: 1px solid #f0f2f7;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.process-insight-row.quick-filter:hover,
.process-insight-row.quick-filter.active {
  border-color: #c9c4ff;
  background: #f7f5ff;
  box-shadow: inset 3px 0 0 #6f3cc3;
}

.process-insight-row > div {
  min-width: 0;
}

.process-insight-row strong,
.process-insight-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-insight-row strong {
  color: #111827;
  font-size: 0.78rem;
}

.process-insight-row small {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.68rem;
}

.process-insight-row > b {
  color: #5d45d6;
  font-size: 0.78rem;
}

.process-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6f3cc3;
  box-shadow: 0 0 0 4px #f1edff;
}

.process-dot.blue {
  background: #38bdf8;
  box-shadow: 0 0 0 4px #e0f2fe;
}

.process-dot.green {
  background: #22c55e;
  box-shadow: 0 0 0 4px #dcfce7;
}

.process-dot.yellow {
  background: #facc15;
  box-shadow: 0 0 0 4px #fef9c3;
}

.process-dot.orange {
  background: #fb923c;
  box-shadow: 0 0 0 4px #ffedd5;
}

.process-dot.red {
  background: #ef4444;
  box-shadow: 0 0 0 4px #fee2e2;
}

.process-dot.gray {
  background: #9ca3af;
  box-shadow: 0 0 0 4px #f3f4f6;
}

.process-mini-bar {
  height: 5px;
  display: block;
  overflow: hidden;
  margin-top: 6px;
  border-radius: 999px;
  background: #eef1f6;
}

.process-mini-bar b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f3cc3, #8b5cf6);
}

.tag-legend-list,
.process-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-legend-list {
  align-content: start;
}

.tag-filter-button {
  display: inline-flex;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.tag-filter-button:hover .legal-tag,
.tag-filter-button.active .legal-tag {
  box-shadow: 0 0 0 2px #c9c4ff;
}

.legal-tag,
.muted-tag {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.legal-tag.compact {
  min-height: 23px;
  padding: 0 7px;
  font-size: 0.68rem;
}

.tag-new {
  border-color: #bae6fd;
  color: #0369a1;
  background: #e0f2fe;
}

.tag-no-access {
  border-color: #f0abfc;
  color: #86198f;
  background: #fae8ff;
}

.tag-alt-frequency {
  border-color: #fed7aa;
  color: #c2410c;
  background: #ffedd5;
}

.tag-attention {
  border-color: #fde68a;
  color: #a16207;
  background: #fef9c3;
}

.tag-access-issue,
.muted-tag {
  border-color: #d1d5db;
  color: #374151;
  background: #f3f4f6;
}

.tag-warning-point {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fee2e2;
}

.tag-removal {
  border-color: #fdba74;
  color: #7c2d12;
  background: #fed7aa;
}

.tags-dashboard {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf5ff 0%, #f8fbff 48%, #edf5ff 100%);
}

.tags-dashboard-top,
.tags-dashboard-bottom {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.tags-dashboard-top {
  grid-template-columns: minmax(320px, 0.86fr) minmax(380px, 1.14fr);
}

.tags-dashboard-bottom {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.tag-metric-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tag-metric-card,
.tag-overview-card,
.tag-risk-card,
.tag-statistics-card {
  min-width: 0;
  border: 1px solid #dfe9f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(57, 82, 120, 0.08);
}

.tag-metric-card {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
}

.tag-metric-card header,
.tag-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tag-card-icon,
.tag-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tag-color);
  border-radius: 8px;
  color: var(--tag-color);
  background: var(--tag-soft);
}

.tag-card-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
}

.tag-card-icon.tags::before {
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
}

.tag-card-icon.process::before {
  border-radius: 50%;
  box-shadow: 0 13px 0 -7px currentColor;
}

.tag-card-icon.stack::before {
  border-radius: 4px;
  box-shadow: 7px 7px 0 -4px currentColor, -7px -7px 0 -4px currentColor;
}

.tag-card-icon.alert::before {
  width: 0;
  height: 0;
  border-top: 0;
  border-right: 9px solid transparent;
  border-bottom: 17px solid currentColor;
  border-left: 9px solid transparent;
}

.tag-card-arrow {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #94a3b8;
}

.tag-card-arrow::before,
.tag-card-arrow::after {
  content: "";
  position: absolute;
  display: block;
}

.tag-card-arrow::before {
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.tag-card-arrow::after {
  top: 8px;
  right: 4px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
}

.tag-card-title {
  display: block;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-metric-card strong {
  color: #111827;
  font-size: 2rem;
  line-height: 1;
}

.tag-metric-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.tag-metric-card small {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-metric-card b {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 8px;
  color: var(--tag-color);
  background: var(--tag-soft);
  font-size: 0.68rem;
  white-space: nowrap;
}

.tag-overview-card,
.tag-risk-card,
.tag-statistics-card {
  padding: 15px;
}

.tag-panel-head {
  margin-bottom: 14px;
}

.tag-panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
}

.tag-panel-head span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.72rem;
}

.tag-icon-button {
  border: 1px solid #dbe7f3;
  color: #64748b;
  background: #ffffff;
}

.tag-icon-button:hover {
  border-color: #b8c8db;
  background: #f8fbff;
}

.tag-overview-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tag-overview-summary div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
}

.tag-overview-summary strong,
.tag-overview-summary span {
  display: block;
}

.tag-overview-summary strong {
  color: #111827;
  font-size: 1rem;
}

.tag-overview-summary span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.tag-overview-list {
  display: grid;
  gap: 8px;
}

.tag-overview-row {
  min-width: 0;
  min-height: 45px;
  display: grid;
  grid-template-columns: 34px 14px minmax(120px, 1fr) minmax(170px, 0.96fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 7px 9px;
  color: inherit;
  background: #ffffff;
  text-align: left;
}

.tag-overview-row:hover,
.tag-risk-row:hover,
.tag-bar-column:hover {
  background: #f8fbff;
}

.tag-row-index {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
}

.tag-row-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tag-color);
  box-shadow: 0 0 0 4px var(--tag-soft);
}

.tag-row-main {
  min-width: 0;
  display: block;
}

.tag-row-main strong,
.tag-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row-main strong {
  color: #111827;
  font-size: 0.78rem;
}

.tag-row-main small {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.68rem;
}

.tag-row-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.tag-risk-content {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(190px, 1fr);
  align-items: center;
  gap: 14px;
}

.tag-risk-list {
  display: grid;
  gap: 8px;
}

.tag-risk-row {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  color: inherit;
  background: #ffffff;
  text-align: left;
}

.tag-risk-row strong,
.tag-risk-row small {
  display: block;
}

.tag-risk-row strong {
  color: #111827;
  font-size: 0.8rem;
}

.tag-risk-row small {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.68rem;
}

.tag-donut-wrap {
  display: grid;
  place-items: center;
}

.tag-donut {
  position: relative;
  width: min(100%, 218px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tag-donut);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.tag-donut::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 18%, #f9fffb 60%, #eff8f2 100%);
  box-shadow: 0 10px 28px rgba(91, 122, 99, 0.12);
}

.tag-donut span,
.tag-donut small {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.tag-donut span {
  color: #111827;
  font-size: 1.42rem;
  font-weight: 800;
}

.tag-donut small {
  margin-top: 28px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.tag-insights {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px;
  background: #eefbf3;
}

.tag-insights strong {
  color: #285c3d;
  font-size: 0.78rem;
}

.tag-insights span {
  color: #47745a;
  font-size: 0.7rem;
  line-height: 1.35;
}

.tag-bars {
  min-width: 0;
  min-height: 250px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 6px 6px 0;
}

.tag-bar-column {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 7px 4px;
  color: inherit;
  background: transparent;
  text-align: center;
}

.tag-bar-column strong {
  color: #111827;
  font-size: 0.88rem;
}

.tag-bar-track {
  width: min(100%, 54px);
  height: 196px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef2f7 100%);
}

.tag-bar-track i {
  width: 100%;
  height: var(--bar-height);
  min-height: 10px;
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--tag-color) 0%, rgba(255, 255, 255, 0.58) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tag-bar-column small {
  min-height: 34px;
  display: block;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tag-stat-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.tag-stat-legend button {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  color: #64748b;
  background: #f8fbff;
  font-size: 0.66rem;
  font-weight: 800;
}

.tag-stat-legend button:hover {
  color: #111827;
  background: var(--tag-soft);
}

.tag-stat-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tag-color);
}

.process-filterbar {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 2.8fr) auto;
  align-items: end;
  gap: 12px;
  border-color: #e8eaf1;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
}

.process-search-field {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
}

.process-search-field > span {
  width: 14px;
  height: 14px;
  position: relative;
  flex: 0 0 auto;
  border: 2px solid #8b95a7;
  border-radius: 50%;
}

.process-search-field > span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #8b95a7;
  transform: rotate(45deg);
}

.process-search-field input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.process-filter-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(116px, 1fr));
  gap: 10px;
}

.process-filterbar .field {
  min-width: 0;
}

.process-filterbar .field span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.process-filterbar .field select {
  min-height: 38px;
  padding: 0 9px;
  font-size: 0.78rem;
}

.process-filter-actions {
  display: flex;
  gap: 8px;
}

.process-filter-actions .button,
.process-filter-actions .secondary-button {
  min-height: 38px;
}

.process-table-card {
  overflow: hidden;
  border-color: #e8eaf1;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.05);
}

.process-table-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #eef1f6;
}

.process-table-head h2 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
}

.process-table-head span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.process-table-card table {
  min-width: 1420px;
}

.process-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f6f9fb;
}

.process-list-row {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid #dce6ef;
  border-left: 4px solid #1b6f77;
  border-radius: 8px;
  padding: 16px 16px 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.06);
  cursor: pointer;
}

.process-list-row:last-child {
  border-bottom: 1px solid #dce6ef;
}

.process-list-row:hover {
  border-color: #b9dce1;
  border-left-color: #d97706;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.09);
}

.process-list-primary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(260px, 1.1fr) minmax(210px, 0.78fr) auto;
  align-items: start;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e8eef4;
}

.process-number-cell,
.process-client-cell,
.process-status-cell,
.process-detail-block,
.process-movement-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.process-number-cell > span,
.process-client-cell > span,
.process-status-cell > span,
.process-detail-block > span,
.process-movement-cell > span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.process-list-row strong,
.process-list-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.process-list-row .process-number-cell small,
.process-list-row .process-client-cell small,
.process-list-row .process-movement-cell small {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.process-status-tags {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 8px;
}

.process-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.process-open-button,
.process-consult-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.process-open-button .action-glyph,
.process-consult-button .action-glyph {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.process-open-button svg,
.process-consult-button svg {
  width: 15px;
  height: 15px;
}

.process-list-details {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.process-detail-block {
  padding: 0 12px 0 0;
  border-right: 1px solid #edf1f6;
}

.process-detail-block:last-child {
  border-right: 0;
}

.process-list-row .responsible-stack strong {
  display: block;
  color: #1f2937;
  font-size: 0.78rem;
  line-height: 1.35;
}

.process-list-row .process-movement-cell strong {
  white-space: pre-line;
}

.process-list-row .process-movement-cell {
  padding-top: 12px;
  border-top: 1px solid #e8eef4;
}

.process-table-card th {
  color: #64748b;
  background: #f8fafc;
}

.process-table-card td {
  padding: 15px 12px;
  font-size: 0.82rem;
}

.process-table-card tbody tr:hover {
  background: #fbfbff;
}

.process-number-cell strong,
.process-client-cell strong,
.process-movement-cell strong,
.process-table-card td > strong {
  display: block;
  color: #111827;
  font-size: 0.84rem;
}

.process-number-cell small,
.process-client-cell small,
.process-movement-cell small,
.process-table-card td > small {
  max-width: 240px;
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.responsible-stack {
  display: grid;
  gap: 4px;
}

.responsible-stack span {
  max-width: 170px;
  overflow: hidden;
  color: #1f2937;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-tags {
  margin: -4px 0 2px;
}

.process-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dfece3;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f2faf5 100%);
  box-shadow: var(--shadow-soft);
}

.process-toolbar strong,
.drawer-head h2 {
  display: block;
  margin: 0;
  color: var(--ink);
}

.process-toolbar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.wizard-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
}

.wizard-card strong {
  font-size: 0.9rem;
}

.wizard-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  z-index: 20;
}

.drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 41, 55, 0.34);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100vw, 560px);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: auto;
  border-left: 1px solid #dfece3;
  background: #ffffff;
  box-shadow: -24px 0 60px rgba(31, 41, 55, 0.16);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2ef;
}

.drawer-head h2 {
  margin-top: 10px;
  font-size: 1.45rem;
}

.drawer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}

.drawer-form .span-2,
.drawer-actions {
  grid-column: 1 / -1;
}

.email-drawer-form .inline-check {
  min-height: 42px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #edf2ef;
  border-radius: 8px;
  background: #f8fbf9;
  font-size: 0.82rem;
}

.email-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #edf2ef;
  border-radius: 8px;
  background: #fbfdfb;
}

.email-recipient-options {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8edf0;
  border-radius: 8px;
  background: #f6fbfc;
}

.email-recipient-options > div:first-child {
  display: grid;
  gap: 3px;
}

.email-recipient-options strong,
.email-recipient-options span {
  display: block;
}

.email-recipient-options > div:first-child strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.email-recipient-options > div:first-child span {
  color: var(--muted);
  font-size: 0.76rem;
}

.email-recipient-list {
  display: grid;
  gap: 8px;
}

.email-recipient-list button {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid #f6bd8a;
  border-radius: 8px;
  padding: 8px 10px;
  color: #9b4a13;
  background: var(--orange-soft);
  text-align: left;
}

.email-recipient-list button:hover {
  border-color: var(--orange);
  background: #ffe4cc;
}

.email-recipient-list button strong,
.email-recipient-list button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-recipient-list button strong {
  font-size: 0.78rem;
}

.email-recipient-list button span {
  color: #7a4a2c;
  font-size: 0.72rem;
  font-weight: 700;
}

.email-preview-process {
  display: grid;
  gap: 4px;
}

.email-preview-process strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.email-preview-process span,
.email-preview-list span {
  color: var(--muted);
  font-size: 0.8rem;
}

.email-preview-list {
  display: grid;
  gap: 8px;
}

.email-preview-list div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #ffffff;
}

.drawer-actions {
  position: sticky;
  bottom: -22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 8px -22px -22px;
  padding: 16px 22px;
  border-top: 1px solid #edf2ef;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

body.drawer-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .tags-dashboard-top,
  .tags-dashboard-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tags-dashboard {
    padding: 10px;
  }

  .tag-metric-grid,
  .tag-overview-summary,
  .tag-risk-content {
    grid-template-columns: 1fr;
  }

  .tag-overview-row {
    grid-template-columns: 30px 12px minmax(0, 1fr);
  }

  .tag-row-tags {
    grid-column: 3;
    justify-content: flex-start;
  }

  .tag-bars {
    grid-template-columns: repeat(6, minmax(86px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 1180px) {
  .process-top-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracking-summary-grid,
  .tracking-command-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracking-board,
  .tracking-note-grid {
    grid-template-columns: 1fr;
  }

  .process-filterbar {
    grid-template-columns: 1fr;
  }

  .process-filter-fields {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .process-list-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-list-actions {
    justify-content: flex-start;
  }

  .process-list-details {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .process-detail-block {
    border-right: 0;
    padding-right: 0;
  }

  .app-sidebar {
    padding: 14px 12px;
  }

  .sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .sidebar-brand div:not(.brand-mark),
  .sidebar-nav button span,
  .sidebar-utility span {
    display: none;
  }

  .sidebar-nav button,
  .sidebar-utility {
    justify-content: center;
    padding: 0;
  }

  .sidebar-nav button.active::after {
    left: -12px;
  }

  .sidebar-footer {
    gap: 8px;
  }
}

@media (max-width: 980px) {
  .app-topbar {
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .screen-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .summary-grid,
  .grid.cards,
  .dashboard-grid,
  .responsaveis-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .responsaveis-hero,
  .responsaveis-board,
  .responsaveis-pendency-grid,
  .responsaveis-bottom-grid,
  .clientes-dashboard,
  .responsavel-detail-shell,
  .responsavel-profile-dashboard {
    grid-template-columns: 1fr;
  }

  .clientes-card-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }

  .profile-right-pane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .responsavel-contact-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .responsavel-pendency-row {
    grid-template-columns: 1fr;
  }

  .print-top,
  .print-bottom {
    grid-template-columns: 1fr;
  }

  .process-filter-fields {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .wizard-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .legal-app,
  .legal-app.sidebar-hidden {
    --sidebar-width: 54px;
  }

  .legal-app.sidebar-expanded {
    --sidebar-width: 260px;
  }

  .app-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    padding: 14px 8px;
    transform: none;
    box-shadow: 18px 0 36px rgba(15, 23, 42, 0.16);
  }

  .legal-app.sidebar-expanded .app-sidebar {
    padding: 14px 16px;
  }

  .legal-app.sidebar-hidden .app-sidebar {
    width: 54px;
    min-width: 54px;
  }

  .legal-app.sidebar-hidden .brand-mark {
    display: none;
  }

  .legal-app:not(.sidebar-expanded) .sidebar-brand div:not(.brand-mark),
  .legal-app:not(.sidebar-expanded) .sidebar-nav button span,
  .legal-app:not(.sidebar-expanded) .sidebar-utility span {
    display: none;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .sidebar-nav button,
  .sidebar-utility {
    justify-content: center;
    padding: 0;
  }

  .legal-app.sidebar-expanded .sidebar-nav button,
  .legal-app.sidebar-expanded .sidebar-utility {
    justify-content: flex-start;
    padding: 0 14px;
  }

  .screen-layout,
  .app-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .screen-header {
    flex-direction: column;
  }

  .screen-actions {
    justify-content: flex-start;
  }

  .summary-grid,
  .grid.cards,
  .dashboard-grid,
  .print-kpis,
  .process-top-cards,
  .responsaveis-metrics,
  .responsaveis-board,
  .clientes-card-grid,
  .clientes-searchbar,
  .responsavel-detail-metrics,
  .responsavel-process-grid,
  .profile-hero-card,
  .profile-info-grid,
  .profile-analytics-card,
  .analytics-distribution,
  .profile-process-list,
  .profile-right-pane,
  .detail-sidebar,
  .wizard-steps,
  .drawer-form {
    grid-template-columns: 1fr;
  }

  .print-bars {
    overflow-x: auto;
    grid-template-columns: repeat(12, 38px);
  }

  .print-type-grid,
  .print-tabs {
    grid-template-columns: 1fr;
  }

  .tracking-summary-grid,
  .tracking-source-actions,
  .tracking-info-grid,
  .tracking-command-row {
    grid-template-columns: 1fr;
  }

  .tracking-detail-head,
  .tracking-detail-head.compact,
  .tracking-queue-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .tracking-detail-head,
  .tracking-detail-head.compact {
    flex-direction: column;
  }

  .tracking-head-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .tracking-queue-meta {
    justify-items: start;
  }

  .process-filter-fields {
    grid-template-columns: 1fr;
  }

  .process-filter-actions {
    justify-content: stretch;
  }

  .process-filter-actions > * {
    flex: 1 1 auto;
  }

  .process-list-row {
    padding: 14px;
  }

  .process-list-details {
    grid-template-columns: 1fr;
  }

  .process-list-actions > * {
    flex: 1 1 100%;
  }

  .process-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .responsavel-contact-items {
    grid-template-columns: 1fr;
  }

  .responsaveis-pendency-head,
  .responsaveis-pendency-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .responsaveis-pendency-actions,
  .responsaveis-pendency-badges {
    justify-content: flex-start;
  }

  .pendency-row-controls {
    grid-template-columns: 1fr;
  }

  .responsavel-profile-head {
    grid-template-columns: 1fr;
  }

  .distribution-row {
    grid-template-columns: 1fr 42px;
  }

  .distribution-row div {
    grid-column: 1 / -1;
  }

  .process-toolbar .actions,
  .drawer-actions {
    justify-content: stretch;
  }

  .process-toolbar .actions > *,
  .drawer-actions > * {
    flex: 1 1 auto;
  }

  .account-button span:last-child {
    display: none;
  }

  .glass-frame {
    width: min(100%, 500px);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .image-card {
    min-height: 260px;
    margin: 0 -2px -2px;
  }
}

/* Final brand pass: keep the interface on the Madruga BTW palette. */
.app-sidebar {
  color: var(--white);
  border-right-color: rgba(255, 255, 255, 0.1);
  background: var(--navy);
}

.sidebar-toggle-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark {
  color: var(--white);
  background: var(--orange);
}

.sidebar-brand strong {
  color: var(--white);
}

.sidebar-brand span {
  color: rgba(255, 255, 255, 0.64);
}

.sidebar-nav button,
.sidebar-utility {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sidebar-nav button span,
.sidebar-utility span {
  font-family: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif !important;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.sidebar-nav button.active,
.sidebar-nav button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.app-sidebar .nav-icon,
.app-sidebar .topbar-menu-icon {
  color: var(--orange);
}

.sidebar-utility:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.app-topbar {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.screen-header h1 {
  color: var(--navy);
}

.screen-header p {
  color: var(--muted);
}

.eyebrow,
.timeline-bar,
.chip.active,
.badge.purple {
  color: #9b4a13;
  background: var(--orange-soft);
}

.account-button {
  border-color: var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.account-button .mini-avatar,
.profile-avatar {
  background: linear-gradient(135deg, var(--cyan), var(--orange));
}

.account-copy strong {
  color: var(--navy);
}

.account-copy small {
  color: var(--muted);
}

.icon-button {
  color: var(--cyan);
}

.button,
.small-button {
  background: var(--orange);
}

.danger-button {
  background: var(--brand-red);
}

.secondary-button:hover,
.chip:hover {
  border-color: var(--purple-line);
  color: #9b4a13;
  background: var(--orange-soft);
}

.screen-actions .button {
  border-color: var(--orange);
  background: var(--orange);
}

.screen-actions .button:hover,
.screen-actions .secondary-button:hover {
  border-color: var(--orange);
  color: var(--navy);
  background: var(--orange-soft);
}

.summary-card.blue,
.card.teal {
  border-left-color: var(--cyan);
}

.summary-card.green,
.card.green {
  border-left-color: var(--cyan);
}

.summary-card.yellow,
.card.amber {
  border-left-color: var(--orange);
}

.summary-card.red,
.card.red {
  border-left-color: var(--brand-red);
}

th,
.process-table-card th {
  background: #eef9fa;
}

tbody tr:hover,
.process-table-card tbody tr:hover,
.rank-item,
.context-item {
  background: #f5fbfc;
}

.status-pill,
.badge.info {
  color: #1b6f77;
  background: var(--cyan-soft);
}

.badge.success {
  color: #1b6f77;
  background: var(--cyan-soft);
}

.badge.warning {
  color: #9b4a13;
  background: var(--orange-soft);
}

.badge.danger {
  color: #a72b1b;
  background: var(--brand-red-soft);
}

.process-card-icon,
.print-kpi-icon {
  border-color: #bde8ec;
  color: #1b6f77;
  background: var(--cyan-soft);
}

.process-insight-row.quick-filter:hover,
.process-insight-row.quick-filter.active {
  border-color: #f6bd8a;
  background: var(--orange-soft);
  box-shadow: inset 3px 0 0 var(--orange);
}

.process-insight-row > b {
  color: #9b4a13;
}

.process-dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.process-dot.blue,
.process-dot.green {
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}

.process-dot.yellow,
.process-dot.orange {
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.process-dot.red {
  background: var(--brand-red);
  box-shadow: 0 0 0 4px var(--brand-red-soft);
}

.process-mini-bar b,
.print-bar-fill,
.progress-fill {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.tag-new,
.tag-no-access {
  border-color: #bde8ec;
  color: #1b6f77;
  background: var(--cyan-soft);
}

.tag-alt-frequency,
.tag-attention,
.tag-removal {
  border-color: #f6bd8a;
  color: #9b4a13;
  background: var(--orange-soft);
}

.tag-warning-point {
  border-color: #ffc6bb;
  color: #a72b1b;
  background: var(--brand-red-soft);
}

.tags-dashboard,
.responsaveis-hero,
.responsavel-column,
.process-toolbar {
  border-color: #d8edf0;
  background: linear-gradient(135deg, #f6fbfc 0%, #fff8f2 100%);
}

.responsavel-avatar,
.responsavel-photo {
  color: #1b6f77;
  background: linear-gradient(135deg, var(--cyan-soft) 0%, #d0f0f3 100%);
}

.cliente-mini-stat.green strong,
.cliente-mini-stat.blue strong {
  background: var(--cyan);
}

.cliente-mini-stat.purple strong,
.cliente-mini-stat.orange strong {
  background: var(--orange);
}

.cliente-project-card.rose .cliente-photo,
.cliente-project-card.amber .cliente-photo {
  background: var(--orange);
}

.cliente-project-card.blue .cliente-photo,
.cliente-project-card.green .cliente-photo,
.cliente-project-card.violet .cliente-photo {
  background: var(--cyan);
}

.cliente-project-card.slate .cliente-photo {
  background: var(--navy-soft);
}

.mini-card-actions,
.responsavel-mini-head b,
.row-actions .small-button:first-child,
.row-actions .small-button:hover,
.row-actions .secondary-button:hover {
  color: #9b4a13;
}

.responsavel-type-bar i,
.distribution-row i {
  background: var(--cyan);
}

.print-bar.active,
.responsavel-mini-bar span,
.print-metric-bar span {
  background: linear-gradient(180deg, var(--cyan), var(--orange));
}

.responsavel-mini-head b,
.row-actions .small-button:first-child {
  border-color: #f6bd8a;
  background: var(--orange-soft);
}

.row-actions .small-button:hover,
.row-actions .secondary-button:hover {
  border-color: #f6bd8a;
  background: var(--orange-soft);
}

.print-avatar,
.print-person {
  background: linear-gradient(135deg, var(--orange), var(--cyan));
}

.print-avatar.tone-1 {
  background: linear-gradient(135deg, var(--cyan), var(--navy-soft));
}

.print-avatar.tone-2 {
  background: linear-gradient(135deg, var(--cyan), var(--brand-red));
}

.print-avatar.tone-3 {
  background: linear-gradient(135deg, var(--orange), var(--cyan));
}

.print-avatar.tone-4 {
  background: linear-gradient(135deg, var(--brand-red), var(--orange));
}
