/* =============================================
   E-TRANSPARÊNCIA — Estilos do layout público
   ============================================= */

/* ---- Barra superior de identificação ---- */
.etransp-bar {
  background: #0d1b5e;
  color: #c5cae9;
  font-size: .82rem;
  padding: 7px 0;
  border-bottom: 3px solid var(--base-color);
}
.etransp-bar a { color: #90caf9; text-decoration: none; }
.etransp-bar a:hover { color: #fff; }
.etransp-bar .etransp-lei { opacity: .75; font-size: .78rem; }
.etransp-bar .etransp-back {
  background: rgba(255,255,255,.1);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: .8rem;
  transition: background .2s;
}
.etransp-bar .etransp-back:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---- Navegação interna (abas) ---- */
.etransp-nav {
  background: #fff;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.etransp-nav-inner {
  display: flex;
  align-items: stretch;
}
.etransp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  color: #555;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.etransp-tab i { font-size: .82rem; opacity: .65; }
.etransp-tab:hover { color: var(--base-color); background: #f5f8ff; text-decoration: none; }
.etransp-tab.active {
  color: var(--base-color);
  border-bottom-color: var(--base-color);
  background: #f0f4ff;
}

/* ---- Breadcrumb ---- */
.etransp-breadcrumb {
  background: #f7f9fc;
  border-bottom: 1px solid #e8ecf0;
  padding: 8px 0;
  font-size: .82rem;
}
.etransp-breadcrumb .breadcrumb-item a { color: var(--base-color); }
.etransp-breadcrumb .breadcrumb { flex-wrap: nowrap; }

/* ---- Área de conteúdo ---- */
.etransp-main {
  min-height: 55vh;
  background: #f4f6fa;
  padding-bottom: 48px;
}

/* ---- Hero da home ---- */
.etransp-hero {
  background: linear-gradient(120deg, #0a1540 0%, #0d1b5e 45%, #1a3a7a 100%);
  color: #fff;
  padding: 52px 0 56px;
  position: relative;
  overflow: hidden;
}
.etransp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.etransp-hero::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,148,31,.22) 0%, rgba(184,148,31,0) 70%);
  pointer-events: none;
}
.etransp-hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.55), 0 1px 6px rgba(0,0,0,.35);
}
.etransp-hero h1 i { opacity: .75; }
.etransp-hero .lead {
  opacity: .92;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  color: rgba(255,255,255,.95);
}
.etransp-hero-icon { font-size: 6rem; opacity: .18; position: relative; color: #b8941f; }
.etransp-hero .et-lei-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: .78rem;
  margin-top: 18px;
  backdrop-filter: blur(4px);
}

