/* style.css */
html,
body,
#root {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--ds-page);
}
.file-nav {
  display: flex;
  gap: 8px;
  overflow: auto;
  white-space: nowrap;
  padding: 12px 0 20px;
  border-bottom: 1px solid #e7e5e4;
  margin: 6px 0 22px;
}
.file-nav a {
  padding: 10px 13px;
  color: #464044;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.file-nav a[aria-current=page] {
  background: #e0eee8;
  color: #17614e;
}
.banner {
  padding: 12px 15px;
  background: #f5f1e8;
  border-left: 4px solid #a88648;
  color: #564c3c;
  font-size: 13px;
  margin-bottom: 25px;
}
.lede {
  font-size: 17px;
  line-height: 1.55;
  max-width: 760px;
}
.muted,
.field small {
  color: #666265;
  font-size: 13px;
  line-height: 1.5;
}
.wide {
  grid-column: 1/-1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 20px;
  margin: 18px 0;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #b9b8b7;
  border-radius: 7px;
  background: white;
  color: #282325;
  font: inherit;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #477e6f;
  outline-offset: 1px;
}
button {
  border: 0;
  background: #1d6053;
  color: white;
  padding: 11px 16px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  min-height: 43px;
}
button:hover {
  background: #144d43;
}
button.secondary {
  background: #eeedec;
  color: #272325;
}
button.quiet {
  background: none;
  color: #795444;
  font-size: 13px;
  padding: 5px 8px;
}
.steps {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.steps span {
  background: #f2f1ef;
  padding: 7px 11px;
  font-size: 13px;
  border-radius: 5px;
}
.steps span.active {
  background: #dcefe8;
  color: #145442;
  font-weight: 700;
}
.actions {
  display: flex;
  gap: 10px;
  margin: 23px 0;
}
.error {
  color: #a4222f;
  font-weight: 600;
}
.success,
.selection,
.admin-card,
.review {
  padding: 18px;
  margin: 18px 0;
  border: 1px solid #e6e2df;
  border-radius: 12px;
}
.success {
  border-color: #a0c9b9;
  background: #f3faf6;
}
.product-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  margin-top: 20px;
  padding: 17px;
  border: 1px solid #dedbd9;
  border-radius: 12px;
}
.product-visual {
  text-align: center;
}
.product-visual p {
  font-size: 12px;
  color: #686264;
}
.mock {
  margin: 4px auto;
  width: 160px;
  height: 150px;
  background: #f0e7dd;
  border: 1px solid #d1beb1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 4px 6px 12px #0001;
}
.mock.screen {
  background: #dfeced;
  border-color: #91b5b3;
  aspect-ratio: 16/9;
  height: auto;
  margin-top: 35px;
}
.mock span {
  font-size: 12px;
}
.item-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eae8e7;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.metrics > div {
  padding: 18px;
  background: #f5f7f5;
  border-radius: 10px;
}
.metrics strong {
  display: block;
  color: #1b6352;
  font-size: 24px;
}
.metrics span {
  font-size: 13px;
  color: #605a5b;
}
.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.charts > div {
  min-width: 0;
  border-top: 1px solid #eae8e7;
  padding-top: 13px;
}
.empty {
  padding: 30px;
  background: #f6f5f3;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.home-tile {
  border: 1px solid #dfdfdc;
  border-radius: 10px;
  padding: 18px;
  color: #322e30;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 92px;
}
.home-tile b {
  color: #215e50;
}
.home-tile span {
  color: #5c5659;
  font-size: 14px;
  line-height: 1.4;
}
.print-sheet {
  margin: 25px 0;
  border: 1px solid #ddd;
  padding: 28px;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.print-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid #205a4e;
  padding-bottom: 10px;
}
.print-heading b {
  color: #9b2630;
  font-size: 11px;
}
.print-sheet h2 {
  font-size: 23px;
  margin-bottom: 3px;
}
.print-sheet dl {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 0;
}
.print-sheet dt,
.print-sheet dd {
  border-bottom: 1px solid #ddd;
  margin: 0;
  padding: 7px 0;
}
.print-sheet dt {
  font-weight: bold;
}
.print-sheet section {
  border-top: 1px solid #ddd;
  break-inside: avoid;
}
.print-sheet footer {
  font-size: 11px;
  border-top: 2px solid #205a4e;
  padding-top: 10px;
  margin-top: 24px;
}
@media (max-width: 720px) {
  .grid,
  .grid.three,
  .home-grid,
  .charts,
  .product-card {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-visual {
    display: none;
  }
  .print-sheet {
    padding: 13px;
  }
  .print-sheet dl {
    grid-template-columns: 110px 1fr;
  }
}
@media print {
  body * {
    visibility: hidden !important;
  }
  .print-sheet,
  .print-sheet * {
    visibility: visible !important;
  }
  .print-sheet {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    border: 0;
    margin: 0;
    padding: 0;
  }
  .print-sheet footer {
    break-inside: avoid;
  }
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 16px;
}
.brand-row img {
  width: min(300px, 80vw);
  height: auto;
  display: block;
}
.institutional-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e4e4e4;
}
.institutional-footer img {
  display: block;
  width: min(380px, 100%);
  height: auto;
  object-fit: contain;
  object-position: right center;
}
.file-nav a {
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 15px;
  background: #f0f3f4;
  border: 1px solid #e3e9ea;
}
.file-nav a[aria-current=page] {
  background: #d7e9e7;
  border-color: #9ec3bd;
  color: #153c50;
}
.home-tile {
  border: 2px solid #b8c9d1;
  min-height: 112px;
  background: #f9fbfc;
}
.home-tile b {
  font-size: 17px;
  color: #18385a;
}
.home-tile:hover {
  border-color: #b49749;
  background: #fffdf8;
}
.actions button,
.product-card button:not(.quiet),
.success button,
.admin-card button,
.print-sheet + button,
button:not(.quiet) {
  font-size: 16px;
  min-height: 50px;
  padding: 13px 20px;
  background: #18385a;
  box-shadow: 0 2px 4px #18385a22;
}
.actions button:hover,
.product-card button:hover {
  background: #284f6c;
}
button.secondary {
  background: #e7ecf0 !important;
  color: #18385a !important;
}
.conditional {
  padding: 15px 18px;
  margin: 14px 0 20px;
  border: 1px solid #ccd8d8;
  border-left: 4px solid #b49749;
  border-radius: 8px;
  background: #fbfcfc;
}
.conditional h4 {
  margin: 0;
}
.field {
  gap: 8px;
}
.field input,
.field select,
.field textarea {
  min-height: 49px;
}
.product-card {
  background: #fffefde8;
}
.brand-row ~ section,
.brand-row ~ div {
  position: relative;
}
@media (max-width: 720px) {
  body {
    background-position: center 380px;
    background-size: 85vw auto;
  }
  .brand-row img {
    width: min(260px, 80vw);
  }
  .institutional-footer img {
    width: min(330px, 100%);
  }
  .file-nav a {
    font-size: 15px;
  }
  .home-tile {
    min-height: 88px;
  }
}
@media print {
  body {
    background: none !important;
  }
  .brand-row,
  .institutional-footer {
    display: none !important;
  }
}
.local-file-card {
  position: relative;
}
.watermark {
  position: absolute !important;
  pointer-events: none;
  z-index: 0;
  left: 50%;
  top: 360px;
  transform: translateX(-50%);
  width: min(610px, 78%);
  height: auto;
}
.watermark img {
  display: block;
  width: 100%;
  height: auto;
}
.watermark ~ * {
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .watermark {
    top: 420px;
    width: 87%;
  }
}
body {
  font-family:
    Arial,
    Helvetica,
    sans-serif !important;
  background: #fff;
  color: #251f21;
}
.local-file-card {
  max-width: 1040px;
  margin: auto;
  padding: 32px 36px;
  box-sizing: border-box;
}
.local-header h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}
.local-header p {
  line-height: 1.5;
}
.local-header {
  margin-bottom: 20px;
}
.local-group {
  margin: 30px 0;
}
.local-group h2 {
  font: normal 27px Georgia, serif;
}
.local-closing {
  font-size: 13px;
  color: #656163;
  padding: 25px 0;
}
.local-callout {
  border-left: 3px solid #b49749;
  padding: 12px 16px;
  margin: 20px 0;
  background: #fbfaf6;
}
.local-callout p {
  margin: 6px 0;
}
.local-facts {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6px 12px;
}
.local-facts dt,
.local-facts dd {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  margin: 0;
}
.local-facts dt {
  font-weight: bold;
}
.local-chart h3 {
  font-size: 15px;
}
.local-bar {
  display: grid;
  grid-template-columns: 130px 1fr 25px;
  gap: 8px;
  margin: 10px 0;
  align-items: center;
  font-size: 12px;
}
.local-bar div {
  background: #eee;
  height: 20px;
}
.local-bar i {
  display: block;
  height: 100%;
  background: #477e6f;
}
@media (max-width: 720px) {
  .local-file-card {
    padding: 18px;
  }
  .local-header h1 {
    font-size: 28px;
  }
  .local-facts {
    grid-template-columns: 100px 1fr;
  }
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.brand-row img {
  object-fit: contain;
  height: auto;
}
.brand-row .brand-fluxcom {
  width: min(245px, 80vw);
}
.brand-row .brand-institutions {
  width: min(620px, 95vw);
}
@media (max-width: 720px) {
  .brand-row {
    gap: 12px;
  }
  .brand-row .brand-fluxcom {
    width: min(190px, 60vw);
  }
  .brand-row .brand-institutions {
    width: min(100%, 520px);
  }
}
.print-sheet .product-specs {
  margin: 4px 0 12px;
}
.print-sheet section p {
  margin: 7px 0;
}
.logo-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px;
  border: 1px solid #b9b8b7;
  border-radius: 7px;
  background: #fff;
}
.logo-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  white-space: nowrap;
}
.logo-checks input[type=checkbox] {
  width: auto;
  min-height: auto;
}
.actions button.print-action,
.actions button.print-action:hover {
  background: #18385a !important;
  color: #fff !important;
}
.sei-warning {
  padding: 12px 14px;
  border-left: 4px solid #b49749;
  background: #f7f3e9;
  line-height: 1.5;
}
@media print {
  .sei-warning {
    display: none !important;
  }
}
.home-tile.home-solicitar {
  background: #e4f2e9;
  border-color: #9dc8ad;
}
.home-tile.home-acompanhar {
  background: #f7f0e4;
  border-color: #d7c8ab;
}
.home-tile.home-existente {
  background: #f9ebdc;
  border-color: #dfb589;
  cursor: default;
}
.home-tile.home-existente b {
  color: #855326;
}
.home-tile.home-existente:hover {
  background: #f9ebdc;
  border-color: #dfb589;
}

.home-tile.home-existente{cursor:pointer}.home-tile.home-existente:hover{background:#fff4e6;border-color:#b87939}.home-tile.home-existente:focus-visible{outline:3px solid #18385a;outline-offset:3px}

/* impressao: ficha sem espaco em branco no topo e titulos junto do conteudo */
@media print {
  body *:not(:has(.print-sheet)):not(.print-sheet):not(.print-sheet *) {
    display: none !important;
  }
  html, body, #root, .local-file-card, .card {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
  }
  .print-sheet {
    position: static !important;
  }
  .print-sheet h2, .print-sheet h3, .print-sheet h4 {
    break-after: avoid;
    page-break-after: avoid;
  }
  .print-sheet h3 + section {
    break-before: avoid;
  }
}
