/* =============================================
   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-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.etransp-open-data-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  padding: 2px;
  overflow: hidden;
  background: #fff;
  border-radius: 50%;
}
.etransp-open-data-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.etransp-open-data-divider {
  width: 1px;
  height: 16px;
  background: rgba(13,27,94,.25);
  flex: 0 0 1px;
}
.etransp-open-data-arrow {
  font-size: .7rem;
  opacity: .8;
  transition: transform .2s;
}
.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 ---- */
.et-hero {
  background: linear-gradient(115deg, #143250 0%, #1f3f70 52%, #2a5494 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.et-hero-grid {
  position: relative;
  padding: 44px 0 48px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.et-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,170,48,.16);
  border: 1px solid rgba(212,170,48,.45);
  color: #f0cd6b;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 5px;
}
.et-hero h1 {
  margin: 18px 0 0;
  font-size: 2.3rem;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.et-hero-main > p {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 56ch;
}
.et-hero-search {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
}
.et-hero-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  height: 50px;
  background: #fff;
  border-radius: 10px;
  padding: 0 16px;
  box-shadow: 0 6px 20px rgba(10,25,50,.22);
}
.et-hero-search-field i { color: #8a94a6; font-size: .9rem; margin-right: 10px; }
.et-hero-search-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: .9rem;
  color: #1f2937;
  height: 100%;
}
.et-hero-search button {
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #d4aa30;
  color: #143250;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s;
}
.et-hero-search button:hover { background: #f0c650; }
.et-hero-open-data-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.et-hero-open-data {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  padding: 13px 18px 13px 10px;
  color: #0d1b5e;
  background: linear-gradient(135deg, #f0c650, #d4aa30);
  border: 1px solid #f4d477;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(5,15,45,.3);
  font-size: 1rem;
  font-weight: 800;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.et-hero-open-data .etransp-open-data-logo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  padding: 3px;
}
.et-hero-open-data .etransp-open-data-divider { height: 26px; }
.et-hero-open-data .etransp-open-data-arrow { margin-left: auto; }
.et-hero-open-data:hover {
  color: #07103a;
  background: linear-gradient(135deg, #f7d571, #e2b83a);
  box-shadow: 0 10px 30px rgba(5,15,45,.4);
  text-decoration: none;
  transform: translateY(-2px);
}
.et-hero-open-data:hover .etransp-open-data-arrow { transform: translateX(3px); }
.et-hero-open-data:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---- Faixa de indicadores ---- */
.et-stats-strip { background: #fff; border-bottom: 1px solid #e6eaf2; }
.et-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.et-stats-col { padding: 22px 20px; border-right: 1px solid #e6eaf2; }
.et-stats-col:last-child { border-right: 0; }
.et-stats-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #1f3f70;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.et-stats-label { margin-top: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7688; }
.et-stats-sub { margin-top: 3px; font-size: .74rem; color: #98a2b3; }
.et-stats-sub-ok { color: #1a8a52; font-weight: 600; }

/* ---- Página inicial: cabeçalhos de seção ---- */
.et-home-main { padding: 40px 0 56px; }
.et-section-heading-v2 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #1f3f70;
  margin-bottom: 22px;
}
.et-section-heading-v2 h2 { margin: 0; font-size: 1.3rem; font-weight: 800; color: #1f3f70; letter-spacing: -.01em; }
.et-section-heading-v2 p { margin: 6px 0 0; font-size: .85rem; color: #6b7688; }
.et-section-heading-v2-sm { margin-bottom: 16px; padding-bottom: 12px; }
.et-section-heading-v2-sm h2 { font-size: 1.1rem; }

/* ---- Catálogo por assunto ---- */
.et-subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.et-subject-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  background: #fff;
  border: 1px solid #e6eaf2;
  border-top: 3px solid #1f3f70;
  border-radius: 10px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s;
}
.et-subject-card:hover { box-shadow: 0 10px 26px rgba(20,50,80,.12); transform: translateY(-2px); text-decoration: none; color: inherit; }
.et-subject-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b8941f; }
.et-subject-title { margin: 10px 0 0; font-size: 1.05rem; font-weight: 700; color: #1f3f70; line-height: 1.3; }
.et-subject-desc {
  margin: 8px 0 0;
  font-size: .82rem;
  line-height: 1.55;
  color: #5b6676;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.et-subject-meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: #8a94a6;
}
.et-subject-meta strong { color: #1f3f70; font-weight: 700; }

/* ---- Publicado recentemente + coluna lateral ---- */
.et-home-columns { margin-top: 44px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.et-feed-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e6eaf2; border-radius: 10px; }
.et-feed-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f7;
}
.et-feed-item:last-child { border-bottom: 0; }
.et-feed-badge {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 5px 8px;
  text-align: center;
}
.et-feed-badge-navy { color: #1f3f70; background: #eef2f9; }
.et-feed-badge-gold { color: #b8941f; background: #fdf6e3; }
.et-feed-badge-teal { color: #1a6b8a; background: #e8f4f9; }
.et-feed-badge-green { color: #1a8a52; background: #e9f6ef; }
.et-feed-title { font-size: .88rem; font-weight: 600; color: #1f2937; line-height: 1.45; }
.et-feed-title:hover { color: #1f3f70; text-decoration: none; }
.et-feed-date { font-size: .74rem; color: #8a94a6; white-space: nowrap; font-variant-numeric: tabular-nums; }

.et-home-side { display: flex; flex-direction: column; gap: 18px; }
.et-side-card { background: #fff; border: 1px solid #e6eaf2; border-radius: 10px; padding: 20px; }
.et-side-card h3 { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7688; }
.et-side-card p { margin: 9px 0 0; font-size: .82rem; line-height: 1.6; color: #5b6676; }
.et-side-card-dark { background: #143250; border-color: #143250; }
.et-side-card-dark h3 { color: #f0cd6b; }
.et-side-card-dark p { color: rgba(255,255,255,.8); }
.et-side-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: #d4aa30;
  color: #143250;
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 7px;
}
.et-side-card-cta:hover { background: #f0c650; color: #143250; text-decoration: none; }
.et-side-help { border: 1px dashed #c9d2e2; border-radius: 10px; padding: 18px 20px; background: #fafbfd; }
.et-side-help h3 { margin: 0; font-size: .84rem; font-weight: 700; color: #1f3f70; }
.et-side-help p { margin: 8px 0 0; font-size: .8rem; line-height: 1.6; color: #6b7688; }
.et-side-help a { color: #1f3f70; font-weight: 700; }

/* ---- 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) {
  .etransp-actions { width: 100%; margin-top: 4px; }
  .etransp-bar .etransp-back { flex: 1; justify-content: center; white-space: nowrap; }
  .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; }

/* ---- 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) {
  .et-hero h1 { font-size: 1.5rem; }
  .et-section-heading { padding: 20px 0 14px; }
  .et-section-heading h1 { font-size: 1.2rem; }
  .et-stats-col { padding: 14px 16px; }
  .et-stats-num { font-size: 1.3rem; }
}

@media (max-width: 991px) {
  .et-hero-grid { grid-template-columns: 1fr; }
  .et-hero-open-data-wrap { min-height: auto; justify-content: flex-start; }
  .et-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .et-stats-col:nth-child(2) { border-right: 0; }
  .et-stats-col:nth-child(3), .et-stats-col:nth-child(4) { border-top: 1px solid #e6eaf2; }
  .et-subject-grid { grid-template-columns: repeat(2, 1fr); }
  .et-home-columns { grid-template-columns: 1fr; }
  .et-feed-item { grid-template-columns: 84px 1fr auto; gap: 12px; }
}

@media (max-width: 575px) {
  .et-hero-open-data { width: 100%; min-width: 0; }
  .et-subject-grid { grid-template-columns: 1fr; }
  .et-feed-item { grid-template-columns: 1fr; text-align: left; }
  .et-feed-date { justify-self: start; }
}
