@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root {
  --brand: #16745e;
  --brand-dark: #123b35;
  --brand-deep: #0d2e29;
  --brand-accent: #a8d7bd;
  --page: #f3f6f5;
  --ink: #253530;
  --muted: #6b7c75;
}
body { background: var(--page); color: var(--ink); font-family: 'DM Sans', system-ui, -apple-system, sans-serif; }
.app-navbar { background: linear-gradient(110deg, var(--brand-deep), var(--brand-dark)); box-shadow: 0 3px 14px rgba(13,46,41,.15); }
.brand-lockup { display:flex; align-items:center; gap:.7rem; padding-top:.25rem; padding-bottom:.25rem; }
.brand-symbol { width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(168,215,189,.42); border-radius:12px; color:var(--brand-accent); background:rgba(255,255,255,.07); font-size:1.25rem; }
.brand-copy { display:flex; flex-direction:column; line-height:1.05; }
.brand-name { color:#fff; font-size:1.38rem; font-weight:800; letter-spacing:-.055em; }
.brand-name span { color:var(--brand-accent); }
.brand-tagline { margin-top:.28rem; color:rgba(255,255,255,.68); font-size:.52rem; font-weight:700; letter-spacing:.105em; }
.app-navbar .nav-link { color:rgba(255,255,255,.78); font-size:.9rem; }
.app-navbar .nav-link:hover, .app-navbar .nav-link:focus { color:#fff; }
.user-menu { white-space:nowrap; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.5rem; }
.metric-card { border:0; border-radius:.85rem; box-shadow:0 2px 12px rgba(20,40,35,.06); }
.metric-label { color:var(--muted); font-size:.85rem; }
.metric-value { font-size:1.65rem; font-weight:700; }
.card { border:0; border-radius:.85rem; box-shadow:0 2px 12px rgba(20,40,35,.05); }
.table thead th { color:#64736d; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
.form-label { font-weight:600; font-size:.9rem; }
.btn-success { --bs-btn-bg:var(--brand); --bs-btn-border-color:var(--brand); --bs-btn-hover-bg:#105e4c; --bs-btn-hover-border-color:#105e4c; }
.text-success { color:var(--brand)!important; }
.nav-tabs .nav-link { color:var(--brand); }
.nav-tabs .nav-link.active { color:var(--brand-dark); font-weight:600; }
summary { cursor:pointer; }
.login-brand { display:inline-flex; align-items:center; justify-content:center; gap:.7rem; }
.login-brand .brand-symbol { width:52px; height:52px; color:var(--brand); border-color:rgba(22,116,94,.2); background:rgba(22,116,94,.08); font-size:1.6rem; }
.login-brand .brand-name { color:var(--brand-dark); font-size:1.8rem; }
.login-brand .brand-name span { color:var(--brand); }
.login-brand .brand-tagline { color:var(--muted); }
@media (max-width: 991.98px) {
  .app-navbar .navbar-nav { padding-top:.75rem; }
  .user-menu { padding:.75rem 0; }
}
@media (max-width: 575.98px) {
  .brand-tagline { font-size:.45rem; }
  .brand-name { font-size:1.25rem; }
}
/* Pills também funcionam isoladamente em tabelas e listagens */
.status-pill.status-not-started { color:#a83232; background:#fff0f0; }
.status-pill.status-discovery, .status-pill.status-waiting { color:#925d08; background:#fff4d9; }
.status-pill.status-identified, .status-pill.status-requested { color:#205e96; background:#eaf4ff; }
.status-pill.status-attention { color:#a63b25; background:#ffebe5; }
.status-pill.status-complete { color:#176b49; background:#e5f7ed; }
.status-pill.status-confirmed-none, .status-pill.status-not-applicable, .status-pill.status-cancelled { color:#59636b; background:#edf0f2; }
.status-pill.status-unknown { color:#59636b; background:#f1f3f4; }


/* Destaque visual do checklist documental - GestInfra 2.5 */
.document-card {
  border: 1px solid #d9e1de;
  border-left: 6px solid #9aa7a1;
  border-radius: .75rem;
  padding: 1rem;
  margin-bottom: .85rem;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.document-card.status-not-started { border-color: #e5a0a0; border-left-color: #c93636; background: #fff5f5; }
.document-card.status-discovery,
.document-card.status-waiting { border-color: #e8cc8c; border-left-color: #c58a19; background: #fffbf0; }
.document-card.status-identified,
.document-card.status-requested { border-color: #9fc5e8; border-left-color: #2878b9; background: #f3f8ff; }
.document-card.status-attention { border-color: #e5a18f; border-left-color: #c64d32; background: #fff5f1; }
.document-card.status-complete { border-color: #9acbad; border-left-color: #27834f; background: #f2fbf5; }
/* Recebido + evidência anexada: azul para sinalizar checklist concluído e comprovado. */
.document-card.status-complete.has-file { border-color: #8bbde8; border-left-color: #1674bd; background: #f0f7ff; }
.document-card.status-confirmed-none,
.document-card.status-not-applicable,
.document-card.status-cancelled,
.document-card.status-unknown { border-color: #d5dadd; border-left-color: #7b858c; background: #f7f8f9; }
.status-pill { display:inline-flex; align-items:center; border-radius:999px; padding:.22rem .6rem; font-size:.75rem; font-weight:700; }
.status-pill.status-not-started { color:#a83232; background:#ffe2e2; }
.status-pill.status-discovery, .status-pill.status-waiting { color:#875600; background:#ffedbd; }
.status-pill.status-identified, .status-pill.status-requested { color:#205e96; background:#dceeff; }
.status-pill.status-attention { color:#a63b25; background:#ffdfd5; }
.status-pill.status-complete { color:#176b49; background:#d8f3e3; }
.document-card.status-complete.has-file .status-pill.status-complete { color:#145b9a; background:#d8ebff; }
.status-pill.status-confirmed-none, .status-pill.status-not-applicable, .status-pill.status-cancelled, .status-pill.status-unknown { color:#59636b; background:#e8ecef; }
.document-flag { display:inline-flex; align-items:center; gap:.25rem; border-radius:999px; padding:.2rem .55rem; font-size:.72rem; font-weight:700; }
.document-flag.missing { color:#a83232; background:#ffe5e5; }
.document-flag.ok { color:#176b49; background:#dff5e8; }
.document-meta { font-size:.82rem; color:#5f7069; }
.document-missing-info { color:#b42318; font-weight:700; }

/* GestInfra 2.6 - hierarquia de itens e subitens */
.subitem-link { color:inherit; margin-bottom:.65rem; padding: .85rem 1rem; }
.subitem-link:hover { transform: translateY(-1px); box-shadow:0 4px 14px rgba(20,40,35,.09); }
.hierarchy-breadcrumb { font-size:.82rem; color:var(--muted); }
