html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

:root {
  --sidebar-width: 260px;
  --rail-width: 74px;
  --brand-navy: #153D2D;
  --brand-green: #16875b;
  --brand-green-dark: #0f6946;
  --brand-green-soft: #e8f6ee;
  --border: #dde8e1;
  --muted: #667085;
  --surface: #ffffff;
  --background: #f3f7f5;
  --primary: var(--brand-navy);
  --primary-dark: #00142f;
  --danger-soft: #fff0f0;
  --danger: #b42318;
  --warning-soft: #fff8e5;
  --warning: #946200;
}

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: #172033;
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--brand-navy);
  color: white;
  padding: 20px 16px;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 750;
  padding: 3px 8px 24px;
  letter-spacing: -.02em;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
}

.brand-wordmark-accent {
  color: var(--brand-green);
}

.brand-symbol {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.brand-symbol-top,
.brand-symbol-mid {
  position: absolute;
  left: 9px;
  width: 24px;
  height: 8px;
  background: #fff;
  border-radius: 9px 9px 9px 2px;
  transform: skewY(-12deg);
}

.brand-symbol-top { top: 7px; }
.brand-symbol-mid { top: 20px; left: 11px; width: 20px; }

.brand-symbol-dot-top,
.brand-symbol-dot-bottom {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.brand-symbol-dot-top {
  top: 2px;
  right: 1px;
  background: var(--brand-green);
}

.brand-symbol-dot-bottom {
  left: 1px;
  bottom: 1px;
  background: #fff;
}

.sidebar-nav { display: grid; gap: 5px; }

.sidebar-link {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 7px;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: white;
  background: rgba(255,255,255,.1);
}

.sidebar-link.disabled {
  cursor: default;
  opacity: .55;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.app-topbar {
  height: 68px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.topbar-title {
  font-weight: 800;
  margin-right: 10px;
  color: var(--brand-navy);
  letter-spacing: -.025em;
}
.topbar-subtitle { color: var(--muted); font-size: .9rem; }
.topbar-user { font-weight: 600; font-size: .9rem; }

.app-content { padding: 26px 28px 40px; }

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-heading h1 {
  font-size: 1.7rem;
  margin: 0 0 4px;
  font-weight: 700;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
}

.summary-card {
  min-height: 116px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-card strong {
  font-size: 2rem;
  line-height: 1;
}

.summary-label {
  color: var(--muted);
  font-weight: 600;
}

.summary-card-danger {
  background: var(--danger-soft);
  border-color: #f4c7c3;
}

.summary-card-danger strong { color: var(--danger); }

.summary-card-warning {
  background: var(--warning-soft);
  border-color: #eedba0;
}

.summary-card-warning strong { color: var(--warning); }

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.content-card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.content-card-header h2 {
  margin: 0 0 3px;
  font-size: 1.15rem;
  font-weight: 700;
}

.content-card-header span {
  color: var(--muted);
  font-size: .9rem;
}

.task-table thead th {
  background: #f8f9fb;
  border-bottom: 1px solid var(--border);
  color: #596273;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.task-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.task-row-overdue td { background: #fffafa; }

.task-description {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 2px;
}

.status-pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-danger { background: var(--danger-soft); color: var(--danger); }
.status-warning { background: var(--warning-soft); color: var(--warning); }
.status-neutral { background: #eef2f6; color: #43515e; }
.status-success { background: var(--brand-green-soft); color: #087653; }

.empty-state {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

@media (max-width: 767.98px) {
  .app-sidebar {
    width: 72px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand span:not(.brand-mark),
  .sidebar-link {
    font-size: 0;
  }

  .app-main { margin-left: 72px; }

  .app-content,
  .app-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-subtitle { display: none; }

  .page-heading { align-items: flex-start; }
}


.history-list {
  max-height: 520px;
  overflow-y: auto;
}

.history-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-item small {
  color: var(--muted);
}

.history-description {
  margin: 4px 0;
  color: #3f4854;
  font-size: .9rem;
}

.dropdown-menu {
  min-width: 150px;
}


/* O menu de ações do briefing precisa escapar dos limites da tabela/card. */
.briefing-card {
  overflow: visible;
}

@media (min-width: 992px) {
  .briefing-card .table-responsive {
    overflow: visible;
  }
}

.briefing-card .dropdown {
  position: relative;
}

.briefing-card .dropdown-menu {
  z-index: 1080;
}


.topbar-user-button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  text-align: right;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.topbar-user-button:hover {
  background: #f3f5f7;
}

.topbar-user-name {
  font-weight: 700;
  color: #1f2937;
}

.topbar-user-role {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.login-body {
  min-height: 100vh;
  background: #eef2f5;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(31,52,68,.08);
}

.login-card h1 {
  font-size: 1.45rem;
  margin: 24px 0 20px;
  font-weight: 700;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand .brand-mark {
  background: #1f3444;
  color: white;
}

.login-setup-link {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--muted);
}


.sector-picker {
  display: flex;
  gap: 10px;
  max-width: 620px;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eef3f6;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font-size: .9rem;
  color: #263746;
}

.sector-tag-remove {
  border: 0;
  background: transparent;
  padding: 0;
  color: #697783;
  font-size: 1.1rem;
  line-height: 1;
}


.task-readonly {
  padding: 2px 0;
}

.task-readonly > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-readonly-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--muted);
}


.collective-summary {
  padding: 16px 18px 8px;
}

.collective-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e8edf1;
  overflow: hidden;
}

.collective-progress-value {
  height: 100%;
  background: #1f3444;
  border-radius: inherit;
  transition: width .2s ease;
}

.collective-progress-caption {
  margin-top: 6px;
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
}

.collective-list {
  border-top: 1px solid var(--border);
}

.collective-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.collective-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.collective-item-response {
  margin-top: 8px;
  font-size: .88rem;
}

.collective-notification {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.collective-inline-status {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted);
}

.collective-inline-status strong {
  color: #263746;
}


.collective-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.collective-item-action {
  margin-left: auto;
}

.collective-item-response {
  width: 100%;
}


.topbar-tenant-select {
  display: inline-block;
  width: auto;
  min-width: 220px;
  vertical-align: middle;
  border: 0;
  background-color: transparent;
  font-size: 1rem;
  color: var(--muted);
  padding-left: .35rem;
  padding-right: 2rem;
}

.topbar-tenant-select:focus {
  box-shadow: none;
  border-color: transparent;
}


/* Identidade FicaEmDia */
a { color: var(--brand-navy); }
a:hover { color: var(--brand-green-dark); }

.btn-outline-primary {
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn-outline-primary:hover {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.form-check-input:checked {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(16,185,129,.6);
  box-shadow: 0 0 0 .2rem rgba(16,185,129,.12);
}

.task-readonly-summary {
  padding: 2px 0;
}

.task-view-title {
  margin: 4px 0 0;
  color: var(--brand-navy);
  font-size: 1.45rem;
  font-weight: 800;
}

.history-list {
  position: relative;
  max-height: 620px;
}

.history-item {
  position: relative;
  margin-left: 24px;
  padding: 16px 18px 16px 26px;
  border-left: 2px solid #e1e7ee;
  border-bottom: 0;
}

.history-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px #fff;
}

.history-item:last-child {
  border-left-color: transparent;
}

.history-item strong {
  color: var(--brand-navy);
}

.content-card-header h2,
.page-heading h1 {
  color: var(--brand-navy);
}


/* Ações operacionais das tarefas */
.task-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
}

.task-action-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d7dee7;
  border-radius: 7px;
  background: #fff;
  color: var(--brand-navy);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.task-action-link:hover {
  background: #f7f9fc;
  border-color: #b9c5d2;
  color: var(--brand-navy);
}

.task-action-primary {
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #fff;
}

.task-action-primary:hover {
  border-color: var(--brand-green-dark);
  background: var(--brand-green-dark);
  color: #fff;
}

.task-action-muted {
  color: #667085;
}

.task-list-modern {
  padding: 0 16px 16px;
}

.task-list-item {
  margin-top: 12px;
  padding: 16px 18px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,27,61,.025);
}

.task-list-item:hover {
  border-color: #ccd5df;
  box-shadow: 0 4px 16px rgba(0,27,61,.055);
}

.task-list-item-done {
  background: #fbfcfd;
}

.task-list-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(440px, 1.8fr);
  gap: 24px;
  align-items: center;
}

.task-list-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.task-list-title strong {
  color: var(--brand-navy);
  font-size: .94rem;
}

.task-list-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 18px;
}

.task-list-meta > div {
  min-width: 0;
}

.task-list-meta span,
.task-list-meta small {
  display: block;
  color: var(--muted);
  font-size: .7rem;
}

.task-list-meta strong {
  display: block;
  margin-top: 2px;
  color: #27364a;
  font-size: .8rem;
  font-weight: 700;
}

.task-action-bar-list {
  margin-left: 0;
}

@media (max-width: 991.98px) {
  .task-list-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .task-list-meta {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .task-list-modern {
    padding: 0 10px 10px;
  }

  .task-list-item {
    padding: 14px 12px 10px;
  }

  .task-list-meta {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .task-action-bar {
    gap: 7px;
  }

  .task-action-link {
    flex: 1 1 auto;
  }
}


/* Documentos: componentes locais, sem afetar os outros módulos. */
.doc-pdf-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 560px; overflow-y: auto; padding: 18px; border: 1px solid #d6dce4; border-radius: 12px; background: #f8fafc; font-size: .9rem; }
.doc-form { max-width: 1120px; margin: 0 auto; }
.doc-panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: clamp(20px, 3vw, 34px); margin-bottom: 20px; }
.doc-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.doc-panel-head h2 { color: var(--brand-navy); font-size: 1.35rem; font-weight: 750; margin: 0 0 5px; }
.doc-panel-head p { color: var(--muted); margin: 0; }
.doc-chip { display: inline-block; flex-shrink: 0; padding: 5px 12px; border-radius: 999px; background: #f1f4f7; color: #475467; font-size: .8rem; font-weight: 650; }
.doc-form .form-label { color: #45505f; font-weight: 650; }
.doc-form .form-control, .doc-form .form-select { border-radius: 13px; padding: 12px 15px; border-color: #d6dce4; }
.doc-options { display: grid; gap: 16px; }
.doc-choice { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; font-size: 1rem; color: #172033; }
.doc-choice .form-check-input { margin: 4px 0 0; flex-shrink: 0; width: 19px; height: 19px; }
.doc-choice strong, .doc-choice small { display: block; }
.doc-choice strong { font-weight: 650; }
.doc-choice small { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.doc-days { display: flex; flex-wrap: wrap; gap: 14px 24px; border-top: 1px solid var(--border); margin-top: 22px; padding-top: 22px; }
.doc-example-link, .doc-file-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.doc-example-link { text-decoration: none; border-top: 1px solid var(--border); margin-top: 24px; }
.doc-example-link > span:nth-child(2), .doc-file-meta { flex: 1; min-width: 0; }
.doc-example-link strong, .doc-example-link small, .doc-file-meta strong, .doc-file-meta small { display: block; }
.doc-example-link small, .doc-file-meta small { color: var(--muted); margin-top: 3px; }
.doc-file-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px; background: var(--brand-green-soft); color: #087653; font-size: .76rem; font-weight: 800; }
.doc-file-row + .doc-file-row { border-top: 1px solid var(--border); }
.doc-file-meta strong { overflow-wrap: anywhere; }
.doc-hint { color: var(--muted); margin: 16px 0 0; }
.doc-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 8px 0 30px; }
.doc-actions .btn { border-radius: 11px; padding: 11px 22px; }
@media(max-width:575.98px){.doc-panel-head{flex-wrap:wrap}.doc-file-row{flex-wrap:wrap}.doc-days{display:grid;grid-template-columns:1fr 1fr}.doc-actions{flex-direction:column-reverse}.doc-actions .btn{width:100%}}

/* FicaEmDia 2026: shell inspirado em paineis administrativos contemporaneos. */
.app-rail {position:fixed;inset:0 auto 0 0;width:var(--rail-width);background:#11251f;display:flex;align-items:center;flex-direction:column;gap:13px;padding:17px 9px;z-index:1050}
.rail-logo,.rail-link {display:flex;align-items:center;justify-content:center;width:48px;height:48px;color:#b7d2c2;text-decoration:none;border-radius:12px;font-size:1.6rem}
.rail-logo {background:#16875b;margin-bottom:18px}
.rail-logo:hover,.rail-link:hover,.rail-link:focus-visible {background:#276447;color:white}
.rail-logo .brand-symbol {transform:scale(.85)}
.app-sidebar {left:var(--rail-width);width:var(--sidebar-width);background:#fff;color:#183629;border-right:1px solid var(--border);padding:24px 16px;overflow-y:auto;z-index:1030}
.app-sidebar .brand {color:#183629;padding:6px 12px 22px;font-size:1.3rem}
.sidebar-caption {color:#8aa196;font-size:.7rem;letter-spacing:.11em;font-weight:800;padding:22px 12px 8px}
.sidebar-link {color:#506a5c;padding:12px 14px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:10px}
.sidebar-link:hover,.sidebar-link.active {color:#087d4d;background:#e8f6ee}
.nav-pending-count {display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#fff0d4;color:#965a08;font-size:.76rem;font-weight:800}
.app-main {margin-left:calc(var(--rail-width) + var(--sidebar-width))}
.app-topbar {height:84px;padding:0 36px}
.app-content {padding:34px 38px 50px}
.summary-card,.content-card,.doc-panel {border-radius:16px;box-shadow:0 3px 10px rgba(22,58,39,.035)}
.summary-card {min-height:145px}
.page-heading h1 {font-size:1.9rem}
.topbar-title {color:#153d2d}
.topbar-user-button {border-radius:12px;padding:9px 14px}
.btn-primary,.task-action-primary {background:#16875b;border-color:#16875b}
.btn-primary:hover,.task-action-primary:hover {background:#0f6946;border-color:#0f6946}
.btn-outline-primary {color:#16875b;border-color:#16875b}
.btn-outline-primary:hover {background:#16875b;border-color:#16875b;color:#fff}
@media(max-width:991.98px){
 .app-rail {width:56px;padding:12px 4px}
 .rail-logo,.rail-link {width:44px;height:44px}
 .app-sidebar {left:56px;width:204px;padding:16px 9px}
 .app-main {margin-left:260px}
 .app-topbar {padding:0 18px}
 .app-content {padding:20px}
}
@media(max-width:767.98px){
 .app-rail {width:52px}
 .app-sidebar {left:52px;width:165px;padding:12px 6px}
 .app-sidebar .brand {font-size:.95rem;padding:8px}
 .sidebar-link {font-size:.8rem;padding:10px 7px}
 .sidebar-caption {font-size:.57rem;padding:14px 7px 5px}
 .app-main {margin-left:217px}
 .app-topbar {height:65px;padding:0 10px}
 .app-content {padding:14px 10px}
 .topbar-title {display:none}
 .page-heading {flex-wrap:wrap}
}

/* Cabeçalho: contexto da empresa e identificação do operador */
.topbar-company {display:flex;align-items:center;gap:12px;min-width:0;padding:10px 16px;border-radius:13px;background:#f1f5f3;max-width:min(450px,60vw)}
.topbar-company-icon {width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:#e1f2e8;color:#16875b;font-size:1.25rem;flex:none}
.topbar-company .topbar-subtitle {color:#254535;font-size:.93rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-company .topbar-tenant-select {color:#254535;font-weight:700;min-width:180px;max-width:330px}
.topbar-user-button {display:flex;align-items:center;flex-direction:row;gap:11px;text-align:left}
.topbar-avatar {display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:11px;background:#16875b;color:white;font-weight:800}
.topbar-user-details {display:flex;flex-direction:column;gap:3px;min-width:0}
.topbar-user-name {max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-chevron {color:#6b8275;font-size:1.3rem}
@media(max-width:767.98px) {
 .topbar-company {padding:7px;max-width:53vw;gap:6px}
 .topbar-company-icon {width:29px;height:29px}
 .topbar-company .topbar-subtitle {font-size:.73rem}
 .topbar-company .topbar-tenant-select {min-width:0;width:120px;font-size:.72rem}
 .topbar-user-button {padding:4px;gap:4px}
 .topbar-avatar {width:32px;height:32px}
 .topbar-user-details {display:none}
 .topbar-chevron {font-size:1rem}
}

/* Navegação contextual: cada botão da faixa escura controla seu submenu. */
.app-rail .rail-link {border:0;cursor:pointer;background:transparent;font-family:inherit}
.app-rail .rail-link:hover,.app-rail .rail-link:focus-visible,.app-rail .rail-link.active {background:#16875b;color:#fff;outline-offset:2px}
.sidebar-group[hidden] {display:none!important}
.sidebar-group {display:grid;gap:5px;align-content:start}
.sidebar-module-header {padding:7px 12px 15px;border-bottom:1px solid var(--border);margin-bottom:10px}
.sidebar-module-caption {display:block;color:#8aa196;font-size:.7rem;letter-spacing:.11em;font-weight:800;margin-bottom:5px}
.sidebar-module-header strong {font-size:1.25rem;color:#173e2d}

/* Pendências visíveis na barra principal, independentemente do módulo aberto. */
.app-rail .rail-link-documents {position:relative;overflow:visible}
.rail-pending-count {position:absolute;top:-5px;right:-7px;min-width:21px;height:21px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eaa335;color:#18251c;border:2px solid #11251f;font-size:.64rem;font-weight:800;line-height:1;box-sizing:content-box;pointer-events:none;white-space:nowrap}
.app-rail .rail-link-documents.active .rail-pending-count {border-color:#16875b}

/* Identidade visual aprovada: rail com icone + legenda e indicadores legiveis */
:root {--rail-width:104px}
.app-rail {width:var(--rail-width);background:#fff;border-right:1px solid var(--border);gap:8px;padding:14px 7px;box-shadow:3px 0 14px rgba(15,43,38,.04);overflow-y:auto}
.app-rail .rail-logo {width:74px;height:74px;flex:0 0 74px;background:#f4faf8;border-radius:16px;margin-bottom:12px;padding:7px}
.app-rail .rail-logo img {width:100%;height:100%;object-fit:contain}
.app-rail .rail-logo:hover {background:#e5f5ed}
.app-rail .rail-link {position:relative;flex:0 0 auto;width:88px;height:75px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:12px;background:transparent;color:#34435e;text-align:center;padding:8px 3px;line-height:1.2;font-size:inherit;white-space:normal}
.app-rail .rail-link:hover,.app-rail .rail-link:focus-visible,.app-rail .rail-link.active {background:#e4f5ec;color:#0d7951}
.rail-glyph {font-size:1.75rem;line-height:1;display:block;min-height:30px}
.rail-label {font-size:.67rem;line-height:1.2;letter-spacing:-.012em;font-weight:700;display:block;max-width:100%;overflow-wrap:anywhere}
.app-rail .rail-link-documents .rail-pending-count {top:3px;right:5px;border-color:#fff}
.app-sidebar {left:var(--rail-width)}
.app-main {margin-left:calc(var(--rail-width) + var(--sidebar-width))}
.brand-header-link {display:flex;align-items:center;flex:none;text-decoration:none;border-right:1px solid #dfe9e3;padding-right:14px}
.brand-header-image {display:block;width:172px;max-height:49px;object-fit:contain}
.topbar-company {max-width:min(710px,74vw);background:transparent;padding:8px 10px}
.topbar-company-icon {display:none}
.summary-card {min-height:160px;padding:23px 25px;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:18px;overflow:hidden}
.summary-card .summary-label {display:block!important;position:static!important;max-width:100%;line-height:1.35;font-size:1rem;font-weight:650;overflow-wrap:normal}
.summary-card .summary-value,.summary-card strong.summary-value {display:block!important;position:static!important;margin:0!important;font-size:2.6rem;line-height:1.05;font-variant-numeric:tabular-nums}
.summary-card:not(.summary-card-danger):not(.summary-card-warning) strong.summary-value {color:#0e6749}
@media (max-width:991.98px) {
 :root {--rail-width:84px}
 .app-rail {width:var(--rail-width);padding:10px 4px}
 .app-rail .rail-link {width:76px;height:72px}
 .app-rail .rail-logo {width:62px;height:62px;flex-basis:62px}
 .rail-label {font-size:.61rem}
 .app-sidebar {left:var(--rail-width);width:204px}
 .app-main {margin-left:calc(var(--rail-width) + 204px)}
 .brand-header-image {width:138px}
}
@media (max-width:767.98px) {
 :root {--rail-width:76px}
 .app-rail {width:var(--rail-width)}
 .app-rail .rail-link {width:68px;height:69px;padding:6px 2px}
 .rail-glyph {font-size:1.45rem;min-height:25px}
 .rail-label {font-size:.57rem}
 .app-sidebar {left:var(--rail-width);width:165px}
 .app-main {margin-left:calc(var(--rail-width) + 165px)}
 .brand-header-image {width:88px}
 .brand-header-link {padding-right:5px}
 .topbar-company {max-width:70vw}
 .summary-card {padding:17px;min-height:136px}
 .summary-card .summary-value {font-size:2.1rem}
}
@media (max-width:480px) {.rail-label {font-size:.53rem}.brand-header-image {width:72px}}
.login-brand-logo {width:100%;height:72px;max-width:300px;object-fit:contain;object-position:left center}
