/**
 * Estilos do painel do cliente: navegação do painel, container de contratos,
 * cabeçalho, cards (pequeno, normal, desabilitado) e avisos.
 *
 * Responsabilidades:
 * - Estilizar a grade de cards e o cabeçalho da área logada.
 * - Definir os estados ativo e desabilitado dos cards de contrato.
 *
 * CSS puro, editado à mão: o portal não tem Sass nem build do Tailwind. Depois
 * de editar, rode build-css.sh e comite o public/css/app.css gerado.
 *
 * @package Portal\Recursos\CSS
 * @llmdoc Quase todas as regras vivem dentro de @media próprios (1024px /
 *         1023px); a tela do painel depende dessas quebras, não dos
 *         utilitários responsivos.
 */
@media (min-width: 1024px) {
  .dashboard-nav {
    height: 132px;
    background-color: #515151;
  }

  .contracts-container {
    margin-top: -79px;
  }

  .header {
    padding: 20px;
  }

  .card-padding {
    padding: 35px 30px;
  }

  .span-notice {
    max-width: 185px;
  }

  .small-card {
    background-color: #FFF;
    min-width: 280px;
    max-width: 280px;
    border-radius: 6px;
    margin-left: 32px;
  }

  .small-card-padding {
    padding: 16px;
  }

  .contrato-title {
    padding-bottom: 8px;
    border-bottom: 1px solid #DCDCDC;
  }

  .normal-card {
    position: relative;
  }

  .normal-card.active:before {
    display: block;
    position: absolute;
    content: "";
    background: #02CE6A;
    height: 100%;
    width: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
  }

  .disabled-card {
    position: relative;
  }

  .disabled-card.active:before {
    display: block;
    position: absolute;
    content: "";
    background: #AEAEAE;
    height: 100%;
    width: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
  }

  .contemplated-card {
    position: relative;
  }

  .contemplated-card.active:before {
    display: block;
    position: absolute;
    content: "";
    background: #FF28F1;
    height: 100%;
    width: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
  }
}

@media (max-width: 1023px) {
  .dashboard-nav {
    height: 107px;
    background-color: #515151;
  }

  .contrato-card {
    margin-bottom: 80px;
    min-width: 85vw;
    margin-left: 16px;
  }

  .contracts-container {
    margin-top: -50px;
  }

  .dashboard-footer {
    height: 68px;
    bottom: 0;
  }
}

.contrato-card {
  background: #FFFFFF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}

.contrato-card .header {
  border-bottom: 1px solid #DCDCDC;
}

.contrato-card .separator {
  border-left: 1px solid #DCDCDC;
  padding-left: 6px;
}

.contrato-card .bid-title {
  border-bottom: 1px solid #02CE6A;
  padding-bottom: 4px;
}

.contrato-card .resgate-title {
  border-bottom: 1px solid #FF28F1;
  padding-bottom: 4px;
}

.contrato-card .bid-notice {
  border-radius: 2px;
}

.contrato-card .notice-block {
  border-radius: 6px;
  padding: 32px;
}

@media (max-width: 1023px) {
  .contrato-card .notice-block {
    border-radius: 0;
    padding: 32px;
  }
}

.contrato-card .resgate-notice {
  border-radius: 2px;
}

/* Borda border-gray-300. */
.contrato-card .progress-bar {
  border: 1px solid #AEAEAE;
  border-radius: 30px;
  height: 9px;
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1px;
}

.contrato-card .progress-bar div {
  height: 5px;
  border-radius: 40px;
  background: #02CE6A;
}

.contrato-card .next-bid-title {
  border-bottom: 1px solid #FF28F1;
  padding-bottom: 4px;
}

.contrato-card .footer {
  border-top: 1px solid #DCDCDC;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.row-payments {
  border-bottom: 1px solid #DCDCDC;
  padding-bottom: 22px;
}

.payment-box {
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.14);
  border-radius: 5px;
}

.contrato-infos {
  margin-top: 24px;
  border-radius: 6px;
}

@media (max-width: 1023px) {
  .fix-padding-mobile {
    padding: 0 !important;
  }
}
