:root {
  --naqua-modelos-sticky-top: 122px;
  --naqua-modelos-grid-stack: 248px;
  --naqua-modelos-panel-title-stack: 56px;
}

.admin-bar {
  --naqua-modelos-sticky-top: 154px;
}

.naqua-modelos-equipamento {
  background: #f3f6f9;
  border: 1px solid #e2e8ef;
  border-radius: 16px;
  padding: 24px;
  margin: 36px 0;
  overflow: visible;
}

.naqua-modelos-header { margin-bottom: 24px; }

.naqua-modelos-header span {
  display: none !important;
}

.naqua-modelos-header h2 {
  font-family: Manrope, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  color: #344C7C;
  margin: 0 0 8px;
}

.naqua-modelos-header p {
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #5f6b7a;
  max-width: none;
  margin: 0;
}

@media (min-width: 1025px) {
  .naqua-modelos-header p {
    white-space: nowrap;
  }
}

.naqua-modelos-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  grid-auto-rows: 214px;
  margin: 24px 0 0;
  padding-bottom: 0;
  border-bottom: 0 !important;
  overflow: visible;
}

.naqua-modelos-equipamento.has-open-panel .naqua-modelos-grid {
  position: sticky;
  top: var(--naqua-modelos-sticky-top);
  z-index: 42;
  background: #f3f6f9;
  border-radius: 12px;
  padding-top: 0;
}

.naqua-modelos-equipamento.has-open-panel .naqua-modelos-grid {
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.naqua-model-card,
button.naqua-model-card {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
  height: 214px;
  min-height: 214px;
  overflow: visible;
  background: #ffffff !important;
  border: 1px solid rgba(210, 219, 228, .95) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 10px rgba(18, 38, 58, .028) !important;
  padding: 6px 6px 9px !important;
  margin: 0 !important;
  cursor: pointer;
  text-align: left;
  font-family: Inter, sans-serif;
  color: inherit;
  transform: none !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.naqua-model-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 102px;
  background: #fff;
  border: 1px solid #e1e7ed;
  border-radius: 6px;
  padding: 2px;
  margin: 0 0 10px;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color .18s ease;
}

.naqua-model-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.naqua-model-card-title {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  line-height: 1.13;
  font-weight: 800;
  color: #303843 !important;
  text-transform: uppercase;
  letter-spacing: .01em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.naqua-model-card-title em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0;
  color: #344C7C !important;
}

.naqua-model-card-subtitle,
.naqua-model-card .model-status,
.naqua-model-selected-badge,
.modelo-selected-badge,
.selected-badge {
  display: none !important;
}

.naqua-model-card:hover,
button.naqua-model-card:hover,
.naqua-model-card.is-active:hover,
button.naqua-model-card.is-active:hover {
  background: #F4FAFE !important;
  border-color: rgba(14, 130, 188, .62) !important;
  box-shadow: 0 6px 14px rgba(14, 130, 188, .045) !important;
  transform: translateY(-1px) !important;
}

.naqua-model-card:hover .naqua-model-card-image {
  border-color: rgba(14, 130, 188, .45);
}

.naqua-model-card.is-active,
button.naqua-model-card.is-active {
  background: #ffffff !important;
  border: 1.5px solid #0E82BC !important;
  box-shadow: 0 5px 12px rgba(15, 35, 55, .032) !important;
  z-index: 3;
}

.naqua-model-card.is-active .naqua-model-card-image {
  border: 1px solid #e1e7ed;
  padding: 2px;
  box-shadow: none !important;
}

.naqua-model-card.is-active::after {
  content: "" !important;
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #0E82BC;
  display: block !important;
}

.naqua-model-panel {
  display: none;
  background: #ffffff;
  border: 1px solid #dce5ec;
  border-top: 4px solid #0E82BC;
  border-radius: 14px;
  padding: 30px 28px 34px;
  box-shadow: 0 10px 22px rgba(15, 35, 55, .045);
  overflow: visible;
}

.naqua-model-panel.is-open {
  display: block;
  animation: naquaFadeUp .25s ease both;
}

@keyframes naquaFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.naqua-model-panel-header {
  position: sticky;
  top: calc(var(--naqua-modelos-sticky-top) + var(--naqua-modelos-grid-stack));
  z-index: 33;
  background: transparent;
  margin: 0;
  padding: 0 0 14px;
}

/* Camada sólida superior da cortina: cobre a área do fio azul até abaixo das abas,
   sem alterar a geometria do painel, espaçamentos, bordas ou altura da cortina. */
.naqua-model-panel-header::before {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  top: -30px;
  bottom: -82px;
  z-index: -1;
  display: block;
  background: #ffffff;
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

.admin-bar .naqua-model-panel-header {
  top: calc(var(--naqua-modelos-sticky-top) + var(--naqua-modelos-grid-stack));
}

.naqua-model-panel-header span {
  display: none !important;
}

.naqua-model-panel-header h3 {
  font-family: Manrope, sans-serif;
  color: #344C7C;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
}

.naqua-model-panel-header h3 strong {
  font-weight: 700;
}

.naqua-model-tabs {
  position: sticky;
  top: calc(var(--naqua-modelos-sticky-top) + var(--naqua-modelos-grid-stack) + var(--naqua-modelos-panel-title-stack));
  z-index: 34;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #f3f6f9;
  border-radius: 12px;
  margin: 0 0 34px;
  box-shadow: 0 8px 18px rgba(15, 35, 55, .035);
}

.admin-bar .naqua-model-tabs {
  top: calc(var(--naqua-modelos-sticky-top) + var(--naqua-modelos-grid-stack) + var(--naqua-modelos-panel-title-stack));
}

.naqua-model-tabs a {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #526171;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dde6ee;
  border-radius: 999px;
  padding: 9px 14px;
  transition: all .2s ease;
}

.naqua-model-tabs a:hover,
.naqua-model-tabs a.is-active {
  color: #0E82BC;
  border-color: #0E82BC;
  background: #F4FAFE;
}

.naqua-model-section {
  scroll-margin-top: 190px;
  margin: 0;
}

.naqua-model-section-download {
  scroll-margin-top: 235px;
}

.naqua-model-section + .naqua-model-section {
  margin-top: 54px;
}

.naqua-model-section:last-child { margin-bottom: 0; }

.naqua-model-section h4 {
  font-family: Manrope, sans-serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: #344C7C;
  margin: 0 0 22px;
}

.naqua-model-section#detalhes h4,
.naqua-model-section[id$="-detalhes"] h4 {
  margin-bottom: 28px;
}

.naqua-model-text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #344052;
}

.naqua-model-text p { margin: 0 0 18px; }
.naqua-model-text p:last-child { margin-bottom: 0; }

.naqua-tech-content {
  font-family: Inter, sans-serif;
  color: #344052;
}

.naqua-tech-content table,
.naqua-model-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, sans-serif;
  font-size: 14px;
  overflow: hidden;
  border-radius: 10px;
}

