body.modelos-tecnicos {
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.028) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f8fafc 0%, #f4f6f8 52%, #ffffff 100%);
  background-size: 72px 72px, auto;
  color: #1f2937;
  font-family: "Mulish", "Segoe UI", Arial, sans-serif;
}

.modelos-shell {
  max-width: 1100px;
}

.modelos-shell.calc-shell {
  max-width: none;
}

body.modelos-hub {
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.028) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f8fafc 0%, #f4f6f8 52%, #ffffff 100%);
  background-size: 72px 72px, auto;
  font-family: "Mulish", "Segoe UI", Arial, sans-serif;
}

.modelos-hub .modelos-shell {
  max-width: 1280px;
}

.modelos-hub-hero,
.modelos-hub .calc-hero {
  margin-bottom: 24px;
}

.modelos-hub-hero p,
.modelos-hub .calc-hero p {
  margin: 0.6rem 0 0;
  color: var(--hub-muted);
  max-width: 720px;
}

.modelos-brand,
.modelos-hub .calc-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modelos-brand img,
.modelos-hub .calc-hero-brand img {
  display: block;
  height: 38px;
  width: auto;
}

.modelos-brand .brand-wordmark,
.modelos-hub .calc-hero-brand .brand-wordmark,
.modelos-tecnicos .calc-hero-brand .brand-wordmark {
  display: none;
  align-items: baseline;
  gap: 0.35rem;
  color: #1f2933;
  font-weight: 900;
  line-height: 1;
}

.modelos-brand .brand-wordmark span,
.modelos-hub .calc-hero-brand .brand-wordmark span,
.modelos-tecnicos .calc-hero-brand .brand-wordmark span {
  display: inline-block;
  color: #d89a00;
}

.modelos-brand .brand-wordmark strong,
.modelos-hub .calc-hero-brand .brand-wordmark strong,
.modelos-tecnicos .calc-hero-brand .brand-wordmark strong {
  color: #1f2933;
}

.modelos-actions,
.modelos-hub .calc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
}

.modelos-hub .calc-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hub-primary-dark);
}

.modelos-hub .calc-hero {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.modelos-hub .calc-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.04;
  font-weight: 900;
  color: var(--hub-ink);
}

.modelos-hub .calc-btn {
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 800;
}

.modelos-hub .calc-btn-primary {
  background: linear-gradient(180deg, #2a425d 0%, #1b2d42 100%);
  border-color: rgba(27, 45, 66, 0.84);
  color: #fff;
}

.modelos-hub .calc-btn-outline {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,248,251,0.98) 100%);
  border-color: rgba(142, 160, 182, 0.34);
  color: #294056;
}

.modelos-tecnicos .card {
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.06);
}

.modelos-hub .card,
.modelos-hub .hub-data-card {
  border-radius: 8px;
}

.modelos-hub .hub-data-card .card-body {
  padding: 0;
}

.modelos-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.modelos-tool-card {
  border: 1px solid var(--hub-border);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 47, 72, 0.07);
}

.modelos-tool-card .card-body,
.modelos-tecnicos .calc-tool-item .card-body {
  padding: 16px;
}

.modelos-tool-grid .calc-tool-item h3 {
  margin: 8px 0 6px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.modelos-tool-grid .calc-tool-item p {
  min-height: 0;
}

.modelos-tool-grid .calc-tool-meta {
  margin: 0 0 10px;
}

.modelos-tecnicos .table-field table th {
  background: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.modelos-tecnicos .table-field table td {
  vertical-align: middle;
}

.modelos-tecnicos .alert {
  border-radius: 10px;
}

.modelos-form-card .card-body {
  padding: 22px;
}

.modelos-form-card .ms-auto {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.modelos-form-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modelos-form-head h2 {
  margin: 0;
  color: #122033;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0;
}

.modelos-info-alert {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  color: #1f2933;
  background: #f1f5f9;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.04);
}

.modelos-tecnicos .form-label {
  color: #111827;
  font-weight: 850;
}

.modelos-tecnicos .form-control,
.modelos-tecnicos .form-select {
  border-color: #cfd8e3;
  border-radius: 8px;
}

.modelos-tecnicos .form-control:focus,
.modelos-tecnicos .form-select:focus {
  border-color: #d89a00;
  box-shadow: 0 0 0 0.2rem rgba(244, 176, 0, 0.18);
}

.modelos-upload-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #5c6b7f;
  font-size: 0.86rem;
  font-weight: 700;
}

.modelos-upload-preview img {
  max-width: 92px;
  max-height: 44px;
  object-fit: contain;
}

.modelos-preview-card {
  margin-bottom: 32px;
}

.modelos-preview-frame {
  padding: 24px;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  background: #f8fafc;
  overflow-x: auto;
}

.modelos-preview-document {
  max-width: 820px;
  min-height: 540px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid #d9dee5;
  background: #fff;
  box-shadow: 0 16px 34px rgba(18, 32, 51, 0.08);
}

.modelos-preview-document header {
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 3px solid #f4b000;
}

.modelos-preview-document h2 {
  margin: 0;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 900;
}

.modelos-preview-document footer {
  padding-top: 10px;
  margin-top: 24px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.78rem;
  text-align: center;
}

.modelos-preview-document .document-logo {
  max-width: 150px;
  max-height: 78px;
  margin-bottom: 12px;
}

.modelos-preview-document .document-header-logo {
  margin-bottom: 10px;
}

.modelos-preview-document .document-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.modelos-preview-document .document-image-grid figure {
  margin: 0;
}

.modelos-preview-document .document-image-grid img {
  max-width: 100%;
  border: 1px solid #d9dee5;
  border-radius: 6px;
}

.modelos-preview-document .document-image-grid figcaption {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.78rem;
}

.modelos-tecnicos .calc-hero {
  border-color: #e1e5ea;
  background: #ffffff;
}

.modelos-tecnicos .calc-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
}

@media (max-width: 767.98px) {
  .modelos-shell {
    max-width: none;
  }

  .modelos-hub-hero,
  .modelos-hub .calc-hero {
    display: grid;
    gap: 16px;
  }

  .modelos-actions,
  .modelos-hub .calc-hero-actions {
    justify-content: flex-start;
  }

  .modelos-tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
