/* Gerador de orçamento - Andaimes Garcia */

.orc-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  margin: 32px 0 60px 0;
}

.orc-col {
  min-width: 0;
}

/* ---------- Abas ---------- */
.orc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orc-tab {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #212121;
  font-family: 'Ubuntu';
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.orc-tab:hover {
  border-color: #019442;
  color: #019442;
}

.orc-tab--active,
.orc-tab--active:hover {
  background: #019442;
  border-color: #019442;
  color: #f7f7f7;
}

/* ---------- Cartões ---------- */
.orc-card {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  padding: 20px;
  margin-top: 16px;
}

.orc-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.orc-btn-ghost {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #212121;
  font-family: 'Ubuntu';
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.orc-btn-ghost:hover {
  border-color: #019442;
  color: #019442;
}

.orc-panel {
  display: none;
}

.orc-panel--active {
  display: block;
}

/* ---------- Campos ---------- */
.orc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.orc-field {
  display: block;
  margin-bottom: 16px;
}

.orc-fields > .orc-field {
  margin-bottom: 0;
}

.orc-label {
  display: block;
  font-family: 'Ubuntu';
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6f6f6f;
  margin-bottom: 6px;
}

/* !important necessário por causa do reset do materialize.min.css */
.orc-input {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 5px !important;
  background: #fff !important;
  font-family: 'Ubuntu';
  font-size: 15px;
  color: #212121;
  transition: 0.3s ease-in-out;
}

.orc-input:focus {
  border-color: #019442 !important;
  box-shadow: 0 0 0 2px #01944226 !important;
  outline: none;
}

/* Selects usam a classe browser-default: o materialize.js ignora e não cria
   o dropdown duplicado por cima do campo nativo. */
.orc-select {
  display: block !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23019442'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 20px 20px !important;
}

.orc-select:focus {
  outline: none;
}

.orc-input--qtd {
  width: 90px !important;
  flex: 0 0 90px;
  text-align: right;
  padding: 6px 10px !important;
}

/* ---------- Bloco de itens ---------- */
.orc-box {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #f7f7f7;
  padding: 16px;
  margin-top: 16px;
}

.orc-box__title {
  font-family: 'Ubuntu';
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #212121;
  margin: 0 0 12px 0;
  line-height: 20px;
}

.orc-itens {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Ubuntu';
  font-size: 15px;
  color: #212121;
  line-height: 20px;
  cursor: pointer;
}

/* materialize esconde inputs nativos; aqui usamos os nativos mesmo */
.orc-check input[type="checkbox"],
.orc-check input[type="radio"] {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #019442;
}

.orc-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-left: 26px;
}

.orc-hint {
  font-family: 'Ubuntu';
  font-size: 13px;
  color: #6f6f6f;
  line-height: 20px;
  margin: 12px 0 0 0;
}

.orc-hint--center {
  text-align: center;
}

/* Quando a dica vem antes de um campo (card "Local da obra") */
.orc-card > .orc-hint {
  margin-bottom: 16px;
}

.orc-info {
  font-family: 'Ubuntu';
  font-size: 13px;
  color: #212121;
  line-height: 20px;
  background: #f7f7f7;
  border-left: 3px solid #019442;
  padding: 10px 12px;
  margin: 0 0 16px 0;
}

.orc-vigas {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  padding: 10px 12px;
  margin-top: 12px;
  font-family: 'Ubuntu';
  font-size: 13px;
  color: #212121;
  line-height: 20px;
}

.orc-vigas strong {
  color: #212121;
}

.orc-vigas ul {
  margin: 4px 0 0 0;
}

/* ---------- Resumo ---------- */
.orc-aside {
  position: sticky;
  top: 24px;
}

.orc-aside .orc-card {
  margin-top: 0;
}

.orc-aside__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orc-aside__title {
  font-family: 'Ubuntu';
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #212121;
  margin: 0;
  line-height: 24px;
}

.orc-link {
  border: 0;
  background: none;
  padding: 0;
  font-family: 'Ubuntu';
  font-size: 13px;
  font-weight: 700;
  color: #6f6f6f;
  text-decoration: underline;
  cursor: pointer;
}

.orc-link:hover {
  color: #019442;
}

.orc-resumo {
  list-style: disc !important;
  margin: 16px 0 0 18px !important;
}

.orc-resumo li {
  list-style: disc !important;
  font-family: 'Ubuntu';
  font-size: 14px;
  color: #3d3d3d;
  line-height: 22px;
}

.orc-aside__nome {
  border-top: 1px solid #e0e0e0;
  margin-top: 16px;
  padding-top: 16px;
}

.orc-btn-whats {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: #25d366;
  color: #212121;
  font-family: 'Ubuntu';
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 20px;
  padding: 14px 16px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.orc-btn-whats:hover:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 4px 8px #21212126;
}

.orc-btn-whats:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Responsivo ---------- */
@media only screen and (max-width: 992px) {
  .orc-grid {
    grid-template-columns: 1fr;
  }

  .orc-aside {
    position: static;
  }
}

@media only screen and (max-width: 600px) {
  .orc-fields {
    grid-template-columns: 1fr;
  }

  .orc-tab {
    flex: 1 1 calc(50% - 8px);
    font-size: 14px;
    padding: 10px 8px;
  }

  .orc-item {
    align-items: flex-start;
  }

  .orc-radios {
    flex-direction: column;
    gap: 8px;
  }
}