/* ---- Caixas de estatísticas ---- */
.et-stat-row { margin-top: -32px; margin-bottom: 36px; position: relative; z-index: 2; }
.et-stat {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,.09), 0 1px 6px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  border: 1px solid rgba(0,0,0,.05);
}
.et-stat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2a5494 0%, #1a3a7a 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,58,122,.3);
}
.et-stat-num { font-size: 2rem; font-weight: 900; color: #0d1b5e; line-height: 1; }
.et-stat-label { font-size: .78rem; color: #555; margin-top: 5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }

/* ---- Cards de módulo ---- */
.et-module-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  padding: 30px 22px 24px;
  text-align: center;
  text-decoration: none;
  color: #333;
  display: block;
  transition: transform .22s, box-shadow .22s;
  height: 100%;
  border: 2px solid transparent;
}
.et-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
  text-decoration: none;
  color: #333;
  border-color: var(--base-color);
}
.et-module-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a5494 0%, #0d1b5e 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 6px 18px rgba(13,27,94,.22);
  transition: transform .22s, box-shadow .22s;
}
.et-module-card:hover .et-module-icon {
  transform: scale(1.07);
  box-shadow: 0 10px 24px rgba(13,27,94,.3);
}
.et-module-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: #0d1b5e; letter-spacing: -.01em; }
.et-module-desc { font-size: .84rem; color: #6b7280; line-height: 1.6; font-weight: 500; }

/* ---- Seção de heading (páginas internas) ---- */
.et-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.et-section-heading h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0d1b5e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.et-section-heading h1 i { color: var(--base-color); }
.et-section-heading-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---- Pills de ano ---- */
.year-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.year-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #d0d7e2;
  color: #666;
  transition: all .2s;
  white-space: nowrap;
}
.year-pill:hover { border-color: var(--base-color); color: var(--base-color); text-decoration: none; }
.year-pill.active { background: var(--base-color); color: #fff; border-color: var(--base-color); }

/* ---- Filtros de situação ---- */
.et-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.et-filters-label { font-size: .8rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.et-filter-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #d0d7e2;
  color: #666;
  background: #f5f7fa;
  transition: all .2s;
  white-space: nowrap;
}
.et-filter-pill:hover { border-color: var(--base-color); color: var(--base-color); text-decoration: none; background: #fff; }
.et-filter-pill.active { background: var(--base-color); color: #fff; border-color: var(--base-color); }

/* ---- Cards de conteúdo ---- */
.et-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  overflow: hidden;
  border: none;
}
.et-card-header {
  background: var(--base-color);
  color: #fff;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.et-card-header-light {
  background: #f0f4ff;
  color: #0d1b5e;
  padding: 12px 22px;
  font-size: .95rem;
  font-weight: 700;
  border-bottom: 2px solid var(--base-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.et-card-body { padding: 22px; }
.et-card-footer {
  background: #f7f9fc;
  border-top: 1px solid #edf0f5;
  padding: 12px 22px;
}

/* ---- Tabelas ---- */
.et-table-wrap { overflow-x: auto; }
.et-table { width: 100%; border-collapse: collapse; }
.et-table thead tr {
  background: #f0f4ff;
  border-bottom: 2px solid var(--base-color);
}
.et-table thead th {
  padding: 11px 16px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #555;
  white-space: nowrap;
}
.et-table tbody tr { border-bottom: 1px solid #edf0f5; transition: background .15s; }
.et-table tbody tr:last-child { border-bottom: none; }
.et-table tbody tr:hover { background: #f8faff; }
.et-table tbody td { padding: 12px 16px; font-size: .9rem; vertical-align: middle; }
.et-table .td-num { font-weight: 700; white-space: nowrap; }
.et-table .td-obj { max-width: 320px; }
.et-table .td-date { white-space: nowrap; }

/* ---- Badges de status ---- */
.et-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}
.et-badge-success { background: #e8f5e9; color: #2e7d32; }
.et-badge-warning { background: #fff8e1; color: #e65100; }
.et-badge-danger  { background: #fce4ec; color: #c62828; }
.et-badge-muted   { background: #f5f5f5; color: #777; }

/* ---- Botões de ação ---- */
.et-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--base-color);
  color: var(--base-color);
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
}
.et-btn:hover, .et-btn:focus { background: var(--base-color); color: #fff; text-decoration: none; }
.et-btn-solid { background: var(--base-color); color: #fff; }
.et-btn-solid:hover { opacity: .9; color: #fff; }
.et-btn-ghost { border-color: #c8cdd5; color: #666; }
.et-btn-ghost:hover { background: #f5f5f5; color: #333; border-color: #aaa; }
.et-btn-danger { border-color: #e53935; color: #e53935; }
.et-btn-danger:hover { background: #e53935; color: #fff; }
.et-btn-sm { padding: 4px 10px; font-size: .78rem; }
.et-btn-back { border-color: #c8cdd5; color: #555; margin-bottom: 8px; }
.et-btn-back:hover { background: #f0f0f0; color: #333; border-color: #aaa; }

/* ---- Grid de informações (detalhe) ---- */
.et-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.et-info-item {
  padding: 12px 22px;
  border-bottom: 1px solid #edf0f5;
}
.et-info-item:nth-last-child(-n+2) { border-bottom: none; }
.et-info-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #aaa;
  margin-bottom: 3px;
}
.et-info-value { font-size: .95rem; color: #222; font-weight: 500; }
.et-info-value.highlight { color: var(--base-color); font-weight: 700; }
@media (max-width: 576px) {
  .et-info-grid { grid-template-columns: 1fr; }
  .et-info-item:last-child { border-bottom: none; }
}

/* ---- Objeto / descrição longa ---- */
.et-description-block {
  background: #f7f9fc;
  border-left: 4px solid var(--base-color);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: .95rem;
  color: #444;
  margin-bottom: 0;
}

/* ---- Lista de documentos ---- */
.et-doc-list { list-style: none; padding: 0; margin: 0; }
.et-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px;
  border-bottom: 1px solid #edf0f5;
  gap: 12px;
}
.et-doc-item:last-child { border-bottom: none; }
.et-doc-info { flex: 1; min-width: 0; }
.et-doc-name { font-weight: 700; font-size: .9rem; color: #222; }
.et-doc-desc { font-size: .8rem; color: #888; margin-top: 2px; }

/* ---- Estado vazio ---- */
.et-empty {
  text-align: center;
  padding: 56px 20px;
  color: #bbb;
}
.et-empty i { font-size: 3.2rem; margin-bottom: 16px; display: block; opacity: .5; }
.et-empty p { font-size: .95rem; color: #999; }

/* ---- Seções da home (recentes) ---- */
.et-recent-section { margin-top: 40px; }
.et-recent-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0d1b5e;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.et-recent-heading i { color: var(--base-color); margin-right: 6px; }

/* ---- Paginação ---- */
.pagination .page-link { color: var(--base-color); border-radius: 6px !important; margin: 0 2px; }
.pagination .page-item.active .page-link {
  background-color: var(--base-color);
  border-color: var(--base-color);
}
.pagination .page-link:focus { box-shadow: 0 0 0 3px rgba(21,101,192,.2); }

/* ---- Responsivo ---- */
@media (max-width: 767px) {
  .etransp-hero h1 { font-size: 1.5rem; }
  .et-section-heading { padding: 20px 0 14px; }
  .et-section-heading h1 { font-size: 1.2rem; }
  .et-stat { padding: 14px 16px; gap: 12px; }
  .et-stat-num { font-size: 1.4rem; }
}
