@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ================================================================
   REALTEC — Design System
   Paleta: Logo Agro — Azul-petróleo dominante, verde nos destaques
   Tom: Natural, executivo, orgânico
   Fonte: DM Sans
   ================================================================ */

:root {
  /* ── Cores primárias da logo ──────────────────────────────────── */
  --blue:         #1a7a7a;   /* azul-petróleo principal */
  --blue-deep:    #0f5454;   /* petróleo escuro (hover, sidebar) */
  --blue-light:   #2a9999;   /* petróleo claro (destaques) */
  --teal:         #239494;   /* transição logo */
  --green:        #5aaa45;   /* verde destaque da logo */
  --green-deep:   #3d7d30;   /* verde escuro */
  --green-light:  #7dc46a;   /* verde claro */

  /* ── Superfícies ─────────────────────────────────────────────── */
  --bg:           #f2f6f5;   /* fundo geral — branco levemente esverdeado */
  --bg-warm:      #eef4f2;   /* fundo mais suave */
  --surface:      #ffffff;
  --surface-soft: #f7fbfa;
  --surface-teal: rgba(26,122,122,0.04);

  /* ── Texto ───────────────────────────────────────────────────── */
  --text:         #1e3030;   /* quase preto com toque petróleo */
  --text-soft:    #3a5252;
  --muted:        #6b8585;

  /* ── Bordas ──────────────────────────────────────────────────── */
  --border:       #ccdede;
  --border-soft:  #ddeaea;

  /* ── Semânticas ──────────────────────────────────────────────── */
  --danger:       #c0392b;
  --warning:      #c07a00;
  --success:      #2e7d32;

  /* ── Sombras ─────────────────────────────────────────────────── */
  --shadow:       0 20px 44px rgba(15,54,54,0.10);
  --shadow-soft:  0 8px 24px rgba(15,54,54,0.06);
  --shadow-card:  0 2px 8px rgba(15,54,54,0.05), 0 12px 28px rgba(15,54,54,0.07);

  /* ── Layout ──────────────────────────────────────────────────── */
  --radius:         20px;
  --radius-sm:      12px;
  --radius-xs:      8px;
  --sidebar-width:  272px;
  --font:           'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ================================================================
   BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  background:
    radial-gradient(ellipse at top left,  rgba(26,122,122,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(90,170,69,0.06) 0%, transparent 45%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.app-root { min-height: 100vh; }

/* ================================================================
   TELA DE BOOT / LOGIN
   ================================================================ */
.boot-screen, .login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(26,122,122,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(90,170,69,0.14) 0%, transparent 50%),
    linear-gradient(160deg, #e8f2f0 0%, #f2f8f5 50%, #eaf5ea 100%);
}

.boot-card, .login-card {
  width: min(100%, 480px);
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15,54,54,0.14);
  padding: 38px 34px;
  backdrop-filter: blur(12px);
}

.boot-card {
  display: grid;
  gap: 18px;
  text-align: center;
}

.boot-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto;
  border: 4px solid rgba(26,122,122,0.14);
  border-top-color: var(--blue);
  animation: spin 0.85s linear infinite;
}

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

.login-brand {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin-bottom: 20px;
}

.login-logo, .sidebar-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.login-logo  { max-width: 200px; }
.sidebar-logo {
  max-width: 160px;
}

.brand-copy {
  display: grid;
  gap: 5px;
  text-align: center;
}

.brand-copy p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.brand-copy h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ================================================================
   INPUTS / FIELDS
   ================================================================ */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.field input {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 0 16px;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.12);
}

/* ================================================================
   BOTÕES
   ================================================================ */
.btn {
  min-height: 46px;
  border-radius: var(--radius-sm);
  padding: 0 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform .15s, box-shadow .15s, filter .15s, opacity .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,122,122,0.30);
  border: none;
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(26,122,122,0.38); }

.btn-secondary {
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  border: 1.5px solid rgba(26,122,122,0.18);
}
.btn-secondary:hover { background: rgba(26,122,122,0.13); }

.btn-danger {
  background: rgba(192,57,43,0.08);
  color: var(--danger);
  border: 1.5px solid rgba(192,57,43,0.20);
}
.btn-danger:hover { background: rgba(192,57,43,0.14); }

.btn-small { min-height: 34px; padding: 0 14px; font-size: 12px; }
.btn-block  { width: 100%; }

.btn-icon-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-icon-clear:hover { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.btn-icon-clear:disabled { opacity: 0.35; cursor: not-allowed; }

/* ================================================================
   SPLIT BUTTON
   ================================================================ */
.btn-split {
  position: relative;
  display: inline-flex;
}
.btn-split .btn-split-main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}
.btn-split .btn-split-arrow {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid rgba(26,122,122,0.22);
  padding: 0 12px;
}
.btn-split-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  z-index: 300;
  background: #fff;
  border: 1.5px solid rgba(26,122,122,0.22);
  border-radius: var(--radius-xs);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  min-width: 180px;
  overflow: hidden;
}
.btn-split-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.btn-split-item:hover {
  background: rgba(26,122,122,0.07);
  color: var(--blue);
}
.btn-split-item + .btn-split-item {
  border-top: 1px solid rgba(26,122,122,0.10);
}

/* ================================================================
   ALERTS / HELPERS
   ================================================================ */
.helper-text { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

.message-stack { display: grid; gap: 10px; margin-bottom: 18px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.5;
  border: 1.5px solid transparent;
}
.alert-info    { background: rgba(26,122,122,0.07);  color: var(--blue-deep); border-color: rgba(26,122,122,0.16); }
.alert-error   { background: rgba(192,57,43,0.08);   color: var(--danger);    border-color: rgba(192,57,43,0.18); }
.alert-warning { background: rgba(192,122,0,0.08);   color: #8a5500;          border-color: rgba(192,122,0,0.18); }

/* ================================================================
   SHELL / LAYOUT
   ================================================================ */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

/* ================================================================
   SIDEBAR — fundo branco clean
   ================================================================ */
.sidebar {
  background: #ffffff;
  border-right: 1px solid #E8EDEF;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.sidebar::before {
  content: none;
}

.sidebar-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid #EEF1F2;
  position: relative;
  background: transparent;
}

.sidebar-brand::after {
  content: none;
}

.sidebar-caption {
  font-size: 10px;
  font-weight: 700;
  color: #9AAAB0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.sidebar-nav {
  display: grid;
  gap: 2px;
  align-content: start;
  position: relative;
}

.nav-standalone-group {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
}

.nav-group-title {
  padding: 0 10px;
  margin: 14px 0 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9AAAB0;
}

/* Grupos colapsáveis */
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 6px 10px 4px;
  margin: 12px 0 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9AAAB0;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-group-toggle:hover {
  color: #5A7080;
  background: #F4F6F7;
}

.nav-group-toggle.open {
  color: #5A7080;
}

.nav-group-arrow {
  font-size: 11px;
  transition: transform 0.22s cubic-bezier(.34,1.36,.64,1);
  display: inline-block;
  line-height: 1;
  opacity: 0.7;
  transform: rotate(-90deg);
}

.nav-group-toggle.open .nav-group-arrow {
  transform: rotate(0deg);
}

.nav-group-items {
  display: grid;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.30s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.24s ease;
  opacity: 0;
  pointer-events: none;
}

.nav-group-items.open {
  max-height: 800px;
  opacity: 1;
  pointer-events: auto;
}

.nav-group-empty {
  padding: 8px 12px 10px;
  font-size: 13px;
  color: #9AAAB0;
  line-height: 1.45;
}

.nav-btn {
  min-height: 44px;
  width: 100%;
  border-radius: 10px;
  background: transparent;
  color: #3D5566;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
  border: none;
  cursor: pointer;
}

.nav-btn:hover {
  background: #F0F4F5;
  color: #1A3040;
}

.nav-btn.active {
  background: #E6F4F4;
  color: #03738C;
  font-weight: 600;
  border: none;
  box-shadow: none;
}

.nav-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #F0F4F5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6A8898;
  transition: background .15s, color .15s;
}

.nav-btn:hover .nav-icon {
  background: #E2ECED;
  color: #1A3040;
}

.nav-btn.active .nav-icon {
  background: #C8E8EC;
  color: #03738C;
}

.nav-icon svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EEF1F2;
  color: #6A8898;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-btn.active .nav-badge {
  background: #C8E8EC;
  color: #03738C;
}

.sidebar-user {
  margin-top: auto;
  border-radius: 12px;
  padding: 12px 14px;
  background: #F4F7F8;
  border: 1px solid #E8EDEF;
  display: grid;
  gap: 8px;
  position: relative;
}

.sidebar-user-name  { font-size: 13px; font-weight: 600; color: #1A3040; }
.sidebar-user-meta  { font-size: 11px; color: #7A9AAA; }
.sidebar-user-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Botões na sidebar user */
.sidebar-user-actions .btn {
  font-size: 12px;
  min-height: 32px;
  padding: 0 12px;
  background: #fff;
  color: #4A6070;
  border: 1px solid #D8E2E6;
}
.sidebar-user-actions .btn:hover {
  background: #E6F4F4;
  color: #03738C;
  border-color: #B0D4DA;
}

/* ================================================================
   CONTENT / TOPBAR
   ================================================================ */
.content {
  padding: 28px 32px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.topbar-copy   { display: grid; gap: 6px; }

.topbar-eyebrow {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.topbar-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar-question-bank .topbar-copy {
  gap: 0;
}
.topbar-question-bank .topbar-title {
  margin-top: 0;
}

/* ================================================================
   PILL / STATUS
   ================================================================ */
.pill {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(90,170,69,0.20);
}

/* ================================================================
   PAGE GRID / CARDS
   ================================================================ */
.page-grid { display: grid; gap: 20px; }

.welcome-card, .card, .info-card, .placeholder-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.welcome-card {
  padding: 26px;
  display: grid;
  gap: 16px;
  background: linear-gradient(130deg,
    rgba(26,122,122,0.07) 0%,
    rgba(255,255,255,0.98) 40%,
    rgba(90,170,69,0.06) 100%);
  border-color: rgba(26,122,122,0.14);
}

.welcome-card h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); }
.welcome-card p  { margin: 0; color: var(--text-soft); line-height: 1.65; }

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

.metric-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: var(--radius) var(--radius) 0 0;
}

.metric-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.metric-value { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1; }
.metric-note  { color: var(--muted); font-size: 13px; line-height: 1.5; }

.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr .8fr;
}

.card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.card h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.card p  { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

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

.shortcut-card {
  border-radius: 16px;
  border: 1.5px solid rgba(26,122,122,0.12);
  background: rgba(26,122,122,0.03);
  padding: 18px;
  display: grid;
  gap: 10px;
  text-align: left;
  transition: transform .15s, background .15s, box-shadow .15s;
  cursor: pointer;
}

.shortcut-card:hover {
  transform: translateY(-2px);
  background: rgba(26,122,122,0.07);
  box-shadow: 0 8px 24px rgba(26,122,122,0.10);
}

.shortcut-card strong { font-size: 14px; font-weight: 700; color: var(--text); }
.shortcut-card span   { font-size: 13px; color: var(--muted); line-height: 1.5; }

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

.profile-item {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  border: 1.5px solid var(--border-soft);
  background: var(--surface-soft);
  padding: 13px 16px;
}

.profile-item label { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em; }
.profile-item span  { color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; word-break: break-word; }

.placeholder-card {
  padding: 28px;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.placeholder-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,122,122,0.10);
  color: var(--blue);
}

.placeholder-icon svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

.placeholder-card h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); }
.placeholder-card p  { margin: 0; color: var(--muted); line-height: 1.65; max-width: 760px; }
.placeholder-meta    { display: flex; gap: 10px; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  border: 1.5px solid rgba(26,122,122,0.16);
}

.empty-state {
  padding: 32px;
  text-align: center;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(26,122,122,0.22);
  background: rgba(26,122,122,0.03);
  color: var(--muted);
  line-height: 1.7;
}

.empty-state strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
}

/* ================================================================
   TOASTS
   ================================================================ */
.toast-root {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 999;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 20px 44px rgba(15,54,54,0.14);
  padding: 15px 18px;
  display: grid;
  gap: 4px;
  animation: toast-in 0.25s cubic-bezier(.34,1.36,.64,1) both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast strong { font-size: 14px; font-weight: 700; color: var(--text); }
.toast span   { font-size: 13px; color: var(--muted); line-height: 1.45; }

.toast.toast-error   { border-color: rgba(192,57,43,0.22);   background: rgba(255,250,250,0.98); }
.toast.toast-success { border-color: rgba(46,125,50,0.22);   background: rgba(249,255,249,0.98); }
.toast.toast-warning { border-color: rgba(192,122,0,0.22);   background: rgba(255,253,245,0.98); }

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.loading-inline::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(26,122,122,0.20);
  border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
}

/* ================================================================
   TOOLBAR / SEARCH
   ================================================================ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-left, .toolbar-right,
.form-actions, .table-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-left { flex: 1 1 340px; }

.search-input {
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 0 18px;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-size: 14px;
}

/* [AT-MULTISELECT-CHECKBOX-FIX-2026-06-12] */
.search-input:focus,
.modal-field input:not([type=checkbox]):not([type=radio]):focus,
.modal-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.12);
}

/* ================================================================
   TABELA
   ================================================================ */
.table-wrapper {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 14px 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface-soft);
  border-bottom: 1.5px solid var(--border-soft);
  vertical-align: middle;
}

.data-table tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(204,222,222,0.45);
  color: var(--text-soft);
  font-size: 14px;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(26,122,122,0.03);
}

.clients-text-cell     { font-weight: 500; }
.clients-actions-cell  { white-space: nowrap; }

/* ── Action buttons na tabela ────────────────────────────────── */
/* [AT-LIST-COLS-FIX-2026-06-12] */
.table-action-btn {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  cursor: pointer;
  transition: transform .14s, background .14s, color .14s;
}

.table-action-btn:hover {
  transform: scale(1.08);
  background: rgba(26,122,122,0.08);
  color: var(--blue);
}

.table-action-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

.table-action-btn.edit    { color: #5a8a9a; }
.table-action-btn.edit:hover { color: var(--blue); }
.table-action-btn.complete { color: #4a8a3a; }
.table-action-btn.complete:hover { background: rgba(90,170,69,0.10); color: var(--green-deep); }
.table-action-btn.delete  { color: #b05050; }
.table-action-btn.delete:hover { background: rgba(192,57,43,0.08); color: var(--danger); }
.table-action-btn.profile { color: #5a6a9a; }
.table-action-btn.profile:hover { background: rgba(90,106,154,0.10); color: #3a4a7a; }
.table-action-btn.view    { color: var(--muted); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
}

.badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.85;
}

.badge.active  { background: rgba(90,170,69,0.14);      color: #2e6622; border: 1px solid rgba(90,170,69,0.22); }
.badge.pending { background: rgba(26,122,122,0.09);      color: var(--blue-deep); border: 1px solid rgba(26,122,122,0.18); }
.badge.closed  { background: rgba(100,116,139,0.10);     color: #556070; border: 1px solid rgba(100,116,139,0.18); }

.table-row-inactive td { color: #9aadad; }
.table-row-inactive .clients-text-cell { text-decoration: line-through; }

.clients-empty-state { margin: 20px; }
.clients-page-note   { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8,28,28,0.50);
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}

.modal-card {
  width: min(940px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px;
  border: 1.5px solid rgba(26,122,122,0.14);
  box-shadow: 0 32px 70px rgba(8,28,28,0.22);
  padding: 28px;
  animation: modal-in 0.22s cubic-bezier(.34,1.36,.64,1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.modal-title    { margin: 0; color: var(--blue-deep); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.modal-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: rgba(26,122,122,0.07);
  color: var(--blue);
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}

.icon-btn:hover { background: rgba(26,122,122,0.14); }

.icon-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

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

.modal-field { display: grid; gap: 7px; }

.modal-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

/* [AT-MULTISELECT-CHECKBOX-FIX-2026-06-12] */
.modal-field input:not([type=checkbox]):not([type=radio]),
.modal-field textarea,
.modal-field select {
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 0 14px;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-size: 14px;
}

.modal-field textarea {
  min-height: 90px;
  resize: vertical;
  padding: 12px 14px;
}

.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.12);
}

.modal-readonly-note {
  grid-column: 1 / -1;
  border: 1.5px solid rgba(26,122,122,0.16);
  border-radius: var(--radius-sm);
  background: rgba(26,122,122,0.05);
  padding: 13px 16px;
  color: var(--blue-deep);
  font-size: 13px;
  line-height: 1.55;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1120px) {
  .metrics-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid #E8EDEF;
  }
  .content { padding: 20px 18px; }
}



@media (max-width: 1180px) {
  .at-detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-detail-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .form-grid.two-columns { grid-template-columns: 1fr; }
  .modal-card { padding: 20px; }
}

@media (max-width: 680px) {
  .login-card, .boot-card  { padding: 28px 20px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-title { font-size: 24px; }
  .topbar-actions { justify-content: flex-start; }
  .sidebar-user-actions { flex-direction: column; }
  .btn { width: 100%; }
}
    .contacts-autocomplete-wrap {
      position: relative;
    }
    .contacts-autocomplete-panel {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      z-index: 24;
      background: #fff;
      border: 1px solid rgba(26,122,122,0.14);
      border-radius: 14px;
      box-shadow: 0 18px 34px rgba(26,122,122,0.12);
      max-height: 240px;
      overflow-y: auto;
    }
    .contacts-autocomplete-item {
      width: 100%;
      border: 0;
      background: transparent;
      text-align: left;
      padding: 12px 14px;
      display: grid;
      gap: 2px;
      cursor: pointer;
      color: var(--text);
    }
    .contacts-autocomplete-item:hover {
      background: rgba(26,122,122,0.06);
    }
    .contacts-autocomplete-item strong {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.35;
    }
    .contacts-autocomplete-item span,
    .contacts-autocomplete-empty,
    .contacts-client-field-note {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.4;
    }
    .contacts-autocomplete-empty {
      padding: 12px 14px;
    }
    .modal-readonly-note {
      grid-column: 1 / -1;
      border: 1px dashed rgba(26,122,122,0.20);
      border-radius: 14px;
      background: rgba(26,122,122,0.04);
      padding: 12px 14px;
      color: #0f5f73;
      font-size: 13px;
      line-height: 1.5;
    }
    @media (max-width: 820px) {
      .form-grid.two-columns {
        grid-template-columns: 1fr;
      }
      .modal-card {
        padding: 20px;
      }
    }


    .modal-field select {
      width: 100%;
      min-height: 46px;
      border-radius: 14px;
      border: 1px solid rgba(26,122,122,0.14);
      background: #fff;
      padding: 0 14px;
      color: var(--text);
      outline: none;
    }
    .client-users-company-cell {
      display: grid;
      gap: 4px;
    }
    .client-users-company-cell strong {
      color: var(--text);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.4;
    }
    .client-users-company-cell span,
    .client-users-inline-note,
    .client-users-preview-summary,
    .client-users-import-empty,
    .client-users-import-name {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .table-action-btn.profile {
      color: #7c3aed;
    }
    .client-users-import-layout {
      display: grid;
      gap: 18px;
    }
    .client-users-import-dropzone {
      border: 2px dashed rgba(26,148,148,0.30);
      background: rgba(26,148,148,0.04);
      border-radius: 16px;
      padding: 28px 22px;
      text-align: center;
      display: grid;
      gap: 12px;
      justify-items: center;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    }
    .client-users-import-dropzone:hover,
    .client-users-import-dropzone.dragover {
      border-color: rgba(26,148,148,0.45);
      background: rgba(26,148,148,0.08);
    }
    .client-users-import-dropzone svg {
      width: 34px;
      height: 34px;
      stroke: var(--blue);
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .client-users-import-dropzone strong {
      color: var(--text);
      font-size: 15px;
    }
    .client-users-import-meta {
      display: grid;
      gap: 8px;
    }
    .client-users-import-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
    }
    .client-users-import-preview-wrap {
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      background: #fff;
    }
    .client-users-import-preview-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      background: #f8fafc;
    }
    .client-users-import-preview-scroll {
      width: 100%;
      overflow-x: auto;
    }
    .client-users-import-preview-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 820px;
    }
    .client-users-import-preview-table th {
      padding: 12px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #94a3b8;
      font-weight: 700;
      text-align: left;
      border-bottom: 1px solid #e2e8f0;
      background: #f8fafc;
      white-space: nowrap;
    }
    .client-users-import-preview-table td {
      padding: 12px;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
      color: var(--text-soft);
      font-size: 13px;
      line-height: 1.45;
    }
    .client-users-import-preview-table tbody tr:last-child td {
      border-bottom: 0;
    }
    .client-users-import-row-error td {
      background: rgba(220,38,38,0.08);
    }
    .client-users-import-validation-list {
      display: grid;
      gap: 6px;
    }
    .client-users-import-footer {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }
    .status-dot-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      border: 1px solid transparent;
      line-height: 1.3;
      white-space: nowrap;
    }
    .status-dot-badge::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: currentColor;
      display: inline-block;
      flex-shrink: 0;
      opacity: 0.85;
    }
    .status-dot-badge.active {
      background: rgba(90,170,69,0.16);
      color: #4f7d2a;
      border-color: rgba(90,170,69,0.22);
    }
    .status-dot-badge.closed {
      background: rgba(100,116,139,0.12);
      color: #64748b;
      border-color: rgba(100,116,139,0.18);
    }
    .status-dot-badge.success {
      background: rgba(47,133,90,0.12);
      color: #2f855a;
      border-color: rgba(47,133,90,0.18);
    }
    .status-dot-badge.danger {
      background: rgba(220,38,38,0.10);
      color: #dc2626;
      border-color: rgba(220,38,38,0.18);
    }
    @media (max-width: 820px) {
      .client-users-import-actions,
      .client-users-import-footer {
        justify-content: stretch;
      }
      .client-users-import-actions .btn,
      .client-users-import-footer .btn {
        width: 100%;
      }
    }


.analista-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 36px);
  gap: 10px;
  justify-content: flex-start;
}

.analista-color-option {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.10);
  background: var(--analista-color, var(--blue));
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.analista-color-option:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.analista-color-option.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(3, 115, 140, 0.18), 0 8px 18px rgba(3, 115, 140, 0.14);
}

.analista-color-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.analista-color-selected-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--analista-color, var(--blue));
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.10);
  flex-shrink: 0;
}

.analista-user-note {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 640px) {

  .at-detail-card {
    padding: 18px;
  }

  .at-detail-header,
  .at-detail-actions,
  .at-detail-input-row {
    align-items: stretch;
  }

  .at-detail-actions,
  .at-detail-input-row {
    width: 100%;
  }

  .at-detail-actions .btn,
  .at-detail-send-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .at-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .analista-color-grid {
    grid-template-columns: repeat(4, 36px);
  }
}


    .contacts-filters-bar {
      background: #fff;
      border: 1px solid rgba(26,122,122,0.10);
      border-radius: 18px;
      box-shadow: var(--shadow-soft);
      padding: 14px 16px;
    }
    .contacts-filters-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      align-items: center;
    }
    .contacts-filter-control {
      width: 100%;
      min-height: 42px;
      height: 42px;
      border-radius: 12px;
      border: 1px solid rgba(26,122,122,0.14);
      background: #fff;
      color: var(--text);
      outline: none;
      font-size: 13px;
      font-weight: 600;
      line-height: 1.2;
      box-shadow: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .contacts-filter-select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      padding: 0 40px 0 14px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.25 5.25 7 9l3.75-3.75' stroke='%2382929e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      background-size: 14px 14px;
    }
    .contacts-filter-date {
      padding: 0 14px;
      appearance: none;
      -webkit-appearance: none;
    }
    .contacts-filter-control:focus {
      border-color: rgba(26,122,122,0.40);
      box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
    }
    .contacts-table-wrap .data-table {
      table-layout: fixed;
    }
    .contacts-table-wrap .data-table thead th,
    .contacts-table-wrap .data-table tbody td {
      padding-top: 15px;
      padding-bottom: 15px;
    }
    .contacts-table-wrap .data-table thead th {
      background: #f8fafc;
    }
    .contacts-table-wrap .data-table tbody td {
      color: var(--text-soft);
    }
    .contacts-table .contacts-col-date {
      width: 112px;
      min-width: 112px;
      text-align: center !important;
      white-space: nowrap;
    }
    .contacts-table .contacts-col-client {
      width: 18%;
      min-width: 180px;
      text-align: left !important;
    }
    .contacts-table .contacts-col-client-user {
      width: 20%;
      min-width: 190px;
      text-align: left !important;
    }
    .contacts-table .contacts-col-analyst {
      width: 16%;
      min-width: 160px;
      text-align: left !important;
    }
    .contacts-table .contacts-col-type {
      width: 16%;
      min-width: 150px;
      text-align: left !important;
    }
    .contacts-table .contacts-col-goal {
      width: 16%;
      min-width: 150px;
      text-align: left !important;
    }
    .contacts-table .contacts-col-actions {
      width: 108px;
      min-width: 108px;
      text-align: center !important;
      white-space: nowrap;
    }
    .contacts-table .clients-text-cell {
      font-weight: 500;
      line-height: 1.45;
    }

    @media (max-width: 980px) {
      .contacts-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .contacts-filters-grid {
        grid-template-columns: 1fr;
      }
      .contacts-filters-bar {
        padding: 12px 14px;
      }
    }


/* Contatos — refinamento visual aprovado */
.contacts-page-shell {
  gap: 18px;
}
.contacts-toolbar-inline {
  align-items: center;
  gap: 14px;
}
.contacts-toolbar-search {
  flex: 1 1 auto;
  min-width: 260px;
}
.contacts-toolbar-search .search-input {
  min-height: 46px;
}
.contacts-table-shell {
  overflow: hidden;
}
.contacts-table-refined {
  table-layout: fixed;
  width: 100%;
}
.contacts-table-wrap .data-table thead th,
.contacts-table-wrap .data-table tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
}
.contacts-table .contacts-col-client {
  width: 24%;
}
.contacts-table .contacts-col-analyst {
  width: 18%;
}
.contacts-table .contacts-col-date {
  width: 14%;
  white-space: nowrap;
}
.contacts-table .contacts-col-type {
  width: 20%;
  text-align: center;
}
.contacts-table .contacts-col-goal {
  width: 16%;
  text-align: center;
}
.contacts-table .contacts-col-actions {
  width: 8%;
}
.contacts-table-refined .clients-text-cell {
  line-height: 1.45;
}
.contacts-type-cell-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contacts-type-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  flex-shrink: 0;
}
.contacts-type-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contacts-modal-form {
  gap: 18px;
}
.contacts-client-users-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}
.schedule-client-users-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.schedule-client-users-empty {
  color: var(--muted);
  font-size: 13px;
}
.schedule-client-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(26,122,122,0.10);
  color: var(--blue);
  border: 1px solid rgba(26,122,122,0.16);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.schedule-client-users-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(63,69,75,0.42);
}
.schedule-client-users-card {
  position: relative;
  z-index: 71;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(8,28,28,0.16);
  padding: 22px;
}
.schedule-client-users-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.schedule-client-users-header h3 {
  margin: 0;
  color: var(--text);
}
.schedule-client-users-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.schedule-client-users-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.schedule-client-users-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.schedule-client-users-counter {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.schedule-client-users-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}
.schedule-client-users-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.schedule-client-users-row:hover {
  background: rgba(26,122,122,0.04);
}
.schedule-client-users-row strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}
.schedule-client-users-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.schedule-client-users-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.contato-view-grid {
  gap: 16px;
}
.contato-view-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(26,122,122,0.03);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}
.contato-view-card label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.contato-view-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.contato-view-card-full {
  grid-column: 1 / -1;
}
.contato-view-text {
  color: var(--text-soft);
  line-height: 1.6;
  white-space: pre-wrap;
}
@media (max-width: 900px) {
  .contacts-table .contacts-col-client,
  .contacts-table .contacts-col-analyst,
  .contacts-table .contacts-col-date,
  .contacts-table .contacts-col-type,
  .contacts-table .contacts-col-goal,
  .contacts-table .contacts-col-actions {
    width: auto;
  }
}
@media (max-width: 820px) {
  .schedule-client-users-tools,
  .schedule-client-users-footer {
    justify-content: stretch;
  }
  .schedule-client-users-tools .btn,
  .schedule-client-users-footer .btn {
    width: 100%;
  }
}


/* Treinamentos */
.trainings-page-shell {
  gap: 18px;
}
.trainings-toolbar-inline {
  align-items: center;
  gap: 14px;
}
.trainings-toolbar-search {
  flex: 1 1 auto;
  min-width: 260px;
}
.trainings-toolbar-search .search-input {
  min-height: 46px;
}
.trainings-table-shell {
  overflow: hidden;
}
.trainings-table-refined {
  table-layout: fixed;
  width: 100%;
}
.trainings-table-wrap .data-table thead th,
.trainings-table-wrap .data-table tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
}
.trainings-col-date { width: 11%; white-space: nowrap; }
.trainings-col-type { width: 16%; }
.trainings-col-client { width: 18%; }
.trainings-col-analyst { width: 14%; }
.trainings-col-mode { width: 10%; }
.trainings-col-channel { width: 18%; }
.trainings-col-duration {
  width: 13%;
  min-width: 124px;
  white-space: nowrap;
  text-align: center !important;
  vertical-align: middle !important;
}
.trainings-col-actions {
  width: 10%;
  min-width: 112px;
}
.training-duration-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(26,122,122,0.08);
  border: 1px solid rgba(26,122,122,0.14);
  color: #0f5f73;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.training-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.training-form-grid {
  display: grid;
  gap: 20px;
}
.training-form-grid .field > label,
.training-form-grid .training-field-block > label,
.training-form-grid .modal-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 6px;
}
.training-form-grid input:not([type=checkbox]):not([type=radio]),
.training-form-grid select,
.training-form-grid textarea {
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.training-row-grid,
.training-row-grid-2,
.training-row-grid-3,
.training-row-grid-4 {
  display: grid;
  gap: 16px;
}
.training-row-grid-date-type { grid-template-columns: 0.9fr 2.1fr; }
.training-row-grid-client { grid-template-columns: 1.5fr 1fr; }
.training-row-grid-mode { grid-template-columns: 1fr 1.5fr; }
.training-row-grid-time { grid-template-columns: 0.8fr 0.8fr 1fr; }
.training-pill-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.training-pill-toggle,
.training-module-tag {
  border: 1px solid rgba(26,148,148,0.16);
  background: rgba(26,148,148,0.08);
  color: #64748b;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: .2s ease;
}
.training-pill-toggle:hover,
.training-module-tag:hover {
  transform: translateY(-1px);
}
.training-pill-toggle.active,
.training-module-tag.active {
  background: rgba(26,122,122,0.15);
  color: var(--blue);
  border-color: rgba(26,122,122,0.35);
  font-weight: 700;
}
.training-participants-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.training-participants-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 420px;
  min-height: 44px;
}
.training-modules-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.training-duration-readonly {
  background: rgba(26,148,148,0.04);
}
.schedule-upload-zone {
  border: 1px dashed rgba(8,28,28,0.12);
  border-radius: 16px;
  background: #fbfcfd;
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  cursor: pointer;
}
.schedule-upload-zone.dragover {
  border-color: rgba(26,122,122,0.4);
  background: rgba(26,122,122,0.04);
}
.schedule-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(8,28,28,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #98a2b3;
  margin-bottom: 10px;
  background: white;
}
.schedule-upload-zone span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: #374151;
}
.schedule-upload-zone small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
}
.schedule-attachments-summary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.schedule-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(8,28,28,0.08);
  background: #fff;
}
.schedule-attachment-copy strong {
  display: block;
  font-size: 14px;
  color: #1f2937;
}
.schedule-attachment-copy span {
  display: block;
  font-size: 12px;
  color: #7c8798;
  margin-top: 4px;
}
.schedule-attachment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.schedule-attachment-empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(8,28,28,0.12);
  color: #8a94a6;
  text-align: center;
  background: #fff;
}
.attachment-action-btn {
  min-width: 96px;
  height: 34px;
  border: 1px solid rgba(26,122,122,0.14);
  border-radius: 10px;
  background: #f6fbfc;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.attachment-action-btn.danger {
  background: #fff7f7;
  border-color: rgba(180,83,9,0.18);
  color: #8f3f12;
}
@media (max-width: 1024px) {
  .training-row-grid-date-type,
  .training-row-grid-client,
  .training-row-grid-mode,
  .training-row-grid-time {
    grid-template-columns: 1fr;
  }
  .trainings-col-date,
  .trainings-col-type,
  .trainings-col-client,
  .trainings-col-analyst,
  .trainings-col-mode,
  .trainings-col-channel,
  .trainings-col-start,
  .trainings-col-end,
  .trainings-col-duration,
  .trainings-col-actions {
    width: auto;
  }
}


/* Banco de Questões */
.question-bank-page-shell {
  gap: 18px;
}
.question-bank-toolbar-inline {
  align-items: center;
  gap: 14px;
}
.question-bank-toolbar-search {
  flex: 1 1 auto;
  min-width: 260px;
}
.question-bank-toolbar-search .search-input {
  min-height: 46px;
}
.question-bank-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.question-bank-filter-field {
  display: grid;
  gap: 6px;
}
.question-bank-filter-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.question-bank-filter-field select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.14);
  background: #fff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.question-bank-filter-field select:focus {
  border-color: rgba(26,122,122,0.40);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}
.question-bank-table-shell {
  overflow: hidden;
}
.question-bank-table {
  width: 100%;
  table-layout: fixed;
}
.question-bank-table th.question-bank-col-statement,
.question-bank-table td.question-bank-col-statement {
  width: auto;
  text-align: left;
}
.question-bank-table th.question-bank-col-status,
.question-bank-table td.question-bank-col-status {
  width: 150px;
  min-width: 150px;
  text-align: center;
  white-space: nowrap;
}
.question-bank-table th.question-bank-col-actions,
.question-bank-table td.question-bank-col-actions {
  width: 164px;
  min-width: 164px;
  text-align: center;
  white-space: nowrap;
}
.question-bank-table thead .question-bank-col-statement {
  text-align: left;
}
.question-bank-table thead .question-bank-col-status,
.question-bank-table thead .question-bank-col-actions {
  text-align: center;
}
.question-bank-table tbody .question-bank-col-status,
.question-bank-table tbody .question-bank-col-actions,
.question-bank-table tbody .question-bank-col-statement {
  vertical-align: middle;
}
.question-bank-cell-stack {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.question-bank-col-statement .question-bank-cell-stack strong {
  font-weight: 400;
  color: var(--text);
}
.question-bank-cell-muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.question-bank-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.question-bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.question-bank-chip.scope {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.14);
  color: #0f5f73;
}
.question-bank-chip.module {
  background: rgba(90,170,69,0.12);
  border-color: rgba(90,170,69,0.18);
  color: #4f7d2a;
}
.question-bank-chip.type {
  background: rgba(38,166,166,0.10);
  border-color: rgba(38,166,166,0.18);
  color: #0d6d72;
}
.question-bank-chip.type.inactive {
  background: rgba(100,116,139,0.10);
  border-color: rgba(100,116,139,0.16);
  color: #64748b;
}
.question-bank-chip.option {
  background: rgba(8,28,28,0.04);
  border-color: rgba(8,28,28,0.08);
  color: #475569;
}
.question-bank-chip.required {
  background: rgba(90,170,69,0.14);
  border-color: rgba(90,170,69,0.18);
  color: #4f7d2a;
}
.question-bank-chip.partial {
  background: rgba(217,119,6,0.12);
  border-color: rgba(217,119,6,0.16);
  color: #9a5a05;
}
.question-bank-chip.optional {
  background: rgba(100,116,139,0.10);
  border-color: rgba(100,116,139,0.14);
  color: #64748b;
}
.question-bank-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.question-bank-modal-form {
  display: grid;
  gap: 20px;
}
.question-bank-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(26,122,122,0.02));
}
.question-bank-section-header {
  display: grid;
  gap: 4px;
}
.question-bank-section-header h4 {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}
.question-bank-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.question-bank-options-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(8,28,28,0.08);
  border-radius: 16px;
  background: #fff;
}
.question-bank-options-list {
  display: grid;
  gap: 10px;
}
.question-bank-option-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.question-bank-option-row input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 14px;
  outline: none;
}
.question-bank-option-row input:focus {
  border-color: rgba(26,122,122,0.40);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}
.question-bank-modules-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.question-bank-module-toggle {
  border: 1px solid rgba(26,148,148,0.16);
  background: rgba(26,148,148,0.08);
  color: #64748b;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: .2s ease;
}
.question-bank-module-toggle:hover {
  transform: translateY(-1px);
}
.question-bank-module-toggle.active {
  background: rgba(26,122,122,0.15);
  color: var(--blue);
  border-color: rgba(26,122,122,0.35);
  font-weight: 700;
}
.question-bank-application-list {
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.question-bank-application-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148,163,184,0.14);
  transition: opacity 0.15s;
}
.question-bank-application-row:last-child {
  border-bottom: none;
}
.question-bank-application-row.is-disabled {
  opacity: 0.45;
}
.question-bank-application-row .question-bank-chip.type {
  flex-shrink: 0;
}
.qb-row-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.qb-row-toggle input {
  display: none;
}
.qb-toggle-track {
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
}
.qb-row-toggle input:checked ~ .qb-toggle-track {
  background: #1D9E75;
}
.qb-toggle-knob {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.qb-row-toggle input:checked ~ .qb-toggle-track .qb-toggle-knob {
  transform: translateX(16px);
}
.qb-row-desc {
  flex: 1;
  font-size: 13px;
  color: #64748b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qb-row-category {
  width: 160px;
  flex-shrink: 0;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.25);
  background: #f8fafc;
  color: #334155;
  min-height: 36px;
}
.qb-row-category:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}
.qb-row-required {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}
.qb-row-required input {
  width: 15px;
  height: 15px;
  accent-color: #1D9E75;
}
.qb-row-required input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.question-bank-inline-note {
  color: var(--muted);
  font-size: 12px;
}
.question-bank-read-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.question-bank-read-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(26,122,122,0.03);
}
.question-bank-read-card label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.question-bank-read-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.question-bank-read-card-full {
  grid-column: 1 / -1;
}
.question-bank-read-text {
  color: var(--text-soft);
  line-height: 1.6;
  white-space: pre-wrap;
}
.question-bank-app-summary-list {
  display: grid;
  gap: 10px;
}
.question-bank-app-summary-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.question-bank-app-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.question-bank-app-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.question-bank-section-empty {
  padding: 14px;
  border: 1px dashed rgba(26,122,122,0.18);
  border-radius: 14px;
  background: rgba(26,122,122,0.03);
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1080px) {
  .question-bank-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .question-bank-application-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .qb-row-desc {
    min-width: 220px;
  }
}
@media (max-width: 900px) {
  .question-bank-col-statement,
  .question-bank-col-response,
  .question-bank-col-scope,
  .question-bank-col-application,
  .question-bank-col-required,
  .question-bank-col-status,
  .question-bank-col-actions {
    width: auto;
  }
  .question-bank-read-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .question-bank-filters-grid {
    grid-template-columns: 1fr;
  }
  .question-bank-option-row {
    grid-template-columns: 1fr;
  }
  .question-bank-application-row {
    gap: 10px;
    padding: 12px 14px;
  }
  .qb-row-category {
    width: 100%;
    min-width: 0;
  }
  .qb-row-desc {
    white-space: normal;
  }
}

/* Contratos */
.contracts-page-shell { gap: 18px; width: 100%; }
.contracts-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  box-sizing: border-box;
}
.contracts-filters-grid .question-bank-filter-field {
  min-width: 0;
  width: 100%;
}
.contracts-filters-grid .question-bank-filter-field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.contracts-table-wrap { border-radius: 18px; overflow: hidden; }
.contracts-col-code { width: 130px; }
.contracts-col-client { width: 220px; }
.contracts-col-service { width: 170px; }
.contracts-col-client-type { width: 150px; }
.contracts-col-level { width: 110px; }
.contracts-col-sla { width: 140px; }
.contracts-col-deadline { width: 170px; }
.contracts-col-status { width: 180px; }
.contracts-col-actions { width: 132px; }
.contracts-row.is-sla-overdue { background: transparent; }
.contracts-row.is-sla-today { background: transparent; }
.contracts-row.is-ready { box-shadow: none; }
.contracts-client-cell { display: grid; gap: 4px; }
.contracts-client-cell strong { color: var(--text); }
.contracts-helper-text { font-size: 12px; color: var(--muted); line-height: 1.45; }
.contracts-chip-list { display: flex; gap: 8px; flex-wrap: wrap; }
.contracts-chip,
.contracts-sla-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}
.contracts-chip.low { background: rgba(100,116,139,0.12); color: #475569; border-color: rgba(100,116,139,0.18); }
.contracts-chip.medium { background: rgba(217,119,6,0.12); color: #9a5a05; border-color: rgba(217,119,6,0.18); }
.contracts-chip.high { background: rgba(245,158,11,0.14); color: #b45309; border-color: rgba(245,158,11,0.20); }
.contracts-chip.urgent { background: rgba(192,57,43,0.14); color: #9a1f13; border-color: rgba(192,57,43,0.20); }
.contracts-chip.boolean-yes { background: rgba(47,133,90,0.12); color: #2f855a; border-color: rgba(47,133,90,0.18); }
.contracts-chip.boolean-no { background: rgba(100,116,139,0.12); color: #475569; border-color: rgba(100,116,139,0.18); }
.contracts-sla-chip.ok { background: rgba(47,133,90,0.12); color: #2f855a; border-color: rgba(47,133,90,0.18); }
.contracts-sla-chip.today,
.contracts-sla-chip.risk { background: rgba(217,119,6,0.14); color: #9a5a05; border-color: rgba(217,119,6,0.18); }
.contracts-sla-chip.overdue,
.contracts-sla-chip.late { background: rgba(192,57,43,0.14); color: #9a1f13; border-color: rgba(192,57,43,0.20); }
.contracts-status-stack { display: grid; gap: 8px; }
.contracts-status-stack .badge { justify-content: center; }
.contracts-modal-form { display: grid; gap: 18px; }
.contracts-section-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(26,122,122,0.02));
}
.contracts-section-header { display: grid; gap: 4px; }
.contracts-section-header h4 { margin: 0; color: var(--text); font-size: 16px; }
.contracts-section-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.contracts-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contracts-form-grid .contract-field-full { grid-column: 1 / -1; }
.contracts-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.contracts-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(26,122,122,0.10);
  background: rgba(26,122,122,0.04);
}
.contracts-summary-card label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
.contracts-summary-card strong { font-size: 20px; color: var(--text); }
.contracts-summary-card span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.contracts-autocomplete-wrap { position: relative; display: grid; gap: 8px; }
.contracts-autocomplete-chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 12px; border-radius: 999px; background: rgba(26,122,122,0.08); color: var(--blue); font-size: 12px; font-weight: 800; }
.contracts-autocomplete-chip button { background: transparent; border: 0; color: inherit; padding: 0; font-size: 12px; font-weight: 800; }
.contracts-autocomplete-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.16);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(26,122,122,0.12);
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.contracts-autocomplete-item { padding: 12px 14px; display: grid; gap: 3px; cursor: pointer; transition: background .18s ease; }
.contracts-autocomplete-item:hover { background: rgba(26,122,122,0.06); }
.contracts-autocomplete-item strong { color: var(--text); font-size: 14px; }
.contracts-autocomplete-item span { font-size: 12px; color: var(--muted); }
.contracts-modules-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.contracts-module-toggle {
  border: 1px solid rgba(26,148,148,0.16);
  background: rgba(26,148,148,0.08);
  color: #64748b;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.contracts-module-toggle:hover { transform: translateY(-1px); }
.contracts-module-toggle.active { background: rgba(26,122,122,0.15); color: var(--blue); border-color: rgba(26,122,122,0.35); }
.contracts-read-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contracts-read-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(26,122,122,0.03);
}
.contracts-read-card-full { grid-column: 1 / -1; }
.contracts-read-card label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.contracts-read-card strong, .contracts-read-card span { color: var(--text); line-height: 1.5; }
.contracts-read-text { color: var(--text-soft); line-height: 1.6; white-space: pre-wrap; }
.contracts-file-box, .contracts-history-list { display: grid; gap: 10px; }
.contracts-file-item, .contracts-history-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.contracts-file-top, .contracts-history-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contracts-file-copy, .contracts-history-copy { display: grid; gap: 4px; }
.contracts-file-copy strong, .contracts-history-copy strong { color: var(--text); }
.contracts-file-copy span, .contracts-history-copy span { font-size: 12px; color: var(--muted); }
.contracts-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(26,122,122,0.16);
  background: rgba(26,122,122,0.06);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.contracts-empty-box {
  padding: 14px;
  border: 1px dashed rgba(26,122,122,0.18);
  border-radius: 14px;
  background: rgba(26,122,122,0.03);
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1100px) {
  .contracts-summary-grid,
  .contracts-form-grid,
  .contracts-read-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .contracts-summary-grid,
  .contracts-form-grid,
  .contracts-read-grid { grid-template-columns: 1fr; }
}

/* ===== Refinamento adicional — Visualização de Diagnósticos ===== */
.diagnostics-view-shell {
  display: grid;
  gap: 20px;
}

.diagnostics-header-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.diagnostics-header-pair {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-soft), rgba(255,255,255,0.96));
  box-shadow: 0 10px 24px rgba(8,28,28,0.04);
}

.diagnostics-pair-label {
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.diagnostics-pair-value {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 700;
}

.diagnostics-modules-readonly {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.diagnostics-module-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(38,166,166,0.24);
  background: rgba(38,166,166,0.10);
  color: #0b6d72;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.diagnostics-items-list {
  display: grid;
  gap: 14px;
}

.diagnostics-item-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(26,122,122,0.12);
  border-left: 4px solid rgba(38,166,166,0.85);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,251,0.96));
  box-shadow: 0 12px 26px rgba(8,28,28,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.diagnostics-item-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(8,28,28,0.08);
  border-color: rgba(26,122,122,0.18);
}

.diagnostics-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.diagnostics-item-body {
  display: grid;
  gap: 10px;
}

.diagnostics-item-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(26,122,122,0.14);
  border-radius: 999px;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.diagnostics-read-card,
.diagnostics-read-card-full {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,251,0.96));
  box-shadow: 0 10px 24px rgba(8,28,28,0.04);
}

.diagnostics-read-card-full {
  grid-column: 1 / -1;
}

.diagnostics-read-card label,
.diagnostics-read-card-full label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}

.diagnostics-read-card strong,
.diagnostics-read-card-full strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.diagnostics-read-text {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

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

.diagnostics-history-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px 16px 14px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,251,0.96));
  box-shadow: 0 10px 22px rgba(8,28,28,0.04);
}

.diagnostics-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.diagnostics-history-copy {
  display: grid;
  gap: 4px;
}

.diagnostics-history-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.diagnostics-history-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.diagnostics-file-box {
  display: grid;
  gap: 12px;
}

.diagnostics-file-item {
  padding: 14px 16px;
  border: 1px solid rgba(47,133,90,0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(90,170,69,0.08), rgba(255,255,255,0.98));
  box-shadow: 0 10px 22px rgba(8,28,28,0.04);
}

.diagnostics-file-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.diagnostics-file-copy {
  display: grid;
  gap: 4px;
}

.diagnostics-file-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.diagnostics-file-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.diagnostics-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(47,133,90,0.18);
  background: rgba(255,255,255,0.9);
  color: #1f6d49;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.diagnostics-link-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,1);
  box-shadow: 0 10px 18px rgba(8,28,28,0.08);
}

@media (max-width: 1024px) {
  .diagnostics-header-pairs,
  .diagnostics-read-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .diagnostics-header-pair,
  .diagnostics-read-card,
  .diagnostics-read-card-full,
  .diagnostics-item-card,
  .diagnostics-file-item,
  .diagnostics-history-item {
    padding: 14px;
  }

  .diagnostics-modules-readonly {
    gap: 8px;
  }
}


/* ============================================================
   DIAGNÓSTICOS — Estilos completos baseados nas classes reais
   ============================================================ */

/* Página principal */
.diagnosticos-page-shell {
  display: grid;
  gap: 20px;
}

.diagnosticos-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.diagnosticos-filter-field {
  display: grid;
  gap: 6px;
}

.diagnosticos-filter-field label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.diagnosticos-filter-field select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  appearance: auto;
}

.diagnosticos-filter-field select:focus {
  border-color: rgba(26,122,122,0.50);
  box-shadow: 0 0 0 3px rgba(26,122,122,0.10);
}

/* Tabela */
.diagnosticos-table-shell {
  overflow: hidden;
}

.diagnosticos-table {
  width: 100%;
}

.diagnosticos-cell-stack {
  display: grid;
  gap: 3px;
}

.diagnosticos-cell-muted {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}

/* Chips de prioridade */
.diagnosticos-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid transparent;
  white-space: nowrap;
}

.diagnosticos-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Prioridade */
.diagnosticos-chip.priority-baixa,
.badge-priority-baixa {
  background: rgba(100,116,139,0.10);
  border-color: rgba(100,116,139,0.18);
  color: #475569;
}

.diagnosticos-chip.priority-media,
.badge-priority-media {
  background: rgba(217,119,6,0.10);
  border-color: rgba(217,119,6,0.20);
  color: #92400e;
}

.diagnosticos-chip.priority-alta,
.badge-priority-alta {
  background: rgba(234,88,12,0.10);
  border-color: rgba(234,88,12,0.20);
  color: #9a3412;
}

.diagnosticos-chip.priority-urgente,
.badge-priority-urgente {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.28);
  color: #991b1b;
  font-weight: 800;
  animation: diagnosticos-pulse-border 2s ease-in-out infinite;
}

@keyframes diagnosticos-pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.20); }
  50% { box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
}

/* Status */
.diagnosticos-chip.status-pendente,
.badge-status-pendente {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.18);
  color: #0e5f78;
}

.diagnosticos-chip.status-aprovado,
.badge-status-aprovado {
  background: rgba(47,133,90,0.10);
  border-color: rgba(47,133,90,0.22);
  color: #166534;
}

.diagnosticos-chip.status-retornado,
.badge-status-retornado {
  background: rgba(217,119,6,0.10);
  border-color: rgba(217,119,6,0.22);
  color: #92400e;
}

/* Chips genéricos usados no histórico e questões */
.diagnosticos-chip.neutral {
  background: rgba(100,116,139,0.08);
  border-color: rgba(100,116,139,0.14);
  color: #64748b;
}

.diagnosticos-chip.type {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.16);
  color: #0e5f78;
}

.diagnosticos-chip.required {
  background: rgba(47,133,90,0.10);
  border-color: rgba(47,133,90,0.20);
  color: #166534;
}

.diagnosticos-chip.module {
  background: rgba(90,170,69,0.12);
  border-color: rgba(90,170,69,0.22);
  color: #3d6b18;
}

.diagnosticos-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* ============================================================
   MODAL — Estrutura base
   ============================================================ */
.diagnosticos-modal-form {
  display: grid;
  gap: 20px;
}

.diagnosticos-section {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(26,122,122,0.02) 100%);
  position: relative;
}


.diagnosticos-section-header {
  display: grid;
  gap: 4px;
  padding-left: 4px;
}

.diagnosticos-section-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a2e38;
  letter-spacing: -0.01em;
}

.diagnosticos-section-header p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

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

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

/* ============================================================
   CABEÇALHO DO DIAGNÓSTICO (visualização)
   ============================================================ */
.diagnosticos-header-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.diagnosticos-header-card {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.15s;
}

.diagnosticos-header-card:hover {
  box-shadow: var(--shadow-soft);
}

.diagnosticos-header-card label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
}

.diagnosticos-header-card strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.diagnosticos-header-card span {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

/* ============================================================
   MÓDULOS
   ============================================================ */
.diagnosticos-modules-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagnosticos-module-toggle {
  border: 1px solid rgba(26,122,122,0.20);
  background: rgba(26,122,122,0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
  cursor: pointer;
}

.diagnosticos-module-toggle:hover:not(:disabled) {
  background: rgba(26,122,122,0.12);
  color: var(--blue);
  transform: translateY(-1px);
}

.diagnosticos-module-toggle.active {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26,122,122,0.20);
}

.diagnosticos-module-toggle:disabled {
  cursor: default;
  opacity: 0.8;
}

.diagnosticos-module-toggle.active:disabled {
  opacity: 1;
}

/* ============================================================
   QUESTIONÁRIO — Abas
   ============================================================ */
.diagnosticos-questionnaire-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.diagnosticos-questionnaire-tab {
  padding: 7px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s;
  cursor: pointer;
}

.diagnosticos-questionnaire-tab:hover {
  background: rgba(26,122,122,0.06);
  color: var(--blue);
}

.diagnosticos-questionnaire-tab.active {
  background: rgba(26,122,122,0.10);
  border-color: rgba(26,122,122,0.22);
  color: var(--blue);
  font-weight: 800;
}

.diagnosticos-questionnaire-panels {
  display: grid;
  gap: 16px;
}

.diagnosticos-questionnaire-panel {
  display: none;
  gap: 16px;
}

.diagnosticos-questionnaire-panel.active {
  display: grid;
}

/* ============================================================
   QUESTIONÁRIO — Grupos de categoria
   ============================================================ */
.diagnosticos-category-group {
  display: grid;
  gap: 12px;
}

.diagnosticos-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(26,122,122,0.06), transparent);
  border-radius: 10px;
  border-left: 3px solid var(--teal);
}

.diagnosticos-category-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.diagnosticos-category-subtitle {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

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

/* ============================================================
   QUESTIONÁRIO — Card de pergunta
   ============================================================ */
.diagnosticos-question-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-left: 3px solid var(--teal);
  transition: box-shadow 0.15s, transform 0.15s;
}

.diagnosticos-question-card:hover {
  box-shadow: 0 4px 16px rgba(26,122,122,0.08);
  transform: translateX(2px);
}

.diagnosticos-question-card.readonly {
  background: var(--surface-soft);
  border-left-color: var(--border);
}

.diagnosticos-question-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.diagnosticos-question-copy {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.diagnosticos-question-index {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
}

.diagnosticos-question-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.diagnosticos-question-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  flex-shrink: 0;
}

.diagnosticos-question-applicability {
  font-size: 13px;
  color: var(--muted);
}

.diagnosticos-question-applicability label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.diagnosticos-question-applicability input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.diagnosticos-question-control input,
.diagnosticos-question-control select,
.diagnosticos-question-control textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.diagnosticos-question-control textarea {
  padding: 10px 12px;
  resize: vertical;
  min-height: 80px;
}

.diagnosticos-question-control input:focus,
.diagnosticos-question-control select:focus,
.diagnosticos-question-control textarea:focus {
  border-color: rgba(26,122,122,0.50);
  box-shadow: 0 0 0 3px rgba(26,122,122,0.10);
}

.diagnosticos-answer-static {
  font-size: 14px;
  color: var(--text);
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  line-height: 1.5;
}

.diagnosticos-answer-static.empty {
  color: var(--muted);
  font-style: italic;
}

.diagnosticos-checkbox-grid {
  display: grid;
  gap: 8px;
}

.diagnosticos-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.12s;
}

.diagnosticos-checkbox-row:hover {
  background: rgba(26,122,122,0.05);
  border-color: rgba(26,122,122,0.12);
}

.diagnosticos-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

/* ============================================================
   ANEXOS
   ============================================================ */
.diagnosticos-attachments-list {
  display: grid;
  gap: 10px;
}

.diagnosticos-attachment-item {
  padding: 14px 16px;
  background: rgba(90,170,69,0.06);
  border: 1px solid rgba(90,170,69,0.20);
  border-radius: 12px;
}

.diagnosticos-attachment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.diagnosticos-attachment-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.diagnosticos-attachment-copy span {
  font-size: 12px;
  color: var(--muted);
}

.diagnosticos-attachment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.diagnosticos-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(26,122,122,0.16);
  transition: background 0.15s, transform 0.15s;
}

.diagnosticos-link-btn:hover {
  background: rgba(26,122,122,0.14);
  transform: translateY(-1px);
}

/* ============================================================
   HISTÓRICO
   ============================================================ */
.diagnosticos-history-list {
  display: grid;
  gap: 10px;
  position: relative;
  padding-left: 20px;
}

.diagnosticos-history-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), transparent);
  border-radius: 2px;
}

.diagnosticos-history-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.diagnosticos-history-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
}

.diagnosticos-history-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.diagnosticos-history-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.diagnosticos-history-copy span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   ESTADOS VAZIOS
   ============================================================ */
.diagnosticos-empty-state,
.diagnosticos-empty-inline {
  padding: 16px 18px;
  border: 1px dashed rgba(26,122,122,0.25);
  border-radius: 12px;
  background: rgba(26,122,122,0.03);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   RODAPÉ DO MODAL
   ============================================================ */
.diagnosticos-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.diagnosticos-decision-btn {
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  border: 1px solid rgba(26,122,122,0.18);
  min-height: 46px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  transition: background 0.15s, transform 0.15s;
}

.diagnosticos-decision-btn[data-decision="Aprovado"] {
  background: rgba(47,133,90,0.10);
  color: var(--success);
  border-color: rgba(47,133,90,0.22);
}

.diagnosticos-decision-btn[data-decision="Retornado"] {
  background: rgba(217,119,6,0.10);
  color: var(--warning);
  border-color: rgba(217,119,6,0.22);
}

.diagnosticos-decision-btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

/* ============================================================
   LABEL DE MÓDULOS — campo readonly
   ============================================================ */
.field-label-upper {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}


/* ============================================================
   DIAGNÓSTICOS — Refatoração da experiência do modal
   ============================================================ */
.diagnosticos-modal-card {
  width: min(1120px, 100%);
}

.diagnosticos-modal-body {
  padding-top: 0;
}

.diagnosticos-modal-form.modern-layout {
  display: grid;
  gap: 18px;
}

.diagnosticos-modal-experience {
  display: grid;
  gap: 18px;
}

.diagnosticos-refactor-shell {
  display: grid;
  gap: 14px;
}

.diagnosticos-section-card-block,
.diagnosticos-summary-shell {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(26,122,122,0.03));
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15,54,54,0.06);
}

.diagnosticos-summary-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.diagnosticos-summary-topline h4,
.diagnosticos-section-header.modern h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.diagnosticos-summary-topline p,
.diagnosticos-section-header.modern p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.diagnosticos-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.diagnosticos-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.12);
}

.diagnosticos-summary-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 800;
  color: var(--muted);
}

.diagnosticos-summary-card strong {
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
}

.diagnosticos-section-header.modern {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

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

.diagnosticos-static-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
}

.diagnosticos-static-field.compact {
  min-height: 42px;
  font-size: 13px;
}

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

.diagnosticos-delegation-top-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
}

.diagnosticos-delegation-top-row .modal-field {
  flex: 0 0 auto;
}

.diagnosticos-delegation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(26,122,122,0.04);
  border: 1px solid rgba(26,122,122,0.10);
  justify-content: space-between;
}

.diagnosticos-delegation-module {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
}

.diagnosticos-delegation-field {
  flex-shrink: 0;
}

.diagnosticos-delegation-field select,
.diagnosticos-stage-field input {
  width: 100%;
}

.diagnosticos-compact-select {
  width: 256px !important;
  max-width: 256px;
  flex: 0 0 256px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b8585' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 28px;
  cursor: pointer;
}

.diagnosticos-compact-date {
  width: 256px !important;
  max-width: 256px;
  flex: 0 0 256px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  cursor: pointer;
}

#diagnostico-project-manager-select {
  width: 288px !important;
  max-width: 288px;
  flex: 0 0 288px;
}

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

.diagnosticos-milestone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.diagnosticos-milestone-main {
  display: grid;
  gap: 6px;
}

.diagnosticos-milestone-main strong {
  font-size: 14px;
  color: var(--text);
}

.diagnosticos-milestone-main p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.diagnosticos-milestone-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.diagnosticos-milestone-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

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

.diagnosticos-stage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.diagnosticos-stage-field {
  flex-shrink: 0;
}

.diagnosticos-stage-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(26,122,122,0.10);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
}

.diagnosticos-stage-copy {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.diagnosticos-stage-copy strong {
  font-size: 14px;
  color: var(--text);
}

.diagnosticos-stage-copy span {
  font-size: 12px;
  color: var(--muted);
}

.diagnosticos-conclusion-grid {
  display: grid;
  gap: 14px;
}

.diagnosticos-questionnaire-tabs {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(26,122,122,0.12);
}

.diagnosticos-questionnaire-tabs-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid rgba(26,122,122,0.12);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

/* ── Cabeçalho de seção moderno (ícone + título) ── */
.diagnosticos-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.diagnosticos-sec-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diagnosticos-sec-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(26,122,122,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diagnosticos-sec-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagnosticos-sec-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.diagnosticos-questionnaire-tab {
  border-radius: 12px 12px 0 0;
}

.diagnosticos-footer-actions.stable-actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  margin: 0 -28px -28px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid rgba(26,122,122,0.12);
  backdrop-filter: blur(10px);
}

.diagnosticos-inline-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8,28,28,0.48);
  display: grid;
  place-items: center;
  padding: 24px;
}

.diagnosticos-inline-modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.12);
  box-shadow: 0 28px 60px rgba(8,28,28,0.24);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.diagnosticos-inline-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.diagnosticos-inline-modal-head h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.diagnosticos-inline-modal-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.diagnosticos-inline-modal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.diagnosticos-inline-modal-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
}

.diagnosticos-inline-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .diagnosticos-modal-card {
    width: min(100%, 100%);
  }

  .diagnosticos-summary-grid,
  .diagnosticos-delegation-grid,
  .diagnosticos-inline-modal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .diagnosticos-delegation-row,
  .diagnosticos-stage-row {
    grid-template-columns: 1fr;
  }

  .diagnosticos-stage-index {
    display: none;
  }
}

@media (max-width: 720px) {
  .diagnosticos-summary-grid,
  .diagnosticos-delegation-grid,
  .diagnosticos-inline-modal-grid {
    grid-template-columns: 1fr;
  }

  .diagnosticos-footer-actions.stable-actions {
    position: static;
    margin: 0;
    padding: 12px 0 0;
    background: transparent;
    border-top: 0;
    backdrop-filter: none;
  }
}

/* ============================================================
   CONTRATOS — Estilos completos baseados nas classes reais
   ============================================================ */

/* Filtros */
.contracts-filters-grid-legacy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}


/* Tabela */
.contracts-table-wrap {
  overflow: hidden;
}

.contracts-col-code { width: 100px; }
.contracts-col-client { min-width: 180px; }
.contracts-col-service { width: 130px; }
.contracts-col-client-type { width: 110px; }
.contracts-col-level { width: 100px; }
.contracts-col-sla { width: 130px; }
.contracts-col-deadline { width: 150px; }
.contracts-col-status { width: 180px; }
.contracts-col-actions { width: 130px; }

.contracts-row td {
  transition: background 0.15s;
}

.contracts-row:hover td {
  background: rgba(26,122,122,0.03);
}

.contracts-row.is-sla-overdue td:first-child {
  border-left: none;
}

.contracts-row.is-sla-today td:first-child {
  border-left: none;
}

.contracts-row.is-ready td {
  background: transparent;
}

.contracts-client-cell {
  display: grid;
  gap: 3px;
}

.contracts-status-stack {
  display: grid;
  gap: 4px;
  align-items: center;
}

.contracts-helper-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Chips */
.contracts-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.contracts-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.contracts-chip.level-baixa { background: rgba(100,116,139,0.09); border-color: rgba(100,116,139,0.16); color: #475569; }
.contracts-chip.level-media { background: rgba(217,119,6,0.10); border-color: rgba(217,119,6,0.20); color: #92400e; }
.contracts-chip.level-alta { background: rgba(234,88,12,0.10); border-color: rgba(234,88,12,0.20); color: #9a3412; }
.contracts-chip.level-critica { background: rgba(192,57,43,0.12); border-color: rgba(192,57,43,0.28); color: #991b1b; font-weight: 800; }
.contracts-chip.level-estrategica { background: rgba(79,70,229,0.10); border-color: rgba(79,70,229,0.22); color: #3730a3; }
.contracts-chip.sla-ok { background: rgba(47,133,90,0.10); border-color: rgba(47,133,90,0.20); color: #166534; }
.contracts-chip.sla-today { background: rgba(217,119,6,0.10); border-color: rgba(217,119,6,0.22); color: #92400e; }
.contracts-chip.sla-overdue { background: rgba(192,57,43,0.12); border-color: rgba(192,57,43,0.26); color: #991b1b; }
.contracts-chip.boolean-yes { background: rgba(47,133,90,0.10); border-color: rgba(47,133,90,0.20); color: #166534; }
.contracts-chip.boolean-no { background: rgba(100,116,139,0.08); border-color: rgba(100,116,139,0.16); color: #64748b; }

.contracts-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Modal — form e seções */
.contracts-modal-form {
  display: grid;
  gap: 20px;
}

.contracts-section-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(26,122,122,0.02) 100%);
  position: relative;
}

.contracts-section-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
  border-radius: 0 3px 3px 0;
}

.contracts-section-header {
  display: grid;
  gap: 4px;
  padding-left: 4px;
}

.contracts-section-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a2e38;
}

.contracts-section-header p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

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

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

/* Cards de resumo */
.contracts-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contracts-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(26,122,122,0.04);
  border: 1px solid rgba(26,122,122,0.12);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
}

.contracts-summary-card label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
}

.contracts-summary-card strong {
  font-size: 15px;
  font-weight: 800;
  color: #1a2e38;
  line-height: 1.3;
}

.contracts-summary-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Cards de leitura */
.contracts-read-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contracts-read-card {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contracts-read-card label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
}

.contracts-read-card strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.contracts-read-card-full {
  grid-column: 1 / -1;
}

.contracts-read-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Módulos */
.contracts-modules-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contracts-module-toggle {
  border: 1px solid rgba(26,122,122,0.20);
  background: rgba(26,122,122,0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s;
  cursor: pointer;
}

.contracts-module-toggle:hover {
  background: rgba(26,122,122,0.12);
  color: var(--blue);
  transform: translateY(-1px);
}

.contracts-module-toggle.active {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26,122,122,0.20);
}

/* PDF e arquivo */
.contracts-file-box {
  display: grid;
  gap: 10px;
}

.contracts-file-item {
  padding: 14px 16px;
  background: rgba(90,170,69,0.06);
  border: 1px solid rgba(90,170,69,0.22);
  border-radius: 12px;
}

.contracts-file-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.contracts-file-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.contracts-file-copy span {
  font-size: 12px;
  color: var(--muted);
}

.contracts-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(26,122,122,0.16);
  transition: background 0.15s, transform 0.15s;
}

.contracts-link-btn:hover {
  background: rgba(26,122,122,0.14);
  transform: translateY(-1px);
}

/* Estado vazio */
.contracts-empty-box {
  padding: 16px 18px;
  border: 1px dashed rgba(26,122,122,0.25);
  border-radius: 12px;
  background: rgba(26,122,122,0.03);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}

/* Autocomplete */
.contracts-autocomplete-wrap {
  display: grid;
  gap: 8px;
  position: relative;
  grid-column: 1 / -1;
}

.contracts-autocomplete-wrap label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contracts-autocomplete-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(26,122,122,0.14);
  overflow: hidden;
}

.contracts-autocomplete-item {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(216,226,224,0.6);
}

.contracts-autocomplete-item:last-child {
  border-bottom: none;
}

.contracts-autocomplete-item:hover {
  background: rgba(26,122,122,0.06);
}

.contracts-autocomplete-item strong {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

.contracts-autocomplete-item span {
  font-size: 12px;
  color: var(--muted);
}

.contracts-autocomplete-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(26,122,122,0.08);
  border: 1px solid rgba(26,122,122,0.18);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.contracts-autocomplete-chip button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.12s;
}

.contracts-autocomplete-chip button:hover {
  background: rgba(192,57,43,0.10);
  color: var(--danger);
}

/* Histórico */
.contracts-history-list {
  display: grid;
  gap: 10px;
  position: relative;
  padding-left: 20px;
}

.contracts-history-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), transparent);
  border-radius: 2px;
}

.contracts-history-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.contracts-history-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
}

.contracts-history-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.contracts-history-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.contracts-history-copy span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Input de resumo (SLA horas) */
.contracts-summary-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(26,122,122,0.22);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #1a2e38;
  background: rgba(26,122,122,0.04);
}

.contracts-summary-input:focus {
  outline: none;
  border-color: rgba(26,122,122,0.55);
  box-shadow: 0 0 0 3px rgba(26,122,122,0.10);
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1100px) {
  .contracts-filters-grid {
    flex-wrap: wrap;
  }
  .contracts-filters-grid .field {
    min-width: 45%;
  }
  .contracts-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .diagnosticos-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .diagnosticos-header-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .contracts-filters-grid,
  .contracts-form-grid,
  .contracts-read-grid,
  .contracts-summary-grid,
  .diagnosticos-filters-grid,
  .diagnosticos-modal-grid,
  .diagnosticos-header-grid {
    grid-template-columns: 1fr;
  }

  .contracts-section-card,
  .diagnosticos-section {
    padding: 16px;
  }

  .diagnosticos-question-head {
    flex-direction: column;
  }
}
.contacts-binary-choice {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border, #e2e8f0);
  width: fit-content;
}

.contacts-binary-choice-btn {
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-soft, #64748b);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.contacts-binary-choice-btn:first-of-type {
  border-right: 1.5px solid var(--border, #e2e8f0);
}

.contacts-binary-choice-btn.is-active {
  background: var(--green, #1a7a7a);
  color: #fff;
}

.contacts-binary-choice-btn:not(.is-active):hover {
  background: var(--surface-alt, #f4f7f7);
}
/* ================================================================
   MARCOS DO PROJETO / TIPOS DE MARCOS
   ================================================================ */
.pm-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  width: fit-content;
}

.pm-tab {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  border: 1px solid transparent;
}

.pm-tab.active {
  background: linear-gradient(135deg, rgba(26,122,122,0.14), rgba(35,148,148,0.10));
  color: var(--blue-deep);
  border-color: rgba(26,122,122,0.18);
  box-shadow: var(--shadow-soft);
}

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

.pm-stages-kpi-grid,
.gp-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-kpi-card {
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.pm-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.pm-kpi-card.active {
  border-color: rgba(26,122,122,0.26);
  box-shadow: 0 12px 30px rgba(15,84,84,0.10);
}

.pm-kpi-card.danger strong,
.pm-kpi-card.danger label {
  color: var(--danger);
}

.pm-kpi-card.success strong,
.pm-kpi-card.success label {
  color: var(--success);
}

.pm-kpi-card.warning strong,
.pm-kpi-card.warning label {
  color: var(--warning);
}

.pm-kpi-card.muted strong,
.pm-kpi-card.muted label {
  color: #5f7380;
}

.pm-toolbar {
  align-items: stretch;
}

.pm-toolbar-left {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) minmax(260px, 1.2fr);
  gap: 12px;
}

.pm-primary-text {
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.pm-secondary-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

.pm-selected-row {
  background: rgba(26,122,122,0.04);
}

.pm-progress-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-progress-track {
  width: 100%;
  max-width: 140px;
  height: 8px;
  border-radius: 999px;
  background: rgba(107,133,133,0.18);
  overflow: hidden;
}

.pm-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.pm-stage-detail-card {
  display: grid;
  gap: 18px;
}

.pm-stage-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pm-stage-detail-header h3 {
  margin: 0;
  font-size: 18px;
}

.pm-stage-detail-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pm-stage-detail-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.pm-stage-detail-progress {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

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

.pm-stage-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.pm-stage-item:last-child {
  border-bottom: none;
}

.pm-stage-item.current {
  background: rgba(26,122,122,0.03);
}

.pm-stage-item.done {
  background: rgba(29,158,117,0.03);
}

.pm-stage-item.late {
  border-left: 3px solid var(--danger);
  background: rgba(192,57,43,0.03);
}

.pm-stage-item.skipped {
  opacity: 0.6;
}

.stage-detail-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.stage-detail-dot.dot-done {
  background: #e1f5ee;
  color: #0f6e56;
}

.stage-detail-dot.dot-curr {
  background: #1a7a7a;
  color: #fff;
}

.stage-detail-dot.dot-late {
  background: #fdecea;
  color: #a02020;
}

.stage-detail-dot.dot-plan {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.stage-late-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--danger);
  font-weight: 600;
  margin-top: 4px;
}

.stage-detail-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.stage-btn-concluir,
.stage-btn-adiar,
.stage-btn-pular {
  height: 30px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.stage-btn-concluir {
  background: var(--blue);
  color: #fff;
}

.stage-btn-concluir:hover {
  background: #025f74;
}

.stage-btn-adiar {
  background: rgba(217,119,6,0.12);
  color: #b45309;
  border: 1px solid rgba(217,119,6,0.20);
}

.stage-btn-adiar:hover {
  background: rgba(217,119,6,0.18);
}

.stage-btn-pular {
  background: rgba(128,130,133,0.10);
  color: var(--muted);
  border: 1px solid rgba(128,130,133,0.18);
}

.stage-btn-pular:hover {
  background: rgba(128,130,133,0.16);
}

.pm-stage-detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}

.pm-stage-detail-left {
  padding: 0;
  overflow: hidden;
}

.pm-stage-detail-left .pm-stage-detail-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.pm-stage-detail-right {
  display: grid;
  gap: 14px;
  align-content: start;
}

.pm-stage-summary-card,
.pm-stage-history-card {
  padding: 16px;
}

.pm-stage-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.pm-stage-summary-row:last-child {
  border-bottom: none;
}

.pm-stage-summary-row span {
  color: var(--muted);
}

.pm-stage-summary-row strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pm-stage-detail-grid {
    grid-template-columns: 1fr;
  }
}

.pm-stage-main {
  display: grid;
  gap: 8px;
}

.pm-stage-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(26,122,122,0.05);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.pm-stage-history {
  display: grid;
  gap: 8px;
}

.pm-stage-history-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  display: grid;
  gap: 3px;
}

.pm-stage-history-item strong {
  font-size: 13px;
  color: var(--text);
}

.pm-stage-history-item span,
.pm-stage-history-empty {
  font-size: 12px;
  color: var(--muted);
}

.pm-stage-status {
  align-self: center;
}

@media (max-width: 1200px) {
  .pm-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .pm-toolbar-left,
  .pm-kpi-grid,
  .pm-stages-kpi-grid {
    grid-template-columns: 1fr;
  }

  .pm-stage-item {
    grid-template-columns: 1fr;
  }

  .pm-stage-order {
    width: 34px;
    height: 34px;
  }

  .pm-stage-detail-meta {
    justify-items: start;
  }
}

/* ===== STAGES LIST (aba Etapas) ===== */
.stages-list-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 60px 90px;
  gap: 10px;
  padding: 6px 14px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.stages-list-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 60px 90px;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.stages-list-row:last-child {
  border-bottom: none;
}

.stages-list-row:hover {
  background: rgba(3,115,140,0.03);
  border-color: rgba(3,115,140,0.18);
}

.stages-list-row.selected {
  border-left: 3px solid var(--blue);
  background: rgba(3,115,140,0.03);
}

.stages-list-row.late {
  border-left: 3px solid var(--danger);
}

.stages-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stages-row-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.stages-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stages-progress-track {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  max-width: 80px;
}

.stages-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.stages-progress-pct {
  font-size: 11px;
  color: var(--muted);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.stages-date {
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}

.stages-days {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.stages-days.late {
  color: var(--danger);
  font-weight: 600;
}

.stages-avatars {
  display: flex;
  align-items: center;
}

.stages-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid var(--surface);
  margin-left: -5px;
  flex-shrink: 0;
}

.stages-avatar:first-child {
  margin-left: 0;
}

.stages-row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 900px) {
  .stages-list-head,
  .stages-list-row {
    grid-template-columns: 1fr 1fr;
  }
}
/* ===== MÓDULO: AGENDA & TAREFAS ===== */

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

/* MEU DIA */
.at-meudia-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.at-meudia-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.at-carga-pill {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 10px 14px;
  min-width: 200px;
}

.at-day-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.at-day-chip {
  padding: 6px 12px;
  border-radius: var(--border-radius-md);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  transition: all 0.12s;
}

.at-day-chip.on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.at-day-chip.late {
  border-color: var(--danger);
  color: var(--danger);
}

/* Calendário do dia */
.at-cal-wrap {
  display: grid;
  grid-template-columns: 44px 1fr;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.at-time-col {
  border-right: 0.5px solid var(--border);
}

.at-time-slot {
  height: 64px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4px 6px 0;
  font-size: 10px;
  color: var(--muted);
}

.at-time-slot:last-child {
  border-bottom: none;
}

.at-event-col {
  position: relative;
  padding: 0 8px;
  min-height: 640px;
}

.at-hour-line {
  height: 64px;
  border-bottom: 0.5px solid var(--border);
}

.at-hour-line:last-child {
  border-bottom: none;
}

.at-now-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--danger);
  z-index: 10;
}

.at-now-dot {
  position: absolute;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  top: -3px;
}

/* Blocos do calendário */
.at-ev {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.12s;
  z-index: 5;
}

.at-ev:hover {
  filter: brightness(0.95);
}

.at-ev-compromisso  { background: #E6F1FB; border-left: 3px solid #378ADD; }
.at-ev-exec-ag      { background: #E1F5EE; border-left: 3px solid #1D9E75; }
.at-ev-exec-pl      { background: #EEEDFE; border-left: 3px solid #534AB7; }
.at-ev-bloqueio     { background: #F1EFE8; border-left: 3px solid #B4B2A9; opacity: .75; }
.at-ev-late         { border-left-color: var(--danger) !important; background: #FCEBEB !important; }

.at-ev-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.at-ev-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
}

/* Fila */
.at-fila-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.at-fila-header {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.at-fila-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background 0.12s;
}

.at-fila-item:hover {
  background: var(--bg);
}

.at-fila-item.late {
  border-left: 3px solid var(--danger);
  padding-left: 9px;
}

.at-fila-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.at-fila-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Time — analistas */
.at-analyst-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}

.at-analyst-row:last-child {
  border-bottom: none;
}

.at-analyst-row:hover {
  background: var(--bg);
}

.at-analyst-overloaded {
  background: rgba(226, 75, 74, 0.04);
}

/* Painel encaixe no modal */
.at-encaixe-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
}

.at-encaixe-row:last-child {
  border-bottom: none;
}

/* Modal largo — Agenda & Tarefas */
.modal-card--lg {
  width: min(1100px, 100%);
}

/* Form grid 3 colunas */
.form-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Checkbox estilizado dentro do modal */
.at-check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .18s, background .18s;
  user-select: none;
  min-height: 46px;
}
.at-check-field:hover {
  border-color: var(--blue);
  background: var(--surface-teal);
}
.at-check-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}
.at-check-field span {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
}

/* Painel "Onde encaixar" colapsável dentro do modal */
.at-modal-encaixe {
  grid-column: 1 / -1;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.at-modal-encaixe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-soft);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  transition: background .15s;
}
.at-modal-encaixe-header:hover {
  background: rgba(26,122,122,0.06);
}
.at-modal-encaixe-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.at-modal-encaixe-chevron {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
  flex-shrink: 0;
}
.at-modal-encaixe-header[aria-expanded="true"] .at-modal-encaixe-chevron {
  transform: rotate(180deg);
}
.at-modal-encaixe-body {
  display: none;
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
}
.at-modal-encaixe-body.is-open {
  display: block;
}
.at-modal-encaixe-body .at-encaixe-row {
  padding: 8px 0;
}

/* [AT-CHECKLIST-MODAL-2026-06-12] */
.at-modal-checklist {
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.at-modal-checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-soft);
}
.at-modal-checklist-count {
  font-size: 11px;
  color: var(--muted);
}
.at-modal-checklist-list {
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 32px;
}
.at-modal-checklist-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 4px;
}
.at-modal-checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}
.at-modal-checklist-item:hover {
  background: var(--bg-subtle, #f8fafc);
}
.at-modal-checklist-text {
  flex: 1;
  line-height: 1.4;
}
.at-modal-checklist-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: 4px;
  flex-shrink: 0;
}
.at-modal-checklist-remove:hover {
  background: rgba(192,57,43,0.08);
  color: var(--danger);
}
.at-modal-checklist-input-row {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

/* [AT-DETAIL-REDESIGN-2026-06-12] */
.atd-modal {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.atd-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 0.5px solid var(--border-soft);
}
.atd-hero-left {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.atd-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.atd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.atd-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}
.atd-hero-right {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.atd-ic-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0.5px solid var(--border-soft);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .14s, color .14s;
}
.atd-ic-btn:hover {
  background: var(--bg-subtle, #f8fafc);
  color: var(--text);
}
.atd-ic-btn svg {
  flex-shrink: 0;
}
.atd-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--border-soft);
  margin: 0 3px;
}
.atd-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 0.5px solid var(--border-soft);
}
.atd-meta-cell {
  padding: 12px 18px;
  border-right: 0.5px solid var(--border-soft);
  display: grid;
  gap: 3px;
}
.atd-meta-cell:nth-child(3n) {
  border-right: none;
}
.atd-meta-cell:nth-child(n+4) {
  border-top: 0.5px solid var(--border-soft);
}
.atd-meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.atd-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.atd-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.atd-col {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.atd-col:first-child {
  border-right: 0.5px solid var(--border-soft);
}
.atd-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.atd-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.atd-col-sub {
  font-size: 11px;
  color: var(--muted);
}
.atd-prog {
  height: 3px;
  background: var(--border-soft);
  border-radius: 99px;
  overflow: hidden;
}
.atd-prog-fill {
  height: 100%;
  background: #1D9E75;
  border-radius: 99px;
}
.atd-check-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.atd-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 0.5px solid var(--border-soft);
  background: var(--surface);
}
.atd-check-row.is-done {
  background: var(--bg-subtle, #f8fafc);
}
.atd-check-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 0.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}
.atd-check-box.done {
  background: #1D9E75;
  border-color: #1D9E75;
}
.atd-check-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}
.atd-check-text.done {
  text-decoration: line-through;
  color: var(--muted);
}
.atd-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
}
.atd-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.atd-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.atd-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26,122,122,0.12);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.atd-comment-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.atd-comment-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 11px;
  color: var(--muted);
}
.atd-comment-meta strong {
  font-size: 12px;
  color: var(--text);
}
.atd-comment-text {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}
.atd-input-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.atd-input {
  flex: 1;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle, #f8fafc);
  color: var(--text);
  outline: none;
}
.atd-input:focus {
  border-color: var(--blue);
  background: var(--surface);
}
.atd-add-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--bg-subtle, #f8fafc);
  color: var(--text-soft);
  border: 0.5px solid var(--border);
  font-size: 14px;
  cursor: pointer;
}
.atd-send-btn {
  font-size: 12px;
  font-weight: 600;
}
.atd-add-btn:hover {
  background: var(--surface);
  color: var(--text);
}

/* Modal sem título quando exibe atd-modal */
.modal-card.at-detail-modal .modal-header {
  display: none;
}
.modal-card.at-detail-modal {
  padding: 0;
  overflow: hidden;
}

/* [AT-ENCAIXE-DISPONIBILIDADE-2026-06-12] */
.at-disp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.at-disp-th {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  padding: 6px 4px 4px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.at-disp-th-date {
  display: block;
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
  margin-top: 1px;
}
.at-disp-name-th {
  min-width: 130px;
  text-align: left;
}
.at-disp-row {
  border-bottom: 0.5px solid var(--border-soft);
}
.at-disp-row:last-child {
  border-bottom: none;
}
.at-disp-name-td {
  padding: 7px 0;
}
.at-disp-td {
  padding: 7px 4px;
}
.at-disp-analyst {
  display: flex;
  align-items: center;
  gap: 7px;
}
.at-disp-name {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}
.at-disp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.at-disp-track {
  width: 100%;
  height: 5px;
  background: var(--border-soft, #f1f5f9);
  border-radius: 99px;
  overflow: hidden;
}
.at-disp-fill {
  height: 100%;
  border-radius: 99px;
}
.at-disp-livre {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.at-disp-livre-free  { color: #0F6E56; }
.at-disp-livre-warn  { color: #854F0B; }
.at-disp-livre-full  { color: var(--muted); }


@media (max-width: 820px) {
  .form-grid.three-columns {
    grid-template-columns: 1fr 1fr;
  }
  .modal-card--lg {
    width: min(940px, 100%);
  }
  .at-kpi-row {
    grid-template-columns: 1fr 1fr;
  }
  .at-cal-wrap {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .form-grid.three-columns {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   AGENDA & TAREFAS — REDESIGN LOCAL DA TELA
   ================================================================ */
.at-page {
  display: block;
}

.at-page-grid {
  gap: 20px;
}

.at-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.at-page-header--actions-only {
  justify-content: flex-end;
}

.at-page-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.at-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #123848;
}

.at-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.at-page-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
}

.at-page-btn svg {
  width: 16px;
  height: 16px;
}

.at-page-btn-plus {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* [UI-AGENDA-CARDS-2026-06-12] 5 colunas: 4 KPIs + Carga de hoje */
.at-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(200px, 240px);
  gap: 14px;
  align-items: stretch;
}

/* [UI-AGENDA-CARDS-2026-06-12] Cards menores */
.at-summary-card {
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.at-summary-card-copy {
  display: grid;
  gap: 8px;
}

.at-summary-card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* [UI-AGENDA-CARDS-2026-06-12] */
.at-summary-card-value {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #0f5f74;
}

.at-summary-card-helper {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* [UI-AGENDA-CARDS-2026-06-12] */
.at-summary-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

/* [UI-AGENDA-CARDS-2026-06-12] */
.at-summary-card-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.85;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.at-summary-card--open .at-summary-card-icon {
  background: rgba(26,122,122,0.10);
  color: var(--blue);
}

.at-summary-card--late .at-summary-card-value {
  color: var(--danger);
}

.at-summary-card--late .at-summary-card-icon {
  background: rgba(192,57,43,0.10);
  color: var(--danger);
}

.at-summary-card--today .at-summary-card-value {
  color: #1f7ad2;
}

.at-summary-card--today .at-summary-card-icon {
  background: rgba(31,122,210,0.10);
  color: #1f7ad2;
}

.at-summary-card--done .at-summary-card-value {
  color: var(--success);
}

.at-summary-card--done .at-summary-card-icon {
  background: rgba(46,125,50,0.10);
  color: var(--success);
}

.at-tabs-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  width: fit-content;
}

.at-tab-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.at-tab-btn:hover {
  background: rgba(26,122,122,0.06);
  color: var(--blue-deep);
}

.at-tab-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(15,84,84,0.16);
}

.at-tab-content {
  display: grid;
  gap: 18px;
}

.at-list-view {
  display: grid;
  gap: 16px;
}

/* [AT-PANEL-FIX-2026-06-13] */
.at-list-shell {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* [AT-TOOLBAR-FINAL-2026-06-13] */
.at-list-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(26,122,122,0.03), rgba(255,255,255,0.96));
}

.at-list-toolbar-group {
  display: contents;
}

.at-list-control {
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 1;
}

.at-list-select {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.at-list-select--analista {
  width: 150px;
  min-width: 0;
  flex-shrink: 1;
}

.at-list-search-wrap {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
}

.at-list-search {
  width: 100%;
  padding-right: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
  font-size: 12px;
}

.at-list-search-icon {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  pointer-events: none;
}

.at-list-search-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.at-list-toggle-concluidos {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex: 1 1 0;
  transition: background .14s, color .14s, border-color .14s;
}
.at-list-toggle-concluidos:hover {
  background: var(--bg-subtle, #f8fafc);
  color: var(--text);
}
.at-list-toggle-concluidos.is-active {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.3);
  color: var(--blue-deep, #0a4a3a);
}

.at-list-clear-btn {
  height: 36px;
  width: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  transition: background .14s, color .14s;
}
.at-list-clear-btn:hover:not(:disabled) {
  background: var(--bg-subtle, #f8fafc);
  color: var(--text);
}
.at-list-clear-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.at-list-clear-btn svg {
  width: 15px;
  height: 15px;
}

.at-list-table-wrap {
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

/* [AT-LIST-COLS-FIX-2026-06-12] */
.at-list-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.at-list-table thead th {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(15,84,84,0.03);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.at-list-table td {
  padding: 18px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-soft);
}

.at-list-table tbody tr:last-child td {
  border-bottom: none;
}

.at-list-row {
  transition: background .14s ease;
}

.at-list-row:hover {
  background: rgba(26,122,122,0.025);
}

.at-list-row--late td:first-child {
  border-left: 3px solid var(--danger);
}

.at-list-cell--item {
  cursor: pointer;
  overflow-wrap: break-word;
  word-break: break-word;
}

.at-list-item-main {
  display: grid;
  gap: 5px;
}

.at-list-item-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

.at-list-item-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.at-list-item-meta--checklist {
  color: var(--text-soft);
}

.at-list-responsavel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.at-list-responsavel span {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.35;
}

.at-list-empty {
  font-size: 12px;
  color: var(--muted);
}

.at-list-cell--deadline,
.at-list-cell--priority,
.at-list-cell--status,
.at-list-cell--category,
/* [AT-LIST-ACTIONS-FIX-2026-06-12] */
.at-list-cell--actions {
  text-align: center;
  white-space: nowrap;
  width: 1%;
  min-width: 220px;
}

.at-list-cell--deadline.is-late {
  color: var(--danger);
}

.at-list-deadline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.at-list-deadline svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* [AT-LIST-ACTIONS-FIX-2026-06-12] */
.at-list-action-group {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
}

.at-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(26,122,122,0.02));
  font-size: 12px;
  color: var(--muted);
}

.at-meudia-wrap {
  display: grid;
  gap: 18px;
}

/* [UI-AGENDA-CARDS-2026-06-12] Full width — carga foi para os KPIs */
.at-priority-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.at-fila-panel,
.at-calendar-panel,
.at-carga-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.at-fila-panel {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.at-fila-panel-head,
.at-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.at-section-copy {
  display: grid;
  gap: 4px;
}

.at-section-copy h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #163847;
}

.at-section-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.at-fila-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.at-fila-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdfd);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.at-fila-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(26,122,122,0.18);
  background: #fff;
}

.at-fila-item.late {
  border-left: 4px solid var(--danger);
  padding-left: 13px;
}

.at-fila-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.at-fila-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.at-fila-empty {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(26,122,122,0.22);
  background: rgba(26,122,122,0.03);
  color: var(--muted);
}

.at-fila-empty strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.at-fila-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* [UI-AGENDA-CARDS-2026-06-12] Carga de hoje agora é inline nos KPIs */
.at-carga-card {
  padding: 14px 16px 12px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

/* [UI-AGENDA-CARDS-2026-06-12] */
.at-carga-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
}

/* [UI-AGENDA-CARDS-2026-06-12] */
.at-carga-card-value {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  color: var(--blue);
}

.at-carga-card-value span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.at-carga-card-meta {
  font-size: 13px;
  color: var(--text-soft);
}

.at-carga-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dfe9e8;
  overflow: hidden;
}

.at-carga-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.at-carga-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.at-carga-card-footer strong {
  font-size: 12px;
  color: #1D9E75;
}

.at-calendar-panel {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.at-day-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.at-day-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.at-day-nav-btn:hover {
  background: rgba(26,122,122,0.06);
  color: var(--blue-deep);
}

.at-day-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-soft);
  transition: all 0.14s ease;
}

.at-day-chip:hover {
  border-color: rgba(26,122,122,0.20);
  background: rgba(26,122,122,0.04);
}

.at-day-chip.on {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  border-color: transparent;
}

.at-day-chip.late {
  border-color: rgba(192,57,43,0.30);
  color: var(--danger);
}

.at-cal-wrap {
  display: grid;
  grid-template-columns: 54px 1fr;
  background: #fcfdfd;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
}

.at-time-col {
  border-right: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(26,122,122,0.02), rgba(26,122,122,0.00));
}

.at-time-slot {
  height: 64px;
  border-bottom: 1px dashed rgba(204,222,222,0.85);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8px 10px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.at-event-col {
  position: relative;
  padding: 0 12px;
  min-height: 640px;
}

.at-hour-line {
  height: 64px;
  border-bottom: 1px dashed rgba(204,222,222,0.85);
}

.at-ev {
  position: absolute;
  left: 12px;
  right: 12px;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(15,84,84,0.06);
}

.at-ev:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 8px 18px rgba(15,84,84,0.10);
}

.at-ev-title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.at-ev-sub {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
}



.at-detail-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: grid;
  gap: 18px;
}

.at-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.at-detail-header-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.at-detail-hero-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(26,122,122,0.08);
}

.at-detail-hero-icon svg,
.at-detail-meta-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.at-detail-hero-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.at-detail-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #163847;
}

.at-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.at-detail-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 900px;
}

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

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

.at-detail-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(26,122,122,0.02));
  min-width: 0;
}

.at-detail-meta-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: rgba(26,122,122,0.05);
  flex-shrink: 0;
}

.at-detail-meta-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.at-detail-meta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.at-detail-meta-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
}

.at-detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.at-detail-section-card {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(26,122,122,0.02));
  padding: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.at-detail-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.at-detail-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #163847;
  letter-spacing: -0.01em;
}

.at-detail-section-subtitle,
.at-detail-progress-inline {
  font-size: 12px;
  color: var(--muted);
}

.at-detail-progress-inline {
  font-weight: 700;
  color: var(--text-soft);
}

.at-detail-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfe9e8;
}

.at-detail-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep));
}

.at-detail-checklist-list,
.at-detail-comments-list {
  display: grid;
  gap: 10px;
}

.at-detail-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
}

.at-detail-check-row.is-done {
  background: rgba(26,122,122,0.03);
}

.at-detail-check-toggle {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: #fff;
}

.at-detail-check-toggle.done {
  background: #1D9E75;
  border-color: #1D9E75;
}

.at-detail-check-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.at-detail-check-row.is-done .at-detail-check-text {
  color: var(--muted);
  text-decoration: line-through;
}

.at-detail-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.at-detail-input {
  flex: 1;
  min-height: 46px;
  border-radius: 14px;
}

.at-detail-add-btn {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  font-size: 24px;
  line-height: 1;
}

.at-detail-send-btn {
  min-height: 46px;
  padding: 0 18px;
}

.at-detail-comment-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(26,122,122,0.04);
  border: 1px solid rgba(26,122,122,0.08);
}

.at-detail-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.at-detail-comment-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.at-detail-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.at-detail-comment-meta strong {
  font-size: 13px;
  color: var(--text);
}

.at-detail-comment-meta span {
  font-size: 11px;
  color: var(--muted);
}

.at-detail-comment-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
  white-space: pre-wrap;
}

.at-detail-empty {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(26,122,122,0.22);
  background: rgba(26,122,122,0.03);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1240px) {
  .at-list-toolbar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "left left"
      "center right";
  }

  .at-list-toolbar-group--left {
    grid-area: left;
    flex-wrap: wrap;
  }

  .at-list-toolbar-group--center {
    grid-area: center;
  }

  .at-list-toolbar-group--right {
    grid-area: right;
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 1180px) {
  .at-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-priority-layout {
    grid-template-columns: 1fr;
  }

  .at-carga-card {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .at-page-header,
  .at-fila-panel-head,
  .at-calendar-head {
    align-items: stretch;
  }

  .at-page-actions,
  .at-day-nav {
    width: 100%;
  }

  .at-list-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "center"
      "right";
  }

  .at-list-toolbar-group--left,
  .at-list-toolbar-group--right {
    justify-self: stretch;
    width: 100%;
  }

  .at-list-toolbar-group--left {
    flex-wrap: wrap;
  }

  .at-list-toolbar-group--right {
    justify-content: space-between;
  }

  .at-list-select,
  .at-list-select--analista {
    min-width: 0;
    flex: 1 1 180px;
  }

  .at-tabs-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .at-tab-btn {
    flex: 1;
    justify-content: center;
  }

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

@media (max-width: 640px) {
  .at-summary-grid,
  .at-fila-list {
    grid-template-columns: 1fr;
  }

  .at-list-toolbar {
    padding: 14px;
  }

  .at-list-toolbar-group--left,
  .at-list-toolbar-group--right {
    flex-direction: column;
    align-items: stretch;
  }

  .at-list-select,
  .at-list-select--analista,
  .at-list-clear-btn {
    width: 100%;
  }

  .at-list-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .at-page-actions {
    width: 100%;
    flex-direction: column;
  }

  .at-page-actions .at-page-btn {
    width: 100%;
  }

  .at-tabs-wrap {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .at-day-nav {
    gap: 6px;
  }

  .at-day-chip {
    flex: 1 1 calc(50% - 6px);
  }

  .at-cal-wrap {
    grid-template-columns: 44px 1fr;
  }
}


/* ================================================================
   Agenda & Tarefas — Aba Time por período
   ================================================================ */
.at-team-view {
  display: grid;
  gap: 16px;
}

.at-team-filter-bar {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(240px, 0.7fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.at-team-filter-presets {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(15, 54, 54, 0.08);
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 6px;
  gap: 6px;
}

.at-team-preset-btn {
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 14px;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.at-team-preset-btn:hover {
  background: rgba(26,122,122,0.06);
  color: var(--blue-deep);
}

.at-team-preset-btn.active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(26,122,122,0.18);
}

.at-team-range-chip {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(15, 54, 54, 0.08);
  border-radius: 18px;
}

.at-team-range-chip-icon,
.at-team-period-note-icon,
.at-team-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  flex-shrink: 0;
}

.at-team-range-chip-icon svg,
.at-team-period-note-icon svg,
.at-team-kpi-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.at-team-range-chip strong {
  font-size: 16px;
  color: var(--text);
}

.at-team-filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.at-team-date-field {
  display: grid;
  gap: 8px;
}

.at-team-date-field span,
.at-team-order-box label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.at-team-date-field input,
.at-team-sort-select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(15,54,54,0.12);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}

.at-team-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.at-team-apply-btn {
  min-width: 110px;
}

.at-team-clear-link {
  background: transparent;
  color: var(--blue-deep);
  font-weight: 700;
  padding: 0 6px;
}

.at-team-period-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  color: var(--text-soft);
  font-size: 13px;
}

.at-team-period-note-icon {
  width: 28px;
  height: 28px;
  background: rgba(26,122,122,0.06);
}

.at-team-period-note-icon svg {
  width: 15px;
  height: 15px;
}

.at-team-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.at-team-kpi-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 128px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.at-team-kpi-card--free .at-team-kpi-icon {
  background: rgba(29,158,117,0.10);
  color: #1D9E75;
}

.at-team-kpi-card--limit .at-team-kpi-icon {
  background: rgba(245,158,11,0.10);
  color: #F59E0B;
}

.at-team-kpi-card--over .at-team-kpi-icon {
  background: rgba(226,75,74,0.10);
  color: #E24B4A;
}

.at-team-kpi-card--avg .at-team-kpi-icon {
  background: rgba(26,122,122,0.10);
  color: var(--blue-deep);
}

.at-team-kpi-copy {
  display: grid;
  gap: 6px;
}

.at-team-kpi-label {
  font-size: 12px;
  color: var(--text-soft);
}

.at-team-kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.at-team-kpi-value {
  font-size: 44px;
  line-height: 1;
  color: var(--text);
}

.at-team-kpi-value.percent {
  font-size: 38px;
}

.at-team-kpi-helper {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
}

.at-team-kpi-card--free .at-team-kpi-value,
.at-team-kpi-card--free .at-team-kpi-helper,
.at-team-kpi-card--free .at-team-kpi-meta { color: #1D9E75; }
.at-team-kpi-card--limit .at-team-kpi-value,
.at-team-kpi-card--limit .at-team-kpi-helper,
.at-team-kpi-card--limit .at-team-kpi-meta { color: #F59E0B; }
.at-team-kpi-card--over .at-team-kpi-value,
.at-team-kpi-card--over .at-team-kpi-helper,
.at-team-kpi-card--over .at-team-kpi-meta { color: #E24B4A; }
.at-team-kpi-card--avg .at-team-kpi-value,
.at-team-kpi-card--avg .at-team-kpi-helper,
.at-team-kpi-card--avg .at-team-kpi-meta { color: var(--blue-deep); }

.at-team-kpi-meta {
  font-size: 13px;
}

.at-team-panel {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.at-team-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.at-team-order-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.at-team-sort-select {
  min-width: 210px;
}

.at-team-grid-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.at-team-table {
  min-width: 1140px;
}

.at-team-table-head,
.at-team-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(280px, 1fr) minmax(430px, 1.35fr) minmax(120px, 0.5fr);
  gap: 18px;
  align-items: stretch;
}

.at-team-table-head {
  padding: 0 6px 14px;
  border-bottom: 1px solid var(--border);
}

.at-team-table-head-cell {
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  color: var(--text-soft);
}

.at-team-table-head-cell--days {
  display: grid;
  gap: 10px;
}

.at-team-days-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.at-team-days-grid {
  display: grid;
  gap: 10px;
}

.at-team-days-grid--head {
  gap: 10px;
}

.at-team-day-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
}

.at-team-table-body {
  display: grid;
  gap: 12px;
}

.at-team-row {
  padding: 18px 12px;
  border: 1px solid rgba(15,54,54,0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
}

.at-team-analyst-cell {
  display: flex;
  gap: 14px;
  align-items: center;
}

.at-team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.at-team-analyst-copy {
  display: grid;
  gap: 6px;
}

.at-team-analyst-copy strong {
  font-size: 17px;
  color: var(--text);
}

.at-team-analyst-meta,
.at-team-analyst-hours {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-soft);
}

.at-team-analyst-meta .is-late {
  color: var(--danger);
}

.at-team-summary-cell {
  display: grid;
  align-content: center;
  gap: 10px;
}

.at-team-summary-bar-wrap {
  position: relative;
  padding-top: 18px;
}

.at-team-summary-marker {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 11px;
  color: var(--text-soft);
}

.at-team-summary-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(15,54,54,0.10);
  overflow: hidden;
}

.at-team-summary-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.at-team-summary-bar-fill--free { background: #1D9E75; }
.at-team-summary-bar-fill--limit { background: #F59E0B; }
.at-team-summary-bar-fill--over { background: #E24B4A; }

.at-team-summary-caption {
  font-size: 13px;
  color: var(--text-soft);
}

.at-team-days-cell {
  display: grid;
  align-content: center;
}

.at-team-day-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 78px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,54,54,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.at-team-day-card strong {
  font-size: 24px;
  line-height: 1;
}

.at-team-day-card--free strong { color: #1D9E75; }
.at-team-day-card--limit strong { color: #F59E0B; }
.at-team-day-card--over strong { color: #E24B4A; }

.at-team-day-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15,54,54,0.10);
  overflow: hidden;
}

.at-team-day-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
}

.at-team-day-card--free { color: #1D9E75; }
.at-team-day-card--limit { color: #F59E0B; }
.at-team-day-card--over { color: #E24B4A; }

.at-team-occupancy-cell {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 8px;
}

.at-team-occupancy-cell strong {
  font-size: 38px;
  line-height: 1;
}

.at-team-occupancy-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.at-team-occupancy-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.at-team-occupancy-status--free { color: #1D9E75; }
.at-team-occupancy-status--limit { color: #F59E0B; }
.at-team-occupancy-status--over { color: #E24B4A; }

.at-team-panel-foot {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
}

.at-team-empty {
  padding: 24px;
  border: 1px dashed rgba(15,54,54,0.16);
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
}

.at-team-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.at-team-empty p {
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 1200px) {
  .at-team-filter-bar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .at-team-filter-fields {
    grid-template-columns: 1fr;
  }

  .at-team-filter-actions {
    justify-content: flex-start;
  }

  .at-team-kpi-grid {
    grid-template-columns: 1fr;
  }

  .at-team-order-box {
    width: 100%;
    justify-content: space-between;
  }

  .at-team-sort-select {
    min-width: 0;
    width: 100%;
    max-width: 260px;
  }
}

/* ================================================================
   CONTATOS — Redesign local da página
   ================================================================ */
.contacts-page-redesign {
  gap: 18px;
}

.contacts-page-redesign .topbar-subtitle {
  display: none;
}

.contacts-page-redesign .contacts-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contacts-page-redesign .contacts-summary-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.contacts-page-redesign .contacts-summary-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
}

.contacts-page-redesign .contacts-summary-card--month .contacts-summary-icon {
  background: rgba(35,148,148,0.10);
  color: var(--teal);
}

.contacts-page-redesign .contacts-summary-card--users .contacts-summary-icon {
  background: rgba(90,170,69,0.12);
  color: var(--green-deep);
}

.contacts-page-redesign .contacts-summary-card--frequent .contacts-summary-icon {
  background: rgba(124,58,237,0.10);
  color: #7c3aed;
}

.contacts-page-redesign .contacts-summary-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacts-page-redesign .contacts-summary-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.contacts-page-redesign .contacts-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}

.contacts-page-redesign .contacts-summary-value {
  font-size: 28px;
  line-height: 1.1;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contacts-page-redesign .contacts-summary-card--frequent .contacts-summary-value {
  font-size: 20px;
  line-height: 1.25;
}

.contacts-page-redesign .contacts-summary-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.contacts-page-redesign .contacts-toolbar-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.contacts-page-redesign .contacts-toolbar-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.contacts-page-redesign .contacts-toolbar-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contacts-page-redesign .contacts-search-wrap {
  min-width: 0;
}

.contacts-page-redesign .contacts-search-input {
  min-height: 48px;
  padding: 0 18px;
}

.contacts-page-redesign .contacts-clear-btn {
  min-height: 46px;
}

.contacts-page-redesign .contacts-toolbar-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contacts-page-redesign .contacts-filter-field {
  display: grid;
  gap: 6px;
}

.contacts-page-redesign .contacts-filter-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.contacts-page-redesign .contacts-filter-control {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1.5px solid rgba(26,122,122,0.12);
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  box-shadow: none;
}

.contacts-page-redesign .contacts-filter-control:focus {
  border-color: rgba(26,122,122,0.42);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.contacts-page-redesign .contacts-table-shell {
  overflow: hidden;
}

.contacts-page-redesign .contacts-table-wrap {
  border-radius: 20px;
  border: 1px solid rgba(26,122,122,0.10);
  box-shadow: var(--shadow-soft);
}

.contacts-page-redesign .contacts-table thead th {
  background: #f7fbfa;
  color: #71848f;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding-top: 16px;
  padding-bottom: 16px;
}

.contacts-page-redesign .contacts-table tbody td {
  padding-top: 18px;
  padding-bottom: 18px;
}

.contacts-page-redesign .contacts-col-analyst {
  width: 24%;
  text-align: left !important;
}

.contacts-page-redesign .contacts-col-date {
  width: 12%;
  text-align: center !important;
  white-space: nowrap;
}

.contacts-page-redesign .contacts-col-type {
  width: 16%;
  text-align: center !important;
}

.contacts-page-redesign .contacts-col-goal {
  width: 18%;
  text-align: left !important;
}

.contacts-page-redesign .contacts-col-client {
  width: 20%;
  text-align: left !important;
}

.contacts-page-redesign .contacts-col-actions {
  width: 10%;
  text-align: center !important;
  white-space: nowrap;
}

.contacts-page-redesign .contacts-analyst-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.contacts-page-redesign .contacts-analyst-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.contacts-page-redesign .contacts-analyst-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contacts-page-redesign .contacts-analyst-copy strong,
.contacts-page-redesign .contacts-client-cell strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.contacts-page-redesign .contacts-analyst-copy span,
.contacts-page-redesign .contacts-client-cell span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.contacts-page-redesign .contacts-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.contacts-page-redesign .contacts-type-badge.default {
  background: rgba(26,122,122,0.10);
  border-color: rgba(26,122,122,0.18);
  color: var(--blue);
}

.contacts-page-redesign .contacts-type-badge.whatsapp {
  background: rgba(90,170,69,0.12);
  border-color: rgba(90,170,69,0.20);
  color: #2f7d2a;
}

.contacts-page-redesign .contacts-type-badge.phone {
  background: rgba(35,148,148,0.12);
  border-color: rgba(35,148,148,0.20);
  color: #0f6e73;
}

.contacts-page-redesign .contacts-type-badge.email {
  background: rgba(124,58,237,0.10);
  border-color: rgba(124,58,237,0.18);
  color: #6d28d9;
}

.contacts-page-redesign .contacts-type-badge.meeting {
  background: rgba(217,119,6,0.12);
  border-color: rgba(217,119,6,0.18);
  color: #9a5a05;
}

.contacts-page-redesign .contacts-objective-cell {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.contacts-page-redesign .contacts-client-cell {
  display: grid;
  gap: 3px;
}

.contacts-page-redesign .contacts-actions-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.contacts-page-redesign .contacts-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(204,222,222,0.55);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .contacts-page-redesign .contacts-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-page-redesign .contacts-toolbar-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .contacts-page-redesign .contacts-toolbar-top {
    grid-template-columns: 1fr;
  }

  .contacts-page-redesign .contacts-toolbar-actions {
    justify-content: stretch;
  }

  .contacts-page-redesign .contacts-toolbar-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 720px) {
  .contacts-page-redesign .contacts-summary-grid,
  .contacts-page-redesign .contacts-toolbar-bottom {
    grid-template-columns: 1fr;
  }

  .contacts-page-redesign .contacts-summary-card {
    grid-template-columns: 50px 1fr;
    min-height: 110px;
    padding: 16px 18px;
  }

  .contacts-page-redesign .contacts-summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}

/* ============================================================
   CONTRATOS — redesign visual localizado da listagem
   ============================================================ */
.content:has(.contracts-page-redesign) > .topbar,
.content:has(.contracts-page-redesign) > .pill {
  display: none !important;
}

.contracts-page-redesign {
  gap: 14px;
  margin-top: -4px;
}

.contracts-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 46px;
}

.contracts-page-head-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.contracts-page-head-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contracts-page-head-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
}

.contracts-head-btn,
.contracts-header-btn {
  min-width: 168px;
}

.contracts-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contracts-kpi-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.contracts-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(26,122,122,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.contracts-kpi-card--healthy .contracts-kpi-icon {
  background: rgba(47,133,90,0.10);
  color: #2f855a;
}

.contracts-kpi-card--risk .contracts-kpi-icon {
  background: rgba(217,119,6,0.10);
  color: #b45309;
}

.contracts-kpi-card--ready .contracts-kpi-icon {
  background: rgba(13,109,114,0.10);
  color: #0d6d72;
}

.contracts-kpi-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contracts-kpi-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.contracts-kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}

.contracts-kpi-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contracts-kpi-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.contracts-toolbar-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.contracts-toolbar-top,
.contracts-toolbar-bottom {
  display: grid;
  gap: 12px;
}

.contracts-toolbar-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.contracts-toolbar-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Padrão compartilhado: search wrap com ícone interno */
.search-wrap-with-icon {
  position: relative;
}
.search-wrap-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #89a0a0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-wrap-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search-wrap-icon + .search-input,
.search-wrap-icon + input {
  padding-left: 44px;
}

.contracts-search-wrap {
  min-width: 0;
}

.contracts-search-input {
  min-height: 48px;
}

.contracts-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contracts-clear-btn {
  min-width: 142px;
}

.contracts-filter-field {
  display: grid;
  gap: 6px;
}

.contracts-filter-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.contracts-filter-control {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.14);
  background: #fff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contracts-filter-control:focus {
  border-color: rgba(26,122,122,0.40);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.contracts-list-shell {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contracts-table-shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contracts-data-table {
  table-layout: fixed;
  width: 100%;
}

.contracts-data-table thead th {
  background: #f8fbfb;
  color: #7c9191;
  padding-top: 15px;
  padding-bottom: 15px;
}

.contracts-data-table tbody td {
  padding-top: 18px;
  padding-bottom: 18px;
}

.contracts-col-code { width: 14%; text-align: left !important; }
.contracts-col-client { width: 26%; text-align: left !important; }
.contracts-col-service { width: 16%; text-align: left !important; }
.contracts-col-urgency { width: 11%; text-align: center !important; }
.contracts-col-sla { width: 13%; text-align: center !important; }
.contracts-col-status { width: 12%; text-align: center !important; }
.contracts-col-actions { width: 8%; text-align: center !important; }

.contracts-cell {
  vertical-align: middle;
}

.contracts-code-cell,
.contracts-service-cell,
.contracts-sla-cell,
.contracts-client-copy {
  display: grid;
  gap: 3px;
}

.contracts-table-main-text,
.contracts-code-value,
.contracts-client-name,
.contracts-service-value {
  font-family: var(--font);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.contracts-code-note,
.contracts-client-copy span,
.contracts-sla-hours {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.contracts-client-cell-v2 {
  display: block;
  min-width: 0;
}

.contracts-client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,122,122,0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.contracts-client-copy {
  min-width: 0;
}

.contracts-urgency-badge,
.contracts-sla-pill,
.contracts-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.contracts-urgency-badge--low {
  background: rgba(100,116,139,0.10);
  color: #475569;
  border-color: rgba(100,116,139,0.16);
}

.contracts-urgency-badge--medium {
  background: rgba(217,119,6,0.10);
  color: #9a5a05;
  border-color: rgba(217,119,6,0.16);
}

.contracts-urgency-badge--high {
  background: rgba(245,158,11,0.13);
  color: #b45309;
  border-color: rgba(245,158,11,0.18);
}

.contracts-urgency-badge--critical {
  background: rgba(192,57,43,0.12);
  color: #9a1f13;
  border-color: rgba(192,57,43,0.18);
}

.contracts-sla-pill--ok {
  background: rgba(47,133,90,0.12);
  color: #2f855a;
  border-color: rgba(47,133,90,0.18);
}

.contracts-sla-pill--risk,
.contracts-sla-pill--today {
  background: rgba(217,119,6,0.12);
  color: #9a5a05;
  border-color: rgba(217,119,6,0.18);
}

.contracts-sla-pill--overdue,
.contracts-sla-pill--late {
  background: rgba(192,57,43,0.12);
  color: #9a1f13;
  border-color: rgba(192,57,43,0.18);
}

.contracts-status-badge--approved {
  background: rgba(47,133,90,0.12);
  color: #166534;
  border-color: rgba(47,133,90,0.18);
}

.contracts-status-badge--returned {
  background: rgba(217,119,6,0.12);
  color: #92400e;
  border-color: rgba(217,119,6,0.18);
}

.contracts-status-badge--progress {
  background: rgba(13,109,114,0.12);
  color: #0d6d72;
  border-color: rgba(13,109,114,0.18);
}

.contracts-status-badge--default {
  background: rgba(100,116,139,0.10);
  color: #475569;
  border-color: rgba(100,116,139,0.16);
}

.contracts-sla-cell,
.contracts-cell--urgency,
.contracts-cell--status,
.contracts-cell--sla,
.contracts-cell--actions {
  text-align: center;
}

.contracts-cell--sla .contracts-sla-cell {
  justify-items: center;
}

.contracts-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.contracts-row--overdue td {
  background: rgba(192,57,43,0.015);
}

.contracts-row--risk td,
.contracts-row--today td {
  background: rgba(217,119,6,0.02);
}

.contracts-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(26,122,122,0.08);
  background: #fcfefe;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .contracts-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contracts-toolbar-top,
  .contracts-toolbar-bottom {
    grid-template-columns: 1fr;
  }

  .contracts-toolbar-actions {
    justify-content: flex-start;
  }

  .contracts-col-code,
  .contracts-col-client,
  .contracts-col-service,
  .contracts-col-urgency,
  .contracts-col-sla,
  .contracts-col-status,
  .contracts-col-actions {
    width: auto;
  }
}

@media (max-width: 720px) {
  .contracts-kpi-grid {
    grid-template-columns: 1fr;
  }

  .contracts-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .contracts-page-head-actions,
  .contracts-toolbar-actions {
    width: 100%;
  }

  .contracts-head-btn,
  .contracts-header-btn,
  .contracts-clear-btn {
    width: 100%;
  }

  .contracts-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================================
   DIAGNÓSTICOS — Redesign da listagem principal
   ============================================================ */
.content:has(.diagnosticos-page-redesign) > .topbar,
.content:has(.diagnosticos-page-redesign) > .pill {
  display: none !important;
}

.diagnosticos-page-redesign {
  gap: 14px;
  margin-top: -4px;
}

.diagnosticos-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 46px;
}

.diagnosticos-page-head-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.diagnosticos-page-head-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.diagnosticos-page-head-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
}

.diagnosticos-head-btn {
  min-width: 168px;
}

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

.diagnosticos-kpi-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.diagnosticos-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.diagnosticos-kpi-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagnosticos-kpi-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.diagnosticos-kpi-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.diagnosticos-kpi-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}

.diagnosticos-kpi-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.diagnosticos-kpi-card.is-pending .diagnosticos-kpi-icon {
  background: rgba(217,119,6,0.10);
  color: #9a5a05;
}

.diagnosticos-kpi-card.is-approved .diagnosticos-kpi-icon {
  background: rgba(47,133,90,0.10);
  color: #166534;
}

.diagnosticos-kpi-card.is-returned .diagnosticos-kpi-icon {
  background: rgba(234,88,12,0.10);
  color: #9a3412;
}

.diagnosticos-kpi-card.is-urgent .diagnosticos-kpi-icon {
  background: rgba(192,57,43,0.10);
  color: #991b1b;
}

.diagnosticos-toolbar-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.diagnosticos-toolbar-top {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.diagnosticos-search-wrap {
  position: relative;
  flex: 1 1 520px;
  min-width: 260px;
}

.diagnosticos-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #89a0a0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.diagnosticos-search-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagnosticos-search-input {
  padding-left: 44px;
  min-height: 48px;
}

.diagnosticos-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.diagnosticos-clear-btn {
  min-width: 138px;
}

.diagnosticos-toolbar-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.diagnosticos-filter-field {
  display: grid;
  gap: 6px;
}

.diagnosticos-filter-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.diagnosticos-filter-control {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.14);
  background: #fff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.diagnosticos-filter-control:focus {
  border-color: rgba(26,122,122,0.40);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.diagnosticos-list-shell {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.diagnosticos-table-wrap {
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.diagnosticos-data-table {
  width: 100%;
  table-layout: fixed;
}

.diagnosticos-data-table thead th {
  background: #f8fafc;
}

.diagnosticos-data-table thead th,
.diagnosticos-data-table tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.diagnosticos-list-row td {
  transition: background 0.16s ease;
}

.diagnosticos-list-row:hover td {
  background: rgba(26,122,122,0.03);
}

.diagnosticos-col-contract {
  width: 14%;
  text-align: left !important;
}

.diagnosticos-col-client {
  width: 20%;
  text-align: left !important;
}

.diagnosticos-col-service {
  width: 14%;
  text-align: left !important;
}

.diagnosticos-col-type {
  width: 16%;
  text-align: center !important;
}

.diagnosticos-col-priority {
  width: 11%;
  text-align: center !important;
}

.diagnosticos-col-status {
  width: 11%;
  text-align: center !important;
}

.diagnosticos-col-date {
  width: 9%;
  text-align: center !important;
  white-space: nowrap;
}

.diagnosticos-col-actions {
  width: 12%;
  text-align: center !important;
  white-space: nowrap;
}

.diagnosticos-contract-cell,
.diagnosticos-service-cell,
.diagnosticos-date-cell {
  display: grid;
  gap: 3px;
}

.diagnosticos-contract-code {
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.diagnosticos-contract-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.diagnosticos-client-cell {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.diagnosticos-client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,122,122,0.10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.diagnosticos-client-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.diagnosticos-client-copy strong,
.diagnosticos-client-name {
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnosticos-client-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.diagnosticos-service-cell {
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.diagnosticos-list-type-badge,
.diagnosticos-list-priority,
.diagnosticos-list-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.diagnosticos-list-type-badge {
  background: rgba(26,122,122,0.08);
  color: #0f5f73;
  border-color: rgba(26,122,122,0.14);
}

.diagnosticos-list-type-badge.is-implant {
  background: rgba(26,122,122,0.09);
  color: #0f5f73;
  border-color: rgba(26,122,122,0.16);
}

.diagnosticos-list-type-badge.is-reimplant {
  background: rgba(38,166,166,0.10);
  color: #0d6d72;
  border-color: rgba(38,166,166,0.18);
}

.diagnosticos-list-type-badge.is-usage {
  background: rgba(90,170,69,0.12);
  color: #3d6b18;
  border-color: rgba(90,170,69,0.20);
}

.diagnosticos-list-priority.is-low {
  background: rgba(100,116,139,0.10);
  color: #475569;
  border-color: rgba(100,116,139,0.18);
}

.diagnosticos-list-priority.is-medium {
  background: rgba(217,119,6,0.10);
  color: #92400e;
  border-color: rgba(217,119,6,0.18);
}

.diagnosticos-list-priority.is-high {
  background: rgba(234,88,12,0.10);
  color: #9a3412;
  border-color: rgba(234,88,12,0.20);
}

.diagnosticos-list-priority.is-urgent {
  background: rgba(192,57,43,0.12);
  color: #991b1b;
  border-color: rgba(192,57,43,0.22);
}

.diagnosticos-list-priority.is-neutral {
  background: rgba(148,163,184,0.10);
  color: #64748b;
  border-color: rgba(148,163,184,0.18);
}

.diagnosticos-list-status.is-approved {
  background: rgba(47,133,90,0.10);
  color: #166534;
  border-color: rgba(47,133,90,0.20);
}

.diagnosticos-list-status.is-pending {
  background: rgba(217,119,6,0.10);
  color: #92400e;
  border-color: rgba(217,119,6,0.18);
}

.diagnosticos-list-status.is-returned {
  background: rgba(234,88,12,0.10);
  color: #9a3412;
  border-color: rgba(234,88,12,0.18);
}

.diagnosticos-date-cell {
  justify-items: center;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.diagnosticos-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.table-action-btn.execute {
  color: #0f6e56;
}

.table-action-btn.execute:hover {
  background: rgba(47,133,90,0.10);
  color: #166534;
}

.diagnosticos-table-footer {
  padding: 14px 18px;
  border: 1px solid rgba(26,122,122,0.10);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: rgba(255,255,255,0.98);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1280px) {
  .diagnosticos-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .diagnosticos-toolbar-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnosticos-col-contract,
  .diagnosticos-col-client,
  .diagnosticos-col-service,
  .diagnosticos-col-type,
  .diagnosticos-col-priority,
  .diagnosticos-col-status,
  .diagnosticos-col-date,
  .diagnosticos-col-actions {
    width: auto;
  }
}

@media (max-width: 760px) {
  .diagnosticos-kpi-grid,
  .diagnosticos-toolbar-bottom {
    grid-template-columns: 1fr;
  }

  .diagnosticos-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .diagnosticos-toolbar-actions,
  .diagnosticos-page-head-actions {
    width: 100%;
  }

  .diagnosticos-toolbar-actions .btn,
  .diagnosticos-page-head-actions .btn {
    width: 100%;
  }

  .diagnosticos-client-copy strong {
    white-space: normal;
  }
}

/* ================================================================
   MARCOS DO PROJETO — REDESIGN 2026 (incremental e isolado)
   ================================================================ */
#project-milestones-page-root .pm-page-shell {
  gap: 18px;
}

#project-milestones-page-root .pm-hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 20px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,246,244,0.92));
  box-shadow: 0 16px 38px rgba(15,54,54,0.06);
}

#project-milestones-page-root .pm-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(90,170,69,0.08), transparent 30%),
              radial-gradient(circle at left center, rgba(26,122,122,0.08), transparent 36%);
  pointer-events: none;
}

#project-milestones-page-root .pm-hero-main,
#project-milestones-page-root .pm-hero-tabs {
  position: relative;
  z-index: 1;
}

#project-milestones-page-root .pm-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#project-milestones-page-root .pm-hero-copy {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

#project-milestones-page-root .pm-hero-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,122,122,0.08);
  border: 1px solid rgba(26,122,122,0.10);
  color: var(--blue);
  flex-shrink: 0;
}

#project-milestones-page-root .pm-hero-icon svg,
#project-milestones-page-root .pm-kpi-icon svg,
#project-milestones-page-root .pm-search-icon svg,
#project-milestones-page-root .pm-milestone-marker-dot svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#project-milestones-page-root .pm-hero-text {
  display: grid;
  gap: 8px;
}

#project-milestones-page-root .pm-hero-text h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}

#project-milestones-page-root .pm-hero-text p {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

#project-milestones-page-root .pm-hero-visual {
  flex: 0 0 min(36vw, 420px);
  display: flex;
  justify-content: flex-end;
  opacity: 0.95;
}

#project-milestones-page-root .pm-hero-illustration-svg,
#project-milestones-page-root .pm-footer-illustration-svg {
  width: 100%;
  height: auto;
}

#project-milestones-page-root .pm-hero-tabs {
  margin-top: 24px;
}

#project-milestones-page-root .pm-tabs {
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(26,122,122,0.10);
  background: rgba(255,255,255,0.82);
  box-shadow: none;
}

#project-milestones-page-root .pm-tab {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 14px;
  color: #5d7272;
}

#project-milestones-page-root .pm-tab.active {
  background: linear-gradient(135deg, #1a7a7a 0%, #126666 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(26,122,122,0.18);
}

#project-milestones-page-root .pm-section-shell {
  gap: 16px;
}

#project-milestones-page-root .pm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

#project-milestones-page-root .pm-stages-kpi-grid,
#project-milestones-page-root .gp-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#project-milestones-page-root .pm-kpi-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(26,122,122,0.10);
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 26px rgba(15,54,54,0.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

#project-milestones-page-root .pm-kpi-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: rgba(26,122,122,0.22);
}

#project-milestones-page-root .pm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15,54,54,0.09);
}

#project-milestones-page-root .pm-kpi-card.active {
  border-color: rgba(26,122,122,0.20);
  box-shadow: 0 18px 36px rgba(15,54,54,0.10);
}

#project-milestones-page-root .pm-kpi-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: rgba(255,255,255,0.66);
  flex-shrink: 0;
}

#project-milestones-page-root .pm-kpi-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#project-milestones-page-root .pm-kpi-label {
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
  color: inherit;
}

#project-milestones-page-root .pm-kpi-value {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}

#project-milestones-page-root .pm-kpi-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

#project-milestones-page-root .pm-kpi-tone-teal {
  color: #16706f;
}
#project-milestones-page-root .pm-kpi-tone-teal::before { background: rgba(26,122,122,0.6); }
#project-milestones-page-root .pm-kpi-tone-teal .pm-kpi-icon { color: #16706f; background: rgba(26,122,122,0.06); }

#project-milestones-page-root .pm-kpi-tone-blue {
  color: #2a6fd8;
}
#project-milestones-page-root .pm-kpi-tone-blue::before { background: rgba(42,111,216,0.70); }
#project-milestones-page-root .pm-kpi-tone-blue .pm-kpi-icon { color: #2a6fd8; background: rgba(42,111,216,0.06); }

#project-milestones-page-root .pm-kpi-tone-red {
  color: #e35656;
}
#project-milestones-page-root .pm-kpi-tone-red::before { background: rgba(227,86,86,0.78); }
#project-milestones-page-root .pm-kpi-tone-red .pm-kpi-icon { color: #e35656; background: rgba(227,86,86,0.06); }

#project-milestones-page-root .pm-kpi-tone-green {
  color: #46a852;
}
#project-milestones-page-root .pm-kpi-tone-green::before { background: rgba(70,168,82,0.74); }
#project-milestones-page-root .pm-kpi-tone-green .pm-kpi-icon { color: #46a852; background: rgba(70,168,82,0.06); }

#project-milestones-page-root .pm-kpi-tone-neutral {
  color: #6a7a88;
}
#project-milestones-page-root .pm-kpi-tone-neutral::before { background: rgba(106,122,136,0.66); }
#project-milestones-page-root .pm-kpi-tone-neutral .pm-kpi-icon { color: #6a7a88; background: rgba(106,122,136,0.06); }

#project-milestones-page-root .pm-filter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-soft);
}

#project-milestones-page-root .pm-filter-grid {
  display: grid;
  gap: 12px;
  flex: 1 1 780px;
  min-width: 0;
}

#project-milestones-page-root .pm-filter-grid--marcos {
  grid-template-columns: minmax(200px, 260px) minmax(220px, 280px) minmax(260px, 1fr);
}

#project-milestones-page-root .pm-filter-grid--stages {
  grid-template-columns: minmax(260px, 1.2fr) minmax(200px, 220px) minmax(200px, 220px);
}

#project-milestones-page-root .pm-filter-field {
  position: relative;
  min-width: 0;
}

#project-milestones-page-root .pm-filter-control {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.12);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  padding: 0 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

#project-milestones-page-root .pm-filter-control:focus {
  border-color: rgba(26,122,122,0.34);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

#project-milestones-page-root .pm-filter-search {
  padding-left: 44px;
}

#project-milestones-page-root .pm-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa2a2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#project-milestones-page-root .pm-search-icon svg {
  width: 18px;
  height: 18px;
}

#project-milestones-page-root .pm-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

#project-milestones-page-root .pm-clear-btn {
  min-width: 104px;
}

#project-milestones-page-root .pm-list-shell,
#project-milestones-page-root .pm-stage-board {
  display: grid;
  gap: 0;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 28px rgba(15,54,54,0.05);
  overflow: hidden;
}

#project-milestones-page-root .pm-table-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

#project-milestones-page-root .pm-milestones-table thead th {
  background: #f8fbfb;
}

#project-milestones-page-root .pm-milestone-row td {
  padding-top: 18px;
  padding-bottom: 18px;
}

#project-milestones-page-root .pm-milestone-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#project-milestones-page-root .pm-milestone-marker {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100%;
}

#project-milestones-page-root .pm-milestone-marker-line {
  position: absolute;
  top: 38px;
  bottom: -20px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(26,122,122,0.14), rgba(26,122,122,0.04));
}

#project-milestones-page-root .pm-milestone-marker.is-last .pm-milestone-marker-line {
  display: none;
}

#project-milestones-page-root .pm-milestone-marker-dot {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26,122,122,0.12);
  background: #f3f8f8;
  color: #4d6a6a;
  z-index: 1;
}

#project-milestones-page-root .pm-milestone-marker-dot.is-pendente {
  background: rgba(42,111,216,0.10);
  color: #2a6fd8;
  border-color: rgba(42,111,216,0.18);
}

#project-milestones-page-root .pm-milestone-marker-dot.is-atrasado {
  background: rgba(227,86,86,0.10);
  color: #e35656;
  border-color: rgba(227,86,86,0.18);
}

#project-milestones-page-root .pm-milestone-marker-dot.is-concluido {
  background: rgba(70,168,82,0.10);
  color: #46a852;
  border-color: rgba(70,168,82,0.18);
}

#project-milestones-page-root .pm-milestone-marker-dot.is-cancelado {
  background: rgba(106,122,136,0.10);
  color: #6a7a88;
  border-color: rgba(106,122,136,0.18);
}

#project-milestones-page-root .pm-milestone-copy,
#project-milestones-page-root .pm-contract-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

#project-milestones-page-root .pm-milestone-title,
#project-milestones-page-root .pm-contract-copy strong {
  font-size: 15px;
  line-height: 1.35;
  color: var(--blue-deep);
}

#project-milestones-page-root .pm-milestone-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#project-milestones-page-root .pm-milestone-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26,122,122,0.08);
  color: #0f6363;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

#project-milestones-page-root .pm-milestone-sub,
#project-milestones-page-root .pm-contract-copy span,
#project-milestones-page-root .pm-milestone-description {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

#project-milestones-page-root .pm-contract-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

#project-milestones-page-root .pm-client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(26,122,122,0.12);
  color: #126666;
  font-size: 12px;
  font-weight: 800;
}

#project-milestones-page-root .pm-date-col {
  text-align: center;
}

#project-milestones-page-root .pm-date-main {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

#project-milestones-page-root .pm-date-main.is-late,
#project-milestones-page-root .pm-date-note.is-late {
  color: #e35656;
}

#project-milestones-page-root .pm-date-main.is-done {
  color: #2f855a;
}

#project-milestones-page-root .pm-date-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

#project-milestones-page-root .pm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#project-milestones-page-root .pm-status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

#project-milestones-page-root .pm-status-pill.is-pendente,
#project-milestones-page-root .pm-status-pill.is-planejada {
  background: rgba(42,111,216,0.10);
  border-color: rgba(42,111,216,0.16);
  color: #2a6fd8;
}

#project-milestones-page-root .pm-status-pill.is-atrasado,
#project-milestones-page-root .pm-status-pill.is-atrasada {
  background: rgba(227,86,86,0.10);
  border-color: rgba(227,86,86,0.16);
  color: #e35656;
}

#project-milestones-page-root .pm-status-pill.is-concluido,
#project-milestones-page-root .pm-status-pill.is-concluida {
  background: rgba(70,168,82,0.10);
  border-color: rgba(70,168,82,0.16);
  color: #46a852;
}

#project-milestones-page-root .pm-status-pill.is-cancelado,
#project-milestones-page-root .pm-status-pill.is-pulada {
  background: rgba(106,122,136,0.10);
  border-color: rgba(106,122,136,0.16);
  color: #6a7a88;
}

#project-milestones-page-root .pm-actions-col {
  text-align: center;
}

#project-milestones-page-root .pm-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

#project-milestones-page-root .pm-footer-band {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid rgba(26,122,122,0.10);
  background: linear-gradient(180deg, rgba(245,249,248,0.92), rgba(239,246,244,0.98));
}

#project-milestones-page-root .pm-footer-copy {
  display: grid;
  gap: 4px;
}

#project-milestones-page-root .pm-footer-copy strong {
  color: var(--blue-deep);
  font-size: 18px;
  line-height: 1.25;
}

#project-milestones-page-root .pm-footer-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#project-milestones-page-root .pm-footer-illustration {
  max-width: 160px;
  opacity: 0.92;
}

#project-milestones-page-root .pm-empty-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 24px;
}

#project-milestones-page-root .pm-empty-inline-copy {
  display: grid;
  gap: 6px;
  max-width: 580px;
}

#project-milestones-page-root .pm-empty-inline-copy strong {
  color: var(--blue-deep);
  font-size: 17px;
}

#project-milestones-page-root .pm-empty-inline-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

#project-milestones-page-root .pm-stage-board-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 92px 104px;
  gap: 14px;
  padding: 16px 18px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid rgba(26,122,122,0.10);
  background: #f8fbfb;
}

#project-milestones-page-root .pm-stage-board-rows {
  display: grid;
}

#project-milestones-page-root .stages-list-row {
  grid-template-columns: 2fr 1fr 1fr 1fr 92px 104px;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(204,222,222,0.45);
  background: transparent;
}

#project-milestones-page-root .stages-list-row:hover {
  background: rgba(26,122,122,0.03);
  border-color: rgba(26,122,122,0.12);
}

#project-milestones-page-root .stages-list-row.selected {
  border-left: 4px solid #1a7a7a;
  background: rgba(26,122,122,0.04);
}

#project-milestones-page-root .stages-list-row.late {
  border-left: 4px solid #e35656;
}

#project-milestones-page-root .stages-row-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-deep);
}

#project-milestones-page-root .stages-row-sub {
  font-size: 12px;
}

#project-milestones-page-root .stages-progress {
  gap: 8px;
}

#project-milestones-page-root .stages-progress-track {
  max-width: 96px;
  height: 7px;
  background: rgba(26,122,122,0.12);
}

#project-milestones-page-root .stages-progress-pct {
  width: 34px;
  font-weight: 700;
  color: var(--text-soft);
}

#project-milestones-page-root .stages-date {
  font-size: 13px;
  font-weight: 700;
}

#project-milestones-page-root .stages-days {
  font-size: 11px;
}

#project-milestones-page-root .stages-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
  border-width: 2px;
}

#project-milestones-page-root .pm-empty-panel {
  padding: 20px;
}

#project-milestones-page-root .pm-stage-detail-grid {
  margin-top: 4px;
}

#project-milestones-page-root .pm-stage-journey-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,249,248,0.96));
}

#project-milestones-page-root .pm-stage-detail-left .pm-stage-detail-header {
  padding: 20px 20px 14px;
}

#project-milestones-page-root .pm-stage-detail-header h3 {
  color: var(--blue-deep);
}

#project-milestones-page-root .pm-stage-list-title {
  padding: 0 20px 4px;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--muted);
}

#project-milestones-page-root .pm-stage-list {
  gap: 0;
}

#project-milestones-page-root .pm-stage-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(204,222,222,0.45);
}

#project-milestones-page-root .pm-stage-item.current {
  background: rgba(26,122,122,0.05);
}

#project-milestones-page-root .pm-stage-item.done {
  background: rgba(70,168,82,0.03);
}

#project-milestones-page-root .pm-stage-note {
  margin-top: 2px;
}

#project-milestones-page-root .pm-stage-summary-card,
#project-milestones-page-root .pm-stage-history-card {
  gap: 8px;
}

#project-milestones-page-root .pm-stage-summary-card h4,
#project-milestones-page-root .pm-stage-history-card h4 {
  margin: 0 0 6px;
  color: var(--blue-deep);
  font-size: 14px;
}

#project-milestones-page-root .pm-stage-history-item {
  border-radius: 14px;
  background: #fff;
}

#project-milestones-page-root .pm-stage-history-empty {
  color: var(--muted);
  font-size: 13px;
}

#project-milestones-page-root .pm-stage-summary-row strong {
  text-align: right;
}

#project-milestones-page-root .table-action-btn.profile {
  color: #6070a7;
}

#project-milestones-page-root .table-action-btn.view {
  color: #5b7284;
}

#project-milestones-page-root .badge.returned {
  background: rgba(227,86,86,0.10);
  color: #e35656;
  border: 1px solid rgba(227,86,86,0.16);
}

#project-milestones-page-root .badge.info {
  background: rgba(42,111,216,0.10);
  color: #2a6fd8;
  border: 1px solid rgba(42,111,216,0.16);
}

@media (max-width: 1260px) {
  #project-milestones-page-root .pm-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #project-milestones-page-root .pm-hero-visual {
    flex-basis: 300px;
  }
}

@media (max-width: 1040px) {
  #project-milestones-page-root .pm-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  #project-milestones-page-root .pm-hero-visual {
    width: 100%;
    flex-basis: auto;
    justify-content: flex-start;
  }

  #project-milestones-page-root .pm-filter-grid--marcos,
  #project-milestones-page-root .pm-filter-grid--stages,
  #project-milestones-page-root .pm-kpi-grid,
  #project-milestones-page-root .pm-stages-kpi-grid,
  #project-milestones-page-root .pm-stage-board-head,
  #project-milestones-page-root .stages-list-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #project-milestones-page-root .pm-footer-band {
    grid-template-columns: 1fr;
    text-align: left;
  }

  #project-milestones-page-root .pm-footer-illustration {
    max-width: 140px;
  }
}

@media (max-width: 760px) {
  #project-milestones-page-root .pm-hero-card {
    padding: 22px 18px 18px;
  }

  #project-milestones-page-root .pm-hero-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  #project-milestones-page-root .pm-filter-card,
  #project-milestones-page-root .pm-filter-actions,
  #project-milestones-page-root .pm-kpi-grid,
  #project-milestones-page-root .pm-stages-kpi-grid,
  #project-milestones-page-root .pm-filter-grid--marcos,
  #project-milestones-page-root .pm-filter-grid--stages,
  #project-milestones-page-root .pm-stage-board-head,
  #project-milestones-page-root .stages-list-row {
    grid-template-columns: 1fr;
  }

  #project-milestones-page-root .pm-filter-actions,
  #project-milestones-page-root .pm-footer-band,
  #project-milestones-page-root .pm-empty-inline {
    justify-content: stretch;
  }

  #project-milestones-page-root .pm-filter-actions .btn,
  #project-milestones-page-root .pm-footer-btn,
  #project-milestones-page-root .pm-empty-inline .btn {
    width: 100%;
  }

  #project-milestones-page-root .pm-stage-board-head {
    display: none;
  }

  #project-milestones-page-root .stages-row-actions {
    justify-content: flex-start;
  }
}

/* ================================================================
   Treinamentos — redesign gerencial da listagem principal
   ================================================================ */
.trainings-page-redesign {
  gap: 18px;
}

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

.trainings-kpi-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,250,0.96));
  border: 1px solid rgba(26,122,122,0.10);
  box-shadow: var(--shadow-soft);
  min-height: 120px;
}

.trainings-kpi-card--total { border-left: 3px solid var(--teal); }
.trainings-kpi-card--presencial { border-left: 3px solid var(--blue); }
.trainings-kpi-card--remoto { border-left: 3px solid #4f46e5; }
.trainings-kpi-card--modulo { border-left: 3px solid #d97706; }
.trainings-kpi-card--tempo { border-left: 3px solid var(--green); }

.trainings-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(26,122,122,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.trainings-kpi-card--remoto .trainings-kpi-icon {
  background: rgba(79,70,229,0.10);
  color: #4f46e5;
}

.trainings-kpi-card--modulo .trainings-kpi-icon {
  background: rgba(217,119,6,0.10);
  color: #b45309;
}

.trainings-kpi-card--tempo .trainings-kpi-icon {
  background: rgba(90,170,69,0.12);
  color: var(--green-deep);
}

.trainings-kpi-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainings-kpi-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.trainings-kpi-copy label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.trainings-kpi-copy strong {
  font-size: 22px;
  line-height: 1.15;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.trainings-kpi-card--modulo .trainings-kpi-copy strong,
.trainings-kpi-card--tempo .trainings-kpi-copy strong {
  font-size: 18px;
}

.trainings-kpi-copy span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.trainings-controls-card {
  gap: 16px;
  padding: 18px 20px;
}

.trainings-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.trainings-controls-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trainings-filters-grid-modern {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.trainings-filter-field {
  display: grid;
  gap: 6px;
}

.trainings-filter-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.trainings-filter-control {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.14);
  background: #fff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.trainings-filter-control:focus {
  border-color: rgba(26,122,122,0.40);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.trainings-filter-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.trainings-clear-btn {
  min-width: 148px;
}

.trainings-table-modern thead th {
  background: #f7fbfa;
}

.trainings-table-modern tbody td {
  padding-top: 18px;
  padding-bottom: 18px;
}

.trainings-row:hover td {
  background: rgba(26,122,122,0.035);
}

.trainings-cell {
  vertical-align: middle;
}

.trainings-client-cell {
  display: grid;
  gap: 4px;
}

.trainings-client-cell strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.trainings-client-cell span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trainings-analyst-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.trainings-analyst-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
  flex-shrink: 0;
}

.trainings-analyst-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.trainings-analyst-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.trainings-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.2;
}

.trainings-chip--type {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.14);
  color: #0f5f73;
}

.trainings-chip--reciclagem {
  background: rgba(79,70,229,0.10);
  border-color: rgba(79,70,229,0.18);
  color: #4338ca;
}

.trainings-chip--novo-usuario {
  background: rgba(26,122,122,0.10);
  border-color: rgba(26,122,122,0.18);
  color: var(--blue-deep);
}

.trainings-chip--novo-recurso {
  background: rgba(217,119,6,0.12);
  border-color: rgba(217,119,6,0.18);
  color: #9a5a05;
}

.trainings-chip--mode {
  min-width: 98px;
}

.trainings-chip--presencial {
  background: rgba(90,170,69,0.12);
  border-color: rgba(90,170,69,0.18);
  color: #4f7d2a;
}

.trainings-chip--remoto {
  background: rgba(3,115,140,0.10);
  border-color: rgba(3,115,140,0.16);
  color: #0f5f73;
}

.trainings-cell--channel {
  color: var(--text-soft);
}

.training-duration-badge {
  min-width: 106px;
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.14);
  color: #0f5f73;
}

.training-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.trainings-table-footer {
  display: flex;
  justify-content: flex-end;
}

.trainings-table-footer-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(26,122,122,0.10);
  background: rgba(255,255,255,0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.trainings-empty-state {
  margin: 18px;
}

@media (max-width: 1240px) {
  .trainings-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trainings-filters-grid-modern {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .trainings-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trainings-controls-top {
    align-items: stretch;
  }

  .trainings-controls-top .trainings-toolbar-search,
  .trainings-controls-top .trainings-controls-actions {
    width: 100%;
  }

  .trainings-controls-top .trainings-controls-actions {
    justify-content: flex-start;
  }

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

  .trainings-table .trainings-col-client,
  .trainings-table .trainings-col-date,
  .trainings-table .trainings-col-type,
  .trainings-table .trainings-col-analyst,
  .trainings-table .trainings-col-mode,
  .trainings-table .trainings-col-channel,
  .trainings-table .trainings-col-duration,
  .trainings-table .trainings-col-actions {
    width: auto;
  }
}

@media (max-width: 640px) {
  .trainings-kpi-grid,
  .trainings-filters-grid-modern {
    grid-template-columns: 1fr;
  }

  .trainings-controls-actions .btn,
  .trainings-filter-actions .btn {
    width: 100%;
  }

  .trainings-filter-actions {
    justify-content: stretch;
  }

  .trainings-kpi-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
  }

  .trainings-kpi-icon {
    width: 44px;
    height: 44px;
  }
}

/* ================================================================
   HOME OPERACIONAL — DASHBOARD / INÍCIO
   ================================================================ */
.dashboard-home-root,
.dashboard-home-shell {
  display: grid;
  gap: 20px;
}

.dashboard-home-fallback-wrap {
  display: grid;
  gap: 16px;
}

.dashboard-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr);
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(26,122,122,0.14);
  background:
    radial-gradient(circle at top right, rgba(125,196,106,0.14), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247,251,250,0.98) 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dashboard-home-hero-main,
.dashboard-home-hero-side,
.dashboard-home-mini-copy,
.dashboard-home-panel-topline > div,
.dashboard-home-panel-wrap,
.dashboard-home-panel-shell,
.dashboard-home-tab-layout,
.dashboard-home-section-stack,
.dashboard-home-section-copy,
.dashboard-home-widget-card,
.dashboard-home-attention-copy,
.dashboard-home-placeholder-item,
.dashboard-home-skeleton-stack {
  display: grid;
}

.dashboard-home-hero-main {
  gap: 12px;
  align-content: start;
}

.dashboard-home-hero-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dashboard-home-eyebrow svg,
.dashboard-home-session-badge::before,
.dashboard-home-mini-icon svg,
.dashboard-home-tab-icon svg,
.dashboard-home-refresh-btn svg,
.dashboard-home-section-icon svg,
.dashboard-home-widget-icon svg,
.dashboard-home-attention-icon svg,
.dashboard-home-summary-ribbon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.dashboard-home-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(46,125,50,0.10);
  border: 1px solid rgba(46,125,50,0.14);
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-home-session-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(46,125,50,0.12);
}

.dashboard-home-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.06;
  font-weight: 800;
  color: var(--text);
}

.dashboard-home-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-home-summary-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: fit-content;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(26,122,122,0.05);
  border: 1px solid rgba(26,122,122,0.12);
  color: var(--text-soft);
}

.dashboard-home-summary-ribbon strong {
  color: var(--blue-deep);
  font-size: 13px;
}

.dashboard-home-summary-ribbon span:last-child {
  font-size: 13px;
  color: var(--muted);
}

.dashboard-home-hero-side {
  gap: 12px;
  align-content: start;
}

.dashboard-home-mini-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(26,122,122,0.10);
  box-shadow: 0 10px 24px rgba(15,54,54,0.05);
}

.dashboard-home-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  background: rgba(26,122,122,0.08);
}

.dashboard-home-mini-copy {
  gap: 3px;
}

.dashboard-home-mini-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-home-mini-value {
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
}

.dashboard-home-tabs-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-home-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-home-tab {
  min-height: 62px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(26,122,122,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.dashboard-home-tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: rgba(26,122,122,0.18);
}

.dashboard-home-tab.is-active {
  background: linear-gradient(135deg, rgba(26,122,122,0.12), rgba(42,153,153,0.08));
  border-color: rgba(26,122,122,0.24);
  color: var(--blue-deep);
}

.dashboard-home-tab-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  background: rgba(26,122,122,0.08);
}

.dashboard-home-tab.is-active .dashboard-home-tab-icon {
  background: rgba(26,122,122,0.14);
}

.dashboard-home-tab-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-home-tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(192,122,0,0.10);
  color: #8a5500;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-home-tab-pill.is-ready {
  background: rgba(46,125,50,0.10);
  color: var(--success);
}

.dashboard-home-panel-wrap {
  gap: 18px;
}

.dashboard-home-panel-shell {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(26,122,122,0.12);
  box-shadow: var(--shadow-card);
}

.dashboard-home-panel-shell.is-loading {
  overflow: hidden;
}

.dashboard-home-tab-layout,
.dashboard-home-panel-topline > div,
.dashboard-home-section-stack,
.dashboard-home-section-copy,
.dashboard-home-widget-card,
.dashboard-home-attention-copy,
.dashboard-home-skeleton-stack {
  gap: 16px;
}

.dashboard-home-panel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dashboard-home-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dashboard-home-panel-title {
  margin: 0;
  font-size: 24px;
  color: var(--text);
}

.dashboard-home-panel-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-home-refresh-btn {
  min-height: 40px;
  padding: 0 16px;
}

.dashboard-home-section-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(26,122,122,0.10);
  background: linear-gradient(180deg, rgba(247,251,250,0.88), rgba(255,255,255,0.98));
}

.dashboard-home-section-head {
  margin-bottom: 16px;
}

.dashboard-home-section-head > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-home-section-icon,
.dashboard-home-widget-icon,
.dashboard-home-attention-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  background: rgba(26,122,122,0.08);
}

.dashboard-home-section-copy {
  gap: 4px;
}

.dashboard-home-section-copy h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.dashboard-home-section-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-home-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-home-widget-card {
  min-height: 170px;
  align-content: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(26,122,122,0.10);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,54,54,0.04);
}

.dashboard-home-widget-card.is-placeholder {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,246,245,0.95));
}

.dashboard-home-widget-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
}

.dashboard-home-widget-value {
  font-size: 22px;
  line-height: 1.15;
  color: var(--text);
}

.dashboard-home-widget-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-home-placeholder-list {
  display: grid;
  gap: 10px;
}

.dashboard-home-placeholder-item {
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.08);
  color: var(--text-soft);
  font-size: 14px;
}

.dashboard-home-placeholder-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.dashboard-home-attention-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(26,122,122,0.06), rgba(90,170,69,0.06));
  border: 1px solid rgba(26,122,122,0.12);
}

.dashboard-home-attention-copy strong {
  font-size: 16px;
  color: var(--text);
}

.dashboard-home-attention-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.dashboard-home-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(226,236,236,0.85) 0%, rgba(244,248,248,0.95) 50%, rgba(226,236,236,0.85) 100%);
}

.dashboard-home-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: dashboard-home-shimmer 1.35s infinite;
}

.dashboard-home-skeleton--hero {
  min-height: 160px;
}

.dashboard-home-skeleton--line {
  height: 18px;
}

.dashboard-home-skeleton--line.short {
  width: 48%;
}

.dashboard-home-skeleton--panel {
  min-height: 220px;
}

@keyframes dashboard-home-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1200px) {
  .dashboard-home-tabs,
  .dashboard-home-widget-grid,
  .dashboard-home-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-home-hero {
    grid-template-columns: 1fr;
  }

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

  .dashboard-home-panel-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-home-refresh-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .dashboard-home-hero,
  .dashboard-home-panel-shell,
  .dashboard-home-section-card {
    padding: 16px;
  }

  .dashboard-home-tabs,
  .dashboard-home-widget-grid,
  .dashboard-home-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-tab {
    min-height: 56px;
  }

  .dashboard-home-mini-indicator,
  .dashboard-home-attention-card {
    padding: 14px;
  }

  .dashboard-home-title {
    font-size: 26px;
  }
}

/* ================================================================
   HOME OPERACIONAL — VISÃO GERAL (ETAPA 2)
   ================================================================ */
.dashboard-home-overview-layout {
  gap: 22px;
}

.dashboard-home-overview-topline {
  margin-bottom: 0;
}

.dashboard-home-overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-home-overview-kpi {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,251,250,0.98) 100%);
  box-shadow: 0 12px 28px rgba(15,54,54,0.06);
  align-content: start;
  overflow: hidden;
}

.dashboard-home-overview-kpi-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-home-overview-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-deep);
  background: rgba(26,122,122,0.10);
}

.dashboard-home-overview-kpi-icon svg,
.dashboard-home-shortcut-icon svg,
.dashboard-home-attention-spot-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-home-overview-kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-home-overview-kpi-value {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
}

.dashboard-home-overview-kpi-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-home-overview-kpi--teal {
  background: linear-gradient(180deg, rgba(26,122,122,0.13) 0%, rgba(255,255,255,0.98) 70%);
}

.dashboard-home-overview-kpi--blue {
  background: linear-gradient(180deg, rgba(42,153,153,0.11) 0%, rgba(255,255,255,0.98) 70%);
}

.dashboard-home-overview-kpi--green {
  background: linear-gradient(180deg, rgba(90,170,69,0.14) 0%, rgba(255,255,255,0.98) 70%);
}

.dashboard-home-overview-kpi--amber {
  background: linear-gradient(180deg, rgba(192,122,0,0.12) 0%, rgba(255,255,255,0.98) 70%);
}

.dashboard-home-overview-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.11);
  background: linear-gradient(180deg, rgba(247,251,250,0.92), rgba(255,255,255,0.99));
}

.dashboard-home-overview-section--attention {
  background:
    radial-gradient(circle at top right, rgba(90,170,69,0.10), transparent 36%),
    linear-gradient(180deg, rgba(247,251,250,0.94), rgba(255,255,255,0.99));
}

.dashboard-home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-home-shortcut-card {
  min-height: 176px;
  width: 100%;
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(26,122,122,0.12);
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(15,54,54,0.05);
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.dashboard-home-shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15,54,54,0.10);
  border-color: rgba(26,122,122,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(246,251,250,0.98));
}

.dashboard-home-shortcut-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  background: rgba(26,122,122,0.10);
}

.dashboard-home-shortcut-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
}

.dashboard-home-shortcut-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.dashboard-home-shortcut-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-home-empty-inline {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(26,122,122,0.20);
  background: rgba(255,255,255,0.82);
}

.dashboard-home-empty-inline strong {
  color: var(--text);
}

.dashboard-home-empty-inline span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-home-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-home-attention-spot {
  display: grid;
  gap: 12px;
  min-height: 208px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(26,122,122,0.12);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15,54,54,0.05);
  align-content: start;
}

.dashboard-home-attention-spot-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-home-attention-spot-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-home-attention-spot-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
}

.dashboard-home-attention-spot-value {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.dashboard-home-attention-spot-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.dashboard-home-attention-spot--risk {
  background: linear-gradient(180deg, rgba(192,57,43,0.10) 0%, rgba(255,255,255,0.98) 72%);
}

.dashboard-home-attention-spot--risk .dashboard-home-attention-spot-icon {
  color: var(--danger);
  background: rgba(192,57,43,0.10);
}

.dashboard-home-attention-spot--warning {
  background: linear-gradient(180deg, rgba(192,122,0,0.10) 0%, rgba(255,255,255,0.98) 72%);
}

.dashboard-home-attention-spot--warning .dashboard-home-attention-spot-icon {
  color: #8a5500;
  background: rgba(192,122,0,0.10);
}

.dashboard-home-attention-spot--neutral {
  background: linear-gradient(180deg, rgba(26,122,122,0.08) 0%, rgba(255,255,255,0.98) 72%);
}

.dashboard-home-attention-spot--neutral .dashboard-home-attention-spot-icon {
  color: var(--blue-deep);
  background: rgba(26,122,122,0.09);
}

.dashboard-home-attention-cta {
  margin-top: auto;
  min-height: 38px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(26,122,122,0.16);
  background: rgba(255,255,255,0.92);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.dashboard-home-attention-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15,54,54,0.08);
  border-color: rgba(26,122,122,0.22);
  background: #fff;
}

@media (max-width: 1200px) {
  .dashboard-home-overview-kpi-grid,
  .dashboard-home-shortcut-grid,
  .dashboard-home-attention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .dashboard-home-tabs-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-home-refresh-btn--tabs {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
  }
}

@media (max-width: 760px) {
  .dashboard-home-overview-kpi-grid,
  .dashboard-home-shortcut-grid,
  .dashboard-home-attention-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-overview-kpi,
  .dashboard-home-shortcut-card,
  .dashboard-home-attention-spot {
    min-height: unset;
  }
}


/* ================================================================
   HOME OPERACIONAL — MINHA AGENDA E TIME (ETAPA 3)
   ================================================================ */
.dashboard-home-agenda-layout,
.dashboard-home-team-layout {
  gap: 22px;
}

.dashboard-home-agenda-topline {
  margin-bottom: 0;
}

.dashboard-home-agenda-grid {
  display: grid;
  gap: 16px;
}

.dashboard-home-agenda-section,
.dashboard-home-team-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.11);
  background: linear-gradient(180deg, rgba(247,251,250,0.92), rgba(255,255,255,0.99));
  box-shadow: 0 12px 28px rgba(15,54,54,0.04);
}

.dashboard-home-agenda-section--today {
  background:
    radial-gradient(circle at top right, rgba(26,122,122,0.08), transparent 34%),
    linear-gradient(180deg, rgba(247,251,250,0.96), rgba(255,255,255,0.99));
}

.dashboard-home-agenda-list,
.dashboard-home-commitment-list,
.dashboard-home-milestone-list,
.dashboard-home-team-load-list,
.dashboard-home-team-overdue-list {
  display: grid;
  gap: 12px;
}

.dashboard-home-agenda-item,
.dashboard-home-commitment-item,
.dashboard-home-milestone-item,
.dashboard-home-team-load-row,
.dashboard-home-team-overdue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(26,122,122,0.10);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 20px rgba(15,54,54,0.04);
}

.dashboard-home-agenda-item-main,
.dashboard-home-agenda-item-head,
.dashboard-home-agenda-item-badges,
.dashboard-home-agenda-item-meta,
.dashboard-home-commitment-main,
.dashboard-home-milestone-item-main,
.dashboard-home-team-load-copy,
.dashboard-home-team-overdue-copy {
  display: grid;
}

.dashboard-home-agenda-item-main,
.dashboard-home-commitment-main,
.dashboard-home-milestone-item-main,
.dashboard-home-team-load-copy,
.dashboard-home-team-overdue-copy {
  gap: 4px;
  min-width: 0;
}

.dashboard-home-agenda-item-main strong,
.dashboard-home-commitment-main strong,
.dashboard-home-milestone-item-main strong,
.dashboard-home-team-load-copy strong,
.dashboard-home-team-overdue-copy strong {
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-home-agenda-item-head {
  gap: 10px;
}

.dashboard-home-agenda-item-badges {
  gap: 8px;
  grid-auto-flow: column;
  justify-content: start;
}

.dashboard-home-agenda-item-meta,
.dashboard-home-commitment-main span,
.dashboard-home-milestone-item-main span,
.dashboard-home-milestone-item-main small,
.dashboard-home-team-load-meta,
.dashboard-home-team-load-foot,
.dashboard-home-team-overdue-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-home-agenda-item-side {
  min-width: 108px;
  text-align: right;
}

.dashboard-home-agenda-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-home-agenda-category,
.dashboard-home-agenda-priority,
.dashboard-home-milestone-proximity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}

.dashboard-home-agenda-category {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.14);
  color: var(--blue-deep);
}

.dashboard-home-agenda-priority--low {
  background: rgba(100,116,139,0.10);
  border-color: rgba(100,116,139,0.16);
  color: #475569;
}

.dashboard-home-agenda-priority--medium {
  background: rgba(192,122,0,0.10);
  border-color: rgba(192,122,0,0.16);
  color: #8a5500;
}

.dashboard-home-agenda-priority--high {
  background: rgba(217,119,6,0.12);
  border-color: rgba(217,119,6,0.18);
  color: #9a5a05;
}

.dashboard-home-agenda-priority--danger {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.20);
  color: var(--danger);
}

.dashboard-home-commitment-item {
  align-items: stretch;
}

.dashboard-home-commitment-date {
  min-width: 124px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
}

.dashboard-home-commitment-date strong {
  font-size: 13px;
  color: inherit;
}

.dashboard-home-commitment-date span {
  font-size: 12px;
  color: rgba(15,84,84,0.78);
}

.dashboard-home-milestone-item {
  align-items: flex-start;
}

.dashboard-home-milestone-item-main small {
  display: block;
}

.dashboard-home-milestone-proximity {
  flex-shrink: 0;
}

.dashboard-home-milestone-proximity--danger {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.18);
  color: var(--danger);
}

.dashboard-home-milestone-proximity--warning {
  background: rgba(192,122,0,0.10);
  border-color: rgba(192,122,0,0.16);
  color: #8a5500;
}

.dashboard-home-milestone-proximity--neutral {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.14);
  color: var(--blue-deep);
}

.dashboard-home-team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.dashboard-home-team-section--load {
  background:
    radial-gradient(circle at top right, rgba(90,170,69,0.10), transparent 36%),
    linear-gradient(180deg, rgba(247,251,250,0.96), rgba(255,255,255,0.99));
}

.dashboard-home-team-load-main,
.dashboard-home-team-load-head,
.dashboard-home-team-load-meta,
.dashboard-home-team-load-foot,
.dashboard-home-team-overdue-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-home-team-load-main,
.dashboard-home-team-overdue-main {
  align-items: flex-start;
}

.dashboard-home-team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.dashboard-home-team-avatar.is-small {
  width: 40px;
  height: 40px;
}

.dashboard-home-team-load-copy {
  flex: 1;
}

.dashboard-home-team-load-head strong {
  font-size: 15px;
}

.dashboard-home-team-load-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-home-team-load-meta,
.dashboard-home-team-load-foot {
  font-size: 12px;
  color: var(--muted);
}

.dashboard-home-team-bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(26,122,122,0.10);
  overflow: hidden;
}

.dashboard-home-team-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dashboard-home-team-bar-fill--safe {
  background: linear-gradient(90deg, #3d7d30 0%, #5aaa45 100%);
}

.dashboard-home-team-bar-fill--warning {
  background: linear-gradient(90deg, #c07a00 0%, #d99b13 100%);
}

.dashboard-home-team-bar-fill--danger {
  background: linear-gradient(90deg, #c0392b 0%, #e05c5c 100%);
}

.dashboard-home-team-overdue-row {
  align-items: center;
}

.dashboard-home-team-overdue-main {
  flex: 1;
}

@media (max-width: 1200px) {
  .dashboard-home-team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-home-agenda-item,
  .dashboard-home-commitment-item,
  .dashboard-home-milestone-item,
  .dashboard-home-team-load-row,
  .dashboard-home-team-overdue-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-home-agenda-item-side,
  .dashboard-home-milestone-proximity {
    min-width: 0;
    text-align: left;
  }

  .dashboard-home-commitment-date {
    min-width: 0;
  }

  .dashboard-home-team-load-head,
  .dashboard-home-team-load-meta,
  .dashboard-home-team-load-foot,
  .dashboard-home-team-overdue-main {
    flex-wrap: wrap;
  }
}


/* ================================================================
   HOME OPERACIONAL — ABA OPERACIONAL + ACABAMENTO FINAL (ETAPA 4)
   ================================================================ */
.dashboard-home-panel-shell {
  overflow: hidden;
}

.dashboard-home-panel-shell.is-loading .dashboard-home-panel-topline {
  margin-bottom: 22px;
}

.dashboard-home-refresh-btn {
  box-shadow: 0 10px 22px rgba(15,54,54,0.05);
}

.dashboard-home-refresh-btn:hover:not(:disabled) {
  box-shadow: 0 14px 26px rgba(15,54,54,0.08);
}

.dashboard-home-empty-inline {
  min-height: 112px;
  align-content: center;
  text-align: center;
}

.dashboard-home-skeleton-grid {
  align-items: stretch;
}

.dashboard-home-skeleton--panel {
  min-height: 220px;
}

.dashboard-home-operational-layout {
  gap: 22px;
}

.dashboard-home-operational-topline {
  margin-bottom: 0;
}

.dashboard-home-operational-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-home-operational-summary {
  display: grid;
  gap: 12px;
  min-height: 216px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,250,0.96));
  box-shadow: 0 14px 30px rgba(15,54,54,0.05);
}

.dashboard-home-operational-summary-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-home-operational-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(26,122,122,0.10);
  color: var(--blue-deep);
}

.dashboard-home-operational-summary-icon svg,
.dashboard-home-operational-status::before,
.dashboard-home-operational-sla::before,
.dashboard-home-operational-delay::before {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-home-operational-summary-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.dashboard-home-operational-summary-value {
  font-size: 34px;
  line-height: 1;
  color: var(--text);
}

.dashboard-home-operational-summary-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-home-operational-summary-cta {
  margin-top: auto;
}

.dashboard-home-operational-summary--warning {
  background: linear-gradient(180deg, rgba(192,122,0,0.10), rgba(255,255,255,0.98) 74%);
}

.dashboard-home-operational-summary--warning .dashboard-home-operational-summary-icon {
  background: rgba(192,122,0,0.10);
  color: #8a5500;
}

.dashboard-home-operational-summary--danger {
  background: linear-gradient(180deg, rgba(192,57,43,0.10), rgba(255,255,255,0.98) 74%);
}

.dashboard-home-operational-summary--danger .dashboard-home-operational-summary-icon {
  background: rgba(192,57,43,0.10);
  color: var(--danger);
}

.dashboard-home-operational-summary--neutral {
  background: linear-gradient(180deg, rgba(26,122,122,0.08), rgba(255,255,255,0.98) 74%);
}

.dashboard-home-operational-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-home-operational-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.11);
  background: linear-gradient(180deg, rgba(247,251,250,0.94), rgba(255,255,255,0.99));
  box-shadow: 0 12px 28px rgba(15,54,54,0.04);
}

.dashboard-home-operational-section--diagnostics {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(192,122,0,0.08), transparent 34%),
    linear-gradient(180deg, rgba(247,251,250,0.96), rgba(255,255,255,0.99));
}

.dashboard-home-operational-list {
  display: grid;
  gap: 12px;
}

.dashboard-home-operational-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(26,122,122,0.10);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 8px 20px rgba(15,54,54,0.04);
}

.dashboard-home-operational-item-main {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.dashboard-home-operational-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-home-operational-item-head strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-home-operational-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-home-operational-item-meta span + span::before {
  content: '•';
  margin-right: 10px;
  color: rgba(58,82,82,0.42);
}

.dashboard-home-operational-status,
.dashboard-home-operational-sla,
.dashboard-home-operational-delay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-home-operational-status--pending {
  background: rgba(192,122,0,0.10);
  border-color: rgba(192,122,0,0.16);
  color: #8a5500;
}

.dashboard-home-operational-status--returned {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.18);
  color: var(--danger);
}

.dashboard-home-operational-status--approved {
  background: rgba(46,125,50,0.10);
  border-color: rgba(46,125,50,0.16);
  color: var(--success);
}

.dashboard-home-operational-status--neutral,
.dashboard-home-operational-sla--safe {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.14);
  color: var(--blue-deep);
}

.dashboard-home-operational-sla--warning,
.dashboard-home-operational-delay--warning {
  background: rgba(192,122,0,0.10);
  border-color: rgba(192,122,0,0.16);
  color: #8a5500;
}

.dashboard-home-operational-sla--danger,
.dashboard-home-operational-delay--danger {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.18);
  color: var(--danger);
}

@media (max-width: 1200px) {
  .dashboard-home-operational-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-home-operational-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-operational-section--diagnostics {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .dashboard-home-operational-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-operational-item {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-home-operational-item-head {
    flex-wrap: wrap;
  }
}


/* ================================================================
   HOME OPERACIONAL — REFINO VISUAL PREMIUM (ETAPA 5)
   ================================================================ */
.dashboard-home-root,
.dashboard-home-shell {
  gap: 24px;
}

.dashboard-home-shell {
  position: relative;
}

.dashboard-home-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 22px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(26,122,122,0.12);
  background:
    radial-gradient(circle at 0% 0%, rgba(26,122,122,0.16), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(125,196,106,0.16), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(245,250,249,0.98) 52%, rgba(239,247,244,0.98) 100%);
  box-shadow:
    0 26px 44px rgba(15,54,54,0.08),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.dashboard-home-hero::before,
.dashboard-home-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.dashboard-home-hero::before {
  inset: auto auto -68px -84px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,122,122,0.10), transparent 68%);
}

.dashboard-home-hero::after {
  top: 18px;
  right: 26px;
  width: 170px;
  height: 170px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.22);
  transform: rotate(10deg);
  opacity: 0.72;
}

.dashboard-home-hero-main {
  gap: 16px;
  padding-right: 14px;
}

.dashboard-home-hero-copy {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.dashboard-home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-home-title {
  font-size: clamp(32px, 3.2vw, 42px);
  letter-spacing: -0.04em;
}

.dashboard-home-subtitle {
  max-width: 640px;
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-home-eyebrow {
  padding: 8px 14px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(26,122,122,0.12);
  box-shadow: 0 8px 18px rgba(15,54,54,0.04);
}

.dashboard-home-session-badge {
  padding: 8px 14px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 8px 18px rgba(15,54,54,0.04);
}

.dashboard-home-summary-ribbon {
  position: relative;
  align-items: flex-start;
  gap: 12px;
  width: min(100%, 620px);
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.60)),
    rgba(26,122,122,0.06);
  border: 1px solid rgba(26,122,122,0.12);
  box-shadow:
    0 18px 28px rgba(15,54,54,0.05),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

.dashboard-home-summary-ribbon > span:first-child {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  background: rgba(26,122,122,0.10);
  flex-shrink: 0;
}

.dashboard-home-summary-ribbon strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.dashboard-home-summary-ribbon span:last-child {
  flex: 1;
  min-width: 0;
  line-height: 1.55;
}

.dashboard-home-hero-side {
  gap: 16px;
  align-content: start;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.50)),
    rgba(255,255,255,0.32);
  border: 1px solid rgba(26,122,122,0.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    0 14px 24px rgba(15,54,54,0.05);
}

.dashboard-home-hero-side-head {
  display: grid;
  gap: 4px;
}

.dashboard-home-hero-side-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-home-hero-side-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-home-mini-grid {
  display: grid;
  gap: 12px;
}

.dashboard-home-mini-indicator {
  position: relative;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(26,122,122,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,251,250,0.96));
  box-shadow:
    0 14px 24px rgba(15,54,54,0.05),
    inset 0 1px 0 rgba(255,255,255,0.86);
  overflow: hidden;
}

.dashboard-home-mini-indicator::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: inherit;
  background: rgba(26,122,122,0.24);
}

.dashboard-home-mini-indicator--blue::before {
  background: linear-gradient(180deg, rgba(15,84,84,0.95), rgba(26,122,122,0.44));
}

.dashboard-home-mini-indicator--teal::before {
  background: linear-gradient(180deg, rgba(35,148,148,0.95), rgba(26,122,122,0.40));
}

.dashboard-home-mini-indicator--amber::before {
  background: linear-gradient(180deg, rgba(192,122,0,0.95), rgba(192,122,0,0.42));
}

.dashboard-home-mini-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26,122,122,0.10), rgba(26,122,122,0.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.dashboard-home-mini-copy {
  gap: 6px;
}

.dashboard-home-mini-value-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-home-mini-label {
  font-size: 10px;
  letter-spacing: 0.14em;
}

.dashboard-home-mini-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dashboard-home-mini-caption {
  color: rgba(58,82,82,0.72);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-home-tabs-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(26,122,122,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,252,251,0.96));
  box-shadow:
    0 20px 34px rgba(15,54,54,0.05),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.dashboard-home-tabs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-home-tabs-copy {
  display: grid;
  gap: 4px;
}

.dashboard-home-tabs-eyebrow {
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-home-tabs-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-home-tabs {
  gap: 12px;
}

.dashboard-home-tab {
  position: relative;
  min-height: 72px;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(26,122,122,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(247,251,250,0.96));
  box-shadow:
    0 12px 24px rgba(15,54,54,0.04),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.dashboard-home-tab-accent {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: rgba(26,122,122,0.16);
  opacity: 0;
  transition: opacity .18s ease;
}

.dashboard-home-tab:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,252,251,0.98));
}

.dashboard-home-tab:hover .dashboard-home-tab-accent,
.dashboard-home-tab.is-active .dashboard-home-tab-accent {
  opacity: 1;
}

.dashboard-home-tab.is-active {
  border-color: rgba(26,122,122,0.18);
  background:
    linear-gradient(180deg, rgba(26,122,122,0.10), rgba(255,255,255,0.96));
  box-shadow:
    0 18px 30px rgba(15,54,54,0.07),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.dashboard-home-tab-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.dashboard-home-tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.dashboard-home-tab-meta {
  color: rgba(58,82,82,0.70);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-home-tab-pill {
  padding: 6px 9px;
  font-size: 9px;
  letter-spacing: 0.10em;
}

.dashboard-home-panel-shell {
  position: relative;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(26,122,122,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,252,251,0.98));
  box-shadow:
    0 28px 44px rgba(15,54,54,0.06),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

.dashboard-home-panel-shell::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 68px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(26,122,122,0.04), rgba(26,122,122,0));
  pointer-events: none;
}

.dashboard-home-panel-topline {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.dashboard-home-panel-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--blue-deep);
}

.dashboard-home-panel-title {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.dashboard-home-panel-description {
  max-width: 860px;
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-home-refresh-btn {
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(26,122,122,0.12);
  color: var(--blue-deep);
}

.dashboard-home-inline-alert .alert {
  padding: 14px 16px;
  border-radius: 18px;
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.50);
}

.dashboard-home-section-card,
.dashboard-home-overview-section,
.dashboard-home-agenda-section,
.dashboard-home-team-section,
.dashboard-home-operational-section,
.dashboard-home-operational-summary {
  position: relative;
  overflow: hidden;
}

.dashboard-home-section-card::after,
.dashboard-home-overview-section::after,
.dashboard-home-agenda-section::after,
.dashboard-home-team-section::after,
.dashboard-home-operational-section::after,
.dashboard-home-operational-summary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent 22%);
  pointer-events: none;
}

.dashboard-home-section-card,
.dashboard-home-overview-section,
.dashboard-home-agenda-section,
.dashboard-home-team-section,
.dashboard-home-operational-section {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(26,122,122,0.09);
  box-shadow:
    0 16px 26px rgba(15,54,54,0.04),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.dashboard-home-section-head {
  margin-bottom: 18px;
}

.dashboard-home-section-head > div {
  gap: 14px;
}

.dashboard-home-section-icon,
.dashboard-home-widget-icon,
.dashboard-home-attention-icon,
.dashboard-home-operational-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
}

.dashboard-home-section-copy h4 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.dashboard-home-section-copy p {
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-home-skeleton-grid {
  gap: 16px;
}

.dashboard-home-skeleton {
  border-radius: 20px;
}

.dashboard-home-skeleton--hero {
  min-height: 160px;
}

.dashboard-home-skeleton--panel {
  min-height: 250px;
}

.dashboard-home-overview-kpi {
  min-height: 196px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.09);
  box-shadow:
    0 18px 30px rgba(15,54,54,0.05),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.dashboard-home-overview-kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: inherit;
  background: rgba(26,122,122,0.20);
}

.dashboard-home-overview-kpi-top {
  gap: 14px;
}

.dashboard-home-overview-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.dashboard-home-overview-kpi-label {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.dashboard-home-overview-kpi-value {
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.dashboard-home-overview-kpi-note {
  max-width: 90%;
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-home-overview-kpi--teal,
.dashboard-home-overview-kpi--blue,
.dashboard-home-overview-kpi--green,
.dashboard-home-overview-kpi--amber {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,250,0.98));
}

.dashboard-home-overview-kpi--teal::before {
  background: linear-gradient(180deg, rgba(35,148,148,0.95), rgba(35,148,148,0.42));
}

.dashboard-home-overview-kpi--blue::before {
  background: linear-gradient(180deg, rgba(15,84,84,0.95), rgba(15,84,84,0.40));
}

.dashboard-home-overview-kpi--green::before {
  background: linear-gradient(180deg, rgba(61,125,48,0.95), rgba(61,125,48,0.38));
}

.dashboard-home-overview-kpi--amber::before {
  background: linear-gradient(180deg, rgba(192,122,0,0.95), rgba(192,122,0,0.38));
}

.dashboard-home-shortcut-card {
  min-height: 176px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,250,0.96));
  box-shadow:
    0 16px 28px rgba(15,54,54,0.04),
    inset 0 1px 0 rgba(255,255,255,0.78);
  text-align: left;
}

.dashboard-home-shortcut-card:hover {
  box-shadow:
    0 22px 34px rgba(15,54,54,0.07),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.dashboard-home-shortcut-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.dashboard-home-shortcut-title {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.dashboard-home-shortcut-description {
  line-height: 1.6;
}

.dashboard-home-shortcut-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.dashboard-home-shortcut-cta-icon,
.dashboard-home-attention-cta-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.dashboard-home-shortcut-cta-icon svg,
.dashboard-home-attention-cta-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-home-attention-grid {
  gap: 16px;
}

.dashboard-home-attention-spot {
  min-height: 212px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.09);
  box-shadow:
    0 18px 30px rgba(15,54,54,0.05),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.dashboard-home-attention-spot-top {
  margin-bottom: 6px;
}

.dashboard-home-attention-spot-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.dashboard-home-attention-spot-label {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.dashboard-home-attention-spot-value {
  font-size: 38px;
  letter-spacing: -0.05em;
}

.dashboard-home-attention-spot-text {
  line-height: 1.65;
}

.dashboard-home-attention-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(26,122,122,0.12);
  color: var(--blue-deep);
  box-shadow: 0 10px 18px rgba(15,54,54,0.04);
}

.dashboard-home-attention-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(15,54,54,0.06);
}

.dashboard-home-empty-inline {
  min-height: 154px;
  place-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26,122,122,0.09);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(247,251,250,0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    0 14px 24px rgba(15,54,54,0.03);
}

.dashboard-home-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  background: rgba(26,122,122,0.08);
}

.dashboard-home-empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-home-empty-copy {
  display: grid;
  gap: 5px;
  justify-items: center;
  max-width: 420px;
  text-align: center;
}

.dashboard-home-empty-kicker {
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-home-empty-inline strong {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.dashboard-home-empty-inline span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-home-agenda-item,
.dashboard-home-commitment-item,
.dashboard-home-milestone-item,
.dashboard-home-team-load-row,
.dashboard-home-team-overdue-row,
.dashboard-home-operational-item {
  position: relative;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(26,122,122,0.09);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,252,251,0.97));
  box-shadow:
    0 14px 24px rgba(15,54,54,0.04),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.dashboard-home-agenda-item::before,
.dashboard-home-commitment-item::before,
.dashboard-home-milestone-item::before,
.dashboard-home-team-load-row::before,
.dashboard-home-team-overdue-row::before,
.dashboard-home-operational-item::before {
  content: '';
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(26,122,122,0.16);
}

.dashboard-home-agenda-time,
.dashboard-home-commitment-date,
.dashboard-home-operational-status,
.dashboard-home-operational-sla,
.dashboard-home-operational-delay,
.dashboard-home-agenda-category,
.dashboard-home-agenda-priority,
.dashboard-home-milestone-proximity,
.dashboard-home-team-load-head span {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.dashboard-home-agenda-item-main strong,
.dashboard-home-commitment-main strong,
.dashboard-home-milestone-item-main strong,
.dashboard-home-team-load-copy strong,
.dashboard-home-team-overdue-copy strong,
.dashboard-home-operational-item-head strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.dashboard-home-agenda-item-meta,
.dashboard-home-commitment-main span,
.dashboard-home-milestone-item-main span,
.dashboard-home-milestone-item-main small,
.dashboard-home-team-load-meta,
.dashboard-home-team-load-foot,
.dashboard-home-team-overdue-copy span,
.dashboard-home-operational-item-meta {
  line-height: 1.6;
}

.dashboard-home-team-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 10px 20px rgba(15,54,54,0.08);
}

.dashboard-home-team-bar {
  height: 13px;
  background: rgba(26,122,122,0.10);
  box-shadow: inset 0 1px 2px rgba(15,54,54,0.06);
}

.dashboard-home-team-bar-fill {
  box-shadow: 0 6px 12px rgba(15,54,54,0.08);
}

.dashboard-home-team-load-head span {
  min-height: 30px;
  padding: 0 12px;
}

.dashboard-home-operational-summary {
  min-height: 228px;
  padding: 20px;
  border-radius: 24px;
}

.dashboard-home-operational-summary-value {
  font-size: 40px;
  letter-spacing: -0.05em;
}

.dashboard-home-operational-summary-note {
  line-height: 1.65;
}

.dashboard-home-operational-item-head {
  align-items: flex-start;
}

@media (max-width: 1200px) {
  .dashboard-home-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-home-hero-main {
    padding-right: 0;
  }

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

  .dashboard-home-mini-grid,
  .dashboard-home-operational-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-home-panel-shell {
    padding: 22px;
    border-radius: 24px;
  }

  .dashboard-home-title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .dashboard-home-overview-kpi-grid,
  .dashboard-home-shortcut-grid,
  .dashboard-home-attention-grid,
  .dashboard-home-operational-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-tabs {
    grid-template-columns: 1fr;
  }

  .dashboard-home-tab {
    min-height: 68px;
  }

  .dashboard-home-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-home-hero,
  .dashboard-home-tabs-shell,
  .dashboard-home-panel-shell {
    padding: 18px;
    border-radius: 22px;
  }

  .dashboard-home-summary-ribbon {
    width: 100%;
  }

  .dashboard-home-mini-value-row {
    align-items: center;
  }

  .dashboard-home-panel-title {
    font-size: 24px;
  }

  .dashboard-home-section-card,
  .dashboard-home-overview-section,
  .dashboard-home-agenda-section,
  .dashboard-home-team-section,
  .dashboard-home-operational-section,
  .dashboard-home-operational-summary {
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-home-empty-inline {
    min-height: 136px;
  }

  .dashboard-home-attention-spot,
  .dashboard-home-shortcut-card,
  .dashboard-home-overview-kpi {
    min-height: unset;
  }
}

/* ================================================================
   HOME OPERACIONAL — REFINO A PARTIR DA BASE ESTÁVEL
   Escopo restrito à Home. Não altera sidebar nem outras telas.
   ================================================================ */
.content:has(#dashboard-home-root) > .topbar,
.content:has(#dashboard-home-root) > .pill {
  display: none;
}

.content:has(#dashboard-home-root) {
  padding-top: 22px;
}

#dashboard-home-root {
  max-width: 1360px;
}

.dashboard-home-root,
.dashboard-home-shell {
  gap: 24px;
}

.dashboard-home-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.9fr);
  gap: 20px;
  padding: 6px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.dashboard-home-hero-main {
  padding: 0 4px;
  gap: 12px;
}

.dashboard-home-hero-copy,
.dashboard-home-hero-greeting-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dashboard-home-greeting-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f4a300;
  flex-shrink: 0;
}

.dashboard-home-greeting-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.dashboard-home-title {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #18324d;
}

.dashboard-home-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: #6e7f93;
}

.dashboard-home-hero-side {
  align-content: start;
}

.dashboard-home-mini-grid--header {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.dashboard-home-mini-indicator,
.dashboard-home-session-card {
  min-height: 94px;
  padding: 18px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dfe7ee;
  box-shadow: 0 10px 24px rgba(14, 30, 51, 0.05);
}

.dashboard-home-mini-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-home-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #edf4ff;
  color: #2563eb;
}

.dashboard-home-mini-indicator--teal .dashboard-home-mini-icon {
  background: #e9f8f4;
  color: #169c7d;
}

.dashboard-home-mini-indicator--amber .dashboard-home-mini-icon {
  background: #fff3e7;
  color: #d97706;
}

.dashboard-home-mini-copy {
  gap: 6px;
}

.dashboard-home-mini-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #6e7f93;
}

.dashboard-home-mini-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #18324d;
}

.dashboard-home-session-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-home-session-badge {
  min-height: 46px;
  padding: 0 18px;
  background: #f5fbf7;
  border: 1px solid #d8ebdd;
  color: #2f8f4e;
}

.dashboard-home-tabs-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid #dde5ec;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(14, 30, 51, 0.04);
  overflow: hidden;
}

.dashboard-home-tabs {
  width: auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.dashboard-home-tab {
  min-height: 64px;
  flex: 1 1 0;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #e8eef4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #5f7086;
  position: relative;
}

.dashboard-home-tab:last-child { border-right: 0; }
.dashboard-home-tab:hover {
  transform: none;
  box-shadow: none;
  background: #f8fbff;
  color: #23405f;
}

.dashboard-home-tab.is-active {
  background: #ffffff;
  color: #2563eb;
}

.dashboard-home-tab.is-active::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #2563eb;
}

.dashboard-home-tab-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
}
.dashboard-home-tab-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-home-tab-label {
  flex: initial;
  font-size: 16px;
  font-weight: 700;
}

.dashboard-home-tab-meta,
.dashboard-home-tab-pill,
.dashboard-home-tab-accent,
.dashboard-home-hero-kicker,
.dashboard-home-summary-ribbon,
.dashboard-home-hero-side-head,
.dashboard-home-eyebrow {
  display: none !important;
}

.dashboard-home-panel-shell {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid #dde5ec;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(14, 30, 51, 0.05);
}

.dashboard-home-panel-shell::before { display: none; }

.dashboard-home-panel-topline {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.dashboard-home-panel-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8c9aae;
}

.dashboard-home-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: #18324d;
}

.dashboard-home-panel-description {
  font-size: 14px;
  color: #708196;
}

.dashboard-home-refresh-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d9e3eb;
  color: #48627f;
  box-shadow: none;
}

.dashboard-home-refresh-btn--tabs {
  flex-shrink: 0;
  align-self: center;
  margin: 10px;
  white-space: nowrap;
}

.dashboard-home-overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-home-overview-kpi {
  min-height: 152px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid #dfe7ee;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-home-overview-kpi-top {
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-home-overview-kpi-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #edf4ff;
  color: #2563eb;
}
.dashboard-home-overview-kpi--green .dashboard-home-overview-kpi-icon,
.dashboard-home-overview-kpi--teal .dashboard-home-overview-kpi-icon { background:#e9f8f4; color:#169c7d; }
.dashboard-home-overview-kpi--purple .dashboard-home-overview-kpi-icon { background:#f2ebff; color:#7c3aed; }
.dashboard-home-overview-kpi--amber .dashboard-home-overview-kpi-icon { background:#fff3e7; color:#d97706; }

.dashboard-home-overview-kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: #364b63;
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-home-overview-kpi-value {
  font-size: 26px;
  line-height: 1;
  color: #0f2740;
}

.dashboard-home-overview-kpi-note {
  font-size: 13px;
  color: #7b8a9b;
}

.dashboard-home-overview-section,
.dashboard-home-agenda-section,
.dashboard-home-team-section,
.dashboard-home-operational-section {
  padding: 18px;
  border: 1px solid #e2e9f0;
  border-radius: 20px;
  background: #ffffff;
}

.dashboard-home-section-head { margin-bottom: 14px; }
.dashboard-home-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #edf4ff;
  color: #2563eb;
}

.dashboard-home-section-copy h4 { font-size: 17px; color: #18324d; }
.dashboard-home-section-copy p { font-size: 13px; color: #74869a; }

.dashboard-home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-home-shortcut-card {
  min-height: 132px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #dde6ee;
  background: #ffffff;
  box-shadow: none;
  align-content: start;
}

.dashboard-home-shortcut-card:hover {
  transform: translateY(-2px);
  border-color: #bfd0e1;
  box-shadow: 0 12px 24px rgba(14,30,51,.06);
}

.dashboard-home-shortcut-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #ebf7f6;
  color: var(--blue);
}

.dashboard-home-shortcut-title { font-size: 16px; color: #18324d; }
.dashboard-home-shortcut-description { font-size: 13px; color: #6f8194; line-height: 1.5; }
.dashboard-home-shortcut-cta { margin-top: auto; color: #5a6d83; }

.dashboard-home-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-home-attention-spot {
  min-height: 150px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e4e9ef;
  background: #fff;
  box-shadow: none;
}
.dashboard-home-attention-spot--danger { border-left: 4px solid #ef4444; background:#fff9f9; }
.dashboard-home-attention-spot--warning { border-left: 4px solid #f59e0b; background:#fffaf2; }
.dashboard-home-attention-spot--info { border-left: 4px solid #2563eb; background:#f8fbff; }

.dashboard-home-attention-spot-icon {
  width: 56px; height: 56px; border-radius: 18px;
}
.dashboard-home-attention-spot-value { font-size: 34px; color: #0f2740; }
.dashboard-home-attention-spot-text { font-size: 13px; color: #728397; }
.dashboard-home-attention-cta {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #dbe4ec;
  background: #fff;
  color: #35506e;
  font-weight: 700;
}

.dashboard-home-agenda-grid,
.dashboard-home-team-grid,
.dashboard-home-operational-grid {
  display: grid;
  gap: 18px;
}

.dashboard-home-agenda-item,
.dashboard-home-commitment-item,
.dashboard-home-milestone-item {
  min-height: 68px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #e6edf3;
  background: #ffffff;
}

.dashboard-home-agenda-item-head,
.dashboard-home-commitment-item,
.dashboard-home-milestone-item {
  align-items: center;
}

.dashboard-home-agenda-item strong,
.dashboard-home-commitment-main strong,
.dashboard-home-milestone-item-main strong { color:#18324d; font-size:16px; }
.dashboard-home-agenda-item-meta,
.dashboard-home-commitment-main span,
.dashboard-home-milestone-item-main span,
.dashboard-home-milestone-item-main small { color:#728397; }
.dashboard-home-agenda-time,
.dashboard-home-commitment-date strong,
.dashboard-home-milestone-proximity { font-weight:700; }

.dashboard-home-agenda-priority,
.dashboard-home-agenda-category,
.dashboard-home-operational-status,
.dashboard-home-operational-sla,
.dashboard-home-operational-delay,
.dashboard-home-team-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.dashboard-home-team-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
}

.dashboard-home-team-load-list,
.dashboard-home-team-overdue-list {
  display: grid;
  gap: 0;
  border: 1px solid #e6edf3;
  border-radius: 18px;
  overflow: hidden;
}

.dashboard-home-team-load-row,
.dashboard-home-team-overdue-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}
.dashboard-home-team-load-row:last-child,
.dashboard-home-team-overdue-row:last-child { border-bottom: 0; }

.dashboard-home-team-load-row {
  grid-template-columns: 26px 48px minmax(0, 1fr);
}
.dashboard-home-team-rank { font-weight: 800; color:#5d7088; text-align:center; }
.dashboard-home-team-avatar { width: 44px; height: 44px; border-radius: 999px; font-size: 18px; }
.dashboard-home-team-load-head {
  display: flex; align-items:flex-start; justify-content:space-between; gap:16px;
}
.dashboard-home-team-load-head strong,
.dashboard-home-team-overdue-copy strong { display:block; font-size:16px; color:#17324d; }
.dashboard-home-team-load-head span,
.dashboard-home-team-overdue-copy span { font-size:13px; color:#77879b; }
.dashboard-home-team-load-pct { font-size: 18px !important; font-weight: 800; color:#1f8f4d; }
.dashboard-home-team-load-barline { display:grid; grid-template-columns: minmax(0,1fr) auto; align-items:center; gap:12px; }
.dashboard-home-team-bar { height: 8px; border-radius: 999px; background:#e8edf2; overflow:hidden; }
.dashboard-home-team-bar-fill { border-radius:999px; }
.dashboard-home-team-bar-fill--safe { background:#34a853; }
.dashboard-home-team-bar-fill--attention,
.dashboard-home-team-bar-fill--warning { background:#f59e0b; }
.dashboard-home-team-bar-fill--critical,
.dashboard-home-team-bar-fill--danger { background:#ef4444; }
.dashboard-home-team-load-hours { font-size:13px; color:#5f7188; white-space:nowrap; }
.dashboard-home-team-legend {
  display:flex; gap:22px; flex-wrap:wrap; padding:16px 8px 0; color:#6b7c91; font-size:13px;
}
.dashboard-home-team-legend span { display:flex; align-items:center; gap:8px; }
.dashboard-home-team-legend small { color:#7f90a2; }
.dashboard-home-team-legend i { width:10px; height:10px; border-radius:50%; display:inline-block; }
.dashboard-home-team-legend i.is-safe { background:#34a853; }
.dashboard-home-team-legend i.is-warning { background:#f59e0b; }
.dashboard-home-team-legend i.is-critical { background:#ef4444; }

.dashboard-home-team-overdue-row { grid-template-columns: minmax(0,1fr) auto auto auto; }
.dashboard-home-team-overdue-main { display:flex; align-items:center; gap:14px; min-width:0; }
.dashboard-home-team-avatar.is-small { width: 48px; height: 48px; font-size: 18px; }
.dashboard-home-team-overdue-count { text-align:center; min-width:72px; }
.dashboard-home-team-overdue-count strong { display:block; font-size:24px; line-height:1; color:#e45b4f; }
.dashboard-home-team-overdue-count span { font-size:13px; color:#6f8194; }
.dashboard-home-team-state--safe { background:#eff9f1; border-color:#d6ecd9; color:#2f8f4e; }
.dashboard-home-team-state--warning { background:#fff5eb; border-color:#f3d1a5; color:#c87419; }
.dashboard-home-team-state--critical { background:#fff0f0; border-color:#f3c5c5; color:#d74d4d; }

.dashboard-home-operational-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-home-operational-summary {
  min-height: 140px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e1e8ef;
  background: #fff;
  box-shadow: none;
}
.dashboard-home-operational-summary-top { align-items:center; gap:14px; }
.dashboard-home-operational-summary-icon { width:58px; height:58px; border-radius:18px; }
.dashboard-home-operational-summary-value { display:block; margin-top:6px; font-size:40px; line-height:1; color:#17324d; }
.dashboard-home-operational-summary-note { font-size:13px; color:#73859a; }
.dashboard-home-operational-sparkline { display:block; height:34px; border-radius:999px; background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(37,99,235,.12) 40%, rgba(37,99,235,.12) 44%, transparent 44%), linear-gradient(135deg, rgba(37,99,235,.0) 0 12%, rgba(37,99,235,.75) 12% 15%, rgba(37,99,235,.0) 15% 24%, rgba(37,99,235,.75) 24% 28%, rgba(37,99,235,.0) 28% 38%, rgba(37,99,235,.75) 38% 44%, rgba(37,99,235,.0) 44% 54%, rgba(37,99,235,.75) 54% 60%, rgba(37,99,235,.0) 60% 100%);
  opacity:.65;
}
.dashboard-home-operational-summary--warning .dashboard-home-operational-sparkline { filter:hue-rotate(-30deg); }
.dashboard-home-operational-summary--danger .dashboard-home-operational-sparkline { filter:hue-rotate(-80deg); }

.dashboard-home-operational-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-home-operational-list {
  display:grid;
  gap:0;
  border:1px solid #e6edf3;
  border-radius:18px;
  overflow:hidden;
}
.dashboard-home-operational-list-head,
.dashboard-home-operational-item {
  display:grid;
  grid-template-columns: 1.2fr 1fr auto auto;
  gap:14px;
  align-items:center;
}
.dashboard-home-operational-list-head {
  padding: 14px 16px;
  background:#f8fbff;
  border-bottom:1px solid #e6edf3;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#7a8ca1;
}
.dashboard-home-operational-item {
  padding: 16px;
  border-bottom:1px solid #edf2f7;
  background:#fff;
}
.dashboard-home-operational-item:last-child { border-bottom:0; }
.dashboard-home-operational-col { font-size:14px; color:#5f7288; }
.dashboard-home-operational-col.is-primary { font-weight:700; color:#17324d; }
.dashboard-home-operational-col.is-end,
.dashboard-home-operational-list-head .is-end { justify-self:end; text-align:right; }

.dashboard-home-empty-inline {
  min-height: 120px;
  padding: 22px;
  border-radius: 16px;
  border: 1px dashed #d7e2ec;
  background: #fbfdff;
}
.dashboard-home-empty-kicker { font-size: 11px; letter-spacing:.08em; color:#90a0b2; }
.dashboard-home-empty-copy strong,
.dashboard-home-empty-copy h4 { color:#17324d; }

@media (max-width: 1280px) {
  .dashboard-home-mini-grid--header { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-home-overview-kpi-grid,
  .dashboard-home-shortcut-grid,
  .dashboard-home-attention-grid,
  .dashboard-home-operational-summary-grid,
  .dashboard-home-operational-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .dashboard-home-hero,
  .dashboard-home-team-grid,
  .dashboard-home-operational-grid,
  .dashboard-home-overview-kpi-grid,
  .dashboard-home-shortcut-grid,
  .dashboard-home-attention-grid,
  .dashboard-home-operational-summary-grid { grid-template-columns: 1fr; }

  .dashboard-home-tabs { flex-wrap: wrap; }
  .dashboard-home-tab { flex: 1 1 48%; border-bottom: 1px solid #e8eef4; }
  .dashboard-home-tab:nth-child(2n) { border-right: 0; }
  .dashboard-home-team-overdue-row,
  .dashboard-home-operational-list-head,
  .dashboard-home-operational-item { grid-template-columns: 1fr; }
  .dashboard-home-operational-col.is-end,
  .dashboard-home-operational-list-head .is-end { justify-self:start; text-align:left; }
}

@media (max-width: 640px) {
  .content:has(#dashboard-home-root) { padding: 16px; }
  .dashboard-home-title { font-size: 32px; }
  .dashboard-home-mini-grid--header { grid-template-columns: 1fr; }
  .dashboard-home-tabs { display:grid; grid-template-columns:1fr 1fr; }
  .dashboard-home-tab { min-height: 56px; }
}

/* ================================================================
   HOME — VISÃO GERAL (AJUSTE VISUAL APROVADO)
   Escopo isolado na Home e com foco na aba Visão Geral.
   ================================================================ */
#dashboard-home-root {
  max-width: 1320px;
}

.dashboard-home-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(560px, 0.92fr);
  gap: 22px;
}

.dashboard-home-hero-main {
  align-content: center;
  min-height: 120px;
}

.dashboard-home-hero-copy,
.dashboard-home-hero-greeting-row {
  align-items: center;
}

.dashboard-home-greeting-copy {
  display: grid;
  gap: 6px;
}

.dashboard-home-greeting-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(180deg, #e9f7f3 0%, #eff8f5 100%);
  color: #14846a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.dashboard-home-greeting-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}

.dashboard-home-title {
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #0f3150;
}

.dashboard-home-subtitle {
  margin-top: 0;
  font-size: 15px;
  font-weight: 500;
  color: #6d7f93;
}

.dashboard-home-mini-grid--header {
  gap: 14px;
}

.dashboard-home-mini-indicator,
.dashboard-home-session-card {
  min-height: 104px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid #e3eaf0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
  box-shadow: 0 10px 26px rgba(14, 30, 51, 0.045);
}

.dashboard-home-mini-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

.dashboard-home-mini-copy {
  gap: 4px;
}

.dashboard-home-mini-label {
  font-size: 13px;
  font-weight: 700;
  color: #42556b;
}

.dashboard-home-mini-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f2740;
}

.dashboard-home-mini-helper {
  font-size: 12px;
  color: #73869a;
  font-weight: 600;
}

.dashboard-home-session-card {
  align-items: center;
  justify-content: flex-start;
  padding-inline: 20px;
}

.dashboard-home-session-card-copy {
  display: grid;
  gap: 12px;
  width: 100%;
}

.dashboard-home-session-label {
  font-size: 13px;
  font-weight: 700;
  color: #4d6073;
}

.dashboard-home-session-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef9f1;
  border: 1px solid #d9ebdc;
  color: #2f8f4e;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-home-session-status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(47, 143, 78, 0.10);
}

.dashboard-home-tabs-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
}

.dashboard-home-tabs {
  flex: 1 1 auto;
}

.dashboard-home-tab {
  min-height: 66px;
  justify-content: flex-start;
  padding: 0 22px;
  color: #3f5368;
}

.dashboard-home-tab:hover {
  background: #fbfcfd;
}

.dashboard-home-tab.is-active {
  color: #127e71;
}

.dashboard-home-tab.is-active::after {
  left: 18px;
  right: 18px;
  height: 4px;
  background: linear-gradient(90deg, #14846a 0%, #1a7a7a 100%);
}

.dashboard-home-tab-icon {
  width: 28px;
  height: 28px;
  color: currentColor;
}

.dashboard-home-tab-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-home-tab-label {
  font-size: 20px;
}

.dashboard-home-refresh-btn--tabs {
  min-width: 168px;
  min-height: 54px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #38516a;
}

.dashboard-home-panel-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-home-overview-layout {
  gap: 18px;
}

.dashboard-home-overview-hero-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 28px 24px 22px;
  border-radius: 24px;
  border: 1px solid #e2e8ef;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,251,252,0.98) 100%);
  box-shadow: 0 16px 38px rgba(14, 30, 51, 0.05);
  overflow: hidden;
}

.dashboard-home-overview-topline {
  margin-bottom: 2px;
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-home-panel-title--overview {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5f7288;
}

/* tractor block consolidated below */

.dashboard-home-overview-kpi-grid {
  gap: 16px;
  position: relative;
  z-index: 1;
}

.dashboard-home-overview-kpi {
  min-height: 216px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  border: 1px solid #e3eaf0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 10px 24px rgba(14, 30, 51, 0.04);
  gap: 14px;
}

.dashboard-home-overview-kpi-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.dashboard-home-overview-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.dashboard-home-overview-kpi-label {
  font-size: 15px;
  font-weight: 700;
  color: #21384e;
}

.dashboard-home-overview-kpi-value {
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1;
  color: #0f2740;
}

.dashboard-home-overview-kpi-note {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #7d8d9d;
}

.dashboard-home-overview-kpi-delta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f5f7;
  color: #3e5268;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-home-overview-kpi-delta::before {
  content: '—';
  font-size: 14px;
  line-height: 1;
}

.dashboard-home-overview-kpi--teal .dashboard-home-overview-kpi-delta {
  background: #eaf7ef;
  color: #21864b;
}

.dashboard-home-overview-kpi--teal .dashboard-home-overview-kpi-delta::before {
  content: '↗';
}

.dashboard-home-overview-kpi--blue .dashboard-home-overview-kpi-icon {
  background: #eef4ff;
  color: #2563eb;
}

.dashboard-home-overview-kpi--green .dashboard-home-overview-kpi-icon {
  background: #ecf8ed;
  color: #15803d;
}

.dashboard-home-overview-kpi--amber .dashboard-home-overview-kpi-icon {
  background: #fff4e8;
  color: #ea7a12;
}

.dashboard-home-overview-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
  gap: 18px;
}

.dashboard-home-overview-section {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #e2e8ef;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,251,252,0.98) 100%);
  box-shadow: 0 14px 30px rgba(14, 30, 51, 0.04);
}

.dashboard-home-section-head--overview {
  margin-bottom: 10px;
}

.dashboard-home-section-copy--compact h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5e7188;
}

.dashboard-home-section-copy--compact p,
.dashboard-home-section-head--overview .dashboard-home-section-icon,
.dashboard-home-section-head--recent .dashboard-home-section-copy p {
  display: none;
}

.dashboard-home-overview-section--shortcuts {
  overflow: hidden;
}

.dashboard-home-shortcut-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #12a54b 0%, #0f8e40 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.dashboard-home-shortcut-corner-icon {
  margin: 8px 8px 0 0;
  font-size: 16px;
  line-height: 1;
  filter: saturate(0) brightness(100);
}

.dashboard-home-shortcut-grid.is-empty {
  grid-template-columns: 1fr;
}

.dashboard-home-shortcut-empty {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 250px;
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed #d7dfe7;
  background: linear-gradient(180deg, #fdfefe 0%, #fbfcfd 100%);
  text-align: center;
}

.dashboard-home-shortcut-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf9f1;
  color: #249058;
}

.dashboard-home-shortcut-empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.dashboard-home-shortcut-empty-copy {
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.dashboard-home-shortcut-empty-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c9bab;
}

.dashboard-home-shortcut-empty-copy strong {
  font-size: 18px;
  color: #16314f;
}

.dashboard-home-shortcut-empty-copy span:last-child {
  color: #708297;
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-home-shortcut-card {
  min-height: 156px;
  box-shadow: 0 10px 24px rgba(14,30,51,.045);
}

.dashboard-home-overview-section--attention {
  gap: 14px;
}

.dashboard-home-attention-grid {
  align-items: stretch;
}

.dashboard-home-attention-spot {
  min-height: 246px;
  padding: 18px;
  border-radius: 20px;
  box-shadow: none;
  gap: 14px;
}

.dashboard-home-attention-spot-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-home-attention-spot-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.dashboard-home-attention-spot-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #21384e;
}

.dashboard-home-attention-spot-text {
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-home-attention-spot-value {
  font-size: clamp(34px, 3vw, 48px);
}

.dashboard-home-attention-spot--risk {
  border-color: #f1dcda;
  background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
}

.dashboard-home-attention-spot--risk .dashboard-home-attention-spot-icon {
  background: #feeceb;
  color: #ef4444;
}

.dashboard-home-attention-spot--risk .dashboard-home-attention-cta {
  border-color: #f2d3d1;
  color: #ef4444;
}

.dashboard-home-attention-spot--warning {
  border-color: #f4e2c7;
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
}

.dashboard-home-attention-spot--warning .dashboard-home-attention-spot-icon {
  background: #fff1df;
  color: #f08a18;
}

.dashboard-home-attention-spot--warning .dashboard-home-attention-cta {
  border-color: #f1ddbf;
  color: #f08a18;
}

.dashboard-home-attention-spot--neutral {
  border-color: #d8eadb;
  background: linear-gradient(180deg, #f9fdf9 0%, #ffffff 100%);
}

.dashboard-home-attention-spot--neutral .dashboard-home-attention-spot-icon {
  background: #eef8ef;
  color: #148046;
}

.dashboard-home-attention-spot--neutral .dashboard-home-attention-cta {
  border-color: #d8e8db;
  color: #148046;
}

.dashboard-home-attention-cta {
  min-height: 44px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-home-overview-recent {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid #e2e8ef;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,251,252,0.98) 100%);
  box-shadow: 0 14px 30px rgba(14, 30, 51, 0.04);
}

.dashboard-home-section-head--recent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.dashboard-home-section-head--recent > div {
  align-items: center;
}

.dashboard-home-section-head--recent .dashboard-home-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #f3f6fa;
  color: #6f7f92;
}

.dashboard-home-recent-cta {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #dbe4ec;
  background: #fff;
  color: #38516a;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-home-recent-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 84px;
  padding: 4px 12px 6px;
  text-align: center;
}

.dashboard-home-recent-empty strong {
  font-size: 18px;
  color: #16314f;
}

.dashboard-home-recent-empty span {
  font-size: 14px;
  color: #6f8296;
}

.dashboard-home-recent-list {
  display: grid;
  gap: 10px;
}

.dashboard-home-recent-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e6edf3;
  background: #fff;
}

.dashboard-home-recent-item strong {
  color: #16314f;
  font-size: 15px;
}

.dashboard-home-recent-item span {
  color: #708297;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1260px) {
  .dashboard-home-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-home-overview-tractor {
    width: 250px;
    max-width: 38%;
  }

  .dashboard-home-overview-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .dashboard-home-mini-grid--header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-home-tabs-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-home-refresh-btn--tabs {
    width: 100%;
  }

  .dashboard-home-overview-kpi-grid,
  .dashboard-home-attention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-home-overview-tractor {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 300px);
    max-width: 100%;
    margin-left: auto;
    margin-top: -8px;
    margin-bottom: -4px;
  }
}

@media (max-width: 720px) {
  .dashboard-home-mini-grid--header,
  .dashboard-home-overview-kpi-grid,
  .dashboard-home-attention-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-overview-hero-card,
  .dashboard-home-overview-section,
  .dashboard-home-overview-recent {
    padding: 18px 16px;
  }

  .dashboard-home-title {
    font-size: 30px;
  }

  .dashboard-home-greeting-icon {
    width: 50px;
    height: 50px;
  }
}


/* ================================================================
   HOME OPERACIONAL — CORREÇÃO DE LARGURA / OVERFLOW
   Ajuste localizado para impedir corte horizontal da Home
   ================================================================ */
.dashboard-home-root,
.dashboard-home-shell,
.dashboard-home-panel-wrap,
.dashboard-home-tab-layout,
.dashboard-home-overview-layout,
.dashboard-home-overview-hero-card,
.dashboard-home-overview-bottom-grid,
.dashboard-home-overview-section,
.dashboard-home-overview-recent,
.dashboard-home-hero,
.dashboard-home-hero-main,
.dashboard-home-hero-side {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-home-tabs-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  justify-content: initial;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.dashboard-home-tabs {
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-home-tab {
  min-width: 0;
}

.dashboard-home-refresh-btn--tabs {
  flex-shrink: 0;
  align-self: center;
  margin: 10px;
  white-space: nowrap;
}

.dashboard-home-mini-grid--header,
.dashboard-home-overview-kpi-grid,
.dashboard-home-attention-grid,
.dashboard-home-shortcut-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dashboard-home-overview-tractor {
  overflow: hidden;
}

@media (max-width: 980px) {
  .dashboard-home-tabs-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-home-refresh-btn--tabs {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
  }
}


/* ================================================================
   HOME — AJUSTE FINO VISUAL DA VISÃO GERAL (HEADER + TRATOR)
   Escopo somente estético na Home > aba Visão Geral
   ================================================================ */
#dashboard-home-root.dashboard-home-root {
  width: 100% !important;
  max-width: none !important;
}

.dashboard-home-hero {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr) !important;
  align-items: start !important;
}

.dashboard-home-hero-side {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.dashboard-home-mini-grid--header {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  flex: 1 !important;
  height: 100% !important;
}

.dashboard-home-mini-indicator,
.dashboard-home-session-card {
  min-height: unset !important;
  height: auto !important;
  padding: 22px 18px !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.dashboard-home-mini-indicator {
  gap: 14px !important;
}

.dashboard-home-mini-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  flex: 0 0 48px;
}

.dashboard-home-mini-copy,
.dashboard-home-session-card-copy {
  min-width: 0;
}

.dashboard-home-mini-label {
  font-size: 13px !important;
  line-height: 1.2;
  white-space: normal;
}

.dashboard-home-mini-value {
  font-size: 32px !important;
  line-height: 1 !important;
}

.dashboard-home-mini-helper {
  font-size: 12px !important;
  line-height: 1.2;
  white-space: normal;
}

.dashboard-home-session-card {
  justify-content: flex-start !important;
}

.dashboard-home-session-card-copy {
  gap: 10px !important;
}

.dashboard-home-overview-hero-card {
  position: relative;
  padding-top: 24px !important;
  padding-right: 24px !important;
}

.dashboard-home-overview-topline {
  position: relative;
  z-index: 2;
  min-height: 36px;
  padding-right: 230px;
}

.dashboard-home-overview-tractor {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(240px, 34%, 380px);
  height: clamp(160px, 58%, 230px);
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
  border-radius: 0 18px 0 0;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, rgba(0,0,0,0.2) 12%, rgba(0,0,0,0.7) 28%, black 44%),
    linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, rgba(0,0,0,0.2) 12%, rgba(0,0,0,0.7) 28%, black 44%),
    linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-composite: intersect;
}

.dashboard-home-overview-tractor img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
}

.dashboard-home-overview-tractor svg {
  display: none;
}

.dashboard-home-overview-kpi-grid {
  position: relative;
  z-index: 2;
  margin-top: 2px;
}

@media (max-width: 1360px) {
  .dashboard-home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(560px, 680px) !important;
  }

  .dashboard-home-mini-grid--header {
    grid-template-columns: repeat(4, minmax(132px, 1fr)) !important;
  }
}

@media (max-width: 1260px) {
  .dashboard-home-hero {
    grid-template-columns: 1fr !important;
  }

  .dashboard-home-hero-side {
    max-width: none;
    justify-self: stretch;
  }

  .dashboard-home-overview-topline {
    padding-right: 210px;
  }

  .dashboard-home-overview-tractor {
    width: clamp(170px, 26vw, 220px) !important;
    max-width: 220px !important;
  }
}

@media (max-width: 980px) {
  .dashboard-home-mini-grid--header {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dashboard-home-overview-topline {
    min-height: auto;
    padding-right: 0;
  }

  .dashboard-home-overview-hero-card {
    padding-top: 22px !important;
  }

  .dashboard-home-overview-tractor {
    position: relative;
    top: auto !important;
    right: auto !important;
    width: min(100%, 220px) !important;
    max-width: 220px !important;
    height: 84px;
    margin: -2px 0 6px auto;
  }
}

@media (max-width: 720px) {
  .dashboard-home-mini-grid--header {
    grid-template-columns: 1fr !important;
  }

  .dashboard-home-mini-indicator,
  .dashboard-home-session-card {
    min-height: 90px !important;
  }
}


/* ================================================================
   HOME — CORREÇÃO REAL (VISÃO GERAL)
   Escopo estritamente estético: cards do topo + trator integrado
   ================================================================ */
#dashboard-home-root,
#dashboard-home-root.dashboard-home-root,
.dashboard-home-root,
.dashboard-home-shell,
.dashboard-home-panel-wrap,
.dashboard-home-overview-layout {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.dashboard-home-hero {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr) !important;
  align-items: start !important;
  gap: 20px !important;
}

.dashboard-home-hero-side {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}

.dashboard-home-mini-grid--header {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  align-items: stretch !important;
}

.dashboard-home-mini-indicator,
.dashboard-home-session-card {
  min-height: 92px !important;
  padding: 20px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.dashboard-home-mini-icon {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  border-radius: 14px !important;
}

.dashboard-home-mini-copy,
.dashboard-home-session-card-copy {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.dashboard-home-mini-label,
.dashboard-home-session-label {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.15 !important;
}

.dashboard-home-mini-label {
  font-size: 12px !important;
}

.dashboard-home-mini-value {
  font-size: 30px !important;
  line-height: 1 !important;
}

.dashboard-home-mini-helper {
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

.dashboard-home-session-card {
  justify-content: flex-start !important;
}

.dashboard-home-session-card-copy {
  gap: 8px !important;
}

.dashboard-home-session-status {
  white-space: nowrap !important;
}

.dashboard-home-overview-hero-card {
  position: relative !important;
  overflow: hidden !important;
  padding-top: 24px !important;
  padding-right: 24px !important;
}

.dashboard-home-overview-topline {
  position: relative !important;
  z-index: 2 !important;
  min-height: 36px !important;
  padding-right: 230px !important;
}

.dashboard-home-overview-tractor svg,
.dashboard-home-overview-tractor img {
  /* consolidated in main block above */
}

.dashboard-home-overview-kpi-grid {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 8px !important;
}

@media (max-width: 1280px) {
  .dashboard-home-hero {
    grid-template-columns: 1fr !important;
  }

  .dashboard-home-hero-side {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .dashboard-home-mini-grid--header {
    max-width: none !important;
    min-width: 0 !important;
  }
}

@media (max-width: 980px) {
  .dashboard-home-mini-grid--header {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
  }

  .dashboard-home-overview-topline {
    min-height: auto !important;
    padding-right: 0 !important;
  }

  .dashboard-home-overview-tractor {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 190px !important;
    max-width: 190px !important;
    height: 82px !important;
    margin: -2px 0 6px auto !important;
  }
}

@media (max-width: 640px) {
  .dashboard-home-mini-grid--header {
    grid-template-columns: 1fr !important;
  }
}




/* ================================================================
   HERO CARDS — LARGURA TOTAL (bloco final, máxima prioridade)
   ================================================================ */
.dashboard-home-hero {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr) !important;
}
.dashboard-home-hero-side {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}
.dashboard-home-mini-grid.dashboard-home-mini-grid--header {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Remove barra colorida lateral dos KPI cards da Visão Geral */
.dashboard-home-overview-kpi::before,
.dashboard-home-overview-kpi--teal::before,
.dashboard-home-overview-kpi--blue::before,
.dashboard-home-overview-kpi--green::before,
.dashboard-home-overview-kpi--amber::before {
  display: none !important;
}

/* ================================================================
   HOME > VISÃO GERAL — Saudação com imagem dinâmica por período
   Escopo exclusivo do cabeçalho da tela Início quando Visão Geral está ativa
   ================================================================ */
.dashboard-home-hero.dashboard-home-hero--overview-greeting {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr) !important;
  align-items: stretch !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-hero-main {
  min-height: 148px !important;
  padding: 0 !important;
  overflow: visible !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-hero-copy {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.dashboard-hero-greeting {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(390px, 470px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 26px !important;
  overflow: visible !important;
}

.dashboard-hero-illustration {
  width: 100% !important;
  height: 148px !important;
  min-height: 148px !important;
  margin-left: -24px !important;
  border-radius: 24px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  box-shadow: 0 16px 36px rgba(15,54,54,0.10) !important;
  border: 1px solid rgba(255,255,255,0.70) !important;
  background: #eef6f3 !important;
  overflow: hidden !important;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, #000 10%, #000 86%, rgba(0,0,0,0.82) 100%) !important;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, #000 10%, #000 86%, rgba(0,0,0,0.82) 100%) !important;
}

.dashboard-hero-greeting-text {
  min-width: 0 !important;
  display: grid !important;
  gap: 6px !important;
  align-content: center !important;
  padding-left: 2px !important;
}

.dashboard-hero-greeting-date {
  margin: 0 !important;
}

.dashboard-home-overview-layout .dashboard-home-overview-tractor {
  display: none !important;
}

.dashboard-home-overview-layout .dashboard-home-overview-topline {
  padding-right: 0 !important;
  min-height: auto !important;
}

@media (max-width: 1400px) {
  .dashboard-hero-greeting {
    grid-template-columns: minmax(330px, 410px) minmax(0, 1fr) !important;
  }

  .dashboard-hero-illustration {
    height: 136px !important;
    min-height: 136px !important;
    margin-left: -18px !important;
  }
}

@media (max-width: 1280px) {
  .dashboard-home-hero.dashboard-home-hero--overview-greeting {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 860px) {
  .dashboard-hero-greeting {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .dashboard-hero-illustration {
    height: 170px !important;
    min-height: 170px !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 520px) {
  .dashboard-hero-illustration {
    height: 130px !important;
    min-height: 130px !important;
    border-radius: 18px !important;
  }
}

/* ================================================================
   HOME > VISÃO GERAL — AJUSTE FINAL PIXEL DO HERO DA SAUDAÇÃO
   Escopo exclusivo: cabeçalho da aba Visão Geral da tela Início.
   Objetivo: imagem maior, integrada ao início do conteúdo e com fade orgânico.
   ================================================================ */
.dashboard-home-hero.dashboard-home-hero--overview-greeting {
  position: relative !important;
  min-height: 250px !important;
  display: grid !important;
  grid-template-columns: minmax(720px, 1.3fr) minmax(564px, 1.14fr) !important;
  align-items: center !important;
  gap: 26px !important;
  padding: 0 30px 0 0 !important;
  overflow: hidden !important;
  background:
    linear-gradient(90deg, rgba(226,239,236,0.96) 0%, rgba(238,246,243,0.90) 42%, rgba(246,250,248,0.96) 100%) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-hero-main {
  position: relative !important;
  min-height: 250px !important;
  height: 250px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-hero-copy {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: visible !important;
}

.dashboard-home-hero--overview-greeting .dashboard-hero-greeting {
  position: relative !important;
  width: 100% !important;
  height: 250px !important;
  min-height: 250px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  overflow: visible !important;
}

.dashboard-home-hero--overview-greeting .dashboard-hero-illustration {
  position: absolute !important;
  left: -34px !important;
  top: 0 !important;
  bottom: 0 !important;
  width: min(690px, 72vw) !important;
  max-width: none !important;
  height: 250px !important;
  min-height: 250px !important;
  margin: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 0 0 34px 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  z-index: 1 !important;
  opacity: 1 !important;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, #000 58%, rgba(0,0,0,0.82) 72%, rgba(0,0,0,0.30) 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%) !important;
  -webkit-mask-composite: source-in !important;
  mask-image:
    linear-gradient(90deg, #000 0%, #000 58%, rgba(0,0,0,0.82) 72%, rgba(0,0,0,0.30) 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%) !important;
  mask-composite: intersect !important;
}

.dashboard-home-hero--overview-greeting .dashboard-hero-greeting-text {
  position: relative !important;
  z-index: 2 !important;
  margin-left: clamp(500px, 42vw, 650px) !important;
  padding: 0 !important;
  min-width: 260px !important;
  max-width: 420px !important;
  display: grid !important;
  gap: 12px !important;
  align-content: center !important;
  justify-items: start !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-title {
  margin: 0 !important;
  max-width: none !important;
  white-space: nowrap !important;
  font-size: clamp(26px, 2.6vw, 42px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
  font-weight: 800 !important;
  color: #082f59 !important;
  text-wrap: nowrap !important;
}

.dashboard-home-hero--overview-greeting .dashboard-hero-greeting-date {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #567088 !important;
  font-weight: 600 !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-hero-side {
  position: relative !important;
  z-index: 3 !important;
  align-self: center !important;
  height: 212px !important;
  min-height: unset !important;
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
  padding: 0 22px !important;
  margin: 0 !important;
  background: rgba(255,255,255,0.90) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(200,220,225,0.55) !important;
  box-shadow: 0 20px 44px rgba(15,54,54,0.08) !important;
  backdrop-filter: blur(14px) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-mini-grid--header {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: center !important;
  width: 100% !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-mini-grid--header .dashboard-home-mini-indicator,
.dashboard-home-hero--overview-greeting .dashboard-home-mini-grid--header .dashboard-home-session-card {
  min-height: unset !important;
  height: 140px !important;
  max-height: 140px !important;
  padding: 15px 24px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(183,205,213,0.55) !important;
  box-shadow: 0 24px 48px rgba(15,54,54,0.12) !important;
  backdrop-filter: blur(12px) !important;
  box-sizing: border-box !important;
  align-self: center !important;
}

/* Aumenta valores e labels dentro dos cards */
.dashboard-home-hero--overview-greeting .dashboard-home-mini-value {
  font-size: 36px !important;
  line-height: 1 !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-mini-label {
  font-size: 14px !important;
}

.dashboard-home-hero--overview-greeting .dashboard-home-mini-helper {
  font-size: 13px !important;
}

/* Data em 50% maior (15px → ~22px) */
.dashboard-home-hero--overview-greeting .dashboard-hero-greeting-date,
.dashboard-home-hero--overview-greeting .dashboard-home-subtitle {
  font-size: 22px !important;
  line-height: 1.4 !important;
  color: #567088 !important;
  margin: 0 !important;
}

/* Saudação em linha única sem quebra */
.dashboard-home-hero--overview-greeting .dashboard-home-title {
  white-space: nowrap !important;
  text-wrap: unset !important;
  max-width: none !important;
}

@media (max-width: 1500px) {
  .dashboard-home-hero.dashboard-home-hero--overview-greeting {
    grid-template-columns: minmax(600px, 1.38fr) minmax(420px, 1fr) !important;
    min-height: 224px !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-home-hero-main,
  .dashboard-home-hero--overview-greeting .dashboard-home-hero-copy,
  .dashboard-home-hero--overview-greeting .dashboard-hero-greeting,
  .dashboard-home-hero--overview-greeting .dashboard-hero-illustration {
    height: 224px !important;
    min-height: 224px !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-hero-illustration {
    width: min(610px, 70vw) !important;
    left: -28px !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-hero-greeting-text {
    margin-left: clamp(430px, 40vw, 560px) !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-home-mini-grid--header {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .dashboard-home-hero.dashboard-home-hero--overview-greeting {
    grid-template-columns: 1fr !important;
    padding-right: 22px !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-home-hero-side {
    width: calc(100% - 22px) !important;
    margin-left: 22px !important;
  }
}

@media (max-width: 760px) {
  .dashboard-home-hero.dashboard-home-hero--overview-greeting {
    padding: 0 16px 18px !important;
    gap: 18px !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-home-hero-main,
  .dashboard-home-hero--overview-greeting .dashboard-home-hero-copy,
  .dashboard-home-hero--overview-greeting .dashboard-hero-greeting {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    gap: 18px !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-hero-illustration {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: 170px !important;
    min-height: 170px !important;
    border-radius: 24px !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-hero-greeting-text {
    margin-left: 0 !important;
    padding: 0 6px !important;
  }
  .dashboard-home-hero--overview-greeting .dashboard-home-mini-grid--header {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   AJUSTE PONTUAL — Início > Visão Geral > Saudação
   Escopo: somente título da saudação e data.
   Não altera imagem, cards, layout, abas, sidebar ou demais módulos.
   ================================================================ */
#dashboard-home-root .dashboard-home-hero .dashboard-home-title {
  /* consolidado acima */
}

#dashboard-home-root .dashboard-home-hero .dashboard-home-subtitle {
  /* consolidado acima */
}
   HOME > MINHA AGENDA — Central do Dia
   Escopo visual isolado da aba Minha Agenda
   ================================================================ */
.dashboard-agenda-tab-layout {
  display: grid;
  gap: 16px;
}

.dashboard-agenda-central {
  display: grid;
  gap: 22px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(26, 122, 122, 0.12);
  background:
    radial-gradient(circle at 8% 4%, rgba(26, 122, 122, 0.075), transparent 34%),
    radial-gradient(circle at 95% 8%, rgba(90, 170, 69, 0.055), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 250, 0.96));
  box-shadow: 0 22px 54px rgba(15, 54, 54, 0.09);
}

.dashboard-agenda-central-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dashboard-agenda-central-copy {
  display: grid;
  gap: 5px;
}

.dashboard-agenda-eyebrow {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #087568;
}

.dashboard-agenda-central-copy h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #112f46;
}

.dashboard-agenda-central-copy p,
.dashboard-agenda-central-copy small {
  margin: 0;
  color: #5f748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.dashboard-agenda-central-copy small {
  color: #087568;
}

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

.dashboard-agenda-period-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 5px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 54, 54, 0.08);
  background: rgba(241, 247, 247, 0.94);
}

.dashboard-agenda-period-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: #23435e;
  font-size: 13px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.dashboard-agenda-period-btn:hover {
  background: rgba(26, 122, 122, 0.07);
  color: #0f5454;
}

.dashboard-agenda-period-btn.is-active {
  background: linear-gradient(135deg, #087568, #0f5454);
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 117, 104, 0.18);
}

.dashboard-agenda-date-chip,
.dashboard-agenda-time-chip,
.dashboard-agenda-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(26, 122, 122, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #0f5454;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-agenda-date-chip svg,
.dashboard-agenda-time-chip svg,
.dashboard-agenda-link-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-agenda-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-agenda-kpi {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 54, 54, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(15, 54, 54, 0.055);
}

.dashboard-agenda-kpi-icon,
.dashboard-agenda-icon,
.dashboard-agenda-appointment-icon,
.dashboard-agenda-empty-icon,
.dashboard-agenda-milestone-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(26, 122, 122, 0.10);
  color: #087568;
}

.dashboard-agenda-kpi-icon svg,
.dashboard-agenda-icon svg,
.dashboard-agenda-appointment-icon svg,
.dashboard-agenda-empty-icon svg,
.dashboard-agenda-milestone-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-agenda-kpi div {
  display: grid;
  gap: 3px;
}

.dashboard-agenda-kpi strong {
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  color: #112f46;
}

.dashboard-agenda-kpi span:not(.dashboard-agenda-kpi-icon) {
  color: #5f748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-agenda-kpi--blue .dashboard-agenda-kpi-icon {
  background: rgba(42, 131, 234, 0.10);
  color: #1f7ad2;
}

.dashboard-agenda-kpi--purple .dashboard-agenda-kpi-icon {
  background: rgba(124, 58, 237, 0.10);
  color: #6d42d6;
}

.dashboard-agenda-kpi--orange .dashboard-agenda-kpi-icon {
  background: rgba(249, 115, 22, 0.10);
  color: #ea720c;
}

.dashboard-agenda-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.dashboard-agenda-left-column,
.dashboard-agenda-right-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-agenda-day-panel,
.dashboard-agenda-upcoming,
.dashboard-agenda-summary-card,
.dashboard-agenda-mini-calendar,
.dashboard-agenda-milestones-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 54, 54, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(15, 54, 54, 0.065);
}

.dashboard-agenda-day-panel {
  min-height: 356px;
  padding: 20px;
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.dashboard-agenda-day-panel::after {
  content: '';
  position: absolute;
  right: 26px;
  top: 26px;
  width: 156px;
  height: 112px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 74% 70%, rgba(8, 117, 104, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(26, 122, 122, 0.08), rgba(90, 170, 69, 0.04));
  opacity: .85;
  pointer-events: none;
}

.dashboard-agenda-card-head,
.dashboard-agenda-side-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.dashboard-agenda-card-head > div,
.dashboard-agenda-card-head--hero > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-agenda-card-head h4,
.dashboard-agenda-side-card-head h4 {
  margin: 0;
  color: #112f46;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.dashboard-agenda-card-head span:not(.dashboard-agenda-icon),
.dashboard-agenda-card-head p,
.dashboard-agenda-side-card-head p {
  margin: 3px 0 0;
  color: #5f748b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.dashboard-agenda-hero-date {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(26, 122, 122, 0.06);
  color: #0f5454 !important;
  font-weight: 850 !important;
}

.dashboard-agenda-appointments-list,
.dashboard-agenda-upcoming-list,
.dashboard-agenda-milestone-list,
.dashboard-agenda-summary-list {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.dashboard-agenda-appointment-card {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(15, 54, 54, 0.08);
  background: linear-gradient(180deg, rgba(248, 253, 252, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.dashboard-agenda-appointment-accent {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: #087568;
}

.dashboard-agenda-appointment-card--warning .dashboard-agenda-appointment-accent,
.dashboard-agenda-appointment-card--danger .dashboard-agenda-appointment-accent {
  background: #ea720c;
}

.dashboard-agenda-appointment-card--danger .dashboard-agenda-appointment-accent {
  background: #c0392b;
}

.dashboard-agenda-appointment-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.dashboard-agenda-appointment-main strong,
.dashboard-agenda-upcoming-main strong,
.dashboard-agenda-milestone-main strong {
  color: #112f46;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.dashboard-agenda-appointment-main span,
.dashboard-agenda-upcoming-main span,
.dashboard-agenda-milestone-main span {
  color: #5f748b;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}

.dashboard-agenda-appointment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-agenda-badge,
.dashboard-agenda-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dashboard-agenda-badge--type {
  background: rgba(26, 122, 122, 0.08);
  color: #087568;
  border-color: rgba(26, 122, 122, 0.12);
}

.dashboard-agenda-badge--teal,
.dashboard-agenda-badge--medium,
.dashboard-agenda-badge--low {
  background: rgba(26, 122, 122, 0.08);
  color: #0f5454;
  border-color: rgba(26, 122, 122, 0.12);
}

.dashboard-agenda-badge--warning,
.dashboard-agenda-badge--high {
  background: rgba(249, 115, 22, 0.12);
  color: #a84c06;
  border-color: rgba(249, 115, 22, 0.16);
}

.dashboard-agenda-badge--danger {
  background: rgba(192, 57, 43, 0.10);
  color: #991b1b;
  border-color: rgba(192, 57, 43, 0.16);
}

.dashboard-agenda-time-chip--soft {
  background: rgba(26, 122, 122, 0.055);
}

.dashboard-agenda-summary-card,
.dashboard-agenda-mini-calendar,
.dashboard-agenda-milestones-card,
.dashboard-agenda-upcoming {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.dashboard-agenda-summary-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(26, 122, 122, 0.045);
  border: 1px solid rgba(26, 122, 122, 0.07);
}

.dashboard-agenda-summary-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f748b;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-agenda-summary-row-label svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-agenda-summary-row strong {
  color: #112f46;
  font-size: 16px;
  font-weight: 950;
}

.dashboard-agenda-calendar-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f748b;
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}

.dashboard-agenda-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-agenda-calendar-grid--weekdays span {
  display: grid;
  place-items: center;
  min-height: 26px;
  color: #6b7e93;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-agenda-calendar-day {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 999px;
  color: #274a68;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-agenda-calendar-day:not(.is-muted):hover {
  background: rgba(26, 122, 122, 0.07);
}

.dashboard-agenda-calendar-day.is-today {
  background: linear-gradient(135deg, #087568, #0f5454);
  color: #fff;
  box-shadow: 0 10px 18px rgba(8, 117, 104, 0.20);
}

.dashboard-agenda-calendar-day.is-muted {
  color: transparent;
}

.dashboard-agenda-upcoming-item,
.dashboard-agenda-milestone-item {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 54, 54, 0.075);
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-agenda-upcoming-item {
  grid-template-columns: 72px minmax(0, 1fr) auto 28px;
  min-height: 78px;
  padding: 12px 14px;
}

.dashboard-agenda-milestone-item {
  grid-template-columns: 48px minmax(0, 1fr) auto 24px;
  min-height: 72px;
  padding: 12px;
}

.dashboard-agenda-date-chip-block {
  width: 60px;
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 1px;
  border-radius: 18px;
  background: rgba(8, 117, 104, 0.08);
  color: #087568;
}

.dashboard-agenda-date-chip-block span,
.dashboard-agenda-date-chip-block small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.dashboard-agenda-date-chip-block strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.dashboard-agenda-upcoming-main,
.dashboard-agenda-milestone-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-agenda-status--safe,
.dashboard-agenda-status--success,
.dashboard-agenda-status--neutral {
  background: rgba(29, 158, 117, 0.10);
  color: #087568;
  border-color: rgba(29, 158, 117, 0.14);
}

.dashboard-agenda-status--warning {
  background: rgba(249, 115, 22, 0.12);
  color: #a84c06;
  border-color: rgba(249, 115, 22, 0.16);
}

.dashboard-agenda-status--danger {
  background: rgba(192, 57, 43, 0.10);
  color: #991b1b;
  border-color: rgba(192, 57, 43, 0.16);
}

.dashboard-agenda-link-btn {
  background: transparent;
  color: #087568;
  border-color: transparent;
  min-height: 32px;
  padding: 0 4px;
}

.dashboard-agenda-chevron {
  color: #557085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-agenda-chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-agenda-empty-state {
  min-height: 174px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(26, 122, 122, 0.18);
  background: rgba(26, 122, 122, 0.03);
  text-align: center;
}

.dashboard-agenda-empty-state strong {
  color: #112f46;
  font-size: 15px;
  font-weight: 900;
}

.dashboard-agenda-empty-state p {
  max-width: 320px;
  margin: 0;
  color: #5f748b;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
}

@media (max-width: 1260px) {
  .dashboard-agenda-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-agenda-right-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-agenda-milestones-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .dashboard-agenda-central {
    padding: 18px;
    border-radius: 22px;
  }

  .dashboard-agenda-kpi-row,
  .dashboard-agenda-right-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-agenda-central-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .dashboard-agenda-kpi-row,
  .dashboard-agenda-right-column {
    grid-template-columns: 1fr;
  }

  .dashboard-agenda-appointment-card,
  .dashboard-agenda-upcoming-item,
  .dashboard-agenda-milestone-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dashboard-agenda-period-toggle {
    width: 100%;
  }

  .dashboard-agenda-date-chip {
    width: 100%;
  }
}

/* ================================================================
   HOME > MINHA AGENDA — ajuste de fidelidade ao mockup Central do Dia
   Escopo restrito: somente classes dashboard-agenda-*
   ================================================================ */
.dashboard-agenda-tab-layout--mockup {
  gap: 14px;
}

.dashboard-agenda-period-strip {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-radius: 22px;
  border: 1px solid rgba(15, 54, 54, 0.065);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 26px rgba(15, 54, 54, 0.045);
}

.dashboard-agenda-period-left {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.dashboard-agenda-period-label {
  color: #5f748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-agenda-tab-layout--mockup .dashboard-agenda-period-toggle {
  min-width: 220px;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #f5f8f9;
  border-color: rgba(15,54,54,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 7px 14px rgba(15,54,54,0.035);
}

.dashboard-agenda-tab-layout--mockup .dashboard-agenda-period-btn {
  min-height: 39px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.dashboard-agenda-tab-layout--mockup .dashboard-agenda-period-btn.is-active {
  background: #087568;
  box-shadow: 0 10px 18px rgba(8,117,104,0.18);
}

.dashboard-agenda-date-chip--strip {
  min-height: 42px;
  padding: 0 16px;
  background: rgba(255,255,255,0.90);
  border-color: rgba(15,54,54,0.055);
  box-shadow: 0 8px 16px rgba(15,54,54,0.035);
}

.dashboard-agenda-kpi-row--mockup {
  gap: 16px;
}

.dashboard-agenda-kpi-row--mockup .dashboard-agenda-kpi {
  min-height: 78px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,54,54,0.045);
}

.dashboard-agenda-kpi-row--mockup .dashboard-agenda-kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
}

.dashboard-agenda-kpi-row--mockup .dashboard-agenda-kpi strong {
  font-size: 24px;
}

.dashboard-agenda-kpi-row--mockup .dashboard-agenda-kpi span:not(.dashboard-agenda-kpi-icon) {
  font-size: 13px;
}

.dashboard-agenda-central--mockup {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-agenda-main-grid--mockup {
  grid-template-columns: minmax(0, 1.7fr) minmax(390px, 1fr);
  gap: 28px;
  align-items: start;
}

.dashboard-agenda-left-column,
.dashboard-agenda-right-column--mockup {
  gap: 16px;
}

.dashboard-agenda-day-panel--central-dia,
.dashboard-agenda-upcoming--mockup,
.dashboard-agenda-summary-card--horizontal,
.dashboard-agenda-tab-layout--mockup .dashboard-agenda-mini-calendar,
.dashboard-agenda-milestones-card--mockup {
  border-radius: 22px;
  border: 1px solid rgba(15,54,54,0.075);
  background: rgba(255,255,255,0.93);
  box-shadow: 0 14px 30px rgba(15,54,54,0.048);
}

.dashboard-agenda-day-panel--central-dia {
  min-height: 354px;
  padding: 22px 22px 18px;
  display: grid;
  gap: 20px;
  overflow: hidden;
}

.dashboard-agenda-day-panel--central-dia::after {
  content: none;
}

.dashboard-agenda-central-dia-head {
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.dashboard-agenda-central-dia-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-top: 4px;
}

.dashboard-agenda-central-dia-copy h4 {
  margin: 0;
  color: #112f46;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.dashboard-agenda-central-dia-copy span {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #087568;
}

.dashboard-agenda-central-dia-copy p {
  margin: 0;
  color: #63778d;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.dashboard-agenda-hero-illustration {
  position: relative;
  width: 178px;
  height: 94px;
  flex: 0 0 178px;
  margin-right: 8px;
  opacity: .95;
}

.dashboard-agenda-hero-calendar {
  position: absolute;
  right: 42px;
  top: 2px;
  width: 88px;
  height: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 18px 10px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef8f7, #ffffff);
  border: 1px solid rgba(8,117,104,0.14);
  box-shadow: 0 18px 24px rgba(15,54,54,0.08);
  transform: rotate(3deg);
}

.dashboard-agenda-hero-calendar::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: -5px;
  height: 13px;
  border-radius: 8px 8px 3px 3px;
  background: repeating-linear-gradient(90deg, #087568 0 4px, transparent 4px 12px);
  opacity: .85;
}

.dashboard-agenda-hero-calendar span {
  min-height: 7px;
  border-radius: 999px;
  background: rgba(8,117,104,0.12);
}

.dashboard-agenda-hero-check {
  position: absolute;
  right: 26px;
  bottom: 9px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #087568;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 22px rgba(8,117,104,0.22);
}

.dashboard-agenda-hero-leaf {
  position: absolute;
  right: 0;
  bottom: 7px;
  width: 26px;
  height: 68px;
  border-radius: 999px 999px 999px 0;
  background: rgba(26,122,122,0.10);
  transform: rotate(30deg);
}

.dashboard-agenda-hero-leaf--two {
  right: 15px;
  bottom: 1px;
  width: 18px;
  height: 48px;
  opacity: .65;
  transform: rotate(-18deg);
}

.dashboard-agenda-today-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15,54,54,0.075);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 20px rgba(15,54,54,0.032);
}

.dashboard-agenda-today-title-row {
  display: grid;
  gap: 4px;
}

.dashboard-agenda-today-title-row strong {
  color: #1b2d44;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dashboard-agenda-today-title-row span {
  color: #5f748b;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-agenda-appointments-list--featured .dashboard-agenda-appointment-card {
  min-height: 112px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 18px 18px 18px 24px;
  border-radius: 18px;
  background: #f3faf9;
  border-color: rgba(8,117,104,0.075);
}

.dashboard-agenda-appointments-list--featured .dashboard-agenda-appointment-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  color: #087568;
}

.dashboard-agenda-appointments-list--featured .dashboard-agenda-appointment-icon svg {
  width: 31px;
  height: 31px;
}

.dashboard-agenda-upcoming--mockup {
  padding: 18px;
  gap: 14px;
}

.dashboard-agenda-card-head--compact h4 {
  font-size: 16px;
}

.dashboard-agenda-card-head--compact p {
  font-size: 12px;
}

.dashboard-agenda-upcoming--mockup .dashboard-agenda-upcoming-item {
  min-height: 80px;
  grid-template-columns: 74px minmax(0,1fr) auto;
  padding: 13px 16px;
  border-left: 5px solid #087568;
  background: rgba(255,255,255,0.92);
}

.dashboard-agenda-upcoming--mockup .dashboard-agenda-chevron {
  display: none;
}

.dashboard-agenda-footer-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(15,54,54,0.065);
  background: rgba(248,250,252,0.80);
  color: #087568;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.dashboard-agenda-footer-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dashboard-agenda-summary-card--horizontal {
  min-height: 116px;
  padding: 22px;
}

.dashboard-agenda-summary-list--horizontal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-areas: 'icon value' 'icon label';
  justify-content: start;
  gap: 0 10px;
  padding: 0 18px 0 0;
  border: 0;
  border-right: 1px solid rgba(15,54,54,0.11);
  border-radius: 0;
  background: transparent;
}

.dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row:last-child {
  border-right: 0;
  padding-right: 0;
}

.dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row-label {
  grid-area: label;
  display: contents;
}

.dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row-label > span {
  grid-area: icon;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(26,122,122,0.08);
  color: #087568;
}

.dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row-label > span svg {
  width: 17px;
  height: 17px;
}

.dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row-label {
  color: #5f748b;
  font-size: 12px;
  font-weight: 750;
  text-transform: lowercase;
}

.dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row strong {
  grid-area: value;
  color: #112f46;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
}

.dashboard-agenda-right-column--mockup .dashboard-agenda-mini-calendar {
  min-height: 214px;
  padding: 22px;
}

.dashboard-agenda-right-column--mockup .dashboard-agenda-calendar-grid {
  gap: 6px 12px;
}

.dashboard-agenda-right-column--mockup .dashboard-agenda-calendar-day {
  min-height: 28px;
  font-size: 12px;
}

.dashboard-agenda-milestones-card--mockup {
  min-height: 250px;
  padding: 22px;
}

.dashboard-agenda-milestones-card--mockup .dashboard-agenda-empty-state {
  min-height: 146px;
  position: relative;
  overflow: hidden;
  border-color: rgba(26,122,122,0.16);
  background: rgba(255,255,255,0.72);
}

.dashboard-agenda-milestones-card--mockup .dashboard-agenda-empty-state::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: -2px;
  width: 52px;
  height: 70px;
  border-radius: 999px 999px 999px 0;
  background: rgba(26,122,122,0.10);
  transform: rotate(28deg);
}

@media (max-width: 1320px) {
  .dashboard-agenda-main-grid--mockup {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .95fr);
    gap: 20px;
  }
}

@media (max-width: 1180px) {
  .dashboard-agenda-main-grid--mockup {
    grid-template-columns: 1fr;
  }

  .dashboard-agenda-right-column--mockup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-agenda-milestones-card--mockup {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .dashboard-agenda-period-strip,
  .dashboard-agenda-central-dia-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-agenda-period-left {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-agenda-tab-layout--mockup .dashboard-agenda-period-toggle,
  .dashboard-agenda-date-chip--strip {
    width: 100%;
  }

  .dashboard-agenda-kpi-row--mockup,
  .dashboard-agenda-right-column--mockup,
  .dashboard-agenda-summary-list--horizontal {
    grid-template-columns: 1fr;
  }

  .dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row {
    border-right: 0;
    border-bottom: 1px solid rgba(15,54,54,0.09);
    padding: 0 0 12px;
  }

  .dashboard-agenda-summary-list--horizontal .dashboard-agenda-summary-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .dashboard-agenda-appointments-list--featured .dashboard-agenda-appointment-card,
  .dashboard-agenda-upcoming--mockup .dashboard-agenda-upcoming-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dashboard-agenda-hero-illustration {
    width: 150px;
    height: 86px;
  }
}


/* ================================================================
   HOME — GUIA TIME (MOCKUP EXECUTIVO APROVADO)
   Escopo isolado: somente conteúdo interno da guia Time.
   ================================================================ */
.dashboard-time-view {
  display: grid;
  gap: 18px;
}

.dashboard-time-panel-link svg,
.dashboard-time-footer-link svg {
  width: 15px;
  height: 15px;
}

.dashboard-time-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-time-summary-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #dfe8ee;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 54, 54, 0.045);
}

.dashboard-time-summary-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 115, 140, 0.08);
  color: #03738c;
}

.dashboard-time-summary-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-time-summary-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-time-summary-title {
  color: #52657a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-time-summary-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-time-summary-value-row strong {
  font-size: 30px;
  line-height: 1;
  color: #072f53;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.dashboard-time-summary-copy small {
  font-size: 12px;
  color: #73849a;
  line-height: 1.35;
}

.dashboard-time-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dashboard-time-summary-card--success .dashboard-time-summary-icon,
.dashboard-time-badge--success {
  background: rgba(81, 166, 126, 0.12);
  color: #2c8c5f;
  border-color: rgba(81, 166, 126, 0.16);
}

.dashboard-time-summary-card--blue .dashboard-time-summary-icon,
.dashboard-time-badge--blue {
  background: rgba(75, 116, 255, 0.10);
  color: #3f64d8;
  border-color: rgba(75, 116, 255, 0.14);
}

.dashboard-time-summary-card--warning .dashboard-time-summary-icon,
.dashboard-time-badge--warning {
  background: rgba(245, 185, 75, 0.16);
  color: #a7660a;
  border-color: rgba(245, 185, 75, 0.22);
}

.dashboard-time-summary-card--danger .dashboard-time-summary-icon,
.dashboard-time-badge--danger {
  background: rgba(242, 95, 92, 0.12);
  color: #d6453e;
  border-color: rgba(242, 95, 92, 0.18);
}

.dashboard-time-main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 18px !important;
}

.dashboard-time-workload-card,
.dashboard-time-delays-card,
.dashboard-time-priority-card,
.dashboard-time-upcoming-card {
  min-height: 292px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #dfe8ee;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 54, 54, 0.045);
}

.dashboard-time-section-head {
  align-items: center;
  margin-bottom: 0;
}

.dashboard-time-section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-time-section-head .dashboard-home-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.dashboard-time-section-head h4 {
  margin: 0;
  color: #17324d;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.dashboard-time-section-head p {
  display: none !important;
}

.dashboard-time-panel-link,
.dashboard-time-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid #dce6ef;
  background: #ffffff;
  color: #0f5f73;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-time-panel-link:hover,
.dashboard-time-footer-link:hover {
  background: #f6fbfc;
  border-color: rgba(3, 115, 140, 0.18);
}

.dashboard-time-workload-table-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.9fr) minmax(120px, 0.45fr);
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid #e6edf3;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #f9fbfd;
  color: #8a99ad;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.dashboard-time-workload-list,
.dashboard-time-delay-list {
  gap: 0 !important;
  border: 1px solid #e6edf3 !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: none !important;
}

.dashboard-time-workload-list {
  border-radius: 0 0 18px 18px !important;
}

.dashboard-time-workload-row {
  grid-template-columns: 26px 48px minmax(0, 1fr) !important;
  padding: 16px 18px !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  box-shadow: none !important;
}

.dashboard-time-workload-row:last-child,
.dashboard-time-delay-row:last-child {
  border-bottom: 0 !important;
}

.dashboard-time-workload-row .dashboard-home-team-avatar,
.dashboard-time-delay-row .dashboard-home-team-avatar {
  box-shadow: 0 0 0 3px #fff, 0 8px 16px rgba(15, 23, 42, 0.10);
}

.dashboard-time-workload-row .dashboard-home-team-load-head strong,
.dashboard-time-delay-row .dashboard-home-team-overdue-copy strong {
  color: #17324d;
  font-size: 14px;
  font-weight: 850;
}

.dashboard-time-workload-row .dashboard-home-team-load-head span,
.dashboard-time-delay-row .dashboard-home-team-overdue-copy span {
  width: fit-content;
  margin-top: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f6f8;
  color: #6f8194;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-time-workload-row .dashboard-home-team-load-barline {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px;
  margin-top: 8px;
}

.dashboard-time-workload-row .dashboard-home-team-bar {
  height: 7px !important;
  background: #e8edf2 !important;
}

.dashboard-time-workload-row .dashboard-home-team-load-hours {
  color: #6e7f94;
  font-size: 12px;
}

.dashboard-time-percent {
  min-width: 54px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef6f1;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.dashboard-time-percent--safe {
  color: #2f8f4e !important;
  background: #edf9f1;
}

.dashboard-time-percent--warning {
  color: #b67400 !important;
  background: #fff5df;
}

.dashboard-time-percent--critical,
.dashboard-time-percent--danger {
  color: #d74d4d !important;
  background: #fff0f0;
}

.dashboard-time-legend {
  padding: 0 !important;
  gap: 16px !important;
  color: #6b7c91 !important;
  font-size: 12px !important;
}

.dashboard-time-legend i.is-overload {
  background: #b83939;
}

.dashboard-time-delay-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto !important;
  padding: 17px 18px !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  box-shadow: none !important;
}

.dashboard-time-delay-row .dashboard-home-team-overdue-count strong {
  color: #f04b43;
  font-size: 20px;
}

.dashboard-time-row-button {
  min-height: 34px !important;
  margin-top: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.dashboard-time-footer-link {
  width: fit-content;
  margin-top: -2px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #5c7f99;
}

.dashboard-time-priority-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.dashboard-time-donut {
  width: 148px;
  height: 148px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--dashboard-time-donut);
  position: relative;
}

.dashboard-time-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #edf2f7;
}

.dashboard-time-donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  line-height: 1.1;
}

.dashboard-time-donut strong {
  font-size: 30px;
  font-weight: 850;
  color: #17324d;
}

.dashboard-time-donut span {
  font-size: 12px;
  font-weight: 800;
  color: #73849a;
}

.dashboard-time-priority-list {
  display: grid;
  gap: 0;
  border: 1px solid #e6edf3;
  border-radius: 16px;
  overflow: hidden;
}

.dashboard-time-priority-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
}

.dashboard-time-priority-item:last-child {
  border-bottom: 0;
}

.dashboard-time-priority-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6f8194;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-time-priority-label i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dashboard-time-priority-item strong {
  color: #17324d;
  font-size: 13px;
  font-weight: 850;
}

.dashboard-time-priority-item small {
  color: #8a99ad;
  font-weight: 700;
}

.dashboard-time-upcoming-list {
  display: grid;
  gap: 0;
  border: 1px solid #e6edf3;
  border-radius: 18px;
  overflow: hidden;
}

.dashboard-time-upcoming-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
}

.dashboard-time-upcoming-item:last-child {
  border-bottom: 0;
}

.dashboard-time-upcoming-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-time-upcoming-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-time-upcoming-icon--green {
  color: #2c8c5f;
  background: rgba(81, 166, 126, 0.12);
}

.dashboard-time-upcoming-icon--blue {
  color: #3f64d8;
  background: rgba(75, 116, 255, 0.10);
}

.dashboard-time-upcoming-icon--purple {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.10);
}

.dashboard-time-upcoming-icon--orange {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}

.dashboard-time-upcoming-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-time-upcoming-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #17324d;
  font-size: 14px;
  font-weight: 850;
}

.dashboard-time-upcoming-copy span {
  color: #73849a;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-time-upcoming-date {
  display: grid;
  gap: 3px;
  text-align: right;
  white-space: nowrap;
}

.dashboard-time-upcoming-date strong {
  color: #2c8c5f;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-time-upcoming-date span {
  color: #6f8194;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1280px) {
  .dashboard-time-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-time-main-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .dashboard-time-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-time-summary-card,
  .dashboard-time-upcoming-item,
  .dashboard-time-delay-row {
    grid-template-columns: 1fr !important;
    align-items: start;
  }

  .dashboard-time-workload-table-head {
    display: none;
  }

  .dashboard-time-workload-list {
    border-radius: 18px !important;
  }

  .dashboard-time-workload-row {
    grid-template-columns: 28px 44px minmax(0, 1fr) !important;
  }

  .dashboard-time-priority-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dashboard-time-upcoming-date {
    text-align: left;
  }
}

/* ================================================================
   Dashboard Início — Guia Operacional / Sala de Controle Operacional
   Escopo: somente conteúdo interno da aba Operacional
   ================================================================ */
.dashboard-operational-control-view {
  display: grid;
  gap: 24px;
  padding-top: 22px;
}

.dashboard-operational-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-operational-kpi {
  min-height: 112px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(205, 222, 226, .86);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 34px rgba(15, 54, 54, .06);
}

.dashboard-operational-kpi-icon,
.dashboard-operational-card-icon,
.dashboard-operational-queue-type-icon,
.dashboard-operational-risk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-operational-kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  color: #0f6f84;
  background: rgba(3, 115, 140, .10);
}

.dashboard-operational-kpi-icon svg,
.dashboard-operational-card-icon svg,
.dashboard-operational-queue-type-icon svg,
.dashboard-operational-risk-icon svg,
.dashboard-operational-risk-chevron svg,
.dashboard-operational-action-btn svg,
.dashboard-operational-footer-link svg,
.dashboard-operational-row-chevron svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-operational-kpi-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.dashboard-operational-kpi-copy > span {
  color: #52647a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-operational-kpi-value-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-operational-kpi-value-line strong {
  color: #0b2f4d;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-operational-kpi-value-line em,
.dashboard-operational-monitor-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-operational-kpi-copy small {
  color: #72849b;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-operational-kpi--warning .dashboard-operational-kpi-icon,
.dashboard-operational-kpi--warning .dashboard-operational-kpi-value-line em {
  color: #c27609;
  background: rgba(245, 158, 11, .13);
}
.dashboard-operational-kpi--danger .dashboard-operational-kpi-icon,
.dashboard-operational-kpi--danger .dashboard-operational-kpi-value-line em {
  color: #dc2626;
  background: rgba(220, 38, 38, .11);
}
.dashboard-operational-kpi--neutral .dashboard-operational-kpi-icon,
.dashboard-operational-kpi--neutral .dashboard-operational-kpi-value-line em {
  color: #3b82f6;
  background: rgba(59, 130, 246, .11);
}
.dashboard-operational-kpi--blue .dashboard-operational-kpi-icon,
.dashboard-operational-kpi--blue .dashboard-operational-kpi-value-line em {
  color: #3b82f6;
  background: rgba(59, 130, 246, .12);
}
.dashboard-operational-kpi--success .dashboard-operational-kpi-icon,
.dashboard-operational-kpi--success .dashboard-operational-kpi-value-line em {
  color: #15945f;
  background: rgba(34, 197, 94, .12);
}

.dashboard-operational-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .88fr);
  gap: 18px;
}

.dashboard-operational-control-card {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
  border: 1px solid rgba(205, 222, 226, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 16px 34px rgba(15, 54, 54, .055);
}

.dashboard-operational-queue-card,
.dashboard-operational-risk-card {
  min-height: 404px;
}

.dashboard-operational-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-operational-card-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-operational-card-head h4 {
  margin: 0;
  color: #16324f;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.dashboard-operational-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #0f6f84;
  background: rgba(3, 115, 140, .10);
}
.dashboard-operational-card-icon--shield { color: #15945f; background: rgba(34, 197, 94, .11); }
.dashboard-operational-card-icon--success { color: #15945f; background: rgba(34, 197, 94, .10); }
.dashboard-operational-card-icon--blue { color: #3b82f6; background: rgba(59, 130, 246, .11); }

.dashboard-operational-queue-list,
.dashboard-operational-risk-list,
.dashboard-operational-compact-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.dashboard-operational-queue-list {
  border: 1px solid rgba(205, 222, 226, .9);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.dashboard-operational-queue-row {
  display: grid;
  grid-template-columns: 38px 100px minmax(160px, 1fr) 118px 92px 132px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(224, 234, 236, .86);
  position: relative;
}

.dashboard-operational-queue-row:last-child { border-bottom: 0; }
.dashboard-operational-queue-row::before {
  content: '';
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 999px;
  background: rgba(3, 115, 140, .40);
}
.dashboard-operational-queue-row--critical::before { background: #ef4444; }
.dashboard-operational-queue-row--high::before { background: #f59e0b; }

.dashboard-operational-queue-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #c27609;
  background: rgba(245, 158, 11, .13);
}
.dashboard-operational-queue-row--critical .dashboard-operational-queue-type-icon { color:#dc2626; background:rgba(220,38,38,.10); }
.dashboard-operational-queue-row--high .dashboard-operational-queue-type-icon { color:#d97706; background:rgba(245,158,11,.12); }

.dashboard-operational-queue-type {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.dashboard-operational-queue-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.dashboard-operational-queue-copy strong {
  color: #17324d;
  font-size: 14px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-operational-queue-copy span,
.dashboard-operational-queue-time {
  color: #66788c;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-operational-priority {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 7px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.dashboard-operational-priority::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.dashboard-operational-priority--critical { color:#dc2626; background:rgba(220,38,38,.10); }
.dashboard-operational-priority--high { color:#d97706; background:rgba(245,158,11,.13); }

.dashboard-operational-action-btn,
.dashboard-operational-footer-link,
.dashboard-operational-row-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(3, 115, 140, .18);
  background: #fff;
  color: #0f6f84;
  font-weight: 850;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.dashboard-operational-action-btn {
  min-height: 38px;
  border-radius: 13px;
  padding: 0 14px;
  font-size: 12px;
}
.dashboard-operational-action-btn:hover,
.dashboard-operational-footer-link:hover,
.dashboard-operational-row-chevron:hover {
  transform: translateY(-1px);
  background: rgba(3, 115, 140, .055);
  border-color: rgba(3, 115, 140, .28);
}

.dashboard-operational-footer-link {
  justify-self: center;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #0f6f84;
  padding: 0 10px;
  font-size: 13px;
}

.dashboard-operational-risk-list {
  gap: 10px;
}

.dashboard-operational-risk-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 54px minmax(110px, 1fr) 54px minmax(94px, .68fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(205, 222, 226, .88);
  border-radius: 18px;
  background: #fff;
  text-align: left;
}
.dashboard-operational-risk-row strong { color:#17324d; font-size:18px; font-weight:850; }
.dashboard-operational-risk-row em { color:#ef4444; font-size:31px; font-style:normal; font-weight:900; text-align:right; line-height:1; }
.dashboard-operational-risk-row small { color:#52647a; font-size:14px; line-height:1.25; }
.dashboard-operational-risk-icon { width:46px; height:46px; border-radius:999px; }
.dashboard-operational-risk-row--danger .dashboard-operational-risk-icon { color:#ef4444; background:rgba(239,68,68,.12); }
.dashboard-operational-risk-row--warning .dashboard-operational-risk-icon { color:#f59e0b; background:rgba(245,158,11,.14); }
.dashboard-operational-risk-row--blue .dashboard-operational-risk-icon,
.dashboard-operational-risk-row--neutral .dashboard-operational-risk-icon { color:#3b82f6; background:rgba(59,130,246,.13); }
.dashboard-operational-risk-row--success .dashboard-operational-risk-icon { color:#16a34a; background:rgba(34,197,94,.13); }
.dashboard-operational-risk-row--warning em { color:#f97316; }
.dashboard-operational-risk-row--blue em,
.dashboard-operational-risk-row--neutral em { color:#3b82f6; }
.dashboard-operational-risk-row--success em { color:#16a34a; }
.dashboard-operational-risk-chevron { color:#64748b; }

.dashboard-operational-risk-meter {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}
.dashboard-operational-risk-meter-head,
.dashboard-operational-risk-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 13px;
}
.dashboard-operational-risk-meter-head strong { color:#17324d; }
.dashboard-operational-risk-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0 22%, #84cc16 22% 34%, #f59e0b 34% 56%, #f97316 56% 72%, #ef4444 72% 100%);
  overflow: visible;
}
.dashboard-operational-risk-marker {
  position: absolute;
  top: -5px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #0f6f84;
}

.dashboard-operational-compact-list {
  border: 1px solid rgba(205, 222, 226, .9);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.dashboard-operational-compact-head,
.dashboard-operational-compact-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr .82fr .78fr 32px;
  align-items: center;
  gap: 12px;
}
.dashboard-operational-compact-head {
  min-height: 44px;
  padding: 0 16px;
  background: #f8fafc;
  color: #8797aa;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dashboard-operational-compact-row {
  min-height: 58px;
  padding: 10px 16px;
  border-top: 1px solid rgba(224, 234, 236, .86);
}
.dashboard-operational-compact-row strong { color:#17324d; font-size:14px; font-weight:850; }
.dashboard-operational-compact-row span,
.dashboard-operational-compact-row small { color:#66788c; font-size:12px; }
.dashboard-operational-row-chevron {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  padding: 0;
  justify-self: end;
}

.dashboard-operational-monitor-badge {
  color: #3b82f6;
  background: rgba(59, 130, 246, .11);
}

.dashboard-operational-blockers-card .dashboard-empty-inline,
.dashboard-operational-queue-card .dashboard-empty-inline,
.dashboard-operational-sensitive-card .dashboard-empty-inline {
  margin: 0;
  min-height: 178px;
  border-radius: 18px;
  border-color: rgba(173, 196, 205, .70);
}

@media (max-width: 1320px) {
  .dashboard-operational-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-operational-control-grid { grid-template-columns: 1fr; }
  .dashboard-operational-queue-card,
  .dashboard-operational-risk-card { min-height: auto; }
}

@media (max-width: 920px) {
  .dashboard-operational-queue-row,
  .dashboard-operational-compact-head,
  .dashboard-operational-compact-row,
  .dashboard-operational-risk-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .dashboard-operational-risk-row em { text-align:left; }
  .dashboard-operational-action-btn,
  .dashboard-operational-row-chevron { justify-self: start; }
}

@media (max-width: 680px) {
  .dashboard-operational-kpi-grid { grid-template-columns: 1fr; }
  .dashboard-operational-kpi { grid-template-columns: 1fr; }
  .dashboard-operational-control-card { padding: 18px; }
}

/* ================================================================
   HOME — CABEÇALHO COM SAUDAÇÃO + IMAGEM CENTRAL + KPIs SOBREPOSTOS
   Escopo exclusivo: novo cabeçalho da tela Início.
   Mantém imagens dinâmicas por período e reorganiza apenas o hero.
   ================================================================ */
.dashboard-home-hero.dashboard-home-hero--landscape-kpi {
  position: relative !important;
  min-height: 214px !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 320px) minmax(420px, 1fr) minmax(520px, 0.92fr) !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 20px 0 28px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(90deg, rgba(236,246,243,0.96) 0%, rgba(244,250,248,0.90) 52%, rgba(255,255,255,0.72) 100%) !important;
  box-shadow: none !important;
}

.dashboard-home-hero--landscape-kpi::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 30% 8%, rgba(255,255,255,0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 12%, rgba(255,255,255,0.50) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(255,255,255,0.36), transparent 70%) !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-hero-copy--left {
  position: relative !important;
  z-index: 3 !important;
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  height: 100% !important;
  padding: 0 18px 0 0 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-greeting-copy {
  display: grid !important;
  gap: 10px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-title {
  margin: 0 !important;
  max-width: 300px !important;
  font-size: clamp(30px, 2.15vw, 42px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.055em !important;
  font-weight: 800 !important;
  color: #082f59 !important;
  white-space: normal !important;
  text-wrap: balance !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
.dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
  margin: 0 !important;
  max-width: 250px !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: #567088 !important;
}

.dashboard-home-hero-landscape {
  position: relative !important;
  z-index: 1 !important;
  height: 188px !important;
  min-height: 188px !important;
  align-self: stretch !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: -18px !important;
  margin-right: -132px !important;
  pointer-events: none !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
  width: 100% !important;
  height: 188px !important;
  min-height: 188px !important;
  max-width: none !important;
  margin: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  opacity: 1 !important;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.22) 6%, rgba(0,0,0,0.92) 18%, #000 55%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 13%, #000 88%, transparent 100%) !important;
  -webkit-mask-composite: source-in !important;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.22) 6%, rgba(0,0,0,0.92) 18%, #000 55%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 13%, #000 88%, transparent 100%) !important;
  mask-composite: intersect !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
  position: relative !important;
  z-index: 4 !important;
  min-height: 136px !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: -34px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: hidden !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  height: 100% !important;
  align-items: stretch !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
  min-height: 126px !important;
  height: 126px !important;
  padding: 22px 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  border: 0 !important;
  border-right: 1px solid rgba(219,229,234,0.92) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
  border-right: 0 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  flex: 0 0 54px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon svg {
  width: 24px !important;
  height: 24px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-copy {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-label,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-label {
  font-size: 13px !important;
  line-height: 1.18 !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-value {
  font-size: 34px !important;
  line-height: 0.96 !important;
  font-weight: 800 !important;
  color: #0f3150 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-helper {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-session-card-copy {
  display: grid !important;
  gap: 14px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-session-status {
  min-height: 30px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

@media (max-width: 1500px) {
  .dashboard-home-hero.dashboard-home-hero--landscape-kpi {
    grid-template-columns: minmax(245px, 300px) minmax(360px, 1fr) minmax(480px, 0.95fr) !important;
    min-height: 198px !important;
    padding-left: 24px !important;
  }

  .dashboard-home-hero-landscape,
  .dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
    height: 172px !important;
    min-height: 172px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-title {
    font-size: clamp(28px, 2.1vw, 38px) !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
  .dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
    font-size: 16px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator,
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
    min-height: 116px !important;
    height: 116px !important;
    padding: 18px 18px !important;
    gap: 12px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-value {
    font-size: 28px !important;
  }
}

@media (max-width: 1220px) {
  .dashboard-home-hero.dashboard-home-hero--landscape-kpi {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 24px !important;
    background: linear-gradient(180deg, rgba(236,246,243,0.96), rgba(255,255,255,0.78)) !important;
  }

  .dashboard-home-hero-landscape {
    order: 2 !important;
    margin: 0 !important;
    height: 180px !important;
    min-height: 180px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
    height: 180px !important;
    min-height: 180px !important;
    border-radius: 24px !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
    order: 3 !important;
    margin-left: 0 !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator:nth-child(2),
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
    border-right: 0 !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator:nth-child(1),
  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator:nth-child(2) {
    border-bottom: 1px solid rgba(219,229,234,0.92) !important;
  }
}

@media (max-width: 720px) {
  .dashboard-home-hero.dashboard-home-hero--landscape-kpi {
    padding: 20px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-title {
    max-width: none !important;
    font-size: 30px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
  .dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
    max-width: none !important;
    font-size: 15px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    grid-template-columns: 1fr !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator,
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(219,229,234,0.92) !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
    border-bottom: 0 !important;
  }
}

/* ================================================================
   HOME — HERO PREMIUM INTEGRADO (mockup aprovado)
   Escopo: somente cabeçalho da tela Início.
   Mantém imagens dinâmicas e preserva abas/conteúdo das guias.
   ================================================================ */
.dashboard-home-hero.dashboard-home-hero--landscape-kpi {
  position: relative !important;
  min-height: 292px !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 0.72fr) minmax(260px, 0.72fr) minmax(650px, 1.36fr) !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 44px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(26,122,122,0.08) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 6% 52%, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.52) 30%, transparent 48%),
    linear-gradient(90deg, rgba(239,248,245,0.98) 0%, rgba(239,248,245,0.80) 33%, rgba(247,252,250,0.64) 100%) !important;
  box-shadow: 0 20px 48px rgba(15,54,54,0.08) !important;
  isolation: isolate !important;
}

.dashboard-home-hero.dashboard-home-hero--landscape-kpi::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse at 4% 58%, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.54) 30%, transparent 48%),
    radial-gradient(ellipse at 92% 18%, rgba(90,170,69,0.11) 0%, transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.34), transparent 68%) !important;
}

.dashboard-home-hero.dashboard-home-hero--landscape-kpi::after {
  content: '' !important;
  position: absolute !important;
  left: -86px !important;
  bottom: -120px !important;
  width: 360px !important;
  height: 360px !important;
  z-index: 1 !important;
  pointer-events: none !important;
  opacity: 0.23 !important;
  background:
    url("data:image/svg+xml,%3Csvg width='360' height='360' viewBox='0 0 360 360' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a7a7a' stroke-width='2' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M48 310C92 232 112 154 90 63'/%3E%3Cpath d='M73 255c-29-12-47-32-56-60 31-3 58 9 80 37'/%3E%3Cpath d='M92 202c-34-15-55-40-62-74 36-1 66 16 88 50'/%3E%3Cpath d='M97 146c-26-25-36-55-29-91 31 13 51 38 59 75'/%3E%3Cpath d='M116 292c31-62 72-104 134-123'/%3E%3Cpath d='M157 250c-3-32 10-58 39-79 17 28 13 58-13 88'/%3E%3Cpath d='M202 218c5-35 26-60 63-75 10 36-2 66-35 91'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-hero-copy--left {
  position: relative !important;
  z-index: 5 !important;
  grid-column: 1 / 2 !important;
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  height: 100% !important;
  padding: 10px 18px 10px 8px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-greeting-copy {
  display: grid !important;
  gap: 20px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-title {
  margin: 0 !important;
  max-width: 360px !important;
  font-size: clamp(42px, 3.7vw, 70px) !important;
  line-height: 0.99 !important;
  letter-spacing: -0.07em !important;
  font-weight: 800 !important;
  color: #082f59 !important;
  white-space: normal !important;
  text-wrap: balance !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
.dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
  margin: 0 !important;
  max-width: 370px !important;
  font-size: clamp(17px, 1.15vw, 22px) !important;
  line-height: 1.34 !important;
  font-weight: 600 !important;
  color: #567088 !important;
}

.dashboard-home-hero-landscape {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 0 0 235px !important;
  height: auto !important;
  min-height: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
  display: block !important;
  pointer-events: none !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
  width: 100% !important;
  height: 100% !important;
  min-height: 292px !important;
  max-width: none !important;
  margin: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  opacity: 1 !important;
  filter: saturate(1.03) contrast(1.02) !important;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 5%, rgba(0,0,0,0.72) 15%, #000 36%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 11%, #000 90%, transparent 100%) !important;
  -webkit-mask-composite: source-in !important;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 5%, rgba(0,0,0,0.72) 15%, #000 36%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 11%, #000 90%, transparent 100%) !important;
  mask-composite: intersect !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-hero-illustration--morning {
  object-position: center 52% !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-hero-illustration--afternoon {
  object-position: center 50% !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-hero-illustration--night {
  object-position: center 50% !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
  position: relative !important;
  z-index: 6 !important;
  grid-column: 3 / 4 !important;
  width: 100% !important;
  max-width: 760px !important;
  min-height: 198px !important;
  margin: 0 0 0 auto !important;
  padding: 18px !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(222,232,235,0.92) !important;
  border-radius: 34px !important;
  box-shadow: 0 26px 56px rgba(15,54,54,0.14) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  overflow: visible !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  min-height: 164px !important;
  align-items: stretch !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
  position: relative !important;
  min-height: 164px !important;
  height: auto !important;
  padding: 20px 15px 17px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  border: 1px solid rgba(222,232,235,0.96) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(15,54,54,0.07) !important;
  overflow: hidden !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator::before,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 5px !important;
  background: var(--hero-kpi-accent, #1a7a7a) !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator--teal { --hero-kpi-accent: #34a853; }
.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator--blue { --hero-kpi-accent: #3b82f6; }
.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator--amber { --hero-kpi-accent: #f59e0b; }
.dashboard-home-hero--landscape-kpi .dashboard-home-session-card { --hero-kpi-accent: #3d9a4d; }

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  flex: 0 0 58px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--hero-kpi-accent, var(--blue)) !important;
  background: color-mix(in srgb, var(--hero-kpi-accent, var(--blue)) 10%, white) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70) !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon svg {
  width: 26px !important;
  height: 26px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-copy,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-card-copy {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-label,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-label {
  max-width: 128px !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #52647a !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-value {
  font-size: 38px !important;
  line-height: 0.92 !important;
  font-weight: 800 !important;
  color: #0b3154 !important;
  letter-spacing: -0.035em !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-helper {
  min-height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  color: transparent !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-helper::after,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-card-copy::after {
  content: '' !important;
  width: 74px !important;
  height: 18px !important;
  display: block !important;
  background:
    url("data:image/svg+xml,%3Csvg width='74' height='18' viewBox='0 0 74 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12 C7 4 14 4 21 12 S35 20 42 12 S56 4 63 12 S70 16 73 10' fill='none' stroke='%2334a853' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator--blue .dashboard-home-mini-helper::after {
  background-image: url("data:image/svg+xml,%3Csvg width='74' height='18' viewBox='0 0 74 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11 C7 7 12 7 18 11 S31 16 37 11 S49 6 55 11 S67 16 73 9' fill='none' stroke='%233b82f6' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator--amber .dashboard-home-mini-helper::after {
  background-image: url("data:image/svg+xml,%3Csvg width='74' height='18' viewBox='0 0 74 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12 C7 8 12 8 18 12 S31 16 37 12 S49 7 55 12 S67 16 73 10' fill='none' stroke='%23f97316' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-session-card-copy {
  gap: 10px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-session-card-copy::after {
  margin-top: 4px !important;
  background-image: url("data:image/svg+xml,%3Csvg width='74' height='18' viewBox='0 0 74 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12 C7 6 14 6 21 12 S35 18 42 12 S56 6 63 12 S70 16 73 10' fill='none' stroke='%2334a853' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-session-status {
  min-height: 34px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 999px !important;
  background: rgba(46,125,50,0.12) !important;
  border: 1px solid rgba(46,125,50,0.15) !important;
  color: #2e7d32 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-session-status::before {
  content: '' !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  box-shadow: 0 0 0 4px rgba(46,125,50,0.14) !important;
}

@media (max-width: 1540px) {
  .dashboard-home-hero.dashboard-home-hero--landscape-kpi {
    min-height: 250px !important;
    grid-template-columns: minmax(270px, 0.7fr) minmax(220px, 0.58fr) minmax(560px, 1.32fr) !important;
    padding: 0 30px !important;
  }

  .dashboard-home-hero-landscape {
    inset: 0 0 0 205px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
    min-height: 250px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-title {
    font-size: clamp(34px, 3.2vw, 52px) !important;
    max-width: 300px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
  .dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
    font-size: 17px !important;
    max-width: 270px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
    max-width: 640px !important;
    min-height: 164px !important;
    padding: 14px !important;
    border-radius: 28px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    min-height: 136px !important;
    gap: 12px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator,
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
    min-height: 136px !important;
    padding: 17px 10px 13px !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    border-radius: 14px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon svg {
    width: 21px !important;
    height: 21px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-label,
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-label {
    font-size: 12px !important;
    min-height: 27px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-value {
    font-size: 30px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-helper::after,
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-card-copy::after {
    width: 54px !important;
    height: 13px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-session-status {
    min-height: 26px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 1220px) {
  .dashboard-home-hero.dashboard-home-hero--landscape-kpi {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 24px !important;
    overflow: hidden !important;
    border-radius: 26px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-copy--left,
  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
    grid-column: 1 / -1 !important;
  }

  .dashboard-home-hero-landscape {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    height: 210px !important;
    min-height: 210px !important;
    margin: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
    min-height: 210px !important;
    height: 210px !important;
    border-radius: 24px !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
    order: 3 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .dashboard-home-hero.dashboard-home-hero--landscape-kpi {
    padding: 20px !important;
    border-radius: 22px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-title {
    max-width: none !important;
    font-size: 34px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
  .dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
    max-width: none !important;
    font-size: 15px !important;
  }

  .dashboard-home-hero-landscape,
  .dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
    height: 170px !important;
    min-height: 170px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
    padding: 12px !important;
    border-radius: 22px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   HOME — HERO PREMIUM / LAPIDAÇÃO FINAL
   Escopo exclusivo: cabeçalho da tela Início.
   Ajustes: saudação levemente menor, cards mais compactos,
   imagem mais respirada e transição esquerda-centro mais orgânica.
   ================================================================ */
.dashboard-home-hero.dashboard-home-hero--landscape-kpi {
  min-height: 274px !important;
  grid-template-columns: minmax(288px, 0.68fr) minmax(300px, 0.78fr) minmax(600px, 1.22fr) !important;
  padding: 0 38px !important;
  background:
    radial-gradient(circle at 5% 52%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.62) 28%, rgba(241,249,246,0.28) 44%, transparent 58%),
    linear-gradient(90deg, rgba(239,248,245,0.99) 0%, rgba(237,247,244,0.88) 32%, rgba(246,252,250,0.72) 66%, rgba(248,252,251,0.94) 100%) !important;
}

.dashboard-home-hero.dashboard-home-hero--landscape-kpi::before {
  background:
    radial-gradient(ellipse at 3% 56%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.58) 31%, rgba(239,248,245,0.28) 49%, transparent 65%),
    radial-gradient(ellipse at 43% 48%, rgba(26,122,122,0.055) 0%, transparent 48%),
    radial-gradient(ellipse at 91% 18%, rgba(90,170,69,0.10) 0%, transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,0.30) 0%, transparent 42%, rgba(255,255,255,0.20) 100%) !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-greeting-copy {
  gap: 15px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-title {
  max-width: 335px !important;
  font-size: clamp(38px, 3.35vw, 62px) !important;
  line-height: 1.01 !important;
  letter-spacing: -0.064em !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
.dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
  max-width: 340px !important;
  font-size: clamp(16px, 1.02vw, 20px) !important;
  line-height: 1.36 !important;
}

.dashboard-home-hero-landscape {
  inset: 0 0 0 210px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
  min-height: 274px !important;
  object-position: 45% center !important;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.12) 4%, rgba(0,0,0,0.66) 13%, #000 31%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.12) 4%, rgba(0,0,0,0.66) 13%, #000 31%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
  max-width: 700px !important;
  min-height: 178px !important;
  padding: 15px !important;
  border-radius: 30px !important;
  box-shadow: 0 22px 46px rgba(15,54,54,0.12) !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
  min-height: 148px !important;
  gap: 12px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
  min-height: 148px !important;
  padding: 16px 12px 13px !important;
  gap: 8px !important;
  border-radius: 17px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon {
  width: 48px !important;
  height: 48px !important;
  flex-basis: 48px !important;
  border-radius: 16px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-label,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-label {
  font-size: 12px !important;
  min-height: 26px !important;
  line-height: 1.12 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-value {
  font-size: 32px !important;
  line-height: 0.94 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-helper::after,
.dashboard-home-hero--landscape-kpi .dashboard-home-session-card-copy::after {
  width: 58px !important;
  height: 13px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-session-status {
  min-height: 28px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

@media (max-width: 1540px) {
  .dashboard-home-hero.dashboard-home-hero--landscape-kpi {
    min-height: 236px !important;
    grid-template-columns: minmax(258px, 0.66fr) minmax(230px, 0.64fr) minmax(520px, 1.22fr) !important;
    padding: 0 26px !important;
  }

  .dashboard-home-hero-landscape {
    inset: 0 0 0 190px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
    min-height: 236px !important;
    object-position: 45% center !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-greeting-copy {
    gap: 12px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-title {
    max-width: 280px !important;
    font-size: clamp(30px, 2.85vw, 46px) !important;
    line-height: 1.01 !important;
    letter-spacing: -0.058em !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
  .dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
    max-width: 255px !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
    max-width: 600px !important;
    min-height: 150px !important;
    padding: 12px !important;
    border-radius: 25px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    min-height: 126px !important;
    gap: 10px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator,
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-card {
    min-height: 126px !important;
    padding: 14px 9px 10px !important;
    gap: 7px !important;
    border-radius: 15px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 13px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-label,
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-label {
    font-size: 11px !important;
    min-height: 24px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-value {
    font-size: 28px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-helper::after,
  .dashboard-home-hero--landscape-kpi .dashboard-home-session-card-copy::after {
    width: 48px !important;
    height: 11px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-session-status {
    min-height: 24px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }
}

/* ================================================================
   HOME — HERO PREMIUM / AJUSTE 3 KPIs À DIREITA
   Escopo exclusivo: cabeçalho da tela Início.
   Ajustes: remove o card de sessão do hero via JS, mantém 3 KPIs,
   reduz a saudação, aplica preto suave e reposiciona os cards à direita.
   ================================================================ */
.dashboard-home-hero.dashboard-home-hero--landscape-kpi {
  min-height: 246px !important;
  grid-template-columns: minmax(258px, 0.62fr) minmax(420px, 1fr) minmax(450px, 0.86fr) !important;
  padding: 0 38px 0 34px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-title {
  max-width: 310px !important;
  font-size: clamp(32px, 2.9vw, 52px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.058em !important;
  color: #111827 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
.dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
  max-width: 300px !important;
  font-size: clamp(15px, 0.95vw, 18px) !important;
  color: #53677a !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-greeting-copy {
  gap: 12px !important;
}

.dashboard-home-hero-landscape {
  inset: 0 0 0 205px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
  min-height: 246px !important;
  object-position: 48% center !important;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.14) 4%, rgba(0,0,0,0.72) 14%, #000 34%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.14) 4%, rgba(0,0,0,0.72) 14%, #000 34%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
  justify-self: end !important;
  max-width: 486px !important;
  min-height: 148px !important;
  padding: 12px !important;
  border-radius: 28px !important;
  margin-left: auto !important;
  box-shadow: 0 22px 46px rgba(15,54,54,0.12) !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  min-height: 124px !important;
  gap: 10px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator {
  min-height: 124px !important;
  padding: 14px 10px 11px !important;
  gap: 7px !important;
  border-radius: 16px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon {
  width: 40px !important;
  height: 40px !important;
  flex-basis: 40px !important;
  border-radius: 14px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon svg {
  width: 19px !important;
  height: 19px !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-label {
  max-width: 112px !important;
  min-height: 24px !important;
  font-size: 11px !important;
  line-height: 1.12 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-value {
  font-size: 29px !important;
  line-height: 0.94 !important;
}

.dashboard-home-hero--landscape-kpi .dashboard-home-mini-helper::after {
  width: 50px !important;
  height: 11px !important;
}

@media (max-width: 1540px) {
  .dashboard-home-hero.dashboard-home-hero--landscape-kpi {
    min-height: 220px !important;
    grid-template-columns: minmax(240px, 0.62fr) minmax(360px, 1fr) minmax(420px, 0.88fr) !important;
    padding: 0 26px !important;
  }

  .dashboard-home-hero-landscape {
    inset: 0 0 0 180px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-hero-illustration {
    min-height: 220px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-title {
    max-width: 255px !important;
    font-size: clamp(28px, 2.55vw, 42px) !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-subtitle,
  .dashboard-home-hero--landscape-kpi .dashboard-hero-greeting-date {
    max-width: 245px !important;
    font-size: 15px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
    max-width: 438px !important;
    min-height: 134px !important;
    padding: 10px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    min-height: 114px !important;
    gap: 9px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-indicator {
    min-height: 114px !important;
    padding: 12px 8px 9px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
    border-radius: 12px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-label {
    font-size: 10px !important;
    min-height: 22px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-value {
    font-size: 25px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-helper::after {
    width: 42px !important;
    height: 10px !important;
  }
}

@media (max-width: 1220px) {
  .dashboard-home-hero--landscape-kpi .dashboard-home-hero-side--overlay {
    max-width: none !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .dashboard-home-hero--landscape-kpi .dashboard-home-title {
    max-width: none !important;
    font-size: 31px !important;
  }

  .dashboard-home-hero--landscape-kpi .dashboard-home-mini-grid--header {
    grid-template-columns: 1fr !important;
  }
}

/* SIDEBAR COLAPSÁVEL — ajuste isolado */
:root { --sidebar-collapsed-width: 88px; }
.shell { transition: grid-template-columns 0.22s ease; }
.shell.sidebar-collapsed { grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr); }
.sidebar-collapse-btn { width:32px; height:32px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:#fff; color:#6A8898; border:1px solid #D8E6E6; box-shadow:0 6px 16px rgba(15,54,54,0.06); padding:0; margin:2px auto 0; transition:background .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease; }
.sidebar-collapse-btn:hover { background:#E6F4F4; color:#03738C; transform:translateY(-1px); box-shadow:0 10px 20px rgba(15,54,54,0.08); }
.sidebar-collapse-icon,.sidebar-collapse-icon svg { width:15px; height:15px; display:inline-flex; align-items:center; justify-content:center; }
.sidebar-collapse-icon svg { stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.nav-group-toggle-left { display:inline-flex; align-items:center; gap:10px; min-width:0; }
.nav-group-icon { width:30px; height:30px; border-radius:8px; display:none; align-items:center; justify-content:center; flex-shrink:0; color:#6A8898; background:#F0F4F5; }
.nav-group-icon svg { width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.shell.sidebar-collapsed .sidebar { padding:18px 10px; gap:16px; align-items:stretch; }
.shell.sidebar-collapsed .sidebar-brand { padding:4px 0 14px; gap:8px; }
.shell.sidebar-collapsed .sidebar-logo { max-width:56px; }
.shell.sidebar-collapsed .sidebar-collapse-btn { transform:rotate(180deg); }
.shell.sidebar-collapsed .sidebar-collapse-btn:hover { transform:rotate(180deg) translateY(1px); }
.shell.sidebar-collapsed .sidebar-nav { gap:8px; justify-items:center; }
.shell.sidebar-collapsed .nav-standalone-group,.shell.sidebar-collapsed .nav-group { width:100%; display:grid; justify-items:center; gap:8px; margin:0; padding:0; }
.shell.sidebar-collapsed .nav-btn,.shell.sidebar-collapsed .nav-group-toggle { width:48px; min-height:48px; height:48px; border-radius:14px; padding:0; margin:0; justify-content:center; }
.shell.sidebar-collapsed .nav-btn-left,.shell.sidebar-collapsed .nav-group-toggle-left { justify-content:center; gap:0; }
.shell.sidebar-collapsed .nav-icon,.shell.sidebar-collapsed .nav-group-icon { display:inline-flex; width:32px; height:32px; }
.shell.sidebar-collapsed .nav-label,.shell.sidebar-collapsed .nav-badge,.shell.sidebar-collapsed .nav-group-label,.shell.sidebar-collapsed .nav-group-arrow,.shell.sidebar-collapsed .nav-group-items,.shell.sidebar-collapsed .nav-group-empty,.shell.sidebar-collapsed .sidebar-caption,.shell.sidebar-collapsed .sidebar-user { display:none!important; }
.shell.sidebar-collapsed .nav-btn:hover,.shell.sidebar-collapsed .nav-group-toggle:hover { transform:none; }
.shell.sidebar-collapsed .nav-btn.active { background:#E6F4F4; color:#03738C; }
@media (max-width:980px) { .shell,.shell.sidebar-collapsed { grid-template-columns:1fr; } .shell.sidebar-collapsed .sidebar { align-items:stretch; } .shell.sidebar-collapsed .sidebar-logo { max-width:160px; } .shell.sidebar-collapsed .sidebar-nav,.shell.sidebar-collapsed .nav-standalone-group,.shell.sidebar-collapsed .nav-group { justify-items:stretch; } .shell.sidebar-collapsed .nav-btn,.shell.sidebar-collapsed .nav-group-toggle { width:100%; min-height:44px; height:auto; justify-content:space-between; padding:0 10px; } .shell.sidebar-collapsed .nav-label,.shell.sidebar-collapsed .nav-group-label,.shell.sidebar-collapsed .nav-group-arrow,.shell.sidebar-collapsed .nav-group-items.open { display:initial!important; } .shell.sidebar-collapsed .sidebar-user { display:grid!important; } .shell.sidebar-collapsed .sidebar-collapse-btn { transform:none; } }

/* ================================================================
   SIDEBAR PREMIUM — refinamento visual isolado
   Escopo exclusivo: navegação lateral esquerda.
   Não altera header, dashboard, abas, cards ou telas internas.
   ================================================================ */
.sidebar {
  background:
    radial-gradient(circle at 50% 96%, rgba(134,191,94,0.14) 0, rgba(134,191,94,0.00) 35%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 48%, #f4f8f7 100%);
  border-right: 1px solid rgba(3,115,140,0.10);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.75), 8px 0 28px rgba(15,54,54,0.035);
  padding: 20px 14px 18px;
  gap: 18px;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
  opacity: .58;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(134,191,94,.22), rgba(134,191,94,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(3,140,140,.045));
}

.sidebar-brand {
  margin: 0 0 8px;
  padding: 16px 12px 18px;
  border: 1px solid rgba(3,115,140,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 12px 26px rgba(15,54,54,0.055);
  backdrop-filter: blur(8px);
}

.sidebar-logo {
  max-width: 156px;
}

.sidebar-collapse-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(3,115,140,0.14);
  color: #5f7b87;
  box-shadow: 0 8px 18px rgba(15,54,54,0.08);
}

.sidebar-collapse-btn:hover {
  color: #03738C;
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

.sidebar-nav {
  gap: 8px;
  z-index: 1;
}

.nav-standalone-group {
  gap: 8px;
  margin: 0 0 8px;
}

.nav-group {
  display: grid;
  gap: 6px;
  padding: 8px 0 10px;
  border-top: 1px solid rgba(3,115,140,0.075);
}

.nav-group:first-of-type {
  border-top: 0;
}

.nav-group-toggle {
  min-height: 38px;
  margin: 0;
  padding: 0 10px;
  border-radius: 14px;
  color: #536b78;
  background: transparent;
  letter-spacing: .16em;
  font-size: 10px;
}

.nav-group-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-group-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #03738C;
  background: rgba(3,140,140,0.09);
}

.nav-group-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-group-toggle:hover,
.nav-group-toggle.open {
  color: #0f5361;
  background: rgba(3,140,140,0.055);
}

.nav-group-arrow {
  color: #8aa0a9;
  opacity: 1;
}

.nav-group-items {
  gap: 3px;
  padding-left: 0;
}

.nav-btn {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  color: #385364;
  font-weight: 600;
  font-size: 13px;
  background: transparent;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.nav-btn:hover {
  background: rgba(3,140,140,0.065);
  color: #0f5361;
  transform: translateX(2px);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(3,115,140,0.13), rgba(134,191,94,0.14));
  color: #03738C;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(3,115,140,0.10), 0 10px 22px rgba(15,54,54,0.055);
}

.nav-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: #03738C;
}

.nav-btn-left {
  gap: 10px;
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #03738C;
  background: rgba(3,140,140,0.09);
}

.nav-btn:hover .nav-icon {
  color: #025f74;
  background: rgba(3,140,140,0.14);
}

.nav-btn.active .nav-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #03738C, #038C8C);
}

/* Regra aprovada: subtópicos não possuem ícone no modo aberto. */
.sidebar .nav-group-items .nav-icon {
  display: none !important;
}

.sidebar .nav-group-items .nav-btn {
  padding-left: 18px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 500;
  color: #4b6070;
}

.sidebar .nav-group-items .nav-btn.active {
  font-weight: 700;
  background: rgba(3,140,140,0.08);
  color: #03738C;
  box-shadow: inset 0 0 0 1px rgba(3,115,140,0.08);
}

.sidebar-user {
  z-index: 1;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(3,115,140,0.10);
  box-shadow: 0 12px 26px rgba(15,54,54,0.055);
}

.sidebar-user-name {
  color: #1A3040;
  font-weight: 800;
}

.sidebar-user-meta {
  color: #718793;
}

.sidebar-user-actions .btn {
  border-radius: 12px;
  box-shadow: none;
}

/* Estado recolhido preservado e refinado — sem afetar o cabeçalho. */
.shell.sidebar-collapsed .sidebar {
  padding: 18px 10px;
  gap: 14px;
  align-items: stretch;
}

.shell.sidebar-collapsed .sidebar::before {
  opacity: .25;
}

.shell.sidebar-collapsed .sidebar-brand {
  padding: 12px 8px;
  border-radius: 18px;
}

.shell.sidebar-collapsed .sidebar-logo {
  max-width: 52px;
}

.shell.sidebar-collapsed .sidebar-collapse-btn {
  right: 50%;
  top: auto;
  bottom: -14px;
  transform: translateX(50%) rotate(180deg);
}

.shell.sidebar-collapsed .sidebar-nav {
  gap: 8px;
}

.shell.sidebar-collapsed .nav-standalone-group,
.shell.sidebar-collapsed .nav-group {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.shell.sidebar-collapsed .nav-btn,
.shell.sidebar-collapsed .nav-group-toggle {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 16px;
}

.shell.sidebar-collapsed .nav-btn:hover,
.shell.sidebar-collapsed .nav-group-toggle:hover {
  transform: none;
}

.shell.sidebar-collapsed .nav-btn-left,
.shell.sidebar-collapsed .nav-group-toggle-left {
  justify-content: center;
  gap: 0;
}

.shell.sidebar-collapsed .nav-icon,
.shell.sidebar-collapsed .nav-group-icon {
  display: inline-flex !important;
  width: 32px;
  height: 32px;
}

.shell.sidebar-collapsed .nav-btn.active {
  background: rgba(3,140,140,0.12);
  box-shadow: inset 0 0 0 1px rgba(3,115,140,0.10);
}

.shell.sidebar-collapsed .nav-btn.active::before {
  display: none;
}

.shell.sidebar-collapsed .nav-btn.active .nav-icon {
  background: linear-gradient(135deg, #03738C, #038C8C);
  color: #ffffff;
}

.shell.sidebar-collapsed .nav-label,
.shell.sidebar-collapsed .nav-group-label,
.shell.sidebar-collapsed .nav-group-arrow,
.shell.sidebar-collapsed .nav-badge,
.shell.sidebar-collapsed .nav-group-items,
.shell.sidebar-collapsed .nav-group-empty,
.shell.sidebar-collapsed .sidebar-caption,
.shell.sidebar-collapsed .sidebar-user {
  display: none !important;
}

@media (max-width: 980px) {
  .shell.sidebar-collapsed .sidebar-logo {
    max-width: 156px;
  }

  .shell.sidebar-collapsed .sidebar-collapse-btn {
    right: 12px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .shell.sidebar-collapsed .nav-label,
  .shell.sidebar-collapsed .nav-group-label,
  .shell.sidebar-collapsed .nav-group-arrow,
  .shell.sidebar-collapsed .nav-group-items.open {
    display: initial !important;
  }

  .shell.sidebar-collapsed .sidebar-user {
    display: grid !important;
  }

  .shell.sidebar-collapsed .nav-btn,
  .shell.sidebar-collapsed .nav-group-toggle {
    width: 100%;
    height: auto;
    min-height: 42px;
    justify-content: space-between;
    padding: 0 12px;
  }
}


/* ================================================================
   REGRAS DE SLA DO PRIMEIRO CONTATO — layout da página
   ================================================================ */
.sla-rules-page-shell {
  gap: 14px;
  width: 100%;
}

.sla-rules-toolbar-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.sla-rules-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sla-rules-search-wrap {
  flex: 1 1 460px;
  min-width: 280px;
}

.sla-rules-search-wrap .search-input {
  min-height: 46px;
}

.sla-rules-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.sla-rules-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sla-rules-filter-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.sla-rules-filter-control {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.14);
  background: #fff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sla-rules-filter-control:focus {
  border-color: rgba(26,122,122,0.40);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.sla-rules-table-panel {
  overflow: hidden;
}

.sla-rules-table-wrap {
  border-radius: 18px;
  overflow-x: auto;
}

.sla-rules-table {
  table-layout: fixed;
  min-width: 900px;
}

.sla-rules-table thead th {
  text-align: center;
}

.sla-rules-table .sla-rules-col-service {
  width: 22%;
  text-align: left;
}

.sla-rules-table .sla-rules-col-client-type {
  width: 18%;
}

.sla-rules-table .sla-rules-col-level {
  width: 10%;
}

.sla-rules-table .sla-rules-col-time {
  width: 12%;
}

.sla-rules-table .sla-rules-col-status {
  width: 14%;
}

.sla-rules-table .sla-rules-col-actions {
  width: 14%;
}

.sla-rules-row-main {
  display: grid;
  gap: 4px;
}

.sla-rules-row-main strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.sla-rules-row-main span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sla-rules-time-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(26,122,122,0.16);
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
}

.sla-rules-time-chip {
  background: rgba(90,170,69,0.12);
  border-color: rgba(90,170,69,0.18);
  color: #3d7d30;
}

@media (max-width: 1180px) {
  .sla-rules-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sla-rules-search-row {
    align-items: stretch;
  }

  .sla-rules-search-wrap {
    width: 100%;
    flex-basis: 100%;
  }

  .sla-rules-search-row .btn {
    width: 100%;
  }

  .sla-rules-filter-grid {
    grid-template-columns: 1fr;
  }

  .sla-rules-toolbar-card {
    padding: 14px;
  }
}

/* ================================================================
   REGRAS DE SLA — modal Nova Regra de SLA
   ================================================================ */
.modal-card.sla-rule-modal-card {
  width: min(840px, 100%);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(247,251,250,0.98) 100%);
}

.sla-rule-modal-card .modal-header {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 28px 30px 20px;
  border-bottom: 1px solid rgba(26,122,122,0.10);
}

.sla-rule-modal-card .modal-title {
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.sla-rule-modal-card .modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 24px 30px 28px;
}

.sla-rule-modal-form {
  display: grid;
  gap: 22px;
}

.sla-rule-modal-section {
  display: grid;
  gap: 14px;
}

.sla-rule-modal-section--highlight {
  padding: 20px;
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(26,122,122,0.045), rgba(90,170,69,0.035)), rgba(255,255,255,0.92);
  box-shadow: 0 10px 28px rgba(15,54,54,0.05);
}

.sla-rule-modal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sla-rule-modal-section-header h4 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.sla-rule-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.sla-rule-modal-grid--status {
  grid-template-columns: minmax(220px, 320px);
}

.sla-rule-modal-form .modal-field {
  gap: 8px;
  margin: 0;
}

.sla-rule-modal-form .modal-field label {
  color: #5f7474;
  font-size: 11px;
  letter-spacing: 0.085em;
}

.sla-rule-modal-form .modal-field input,
.sla-rule-modal-form .modal-field select {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.16);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 rgba(15,54,54,0.02);
}

.sla-rule-modal-form .modal-field input:focus,
.sla-rule-modal-form .modal-field select:focus {
  border-color: rgba(26,122,122,0.48);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.sla-rule-modal-actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px -30px -28px;
  padding: 18px 30px 24px;
  border-top: 1px solid rgba(26,122,122,0.10);
  background: linear-gradient(180deg, rgba(247,251,250,0.86), rgba(255,255,255,0.98) 42%, rgba(255,255,255,1) 100%);
  backdrop-filter: blur(8px);
}


.sla-rule-modal-card .modal-subtitle {
  max-width: 640px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sla-rule-required-mark {
  color: var(--danger);
  font-weight: 800;
}

.sla-rule-modal-grid--result {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px);
}

.sla-rule-hours-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.16);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 rgba(15,54,54,0.02);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}

.sla-rule-hours-field:focus-within {
  border-color: rgba(26,122,122,0.48);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.sla-rule-hours-field input {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sla-rule-hours-field span {
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  border-left: 1px solid rgba(26,122,122,0.10);
}

.sla-rule-hours-field.is-invalid {
  border-color: rgba(192,57,43,0.55);
  box-shadow: 0 0 0 4px rgba(192,57,43,0.08);
}

.sla-rule-field-error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.sla-rule-preview {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(26,122,122,0.22);
  background: rgba(26,122,122,0.04);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sla-rule-preview.is-complete {
  border-style: solid;
  border-color: rgba(90,170,69,0.22);
  background: rgba(90,170,69,0.08);
  color: var(--blue-deep);
  font-weight: 700;
}

.sla-rule-modal-actions .btn:disabled {
  box-shadow: none;
}

@media (max-width: 820px) {
  .modal-card.sla-rule-modal-card {
    width: min(100%, 100%);
    max-height: 92vh;
  }

  .sla-rule-modal-card .modal-header {
    padding: 22px 20px 18px;
  }

  .sla-rule-modal-card .modal-body {
    padding: 20px;
  }

  .sla-rule-modal-grid,
  .sla-rule-modal-grid--status {
    grid-template-columns: 1fr;
  }

  .sla-rule-modal-section--highlight {
    padding: 16px;
    border-radius: 18px;
  }

  .sla-rule-modal-actions {
    position: static;
    margin: 0;
    padding: 18px 0 0;
    background: transparent;
    backdrop-filter: none;
  }

  .sla-rule-modal-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   DIAGNÓSTICOS — Modal EAP por abas principais
   ============================================================ */
.diagnosticos-eap-modal-card {
  width: min(1500px, calc(100vw - 24px));
  height: min(920px, calc(100vh - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.diagnosticos-eap-modal-card .modal-header {
  margin-bottom: 18px;
  flex-shrink: 0;
}

.diagnosticos-eap-modal-card .modal-body {
  min-height: 0;
  display: grid;
}

.diagnosticos-eap-modal-card .diagnosticos-modal-form.modern-layout {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
}

.diagnosticos-eap-shell {
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.diagnosticos-eap-shell::-webkit-scrollbar {
  width: 8px;
}

.diagnosticos-eap-shell::-webkit-scrollbar-track {
  background: rgba(26,122,122,0.04);
  border-radius: 999px;
}

.diagnosticos-eap-shell::-webkit-scrollbar-thumb {
  background: rgba(26,122,122,0.22);
  border-radius: 999px;
}

.diagnosticos-eap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(26,122,122,0.08), rgba(90,170,69,0.05));
}

.diagnosticos-eap-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.diagnosticos-eap-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.diagnosticos-eap-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.diagnosticos-eap-context-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 20px rgba(8,28,28,0.04);
}

.diagnosticos-eap-context-card-wide {
  grid-column: span 2;
}

.diagnosticos-eap-context-card span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  font-weight: 800;
}

.diagnosticos-eap-context-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.diagnosticos-eap-context-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.diagnosticos-eap-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 16px;
  background: rgba(26,122,122,0.04);
}

.diagnosticos-eap-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.diagnosticos-eap-tab:hover {
  background: rgba(255,255,255,0.78);
  color: var(--blue);
  transform: translateY(-1px);
}

.diagnosticos-eap-tab.active {
  background: #fff;
  color: var(--blue-deep);
  border-color: rgba(26,122,122,0.18);
  box-shadow: 0 8px 18px rgba(15,54,54,0.07);
}

.diagnosticos-eap-panels {
  min-height: 0;
}

.diagnosticos-eap-panel {
  display: none;
}

.diagnosticos-eap-panel.active {
  display: block;
}

.diagnosticos-eap-panel-stack {
  display: grid;
  gap: 16px;
}

.diagnosticos-eap-read-text {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.diagnosticos-eap-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.diagnosticos-eap-review-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.12);
  background: rgba(26,122,122,0.04);
}

.diagnosticos-eap-review-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.diagnosticos-eap-review-card strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.diagnosticos-eap-modal-card .diagnosticos-footer-actions.stable-actions {
  position: relative;
  bottom: auto;
  z-index: 3;
  margin: 18px -28px -28px;
  padding: 16px 28px;
  border-top: 1px solid rgba(26,122,122,0.12);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
}

@media (max-width: 1120px) {
  .diagnosticos-eap-context-grid,
  .diagnosticos-eap-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .diagnosticos-eap-modal-card {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .diagnosticos-eap-context-grid,
  .diagnosticos-eap-review-grid {
    grid-template-columns: 1fr;
  }

  .diagnosticos-eap-context-card-wide {
    grid-column: auto;
  }

  .diagnosticos-eap-tab {
    flex: 1 1 100%;
  }

  .diagnosticos-eap-modal-card .diagnosticos-footer-actions.stable-actions {
    margin: 16px -20px -20px;
    padding: 14px 20px;
  }
}

/* ================================================================
   Modelos de Escopo / Montagem do Escopo
   Escopo isolado por prefixos .modelos-escopo- e .scope-models-
   ================================================================ */
.modelos-escopo-page,
.modelos-escopo-builder-page {
  gap: 18px;
}

/* [ME-HEADER-CLEANUP-2026-06-12] */
.modelos-escopo-builder-header,
.modelos-escopo-filter-card,
.modelos-escopo-left-panel,
.modelos-escopo-builder-main,
.modelos-escopo-details-panel {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* [ME-HEADER-CLEANUP-2026-06-12] */
.modelos-escopo-hero {
  display: none;
}

.modelos-escopo-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px;
}

.modelos-escopo-page-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modelos-escopo-eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.modelos-escopo-hero h2,
.modelos-escopo-builder-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modelos-escopo-hero span,
.modelos-escopo-builder-title-row p,
.modelos-escopo-breadcrumb {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* [ME-HEADER-CLEANUP-2026-06-12] kpi-grid removido da listagem. */
.modelos-escopo-kpi-grid {
  display: none;
}

.modelos-escopo-kpi-card {
  padding: 18px;
  display: grid;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.modelos-escopo-kpi-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.modelos-escopo-kpi-card strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.modelos-escopo-kpi-card span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.modelos-escopo-kpi-card small {
  color: var(--muted);
  font-size: 12px;
}

.modelos-escopo-filter-card {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(160px, .8fr)) auto;
  gap: 12px;
  align-items: center;
}

.modelos-escopo-model-cell {
  display: grid;
  gap: 4px;
}

.modelos-escopo-model-cell strong {
  color: var(--text);
  font-size: 14px;
}

.modelos-escopo-model-cell span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.modelos-escopo-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.modelos-escopo-status,
.modelos-escopo-type-badge,
.modelos-escopo-required,
.modelos-escopo-correlation-chip,
.modelos-escopo-muted-chip,
.modelos-escopo-context-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.modelos-escopo-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.modelos-escopo-status.published { background: rgba(90,170,69,0.14); color: #2e6622; border-color: rgba(90,170,69,0.22); }
.modelos-escopo-status.draft { background: rgba(217,119,6,0.12); color: #9a5a05; border-color: rgba(217,119,6,0.18); }
.modelos-escopo-status.archived,
.modelos-escopo-status.inactive { background: rgba(100,116,139,0.10); color: #64748b; border-color: rgba(100,116,139,0.18); }

.modelos-escopo-type-badge.modulo { background: rgba(26,122,122,0.10); color: #0f5f73; border-color: rgba(26,122,122,0.16); }
.modelos-escopo-type-badge.pre_requisito { background: rgba(124,58,237,0.10); color: #6d28d9; border-color: rgba(124,58,237,0.16); }
.modelos-escopo-type-badge.funcao { background: rgba(14,165,164,0.10); color: #0f766e; border-color: rgba(14,165,164,0.16); }
.modelos-escopo-type-badge.marco { background: rgba(249,115,22,0.12); color: #c05621; border-color: rgba(249,115,22,0.18); }
.modelos-escopo-type-badge.manual { background: rgba(100,116,139,0.10); color: #64748b; border-color: rgba(100,116,139,0.16); }

.modelos-escopo-required.yes { background: rgba(90,170,69,0.14); color: #2e6622; border-color: rgba(90,170,69,0.20); }
.modelos-escopo-required.no,
.modelos-escopo-muted-chip { background: rgba(100,116,139,0.08); color: #64748b; border-color: rgba(100,116,139,0.14); }

.modelos-escopo-builder-header {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.modelos-escopo-builder-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modelos-escopo-builder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.modelos-escopo-context-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modelos-escopo-context-chips span {
  background: rgba(26,122,122,0.07);
  color: var(--blue-deep);
  border-color: rgba(26,122,122,0.13);
}

.modelos-escopo-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(26,122,122,0.08);
  border: 1px solid rgba(26,122,122,0.12);
}

.modelos-escopo-view-toggle button {
  min-height: 34px;
  border-radius: 9px;
  background: transparent;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  padding: 0 14px;
}

.modelos-escopo-view-toggle button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26,122,122,0.18);
}

.modelos-escopo-builder-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.modelos-escopo-left-panel,
.modelos-escopo-details-panel,
.modelos-escopo-builder-main {
  padding: 16px;
}

.modelos-escopo-left-panel,
.modelos-escopo-details-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.modelos-escopo-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
}

.modelos-escopo-filter-types,
.modelos-escopo-summary-card,
.modelos-escopo-info-box,
.modelos-escopo-validation-card,
.modelos-escopo-correlations-card,
.modelos-escopo-detail-main {
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 16px;
  background: rgba(26,122,122,0.03);
  padding: 13px;
}

.modelos-escopo-filter-types {
  display: grid;
  gap: 10px;
}

.modelos-escopo-filter-types > strong,
.modelos-escopo-summary-card > strong,
.modelos-escopo-validation-card > strong,
.modelos-escopo-correlations-card > strong {
  color: var(--text);
  font-size: 13px;
}

.modelos-escopo-filter-types label,
.modelos-escopo-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.modelos-escopo-filter-types input {
  accent-color: var(--blue);
}

.modelos-escopo-filter-types small,
.modelos-escopo-summary-card b {
  color: var(--blue);
  font-weight: 800;
}

.modelos-escopo-info-box,
.modelos-escopo-empty-detail,
.modelos-escopo-type-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.modelos-escopo-section-head,
.modelos-escopo-type-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modelos-escopo-section-head strong,
.modelos-escopo-type-section-head strong {
  color: var(--text);
  font-size: 14px;
}

.modelos-escopo-section-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.modelos-escopo-section-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modelos-escopo-root-node,
.modelos-escopo-tree-module,
.modelos-escopo-tree-group,
.modelos-escopo-type-view {
  display: grid;
  gap: 10px;
}

.modelos-escopo-tree-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr) auto auto minmax(140px, .8fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
  text-align: left;
  color: var(--text-soft);
}

.modelos-escopo-tree-row.root,
.modelos-escopo-tree-row.module {
  background: rgba(26,122,122,0.05);
  border-color: rgba(26,122,122,0.14);
}

.modelos-escopo-tree-row.group {
  background: rgba(248,250,252,0.95);
}

.modelos-escopo-tree-row.item {
  margin-left: 22px;
  width: calc(100% - 22px);
  cursor: pointer;
}

.modelos-escopo-tree-row.item:hover,
.modelos-escopo-tree-row.item.selected,
.modelos-escopo-type-table tr.selected td,
.modelos-escopo-type-table tbody tr:hover td {
  background: rgba(26,122,122,0.06);
}

.modelos-escopo-chevron {
  color: var(--blue);
  font-weight: 900;
}

.modelos-escopo-tree-children,
.modelos-escopo-tree-items {
  display: none;
  gap: 8px;
  margin-top: 8px;
}

.modelos-escopo-tree-children.open,
.modelos-escopo-tree-items.open {
  display: grid;
}

.modelos-escopo-tree-empty,
.modelos-escopo-empty-builder {
  border: 1px dashed rgba(26,122,122,0.20);
  border-radius: 14px;
  background: rgba(26,122,122,0.03);
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.modelos-escopo-empty-builder strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.modelos-escopo-correlations-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.modelos-escopo-correlation-chip {
  background: rgba(14,165,164,0.08);
  color: #0f766e;
  border-color: rgba(14,165,164,0.14);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modelos-escopo-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.modelos-escopo-type-section {
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.modelos-escopo-type-section-head {
  margin: 0;
  padding: 12px 14px;
  background: rgba(26,122,122,0.04);
  border-bottom: 1px solid rgba(26,122,122,0.08);
}

.modelos-escopo-type-section-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modelos-escopo-type-section-head > span {
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.modelos-escopo-type-table {
  width: 100%;
  border-collapse: collapse;
}

.modelos-escopo-type-table th,
.modelos-escopo-type-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(204,222,222,0.45);
  color: var(--text-soft);
  font-size: 13px;
  vertical-align: middle;
}

.modelos-escopo-type-table th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  background: #fbfdfd;
}

.modelos-escopo-type-table td strong,
.modelos-escopo-detail-title-row strong {
  color: var(--text);
}

.modelos-escopo-type-table td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

.modelos-escopo-detail-main,
.modelos-escopo-correlations-card,
.modelos-escopo-validation-card {
  display: grid;
  gap: 12px;
}

.modelos-escopo-detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.modelos-escopo-detail-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 10px;
  font-size: 12px;
}

.modelos-escopo-detail-grid label,
.modelos-escopo-detail-description label {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.modelos-escopo-detail-grid span,
.modelos-escopo-detail-description p {
  color: var(--text-soft);
  margin: 0;
  line-height: 1.45;
}

.modelos-escopo-relation-detail {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.08);
}

.modelos-escopo-relation-detail span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.modelos-escopo-relation-detail strong {
  color: var(--text);
  font-size: 13px;
}

.modelos-escopo-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modelos-escopo-validation-item {
  display: grid;
  grid-template-columns: 24px 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.08);
}

.modelos-escopo-validation-item span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.modelos-escopo-validation-item.ok span { background: rgba(90,170,69,0.14); color: #2e6622; }
.modelos-escopo-validation-item.warn span { background: rgba(217,119,6,0.14); color: #9a5a05; }
.modelos-escopo-validation-item strong { color: var(--text); }
.modelos-escopo-validation-item small { color: var(--muted); font-size: 11px; }

.modelos-escopo-modal-form textarea,
.modelos-escopo-modal-form select,
.modelos-escopo-modal-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  min-height: 46px;
  padding: 10px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.modelos-escopo-modal-form textarea {
  min-height: 96px;
  resize: vertical;
}

@media (max-width: 1280px) {
  .modelos-escopo-builder-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .modelos-escopo-details-panel {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .modelos-escopo-filter-card,
  .modelos-escopo-kpi-grid,
  .modelos-escopo-builder-layout {
    grid-template-columns: 1fr;
  }
  .modelos-escopo-left-panel {
    position: static;
  }
  .modelos-escopo-tree-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .modelos-escopo-tree-row > span:not(.modelos-escopo-chevron):not(.modelos-escopo-type-badge),
  .modelos-escopo-correlations-inline {
    grid-column: 2;
  }
}

/* ================================================================
   Modelos de Escopo — fluxo guiado por dados gerais, módulos e estrutura
   ================================================================ */
.modelos-escopo-guided-page {
  gap: 18px;
}

.modelos-escopo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.modelos-escopo-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modelos-escopo-step span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(100,116,139,0.12);
  color: #64748b;
  flex-shrink: 0;
}

.modelos-escopo-step.active {
  background: rgba(26,122,122,0.08);
  border-color: rgba(26,122,122,0.24);
  color: var(--blue-deep);
}

.modelos-escopo-step.active span,
.modelos-escopo-step.done span {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
}

.modelos-escopo-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.modelos-escopo-module-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 178px;
  padding: 18px;
  text-align: left;
  border: 1.5px solid rgba(26,122,122,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.modelos-escopo-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26,122,122,0.24);
  box-shadow: 0 14px 30px rgba(8,28,28,0.08);
}

.modelos-escopo-module-card.selected {
  border-color: rgba(26,122,122,0.42);
  background: linear-gradient(180deg, rgba(26,122,122,0.10), rgba(255,255,255,0.98));
  box-shadow: 0 16px 34px rgba(26,122,122,0.12);
}

.modelos-escopo-module-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(26,122,122,0.18);
  background: #fff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.modelos-escopo-module-card > strong {
  width: fit-content;
  min-width: 42px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.modelos-escopo-module-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}

.modelos-escopo-module-stats {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.modelos-escopo-module-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(26,122,122,0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.modelos-escopo-module-stats b {
  color: var(--text);
  font-size: 14px;
}

.modelos-escopo-builder-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-soft);
}

.modelos-escopo-builder-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.modelos-escopo-builder-tab:hover {
  background: rgba(26,122,122,0.06);
  color: var(--blue);
  transform: translateY(-1px);
}

.modelos-escopo-builder-tab.active {
  background: rgba(26,122,122,0.12);
  color: var(--blue-deep);
}

.modelos-escopo-builder-layout.guided {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.modelos-escopo-summary-view,
.modelos-escopo-module-view,
.modelos-escopo-relations-view {
  display: grid;
  gap: 16px;
}

.modelos-escopo-summary-grid-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.modelos-escopo-summary-metric {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(26,122,122,0.12);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-soft);
}

.modelos-escopo-summary-metric strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.modelos-escopo-summary-metric span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.modelos-escopo-summary-metric small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.modelos-escopo-summary-columns {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

.modelos-escopo-summary-panel,
.modelos-escopo-import-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(26,122,122,0.12);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-soft);
}

.modelos-escopo-import-panel p,
.modelos-escopo-import-panel small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.modelos-escopo-selected-modules-list {
  display: grid;
  gap: 10px;
}

.modelos-escopo-selected-modules-list > div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 14px;
  background: rgba(26,122,122,0.04);
}

.modelos-escopo-selected-modules-list strong {
  color: var(--text);
  font-size: 14px;
}

.modelos-escopo-selected-modules-list span {
  color: var(--muted);
  font-size: 12px;
}

.modelos-escopo-import-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modelos-escopo-import-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(26,122,122,0.14);
  background: rgba(26,122,122,0.06);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}

.modelos-escopo-import-checks input {
  accent-color: var(--blue);
}

.modelos-escopo-import-option {
  cursor: pointer;
  user-select: none;
}

.modelos-escopo-import-option input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.modelos-escopo-import-option:has(input:checked) {
  background: rgba(26,122,122,0.11);
  border-color: rgba(26,122,122,0.28);
  color: var(--blue-deep);
}

.modelos-escopo-import-option.is-disabled,
.modelos-escopo-import-checks.is-disabled label,
.modelos-escopo-import-panel.is-disabled {
  opacity: 0.72;
}

.modelos-escopo-import-option.is-disabled {
  cursor: not-allowed;
}

.modelos-escopo-import-warning {
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(192,122,0,0.18);
  background: rgba(192,122,0,0.08);
  color: #8a5500;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.modelos-escopo-import-modal-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 16px;
  background: rgba(26,122,122,0.04);
}

.modelos-escopo-import-modal-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modelos-escopo-module-accordion {
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.modelos-escopo-module-accordion-head {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(26,122,122,0.05);
  color: var(--text);
  text-align: left;
}

.modelos-escopo-module-accordion-head strong {
  font-size: 15px;
}

.modelos-escopo-module-accordion-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modelos-escopo-module-accordion-body {
  display: none;
  gap: 14px;
  padding: 16px;
}

.modelos-escopo-module-accordion-body.open {
  display: grid;
}

.modelos-escopo-module-item-group {
  display: grid;
  gap: 8px;
}

.modelos-escopo-module-item-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: 13px;
}

.modelos-escopo-module-item-group-title span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
}

.modelos-escopo-module-item-row {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  color: var(--text);
}

.modelos-escopo-module-item-row:hover,
.modelos-escopo-module-item-row.selected {
  background: rgba(26,122,122,0.06);
  border-color: rgba(26,122,122,0.22);
}

.modelos-escopo-module-item-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.modelos-escopo-advanced-note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.12);
  background: rgba(26,122,122,0.06);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.modelos-escopo-import-modal {
  display: grid;
  gap: 16px;
}

@media (max-width: 1280px) {
  .modelos-escopo-summary-grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modelos-escopo-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modelos-escopo-builder-layout.guided,
  .modelos-escopo-summary-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .modelos-escopo-steps,
  .modelos-escopo-summary-grid-cards,
  .modelos-escopo-modules-grid {
    grid-template-columns: 1fr;
  }
  .modelos-escopo-module-item-row {
    grid-template-columns: 1fr;
  }
}

/* Modelos de Escopo — Correlações assistidas */
.modelos-escopo-relations-workbench {
  display: grid;
  gap: 16px;
}

.modelos-escopo-relations-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(26,122,122,0.10);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-soft);
}

.modelos-escopo-relations-intro > div {
  display: grid;
  gap: 4px;
}

.modelos-escopo-relations-intro strong {
  color: var(--text);
  font-size: 15px;
}

.modelos-escopo-relations-intro span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.modelos-escopo-correlations-grid {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.35fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}

.modelos-escopo-correlation-panel {
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(26,122,122,0.12);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.modelos-escopo-correlation-panel-head {
  display: grid;
  gap: 4px;
}

.modelos-escopo-correlation-panel-head.horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modelos-escopo-correlation-panel-head strong {
  color: var(--text);
  font-size: 15px;
}

.modelos-escopo-correlation-panel-head span,
.modelos-escopo-suggestion-title-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.modelos-escopo-correlation-tools {
  display: grid;
  gap: 10px;
}

.modelos-escopo-correlation-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modelos-escopo-correlation-list,
.modelos-escopo-existing-list {
  display: grid;
  gap: 12px;
}

.modelos-escopo-correlation-group {
  display: grid;
  gap: 8px;
}

.modelos-escopo-correlation-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.modelos-escopo-correlation-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(26,122,122,0.10);
  background: #fff;
  text-align: left;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.modelos-escopo-correlation-item:hover,
.modelos-escopo-correlation-item.active {
  border-color: rgba(26,122,122,0.28);
  background: rgba(26,122,122,0.06);
  transform: translateY(-1px);
}

.modelos-escopo-correlation-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue);
}

.modelos-escopo-correlation-dot.pre_requisito { background: #7c3aed; }
.modelos-escopo-correlation-dot.funcao { background: #059669; }
.modelos-escopo-correlation-dot.marco { background: #f97316; }

.modelos-escopo-correlation-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.modelos-escopo-correlation-item-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modelos-escopo-correlation-item-copy small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modelos-escopo-correlation-count,
.modelos-escopo-correlation-total {
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
}

.modelos-escopo-origin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.12);
  background: linear-gradient(135deg, rgba(26,122,122,0.08), rgba(255,255,255,0.96));
}

.modelos-escopo-origin-card strong {
  color: var(--blue-deep);
  font-size: 15px;
}

.modelos-escopo-origin-card span:last-child {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.modelos-escopo-suggestion-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modelos-escopo-suggestion-title-row strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 3px;
}

.modelos-escopo-suggestion-group {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.10);
  background: #fff;
}

.modelos-escopo-suggestion-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(26,122,122,0.08);
  background: rgba(26,122,122,0.03);
}

.modelos-escopo-suggestion-group-head > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modelos-escopo-suggestion-group-head label {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.modelos-escopo-suggestion-group-head select.search-input {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.modelos-escopo-suggestion-list {
  display: grid;
}

.modelos-escopo-suggestion-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(204,222,222,0.48);
  cursor: pointer;
}

.modelos-escopo-suggestion-row:last-child {
  border-bottom: 0;
}

.modelos-escopo-suggestion-row:hover,
.modelos-escopo-suggestion-row.selected {
  background: rgba(26,122,122,0.05);
}

.modelos-escopo-suggestion-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.modelos-escopo-suggestion-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.modelos-escopo-suggestion-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.modelos-escopo-suggestion-copy small,
.modelos-escopo-suggestion-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.modelos-escopo-suggestion-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.modelos-escopo-correlation-tip {
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.16);
  background: rgba(37,99,235,0.06);
  color: #1d4ed8;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
}

.modelos-escopo-existing-relation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.10);
  background: #fff;
}

.modelos-escopo-existing-relation-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.modelos-escopo-existing-relation-row select.search-input {
  min-height: 34px;
  width: 160px;
  padding: 0 10px;
  font-size: 12px;
}

.modelos-escopo-existing-relation-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.modelos-escopo-existing-relation-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.modelos-escopo-correlation-quick-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(26,122,122,0.10);
  background: rgba(26,122,122,0.03);
}

.modelos-escopo-correlation-quick-actions > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modelos-escopo-correlation-help {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(217,119,6,0.18);
  background: rgba(217,119,6,0.07);
  color: #7c4a03;
  font-size: 12px;
  line-height: 1.5;
}

.modelos-escopo-correlation-help ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.modelos-escopo-relation-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(26,122,122,0.08);
}

.modelos-escopo-relation-legend strong,
.modelos-escopo-relation-legend small {
  color: var(--muted);
  font-size: 12px;
}

.modelos-escopo-relation-type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  border: 1px solid rgba(26,122,122,0.12);
}

.modelos-escopo-relation-type-chip.bloqueia {
  background: rgba(192,57,43,0.08);
  color: var(--danger);
  border-color: rgba(192,57,43,0.14);
}

.modelos-escopo-relation-type-chip.gera_marco {
  background: rgba(249,115,22,0.10);
  color: #c05621;
  border-color: rgba(249,115,22,0.16);
}

.modelos-escopo-relation-type-chip.validado_por {
  background: rgba(47,133,90,0.10);
  color: #2f855a;
  border-color: rgba(47,133,90,0.16);
}

@media (max-width: 1380px) {
  .modelos-escopo-correlations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .modelos-escopo-relations-intro,
  .modelos-escopo-correlation-panel-head.horizontal,
  .modelos-escopo-suggestion-group-head,
  .modelos-escopo-suggestion-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modelos-escopo-correlation-filter-row,
  .modelos-escopo-suggestion-row,
  .modelos-escopo-existing-relation-row {
    grid-template-columns: 1fr;
  }

  .modelos-escopo-existing-relation-row select.search-input {
    width: 100%;
  }
}

/* ================================================================
   Modelos de Escopo — seleção de módulos dentro do modal do modelo
   ================================================================ */
.modelos-escopo-steps-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modelos-escopo-modal-modules-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid rgba(26,122,122,0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,122,122,0.045), rgba(255,255,255,0.98));
}

.modelos-escopo-modal-modules-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modelos-escopo-modal-modules-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.modelos-escopo-modal-modules-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.modelos-escopo-modal-modules-head > span {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(26,122,122,0.10);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(26,122,122,0.16);
}

.modelos-escopo-modal-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.modelos-escopo-modal-module-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px 14px 14px 46px;
  border-radius: 16px;
  border: 1.5px solid rgba(26,122,122,0.12);
  background: rgba(255,255,255,0.96);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.modelos-escopo-modal-module-card:hover {
  transform: translateY(-1px);
  border-color: rgba(26,122,122,0.26);
  box-shadow: 0 12px 26px rgba(8,28,28,0.08);
}

.modelos-escopo-modal-module-card.selected {
  border-color: rgba(26,122,122,0.44);
  background: linear-gradient(180deg, rgba(26,122,122,0.10), rgba(255,255,255,0.98));
}

.modelos-escopo-modal-module-card .modelos-escopo-module-check {
  left: 14px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
}

.modelos-escopo-modal-module-card > strong {
  min-width: 44px;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(26,122,122,0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.modelos-escopo-modal-module-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.modelos-escopo-modal-module-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.modelos-escopo-modal-module-card em {
  align-self: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(100,116,139,0.08);
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  white-space: nowrap;
}

.modelos-escopo-modal-module-card.selected em {
  background: rgba(90,170,69,0.14);
  color: #2e6622;
}

.modelos-escopo-manage-modules-modal {
  display: grid;
  gap: 16px;
}

@media (max-width: 820px) {
  .modelos-escopo-modal-modules-grid {
    grid-template-columns: 1fr;
  }

  .modelos-escopo-modal-modules-head {
    flex-direction: column;
  }

  .modelos-escopo-steps-compact {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   DRAG-AND-DROP CORRELATION BUILDER
   ═══════════════════════════════════════════════════ */

.scope-dnd-workbench {
  display: grid;
  gap: 12px;
}

.scope-dnd-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.scope-dnd-intro strong { display: block; margin-bottom: 2px; }
.scope-dnd-intro span   { color: var(--muted); }

.scope-dnd-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  min-height: 480px;
  align-items: start;
}

/* ── Painel esquerdo ─────────────────────── */
.scope-dnd-source-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 200px);
}

.scope-dnd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-alt, #f8fafc);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.scope-dnd-panel-head span { color: var(--muted); font-weight: 400; }

.scope-dnd-filters { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.scope-dnd-filters .search-input { width: 100%; font-size: 12px; }

.scope-dnd-source-list {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}

.scope-dnd-source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: grab;
  font-size: 13px;
  transition: background .1s;
  user-select: none;
}

.scope-dnd-source-item:hover { background: rgba(37,99,235,.05); }
.scope-dnd-source-item.is-dragging { opacity: .4; cursor: grabbing; }

.scope-dnd-source-info { flex: 1; min-width: 0; }
.scope-dnd-source-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope-dnd-source-info small  { color: var(--muted); font-size: 11px; }

.scope-dnd-badge {
  flex: 0 0 auto;
  background: rgba(37,99,235,.12);
  color: var(--blue, #2563eb);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.scope-dnd-empty-list { padding: 16px 12px; color: var(--muted); font-size: 13px; }

/* Pontos coloridos por tipo */
.scope-dnd-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.scope-dnd-dot.pre_requisito { background: #f59e0b; }
.scope-dnd-dot.funcao        { background: #3b82f6; }
.scope-dnd-dot.marco         { background: #10b981; }

/* ── Canvas direito ──────────────────────── */
.scope-dnd-canvas {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  min-height: 480px;
}

.scope-dnd-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-alt, #f8fafc);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.scope-dnd-canvas-actions { display: flex; gap: 6px; }

.scope-dnd-drop-zone {
  flex: 1;
  padding: 12px;
  min-height: 420px;
  transition: background .15s, border-color .15s;
}

.scope-dnd-drop-zone.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scope-dnd-drop-zone.is-dnd-over {
  background: rgba(37,99,235,.04);
  outline: 2px dashed var(--blue, #2563eb);
  outline-offset: -4px;
  border-radius: 6px;
}

.scope-dnd-drop-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}

.scope-dnd-drop-hint strong { font-size: 14px; color: var(--text); }
.scope-dnd-drop-hint span   { font-size: 12px; line-height: 1.5; }
.scope-dnd-drop-hint svg    { opacity: .35; }

/* ── Nós da árvore ───────────────────────── */
.scope-dnd-node {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}

.scope-dnd-node-card {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s, background .15s;
  cursor: default;
}

.scope-dnd-node-card.is-dnd-over {
  border-color: var(--blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  background: rgba(37,99,235,.03);
}

/* Borda colorida por tipo */
.scope-dnd-node-card.pre_requisito { border-left: 3px solid #f59e0b; }
.scope-dnd-node-card.funcao        { border-left: 3px solid #3b82f6; }
.scope-dnd-node-card.marco         { border-left: 3px solid #10b981; }

.scope-dnd-node-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.scope-dnd-toggle {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none;
  color: var(--muted); font-size: 11px; cursor: pointer;
  border-radius: 4px;
  padding: 0;
}
.scope-dnd-toggle:hover { background: var(--surface-alt, #f0f0f0); color: var(--text); }
.scope-dnd-toggle-placeholder { width: 18px; flex: 0 0 18px; }

.scope-dnd-node-info { flex: 1; min-width: 0; }
.scope-dnd-node-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope-dnd-node-info small  { color: var(--muted); font-size: 11px; }

.scope-dnd-node-remove {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border: none; background: none;
  color: var(--muted); cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}

.scope-dnd-node-card:hover .scope-dnd-node-remove { opacity: 1; }
.scope-dnd-node-remove:hover { background: rgba(192,57,43,.1); color: var(--danger, #c0392b); }

/* ── Arestas (filhos) ────────────────────── */
.scope-dnd-node-children {
  margin-left: 24px;
  margin-top: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scope-dnd-edge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scope-dnd-edge-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  background: var(--surface-alt, #f5f5f5);
  border-radius: 4px;
  width: fit-content;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.scope-dnd-edge-remove {
  border: none; background: none;
  color: var(--muted); cursor: pointer;
  font-size: 13px; line-height: 1;
  padding: 0 2px;
  border-radius: 3px;
}
.scope-dnd-edge-remove:hover { color: var(--danger, #c0392b); background: rgba(192,57,43,.08); }

/* ── Popup de tipo de relação ─────────────── */
.scope-dnd-popup-items {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.scope-dnd-popup-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.scope-dnd-popup-arrow {
  font-size: 20px;
  color: var(--muted);
  flex: 0 0 auto;
}

.scope-dnd-relation-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  width: 100%;
}

.scope-dnd-relation-option:hover {
  border-color: var(--blue, #2563eb);
  background: rgba(37,99,235,.04);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.scope-dnd-relation-option strong { font-size: 13px; color: var(--text); }
.scope-dnd-relation-option span   { font-size: 12px; color: var(--muted); }

/* Builder sem painel de detalhes (correlações e checklist) */
.modelos-escopo-builder-layout.full-width {
  grid-template-columns: 1fr !important;
}

.modelos-escopo-builder-layout.full-width .modelos-escopo-builder-main {
  min-width: 0;
}

/* ── Grupos de relação (filhos agrupados por tipo) ── */
.scope-dnd-rel-group {
  margin-top: 8px;
}

.scope-dnd-rel-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

.scope-dnd-rel-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.scope-dnd-rel-group-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-alt, #f0f0f0);
  border-radius: 999px;
  padding: 0 5px;
  min-width: 16px;
  text-align: center;
}

.scope-dnd-rel-group-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scope-dnd-group-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.scope-dnd-group-row > .scope-dnd-edge-remove {
  flex: 0 0 auto;
  margin-top: 8px;
}

.scope-dnd-group-row > .scope-dnd-node {
  flex: 1;
  min-width: 0;
}

/* Remove o estilo antigo de .scope-dnd-edge que não é mais usado */

/* ═══════════════════════════════════════════════════
   SCOPE MODEL REPORT — SINGLE PAGE
   ═══════════════════════════════════════════════════ */

.scope-report-single-page {
  display: grid;
  gap: 24px;
  padding-bottom: 40px;
}

/* KPIs */
.scope-report-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scope-report-kpi {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.scope-report-kpi-icon { color: var(--muted); }
.scope-report-kpi-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.scope-report-kpi-label { font-size: 12px; color: var(--muted); }

/* Sections */
.scope-report-section { display: grid; gap: 12px; }

.scope-report-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.scope-report-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt, #f0f4f8);
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 22px;
}

/* Module blocks */
.scope-report-module-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.scope-report-module-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-alt, #f8fafc);
  cursor: pointer;
  font-size: 13px;
  list-style: none;
  user-select: none;
}

.scope-report-module-block > summary::-webkit-details-marker { display: none; }
.scope-report-module-block > summary::before {
  content: '▸';
  margin-right: 6px;
  color: var(--muted);
  font-size: 11px;
  transition: transform .15s;
}
.scope-report-module-block[open] > summary::before { content: '▾'; }

.scope-report-module-name { font-weight: 700; }

.scope-report-module-body {
  padding: 12px 16px;
  display: grid;
  gap: 12px;
}

.scope-report-item-group { display: grid; gap: 4px; }

.scope-report-item-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.scope-report-item-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 13px;
}

.scope-report-item-row:hover { background: rgba(37,99,235,.04); }
.scope-report-item-row small { color: var(--muted); font-size: 11px; }

/* Correlations */
.scope-report-empty-correlations {
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt, #f8fafc);
}

.scope-report-correlations { display: grid; gap: 12px; }

.scope-report-correl-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.scope-report-correl-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface-alt, #f8fafc);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.scope-report-correl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.scope-report-correl-row:last-child { border-bottom: none; }

.scope-report-correl-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.scope-report-correl-item span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope-report-correl-item small { color: var(--muted); font-size: 11px; white-space: nowrap; }

.scope-report-correl-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 16px;
}

/* Diagnósticos — objetivos do projeto (ajuste localizado) */
.diagnosticos-eap-textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.diagnosticos-eap-textarea:focus {
  border-color: rgba(26,122,122,0.40);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.10);
}

.diagnosticos-objective-alignment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.diagnosticos-objective-alignment-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(26,122,122,0.16);
  background: rgba(26,122,122,0.06);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.diagnosticos-objective-alignment-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

/* Diagnósticos — Etapas por módulo (ajuste localizado) */
.diagnosticos-module-stage-shell {
  gap: 16px;
}

.diagnosticos-module-stage-head {
  align-items: flex-start;
}

.diagnosticos-module-stage-title-copy {
  display: grid;
  gap: 4px;
}

.diagnosticos-module-stage-title-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.diagnosticos-stage-module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 16px;
  background: rgba(26,122,122,0.035);
}

.diagnosticos-stage-module-tab {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(26,122,122,0.14);
  background: rgba(255,255,255,0.92);
  color: var(--text-soft);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.diagnosticos-stage-module-tab:hover {
  transform: translateY(-1px);
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
}

.diagnosticos-stage-module-tab.active {
  background: linear-gradient(135deg, rgba(26,122,122,0.16), rgba(90,170,69,0.12));
  border-color: rgba(26,122,122,0.28);
  color: var(--blue-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.diagnosticos-stage-module-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px dashed rgba(26,122,122,0.20);
  border-radius: 14px;
  background: rgba(26,122,122,0.035);
}

.diagnosticos-stage-module-context span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnosticos-stage-module-context strong {
  color: var(--text);
  font-size: 14px;
}

@media (max-width: 720px) {
  .diagnosticos-module-stage-head,
  .diagnosticos-stage-module-context {
    align-items: stretch;
  }

  .diagnosticos-stage-module-tab,
  #diagnostico-replicate-stage-dates-btn {
    width: 100%;
  }
}

/* Diagnósticos — Estrutura do Projeto */
.diagnosticos-project-structure-shell {
  display: grid;
  gap: 16px;
}

.diagnosticos-sec-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.diagnosticos-project-structure-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.diagnosticos-project-structure-kpis article {
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 16px;
  background: rgba(26,122,122,0.04);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.diagnosticos-project-structure-kpis strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.diagnosticos-project-structure-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.diagnosticos-project-structure-module {
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
}

.diagnosticos-project-structure-module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.diagnosticos-project-structure-module-label {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.diagnosticos-project-structure-module h4 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.diagnosticos-project-structure-module p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.diagnosticos-project-structure-module-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.diagnosticos-project-structure-summary-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.diagnosticos-project-structure-summary-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(26,122,122,0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(26,122,122,0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.diagnosticos-project-structure-summary-row strong {
  color: var(--blue-deep);
}

/* Diagnósticos — Estrutura do Projeto (cronograma) */
.diagnosticos-project-structure-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(26,122,122,0.14);
  border-radius: 12px;
  background: #fff;
}

.diagnosticos-project-structure-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.diagnosticos-project-structure-table thead th {
  padding: 10px 12px;
  background: #fafcfc;
  border-bottom: 1px solid rgba(26,122,122,0.14);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.diagnosticos-project-structure-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(26,122,122,0.07);
  color: var(--text);
  font-size: 13px;
  vertical-align: middle;
  background: #fff;
}

.diagnosticos-project-structure-table tbody tr:last-child td {
  border-bottom: none;
}

.diagnosticos-project-structure-table tbody tr:hover td {
  background: rgba(26,122,122,0.025);
}

.diagnosticos-project-structure-col-description { width: 38%; }
.diagnosticos-project-structure-col-type { width: 12%; }
.diagnosticos-project-structure-col-responsible { width: 16%; }
.diagnosticos-project-structure-col-date { width: 15%; }
.diagnosticos-project-structure-col-hours { width: 11%; }
.diagnosticos-project-structure-col-actions { width: 8%; text-align: center; }

/* Horas: mesmo input fantasma das demais colunas */
.diagnosticos-project-structure-hours-input {
  width: 100%;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 6px;
  outline: none;
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  transition: border-color .12s, background-color .12s, color .12s;
  -moz-appearance: textfield;
}

.diagnosticos-project-structure-hours-input::-webkit-outer-spin-button,
.diagnosticos-project-structure-hours-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.diagnosticos-project-structure-hours-input::placeholder {
  color: #9aaeb0;
  font-weight: 400;
  opacity: 1;
}

.diagnosticos-project-structure-hours-input.is-filled {
  color: var(--text);
}

.diagnosticos-project-structure-table tbody tr:hover .diagnosticos-project-structure-hours-input {
  border-color: rgba(26,122,122,0.22);
  background-color: #fff;
}

.diagnosticos-project-structure-hours-input:focus {
  border-color: rgba(26,122,122,0.45);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(26,122,122,0.10);
  color: var(--text);
}

/* Alinhamento dos cabeçalhos das colunas numéricas/ação */
.diagnosticos-project-structure-table thead th.diagnosticos-project-structure-col-actions { text-align: center; }
.diagnosticos-project-structure-table thead th.diagnosticos-project-structure-col-hours { text-align: left; }

/* === Árvore de hierarquia dentro da coluna Descrição === */
.diagnosticos-project-structure-tree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-left: calc(var(--structure-depth, 0) * 22px);
}

.diagnosticos-project-structure-tree-connector {
  position: absolute;
  left: calc((var(--structure-depth, 1) * 22px) - 18px);
  top: 0;
  bottom: 0;
  width: 14px;
  pointer-events: none;
}

.diagnosticos-project-structure-tree-connector::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 50%;
  width: 1.5px;
  background: rgba(26,122,122,0.32);
}

.diagnosticos-project-structure-tree-connector::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: rgba(26,122,122,0.32);
}

.diagnosticos-project-structure-tree-content {
  flex: 1;
  min-width: 0;
}

.diagnosticos-project-structure-item-name {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.35;
}

.diagnosticos-project-structure-item-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

/* === Tipo: badge minimalista === */
.diagnosticos-project-structure-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.4;
}

.diagnosticos-project-structure-type.milestone {
  background: rgba(26,122,122,0.10);
  color: var(--blue-deep);
}

.diagnosticos-project-structure-type.function {
  background: rgba(90,170,69,0.12);
  color: #3d7d30;
}

.diagnosticos-project-structure-type.requirement {
  background: rgba(192,122,0,0.12);
  color: #8a5500;
}

.diagnosticos-project-structure-type.manual {
  background: rgba(100,116,139,0.12);
  color: #64748b;
}

/* === Responsável: input com datalist (combobox: lista + texto livre) === */
.diagnosticos-project-structure-responsible-select {
  width: 100%;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 22px 0 6px;
  outline: none;
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  cursor: text;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(26,122,122,0.4) 50%), linear-gradient(135deg, rgba(26,122,122,0.4) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  transition: border-color .12s, background-color .12s, color .12s;
}

.diagnosticos-project-structure-responsible-select::placeholder {
  color: #9aaeb0;
  font-weight: 400;
  opacity: 1;
}

.diagnosticos-project-structure-responsible-select::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 14px;
  height: 100%;
  position: absolute;
  right: 4px;
  cursor: pointer;
}

.diagnosticos-project-structure-responsible-select.is-filled {
  color: var(--text);
  font-weight: 400;
}

.diagnosticos-project-structure-table tbody tr:hover .diagnosticos-project-structure-responsible-select {
  border-color: rgba(26,122,122,0.22);
  background-color: #fff;
}

.diagnosticos-project-structure-responsible-select:focus {
  border-color: rgba(26,122,122,0.45);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(26,122,122,0.10);
  color: var(--text);
}

/* === Data: input fantasma === */
.diagnosticos-project-structure-col-date input {
  width: 100%;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 6px;
  outline: none;
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  transition: border-color .12s, background-color .12s, color .12s;
}

.diagnosticos-project-structure-col-date input.is-filled {
  color: var(--text);
  font-weight: 400;
}

.diagnosticos-project-structure-table tbody tr:hover .diagnosticos-project-structure-col-date input {
  border-color: rgba(26,122,122,0.22);
  background-color: #fff;
}

.diagnosticos-project-structure-col-date input:focus {
  border-color: rgba(26,122,122,0.45);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(26,122,122,0.10);
  color: var(--text);
}

/* === Ação remover === */
.diagnosticos-project-structure-delete-x {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(192,57,43,0.55);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
  cursor: pointer;
}

.diagnosticos-project-structure-delete-x:hover {
  background: rgba(192,57,43,0.08);
  color: var(--danger);
  border-color: rgba(192,57,43,0.18);
}

/* === Estado vazio/muted === */
.diagnosticos-project-structure-muted {
  color: #9aaeb0;
  font-weight: 600;
}

/* === Empty state da tabela inteira === */
.diagnosticos-project-structure-empty {
  border: 1.5px dashed rgba(26,122,122,0.20);
  border-radius: 12px;
  background: rgba(26,122,122,0.03);
  padding: 22px;
  text-align: center;
  display: grid;
  gap: 6px;
}

.diagnosticos-project-structure-empty strong {
  color: var(--text);
  font-size: 15px;
}

.diagnosticos-project-structure-empty span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.diagnosticos-project-structure-modal {
  max-width: 760px;
}

@media (max-width: 1180px) {
  .diagnosticos-project-structure-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .diagnosticos-project-structure-kpis {
    grid-template-columns: 1fr;
  }

  .diagnosticos-project-structure-module-head {
    align-items: stretch;
  }

  .diagnosticos-project-structure-module-actions {
    justify-content: stretch;
  }

  .diagnosticos-project-structure-module-actions .btn {
    width: 100%;
  }
}

/* Recursos de Fábrica — ajustes mínimos sobre a tabela de Estrutura do Projeto */
.diagnosticos-recurso-fabrica-table .diagnosticos-recurso-fabrica-col-description { width: 38%; }
.diagnosticos-recurso-fabrica-table .diagnosticos-recurso-fabrica-col-jira { width: 18%; }
.diagnosticos-recurso-fabrica-table .diagnosticos-recurso-fabrica-col-status { width: 16%; }

.diagnosticos-recurso-fabrica-jira-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.diagnosticos-recurso-fabrica-jira-cell input {
  min-width: 0;
  flex: 1 1 auto;
}

.diagnosticos-recurso-fabrica-jira-link {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(26,122,122,0.07);
  border: 1px solid rgba(26,122,122,0.12);
  text-decoration: none;
  flex: 0 0 auto;
  transition: background .15s ease, transform .15s ease;
}

.diagnosticos-recurso-fabrica-jira-link:hover {
  background: rgba(26,122,122,0.13);
  transform: translateY(-1px);
}

.diagnosticos-recurso-fabrica-jira-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.diagnosticos-recurso-fabrica-status-select.status-entregue,
.diagnosticos-recurso-fabrica-status-badge.status-entregue {
  color: #2e6622;
  background: rgba(90,170,69,0.12);
  border-color: rgba(90,170,69,0.20);
}

.diagnosticos-recurso-fabrica-status-select.status-cancelado,
.diagnosticos-recurso-fabrica-status-badge.status-cancelado {
  color: #64748b;
  background: rgba(100,116,139,0.10);
  border-color: rgba(100,116,139,0.16);
}

.diagnosticos-recurso-fabrica-status-badge {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(26,122,122,0.12);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* ===================================================================
   Ocultar badge "Sessão ativa" do canto superior da tela
   (renderizado pelo dashboard global; não faz sentido sobre o modal)
   =================================================================== */
.dashboard-home-session-badge {
  display: none !important;
}

/* ================================================================
   DIAGNÓSTICOS — Padronização real da tipografia da tabela
   Escopo: somente dados das colunas Contrato, Cliente, Serviço e Data
   ================================================================ */
.diagnosticos-data-table tbody tr > td.diagnosticos-col-contract,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-client,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-service,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-date,
.diagnosticos-data-table tbody tr > td:nth-child(1),
.diagnosticos-data-table tbody tr > td:nth-child(2),
.diagnosticos-data-table tbody tr > td:nth-child(3),
.diagnosticos-data-table tbody tr > td:nth-child(7),
.diagnosticos-data-table tbody tr > td.diagnosticos-col-contract *,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-client *,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-service *,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-date *,
.diagnosticos-data-table tbody tr > td:nth-child(1) *,
.diagnosticos-data-table tbody tr > td:nth-child(2) *,
.diagnosticos-data-table tbody tr > td:nth-child(3) *,
.diagnosticos-data-table tbody tr > td:nth-child(7) * {
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  color: var(--text-soft) !important;
}

.diagnosticos-data-table tbody tr > td.diagnosticos-col-contract strong,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-client strong,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-service strong,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-date strong,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-contract b,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-client b,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-service b,
.diagnosticos-data-table tbody tr > td.diagnosticos-col-date b,
.diagnosticos-data-table tbody tr > td:nth-child(1) strong,
.diagnosticos-data-table tbody tr > td:nth-child(2) strong,
.diagnosticos-data-table tbody tr > td:nth-child(3) strong,
.diagnosticos-data-table tbody tr > td:nth-child(7) strong,
.diagnosticos-data-table tbody tr > td:nth-child(1) b,
.diagnosticos-data-table tbody tr > td:nth-child(2) b,
.diagnosticos-data-table tbody tr > td:nth-child(3) b,
.diagnosticos-data-table tbody tr > td:nth-child(7) b {
  font-weight: 400 !important;
}

/* ================================================================
   SIDEBAR — AUTO-COLAPSO em laptops 13"/14"/15"/16"
   Espelha as regras de .shell.sidebar-collapsed via media query.
   Não altera o comportamento manual em telas grandes (>1599px).
   Não altera o empilhamento existente em telas pequenas (<=980px).
   ================================================================ */
@media (min-width: 981px) and (max-width: 1599px) {
  .shell {
    grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
  }
  .sidebar { padding: 18px 10px; gap: 16px; align-items: stretch; }
  .sidebar-brand { padding: 4px 0 14px; gap: 8px; }
  .sidebar-logo { max-width: 56px; }
  .sidebar-nav { gap: 8px; justify-items: center; }
  .nav-standalone-group,
  .nav-group {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
  }
  .nav-btn,
  .nav-group-toggle {
    width: 48px;
    min-height: 48px;
    height: 48px;
    border-radius: 14px;
    padding: 0;
    margin: 0;
    justify-content: center;
  }
  .nav-btn-left,
  .nav-group-toggle-left { justify-content: center; gap: 0; }
  .nav-icon,
  .nav-group-icon { display: inline-flex; width: 32px; height: 32px; }
  .nav-label,
  .nav-badge,
  .nav-group-label,
  .nav-group-arrow,
  .nav-group-items,
  .nav-group-empty,
  .sidebar-caption,
  .sidebar-user { display: none !important; }
  .nav-btn:hover,
  .nav-group-toggle:hover { transform: none; }
  .nav-btn.active { background: #E6F4F4; color: #03738C; }
  .sidebar-collapse-btn { display: none; }
}

/* ================================================================
   CONTRATOS — Coluna Ações: corrigir sobreposição vinda do Status
   Causa raiz: .contracts-status-badge usa white-space: nowrap; textos
   longos (ex.: "Pronto para diagnóstico") estouravam a célula de 12%
   e invadiam visualmente a célula de Ações, cobrindo o ícone do lápis.
   Solução: permitir quebra em 2 linhas só para o badge de status,
   mantendo o estilo visual (pílula arredondada) e centralização.
   Não altera urgency/sla badges (textos curtos, seguem em 1 linha).
   ================================================================ */
.contracts-status-badge {
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  padding: 6px 12px;
}

/* ================================================================
   SIDEBAR — HOVER EXPAND dentro da faixa de auto-colapso
   Complementa o bloco anterior: na mesma faixa de 981–1599px,
   o sidebar permanece colapsado em ícones por padrão, mas expande
   temporariamente ao passar o mouse, sobrepondo o conteúdo
   (não empurra os KPIs nem a tabela). Quando o mouse sai, recolhe.
   Permite acessar os itens dos grupos (CONTROLE, CADASTROS, etc.)
   sem perder espaço útil quando o sidebar está em repouso.

   Delay de 120ms na expansão evita gatilhos acidentais.
   Recolhimento é imediato (sem delay) para parecer responsivo.
   ================================================================ */
@media (min-width: 981px) and (max-width: 1599px) {
  .sidebar {
    position: relative;
    z-index: 1;
    transition: width 0.22s ease, padding 0.22s ease, gap 0.22s ease;
  }

  .sidebar:hover {
    width: var(--sidebar-width);
    z-index: 100;
    padding: 20px 14px 18px;
    gap: 18px;
    align-items: stretch;
    box-shadow: 14px 0 32px rgba(15,54,54,0.15);
    transition-delay: 0.12s;
  }

  .sidebar:hover .sidebar-brand {
    padding: 16px 12px 18px;
    gap: 10px;
  }

  .sidebar:hover .sidebar-logo {
    max-width: 156px;
  }

  .sidebar:hover .sidebar-nav {
    gap: 12px;
    justify-items: stretch;
  }

  .sidebar:hover .nav-standalone-group,
  .sidebar:hover .nav-group {
    justify-items: stretch;
  }

  .sidebar:hover .nav-btn,
  .sidebar:hover .nav-group-toggle {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 0 14px;
    justify-content: space-between;
    border-radius: 12px;
  }

  .sidebar:hover .nav-btn-left,
  .sidebar:hover .nav-group-toggle-left {
    justify-content: flex-start;
    gap: 10px;
  }

  .sidebar:hover .nav-icon,
  .sidebar:hover .nav-group-icon {
    width: 30px;
    height: 30px;
  }

  .sidebar:hover .nav-label,
  .sidebar:hover .nav-badge,
  .sidebar:hover .nav-group-label,
  .sidebar:hover .nav-group-arrow,
  .sidebar:hover .nav-group-empty,
  .sidebar:hover .sidebar-caption {
    display: initial !important;
  }

  .sidebar:hover .nav-group-items.open {
    display: grid !important;
  }

  .sidebar:hover .sidebar-user {
    display: grid !important;
  }
}

/* ================================================================
   CONTRATOS — Redistribuição de larguras das colunas da tabela
   Libera espaço para os 5 botões da coluna Ações (Visualizar,
   Editar, Complementar, Acréscimo de horas, Excluir) que estavam
   sendo cortados por falta de espaço (apenas 8% antes).

   Mudanças vs. valores antigos (linhas 8277–8283):
     código    14% → 12%  (-2)
     cliente   26% → 22%  (-4)
     serviço   16% → 13%  (-3)
     urgência  11% → 10%  (-1)
     sla       13% → 12%  (-1)
     status    12% → 12%  (=)
     ações      8% → 19%  (+11)
   Total: 100%

   Especificidade reforçada com .contracts-data-table na frente para
   garantir que estas regras vençam as anteriores na cascata.
   ================================================================ */
.contracts-data-table .contracts-col-code     { width: 12%; }
.contracts-data-table .contracts-col-client   { width: 22%; }
.contracts-data-table .contracts-col-service  { width: 13%; }
.contracts-data-table .contracts-col-urgency  { width: 10%; }
.contracts-data-table .contracts-col-sla      { width: 12%; }
.contracts-data-table .contracts-col-status   { width: 12%; }
.contracts-data-table .contracts-col-actions  { width: 19%; }


/* ===================================================================
 * GESTÃO DO PROJETO — Frente 3, Fase 2A
 * -------------------------------------------------------------------
 * Estilos novos que complementam as regras existentes do módulo.
 * Cole este bloco no FINAL do app.css.
 * Todas as classes .gp-* são ESCOPADAS pelo ID raiz #project-milestones-page-root
 * para garantir especificidade vs. as regras antigas escopadas pelo mesmo ID.
 * ================================================================== */

#project-milestones-page-root .gp-page-shell {
  gap: 18px;
}

/* ---------- Filtros ---------- */

#project-milestones-page-root .gp-filter-grid {
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) minmax(180px, 1fr);
}

@media (max-width: 980px) {
  #project-milestones-page-root .gp-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Board (lista de projetos) ----------
 * 7 colunas: Contrato/Cliente | Serviço | Gerente | Status | Início | Prev. fim | Conteúdo
 * Sobrescreve as 6 colunas do .pm-stage-board-head/.stages-list-row originais.
 */

#project-milestones-page-root .gp-board-head {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(140px, 1.2fr) minmax(140px, 1fr) 110px 100px 110px minmax(180px, 1fr);
  gap: 14px;
  padding: 16px 18px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid rgba(26,122,122,0.10);
  background: #f8fbfb;
}

#project-milestones-page-root .gp-board-rows {
  display: grid;
}

#project-milestones-page-root .gp-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(140px, 1.2fr) minmax(140px, 1fr) 110px 100px 110px minmax(180px, 1fr);
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(204,222,222,0.45);
  background: transparent;
  transition: background-color 0.15s ease;
  align-items: center;
}

#project-milestones-page-root .gp-row:hover {
  background: rgba(26,122,122,0.03);
  border-color: rgba(26,122,122,0.12);
}

#project-milestones-page-root .gp-row.selected {
  border-left: 4px solid #1a7a7a;
  background: rgba(26,122,122,0.04);
}

#project-milestones-page-root .gp-row.late {
  border-left: 4px solid #e35656;
}

#project-milestones-page-root .gp-row.selected.late {
  border-left: 4px solid #e35656;
}

@media (max-width: 980px) {
  #project-milestones-page-root .gp-board-head { display: none; }
  #project-milestones-page-root .gp-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }
}

#project-milestones-page-root .gp-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

#project-milestones-page-root .gp-count {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  white-space: nowrap;
}

#project-milestones-page-root .gp-late-text {
  color: #b91c1c;
  font-weight: 700;
}

#project-milestones-page-root .gp-empty-panel {
  padding: 24px;
}

/* ---------- Detalhe ---------- */

#project-milestones-page-root .gp-detail-card {
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(26,122,122,0.10);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15,54,54,0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#project-milestones-page-root .gp-detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26,122,122,0.10);
}

#project-milestones-page-root .gp-detail-header-main h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: var(--blue-deep);
  letter-spacing: -0.01em;
}

#project-milestones-page-root .gp-detail-client {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

#project-milestones-page-root .gp-detail-header-main p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

#project-milestones-page-root .gp-detail-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

#project-milestones-page-root .gp-detail-header-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

#project-milestones-page-root .gp-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--muted);
}

#project-milestones-page-root .gp-detail-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Sub-tabs com contadores ---------- */

#project-milestones-page-root .gp-sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#project-milestones-page-root .gp-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(26,122,122,0.10);
  color: var(--blue-deep);
}

#project-milestones-page-root .gp-sub-tab.active .gp-tab-count {
  background: rgba(255,255,255,0.85);
  color: #16706f;
}

/* ---------- Conteúdo das sub-abas ---------- */

#project-milestones-page-root .gp-tab-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#project-milestones-page-root .gp-tab-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#project-milestones-page-root .gp-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(26,122,122,0.06);
  padding: 4px;
  border-radius: 999px;
}

#project-milestones-page-root .gp-pill {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s ease;
  font-weight: 600;
}

#project-milestones-page-root .gp-pill:hover {
  color: var(--blue-deep);
}

#project-milestones-page-root .gp-pill.active {
  background: #fff;
  color: #16706f;
  box-shadow: 0 1px 3px rgba(15,54,54,0.10);
}

/* ---------- Badges de tipo de item de cronograma ---------- */

#project-milestones-page-root .gp-tipo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#project-milestones-page-root .gp-tipo-marco {
  background: #dbeafe;
  color: #1e40af;
}

#project-milestones-page-root .gp-tipo-funcao {
  background: #fef3c7;
  color: #92400e;
}

#project-milestones-page-root .gp-tipo-pre {
  background: #ede9fe;
  color: #5b21b6;
}

/* ---------- Badges de origem ---------- */

#project-milestones-page-root .gp-origem-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

#project-milestones-page-root .gp-origem-diagnostico {
  background: rgba(26,122,122,0.08);
  color: var(--muted);
}

#project-milestones-page-root .gp-origem-execucao {
  background: #ecfeff;
  color: #155e75;
  border: 1px dashed #67e8f9;
}

/* ---------- Conteúdo das tabelas dentro das sub-abas ---------- */

#project-milestones-page-root .gp-item-name {
  font-weight: 400;
  color: var(--blue-deep);
}

#project-milestones-page-root .gp-item-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

#project-milestones-page-root .gp-jira-key {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
}

#project-milestones-page-root .gp-secondary-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(26,122,122,0.08);
  color: var(--blue-deep);
  font-weight: 600;
}

#project-milestones-page-root .gp-nivel-alto,
#project-milestones-page-root .gp-nivel-altissimo,
#project-milestones-page-root .gp-nivel-critico {
  background: #fee2e2;
  color: #b91c1c;
}

#project-milestones-page-root .gp-nivel_medio,
#project-milestones-page-root .gp-nivel-medio {
  background: #fef3c7;
  color: #92400e;
}

#project-milestones-page-root .gp-nivel_baixo,
#project-milestones-page-root .gp-nivel-baixo {
  background: #dcfce7;
  color: #166534;
}

#project-milestones-page-root .gp-empty-inline-row {
  background: transparent;
  padding: 22px;
}

/* ===================================================================
 * GESTÃO DO PROJETO — Frente 3, Fase 2B
 * -------------------------------------------------------------------
 * Estilos das ações de escrita: botões de linha, modal infra e
 * formulários internos do modal. Todas as classes escopadas pelo ID
 * raiz, exceto .gp-modal-overlay/.gp-modal que vivem em document.body
 * (foram movidos pra fora do root pra evitar problemas de stacking).
 * ================================================================== */

/* ---------- Ações inline na tabela (coluna Ações) ---------- */

#project-milestones-page-root .gp-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

#project-milestones-page-root .gp-actions-locked {
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- Botões de ação (compartilhados linha + modal) ---------- */

.gp-action-btn,
#project-milestones-page-root .gp-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
  line-height: 1.2;
  white-space: nowrap;
}

.gp-action-btn:disabled,
#project-milestones-page-root .gp-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gp-action-btn--primary,
#project-milestones-page-root .gp-action-btn--primary {
  background: #16706f;
  color: #ffffff;
  border-color: #16706f;
}
.gp-action-btn--primary:hover:not(:disabled),
#project-milestones-page-root .gp-action-btn--primary:hover:not(:disabled) {
  background: #115858;
  border-color: #115858;
}

.gp-action-btn--ghost,
#project-milestones-page-root .gp-action-btn--ghost {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}
.gp-action-btn--ghost:hover:not(:disabled),
#project-milestones-page-root .gp-action-btn--ghost:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.gp-action-btn--danger,
#project-milestones-page-root .gp-action-btn--danger {
  background: #ffffff;
  color: #b91c1c;
  border-color: #fca5a5;
}
.gp-action-btn--danger:hover:not(:disabled),
#project-milestones-page-root .gp-action-btn--danger:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #b91c1c;
}

/* ---------- Variante ícone dos botões de ação ---------- */

.gp-action-btn--icon,
#project-milestones-page-root .gp-action-btn--icon {
  padding: 0;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 7px;
  background: transparent;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}
.gp-action-btn--icon svg,
#project-milestones-page-root .gp-action-btn--icon svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.gp-action-btn--icon:hover:not(:disabled),
#project-milestones-page-root .gp-action-btn--icon:hover:not(:disabled) {
  transform: scale(1.08);
}
/* cores por intenção */
.gp-action-btn--icon.gp-action-btn--primary,
#project-milestones-page-root .gp-action-btn--icon.gp-action-btn--primary {
  background: transparent;
  color: #16706f;
  border: none;
}
.gp-action-btn--icon.gp-action-btn--primary:hover:not(:disabled),
#project-milestones-page-root .gp-action-btn--icon.gp-action-btn--primary:hover:not(:disabled) {
  background: rgba(22, 112, 111, 0.10);
}
.gp-action-btn--icon.gp-action-btn--ghost,
#project-milestones-page-root .gp-action-btn--icon.gp-action-btn--ghost {
  background: transparent;
  color: #5a6a9a;
  border: none;
}
.gp-action-btn--icon.gp-action-btn--ghost:hover:not(:disabled),
#project-milestones-page-root .gp-action-btn--icon.gp-action-btn--ghost:hover:not(:disabled) {
  background: rgba(90, 106, 154, 0.10);
  color: #3a4a7a;
}
.gp-action-btn--icon.gp-action-btn--danger,
#project-milestones-page-root .gp-action-btn--icon.gp-action-btn--danger {
  background: transparent;
  color: #b05050;
  border: none;
}
.gp-action-btn--icon.gp-action-btn--danger:hover:not(:disabled),
#project-milestones-page-root .gp-action-btn--icon.gp-action-btn--danger:hover:not(:disabled) {
  background: rgba(192, 57, 43, 0.08);
  color: var(--danger, #b91c1c);
}

/* ---------- Botão "+ Incluir item" no topo da sub-aba ---------- */

#project-milestones-page-root .gp-tab-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#project-milestones-page-root .gp-tab-filters-spacer {
  flex: 1 1 auto;
}

#project-milestones-page-root .gp-new-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #16706f;
  background: #16706f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
#project-milestones-page-root .gp-new-item-btn:hover {
  background: #115858;
  border-color: #115858;
}

/* ---------- Modal: overlay + container ----------
 * Notinha: .gp-modal-overlay vive em document.body (fora do root) para
 * evitar problemas de stacking context. Por isso NÃO usa o seletor
 * #project-milestones-page-root .gp-modal-overlay.
 * ------------------------------------------------------------------ */

.gp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  padding: 60px 16px;
  overflow-y: auto;
  animation: gpModalFadeIn 140ms ease-out;
}

@keyframes gpModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gp-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  animation: gpModalSlideIn 180ms ease-out;
}

.gp-modal-size-lg { max-width: 680px; }
.gp-modal-size-md { max-width: 520px; }
.gp-modal-size-sm { max-width: 420px; }

@keyframes gpModalSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.gp-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.gp-modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 4px;
}
.gp-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.gp-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.gp-modal-prose {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.gp-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 8px;
}
.gp-modal-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gp-modal-meta .gp-meta-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gp-modal-warning {
  margin: 14px 0 0 0;
  padding: 10px 12px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 12px;
  color: #78350f;
  line-height: 1.45;
}

.gp-modal-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

/* [FRENTE-3-FASE-2B-3] Grid 3-col pra agrupar selects compactos
 * (probabilidade / impacto / nível nos modais de risco) */
.gp-modal-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.gp-modal-form-grid-3 .gp-modal-form-row {
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .gp-modal-form-grid-3 { grid-template-columns: 1fr; gap: 8px; }
}
.gp-modal-form-row label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}
.gp-required {
  color: #b91c1c;
  margin-left: 2px;
}
.gp-modal-form-row input[type="text"],
.gp-modal-form-row input[type="date"],
.gp-modal-form-row select,
.gp-modal-form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  box-sizing: border-box;
}
.gp-modal-form-row textarea {
  resize: vertical;
  min-height: 64px;
}
.gp-modal-form-row input:focus,
.gp-modal-form-row select:focus,
.gp-modal-form-row textarea:focus {
  outline: none;
  border-color: #16706f;
  box-shadow: 0 0 0 3px rgba(22, 112, 111, 0.15);
}
.gp-modal-hint {
  font-size: 11px;
  color: #64748b;
}

.gp-modal-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.45;
}

.gp-modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.gp-modal-footer-spacer {
  flex: 1 1 auto;
}
.gp-modal-footer .gp-action-btn {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- Responsividade do modal ---------- */

@media (max-width: 640px) {
  .gp-modal-overlay { padding: 24px 12px; }
  .gp-modal { max-height: calc(100vh - 48px); }
  .gp-modal-meta { grid-template-columns: 1fr; }
  #project-milestones-page-root .gp-tab-filters { flex-direction: column; align-items: stretch; }
  #project-milestones-page-root .gp-new-item-btn { align-self: flex-start; }
}

/* [FRENTE-3-FASE-2B-4] Área de ações no header do detalhe (botão Encerrar) */
#project-milestones-page-root .gp-detail-header {
  /* Estende o header existente sem alterar a regra original (que continua
   * a primeira declaração e define grid/padding/etc); este seletor só
   * adiciona accommodation pra área de ações via grid auto-fit. */
}
#project-milestones-page-root .gp-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
#project-milestones-page-root .gp-detail-header-actions .gp-action-btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* [FRENTE-3-FASE-2B-4] Checkbox inline dentro do form do modal
 * (campo "Item obrigatório" no editar de cronograma) */
.gp-modal-form-row-inline {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}
.gp-modal-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.gp-modal-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #16706f;
}

/* [FRENTE-3-FASE-2C-1] Lista de pendências no modal bloqueante de encerramento */
.gp-modal-pendencies {
  margin: 0 0 14px 0;
  padding: 12px 16px 12px 32px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.6;
}
.gp-modal-pendencies li {
  margin: 4px 0;
}
.gp-modal-pendencies li strong {
  color: #991b1b;
}

/* ============================================================
 * [FRENTE-3-FASE-2C] Termo de Encerramento — UI no app
 * (estilos da janela de impressão estão inline no HTML gerado)
 * ============================================================ */

/* Badge de status do termo no header de ações */
.gp-termo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gp-termo-badge.gp-termo-anexado {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.gp-termo-badge.gp-termo-preenchido {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
}
.gp-termo-badge.gp-termo-rascunho {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
.gp-termo-badge.gp-termo-vazio {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Spacer pra empurrar o botão Encerrar pra direita do header de ações */
#project-milestones-page-root .gp-actions-spacer {
  flex: 1 1 auto;
}

/* Grid 2-col compacto pros pares cliente/contrato e analista/data */
.gp-modal-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gp-modal-form-grid-2 .gp-modal-form-row {
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .gp-modal-form-grid-2 { grid-template-columns: 1fr; gap: 8px; }
}

/* Seção de anexo do PDF dentro do modal de termo */
.gp-termo-anexo-section {
  margin-top: 22px;
  padding: 16px 18px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}
.gp-termo-anexo-section h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: #16706f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gp-termo-anexo-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.gp-termo-anexo-filename {
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
  word-break: break-all;
}
.gp-termo-anexo-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------- FIM Gestão do Projeto ---------- */

/* [AT-MULTISELECT-UI-2026-06-12] Campos multi-select — mesmo visual do select nativo */
.at-multiselect-wrap {
  position: relative;
}

.at-multiselect-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.at-multiselect-trigger:hover:not(:disabled) {
  border-color: var(--blue);
}

.at-multiselect-trigger:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.12);
}

.at-multiselect-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-subtle, #f8fafc);
}

.at-multiselect-trigger.is-open {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,122,122,0.12);
}

.at-multiselect-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.at-multiselect-label.is-placeholder {
  color: var(--muted, #64748b);
}

.at-multiselect-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: transform 0.2s;
}

.at-multiselect-trigger.is-open .at-multiselect-chevron {
  transform: rotate(180deg);
}

.at-multiselect-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 400;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
}

.at-multiselect-panel.hidden {
  display: none;
}

/* [AT-MULTISELECT-CHECKBOX-FIX-2026-06-12] */
.at-multiselect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  user-select: none;
  transition: background 0.1s;
}

.at-multiselect-option:hover {
  background: var(--bg-subtle, #f8fafc);
}

.at-multiselect-option + .at-multiselect-option {
  border-top: 1px solid var(--border-soft, #f1f5f9);
}

.at-multiselect-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary, #0f766e);
}

.at-multiselect-meta {
  font-size: 12px;
  color: var(--muted, #64748b);
  margin-left: 4px;
}

/* ── Apontamentos: rodapé de total filtrado ─────────────────── */
.appointments-total-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
}
.ap-footer-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.ap-footer-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdf9;
  border: 1.5px solid #99f6e4;
  border-radius: 6px;
  padding: 2px 10px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Controle block – unified KPI card aesthetic (2026-06-17)
   Applies compact trainings-kpi-card look to all header cards:
   contracts, contacts, diagnosticos, zendesk
   ============================================================ */

.contracts-kpi-card,
.contacts-summary-card,
.diagnosticos-kpi-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0 14px;
  align-items: center;
  padding: 10px 16px;
  min-height: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,250,0.96));
  box-shadow: 0 1px 3px rgba(15,118,110,0.07), 0 0 0 1px rgba(15,118,110,0.07);
  border-left: 3px solid #0d9488;
}
.contracts-kpi-icon,
.contacts-summary-icon,
.diagnosticos-kpi-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contracts-kpi-icon svg,
.contacts-summary-icon svg,
.diagnosticos-kpi-icon svg {
  width: 22px;
  height: 22px;
}
.contracts-kpi-copy,
.contacts-summary-copy,
.diagnosticos-kpi-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contracts-kpi-label,
.contacts-summary-label,
.diagnosticos-kpi-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contracts-kpi-value,
.contacts-summary-value,
.diagnosticos-kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
}

/* Border-left accent by card key – contracts */
.contracts-kpi-card--total    { border-left-color: #0d9488; }
.contracts-kpi-card--ready    { border-left-color: #3b82f6; }
.contracts-kpi-card--healthy  { border-left-color: #22c55e; }
.contracts-kpi-card--risk     { border-left-color: #f59e0b; }

/* Border-left accent by card key – zendesk (also uses contracts-kpi-card) */
.contracts-kpi-card--abertos  { border-left-color: #f59e0b; }
.contracts-kpi-card--analista { border-left-color: #6366f1; }
.contracts-kpi-card--cliente  { border-left-color: #3b82f6; }
.contracts-kpi-card--ultima   { border-left-color: #64748b; }

/* Border-left accent by card key – contacts */
.contacts-summary-card--total    { border-left-color: #0d9488; }
.contacts-summary-card--month    { border-left-color: #6366f1; }
.contacts-summary-card--users    { border-left-color: #22c55e; }
.contacts-summary-card--frequent { border-left-color: #a855f7; }

/* Border-left accent by modifier – diagnosticos */
.diagnosticos-kpi-card.is-total    { border-left-color: #0d9488; }
.diagnosticos-kpi-card.is-pending  { border-left-color: #f59e0b; }
.diagnosticos-kpi-card.is-approved { border-left-color: #22c55e; }
.diagnosticos-kpi-card.is-returned { border-left-color: #f97316; }
.diagnosticos-kpi-card.is-urgent   { border-left-color: #ef4444; }

/* ── Mini chat Nexus (hero da home) ───────────────────────────────────────── */
.dashboard-nexus-mini {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-nexus-mini-intro {
  font-size: 12.5px;
  color: #1e3030;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.dashboard-nexus-mini-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dashboard-nexus-mini-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 9px;
  padding: 0 10px;
  font-size: 12px;
  font-family: inherit;
  color: #1e3030;
  background: rgba(255, 255, 255, 0.90);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dashboard-nexus-mini-input:focus {
  border-color: rgba(26, 122, 122, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.10);
}

.dashboard-nexus-mini-input::placeholder {
  color: rgba(30, 48, 48, 0.38);
}

.dashboard-nexus-mini-send {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.90);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.dashboard-nexus-mini-send:hover {
  background: #fff;
  transform: translateY(-1px);
}

.dashboard-nexus-mini-send:active {
  transform: translateY(0);
}
