:root {
  color-scheme: light;
  --ifpi-green: #006b3b;
  --ifpi-deep-green: #00552f;
  --bs-primary: var(--ifpi-green);
  --bs-primary-rgb: 0, 107, 59;
  --bs-success: var(--ifpi-green);
  --bs-success-rgb: 0, 107, 59;
  --bs-link-color: var(--ifpi-green);
  --bs-link-hover-color: var(--ifpi-deep-green);
}

body {
  background: #f8f9fa;
  color: #212529;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.page-heading {
  padding: 1.25rem 0;
}

.activity-navigation {
  position: sticky;
  top: 3.5rem;
  z-index: 1020;
  padding-top: 0.5rem;
  background: #f8f9fa;
}

.activity-navigation .nav-link {
  color: #495057;
}

.activity-navigation .nav {
  overflow-y: hidden;
}

.activity-navigation .nav-link.active {
  color: var(--ifpi-green);
  font-weight: 600;
}

.card {
  border-color: #dee2e6;
}

.answer-message {
  color: #212529;
}

.answer-message p:last-child {
  margin-bottom: 0;
}

.prototype-device {
  width: 100%;
  max-width: 17rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #d5ddd8;
  border-radius: 1rem;
  background: #fff;
  color: #21382b;
  box-shadow: 0 0.5rem 1.25rem rgba(20, 45, 31, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

.reservation-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.25rem;
  padding: 0.2rem 0.7rem 0.1rem;
  color: #17231b;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
}

.reservation-status-icons {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.reservation-status-icons svg {
  width: 0.75rem;
  height: 0.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.reservation-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  min-height: 2.8rem;
  padding: 0.25rem 0.45rem;
  background: #fff;
}

.reservation-institution {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.reservation-institution img {
  width: 1.25rem;
  height: 1.65rem;
  object-fit: contain;
}

.reservation-institution span,
.reservation-institution strong,
.reservation-institution small {
  display: block;
}

.reservation-institution strong {
  color: #174f32;
  font-size: 0.46rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.reservation-institution small {
  color: #315b42;
  font-size: 0.48rem;
  line-height: 1.1;
}

.reservation-slogan {
  color: #4b6a58;
  font-size: 0.43rem;
  line-height: 1.1;
  text-align: center;
}

.reservation-menu {
  display: grid;
  width: 1.35rem;
  height: 1.6rem;
  flex: 0 0 auto;
  place-items: center;
  border-left: 1px solid #e2e8e4;
  color: var(--ifpi-green);
}

.reservation-menu svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.reservation-ribbon {
  position: relative;
  height: 0.8rem;
  margin-top: -0.05rem;
  background: #08743e;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 66% 100%, 0 65%);
}

.reservation-ribbon::after {
  position: absolute;
  right: 0;
  bottom: 0.05rem;
  left: 0;
  height: 0.15rem;
  background: #df252d;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 66% 100%, 0 50%);
  content: "";
}

.reservation-screen {
  padding: 0 0.45rem 0.1rem;
}

.reservation-hero {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
  background: linear-gradient(110deg, #064c2a, #00723b);
  box-shadow: 0 0.15rem 0.35rem rgba(0, 63, 31, 0.2);
  color: #fff;
}

.reservation-hero > svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.reservation-hero span,
.reservation-hero strong,
.reservation-hero small {
  display: block;
}

.reservation-hero strong {
  font-size: 0.72rem;
  line-height: 1.15;
}

.reservation-hero small {
  margin-top: 0.1rem;
  font-size: 0.5rem;
  line-height: 1.2;
}

.reservation-form {
  padding: 0.55rem 0.5rem 0.35rem;
}

.reservation-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.15rem;
  color: #24553a;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
}

.reservation-label svg {
  width: 0.78rem;
  height: 0.78rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #147543;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.reservation-select {
  min-height: 1.7rem;
  margin-bottom: 0.5rem;
  padding: 0.2rem 1.7rem 0.2rem 0.45rem;
  border-color: #cfd8d1;
  border-radius: 0.4rem;
  color: #263a2d;
  font-size: 0.62rem;
}

.reservation-submit {
  display: flex;
  width: 100%;
  min-height: 1.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.2rem;
  border-color: var(--ifpi-green);
  border-radius: 0.4rem;
  background: var(--ifpi-green);
  font-size: 0.64rem;
  font-weight: 600;
}

.reservation-submit:hover,
.reservation-submit:focus-visible {
  border-color: var(--ifpi-deep-green);
  background: var(--ifpi-deep-green);
}

.reservation-submit svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.reservation-bottom-nav {
  position: relative;
  display: grid;
  min-height: 2.8rem;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.45rem 0.25rem 0.35rem;
  border-top: 0.15rem solid #df252d;
  background: var(--ifpi-deep-green);
  color: #fff;
}

.reservation-bottom-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.48rem;
  line-height: 1;
  text-align: center;
}

.reservation-bottom-nav span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.reservation-bottom-nav svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.prototype-response {
  position: relative;
  display: flex;
  min-height: 3.2rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.45rem 0.2rem 0.45rem 1.45rem;
  border: 0;
  border-top: 1px solid #e1e6e2;
  border-radius: 0;
  background: #fff;
  color: #415248;
  font-size: 0.55rem;
  line-height: 1.25;
  text-align: left;
}

.prototype-response::before {
  position: absolute;
  top: 50%;
  left: 0.15rem;
  display: grid;
  width: 0.95rem;
  height: 0.95rem;
  transform: translateY(-50%);
  place-items: center;
  border: 1.5px solid #147543;
  border-radius: 50%;
  color: #147543;
  content: "i";
  font-size: 0.65rem;
  font-weight: 700;
}

.prototype-response-title {
  color: #245d3c;
  font-size: 0.58rem;
  font-weight: 700;
}

.prototype-response-message {
  display: block;
}

.prototype-response.success {
  color: #17613a;
}

.prototype-response.success::before {
  border-color: #147543;
  background: #e6f4eb;
  content: "✓";
}

.prototype-response.success .prototype-response-title {
  color: #147543;
}

.prototype-response.warning {
  color: #725b18;
}

.prototype-response.warning::before {
  border-color: #b98513;
  background: #fff5d8;
  color: #8a6410;
  content: "!";
}

.prototype-response.warning .prototype-response-title {
  color: #8a6410;
}

.prototype-response[hidden] {
  display: none !important;
}

.backlog-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

#product-backlog-list .list-group-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.backlog-item-content {
  flex: 1;
}

.backlog-item-content p {
  margin-bottom: 0;
}

.backlog-item-controls {
  display: flex;
  gap: 0.25rem;
}

.priority-drop {
  min-height: 5.5rem;
  padding: 0.5rem;
  border: 1px dashed #adb5bd;
  border-radius: 0.375rem;
  background: #fff;
}

.priority-item {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background: #f8f9fa;
}

.priority-item p {
  margin: 0.25rem 0 0;
  color: #6c757d;
  font-size: 0.875rem;
}

.priority-control {
  flex: 1 1 12rem;
  max-width: 18rem;
}

.priority-control .form-label {
  color: #495057;
}

.flow-step {
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background: #fff;
}

.flow-step-number {
  color: #6c757d;
  font-size: 0.875rem;
}

.flow-step h3 {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.flow-step p {
  margin-bottom: 0;
  color: #6c757d;
  font-size: 0.875rem;
}

#save-status {
  min-height: 1.25rem;
}

@media (max-width: 575.98px) {
  .navbar-text {
    font-size: 0.75rem;
  }

  .activity-navigation {
    top: 3.25rem;
  }

  .activity-navigation .nav-link {
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
  }

  .priority-item {
    font-size: 0.875rem;
  }
}

/* Mantém apenas a aba ativa no fluxo da página. */
.tab-content > .tab-pane:not(.active) {
  display: none !important;
}

.tab-content > .tab-pane.active {
  display: block;
}