.naqua-tech-content th,
.naqua-tech-content td,
.naqua-model-table-wrap th,
.naqua-model-table-wrap td {
  border: 1px solid #e2e8ef;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.naqua-tech-content th,
.naqua-model-table-wrap th {
  background: #f3f6f9;
  color: #344C7C;
  font-weight: 800;
}

.naqua-tech-content tr:nth-child(even) td {
  background: #fafbfd;
}

.naqua-model-detail-gallery {
  display: block;
}

.naqua-model-detail-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #e2e8ef;
  border-radius: 12px;
  background: #fff;
}

.naqua-model-section-download {
  margin-top: 36px !important;
}

.naqua-download-btn,
.naqua-model-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0E82BC;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  padding: 13px 19px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: all .2s ease;
}

.naqua-download-btn:hover,
.naqua-model-download-btn:hover {
  background: #096b9c;
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .naqua-modelos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .naqua-modelos-header p { white-space: normal; }
}

@media (max-width: 767px) {
  :root { --naqua-modelos-sticky-top: 82px; --naqua-modelos-grid-stack: 0px; --naqua-modelos-panel-title-stack: 0px; }
  .naqua-modelos-equipamento.has-open-panel .naqua-modelos-grid { position: static; }
  .naqua-modelos-equipamento { padding: 20px; }
  .naqua-modelos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .naqua-model-card,
  button.naqua-model-card { min-height: 206px; }
  .naqua-model-panel { padding: 24px 20px 28px; }
  .naqua-model-panel-header {
    top: 82px;
  }
  .admin-bar .naqua-model-panel-header { top: 128px; }
  .naqua-model-panel-header h3 { font-size: 21px; }
  .naqua-model-panel-header::before { left: -20px; right: -20px; top: -24px; bottom: -80px; }
  .naqua-model-tabs {
    top: 134px;
    margin-bottom: 28px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .admin-bar .naqua-model-tabs { top: 180px; }
  .naqua-model-section { scroll-margin-top: 170px; }
}

.naqua-model-panel[hidden] { display: none !important; }
.naqua-model-panel.is-open { display: block !important; }
/* Detalhes: galeria vertical com respiro e fio divisor entre desenhos */
.naqua-model-detail-gallery .naqua-detalhes-item {
  display: block;
  padding-bottom: 50px;
  margin-bottom: 50px;
  border-bottom: 1px solid #e8eef3;
}

.naqua-model-detail-gallery .naqua-detalhes-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.naqua-model-detail-gallery .naqua-detalhes-imagem,
.naqua-model-detail-gallery .naqua-model-detail-img {
  display: block;
  width: 100%;
  height: auto;
}
