/* Telas antigas que ainda existem (janela de Dados/importação) e restos das telas que foram para o arquivo no passo 7.
   Bloco 59 passo 9: parte do antigo style.css. A ordem de carregamento está no index.html (base primeiro). */
.cash-list {
  margin-top: 10px;
}
.cash-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin: 17px 0;
  gap: 10px;
}
.cash-line.total {
  padding-top: 15px;
  border-top: 1px solid #e5eadf;
  font-size: 12px;
}
.results-status {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #4d7538;
}
.results-copy {
  font-size: 10px;
  color: #98a886;
  line-height: 1.8;
  margin-top: 8px;
}
.scenario-list {
  margin-top: 23px;
}
.saved-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid #e7ecdd;
  font-size: 10px;
  color: #7e9566;
  gap: 10px;
}
.saved-actions {
  display: flex;
  gap: 8px;
}
dialog.drawer {
  width: min(760px, 96vw);
}
.drawer-head {
  padding: 25px 27px 20px;
  border-bottom: 1px solid #e5eadc;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.drawer-body {
  padding: 23px 27px 27px;
}
.source-card {
  padding: 15px;
  border: 1px solid #e1e7d8;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}
.upload-box {
  background: #f4f7ed;
  border: 1px dashed #c5d4b2;
  border-radius: 9px;
  text-align: center;
  padding: 26px 18px;
  margin: 18px 0;
}
.mapping {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 15px 0;
}
.supplier-detail {
  padding: 12px;
  background: #f4f7ed;
  border-radius: 7px;
  font-size: 9px;
  color: #95a682;
  line-height: 1.8;
  margin-bottom: 15px;
}
.simulator-empty {
  padding: 35px;
  text-align: center;
  color: #91a082;
}
.supplier-product-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.supplier-product-title .curve {
  flex-shrink: 0;
}
.supplier-selection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 21px;
  margin-bottom: 10px;
}
.supplier-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 150px;
  overflow: auto;
  margin-bottom: 19px;
  padding: 2px;
}
.supplier-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 10px;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #5b21b6;
  border-radius: 7px;
  font-size: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.supplier-picker-search {
  margin-bottom: 12px;
}
.supplier-picker-options {
  border: 1px solid #dce5f1;
  border-radius: 9px;
  max-height: 300px;
  overflow: auto;
  background: white;
}
.supplier-picker-option {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 12px 13px;
  margin: 0;
  border-bottom: 1px solid #edf1f7;
}
.supplier-picker-option:last-child {
  border-bottom: 0;
}
.supplier-picker-option:hover {
  background: #f8fafc;
}
.supplier-picker-option.selected {
  background: #eff6ff;
}
.supplier-picker-option > span:first-of-type {
  flex: 1;
  min-width: 0;
}
.supplier-confirmed-badge {
  padding: 4px 6px;
  border-radius: 5px;
  background: #d1fae5;
  color: #065f46;
  font-size: 8px;
  white-space: nowrap;
}
.supplier-confirmation-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 9px;
  color: #047857;
  line-height: 1.8;
  margin-top: 14px;
}
@media (max-width: 700px) {
  .supplier-picker-option {
    padding: 11px 10px;
    gap: 8px;
  }
  .supplier-confirmed-badge {
    font-size: 7px;
    padding: 4px;
  }
  .supplier-picker-options {
    max-height: 260px;
  }
  .supplier-chips {
    max-height: 110px;
  }
}
.cash-line.total {
  border-color: #dbe7ef;
}
.saved-row {
  color: #654896;
  border-color: #ede9fe;
}
.supplier-detail {
  background: #f5f3ff;
  color: #624794;
}
.simulator-empty {
  background: linear-gradient(145deg, #ffffff, #f5f3ff);
  color: #6d5790;
}
.drawer-head {
  background: linear-gradient(110deg, #ecfdf5, #eff6ff);
  border-color: #dbe7f1;
}
.source-card {
  border-color: #dbe7f1;
  border-left: 3px solid #3b82f6;
}
.source-card:nth-of-type(2n) {
  border-left-color: #8b5cf6;
}
.source-card:nth-of-type(3n) {
  border-left-color: #10b981;
}
.upload-box {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-color: #a5b4fc;
}
@media (max-width: 700px) {
  .drawer-head {
    padding: 22px 20px 18px;
  }
  .drawer-body {
    padding: 20px;
  }
  .drawer-head h2 {
    font-size: 21px;
  }
  .mapping {
    grid-template-columns: 1fr;
  }
  .saved-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.cycle-panel {
  margin: 0 0 23px;
  border-color: #c4b5fd;
  background: linear-gradient(105deg, #fff, #faf8ff);
}
.cycle-panel .panel-heading {
  background: linear-gradient(105deg, #f5f3ff, #eff6ff);
  padding-bottom: 18px;
}
.cycle-panel .pill {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #6d28d9;
}
.cycle-form {
  padding: 16px 23px 19px;
}
.cycle-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  align-items: stretch;
}
.cycle-fields label input {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 650;
  color: #304963;
}
.cycle-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.cycle-output.cycle-good {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.cycle-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
}
.cycle-actions .button {
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .cycle-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .cycle-panel .panel-heading {
    flex-wrap: wrap;
  }
  .cycle-form {
    padding: 16px;
  }
  .cycle-fields {
    grid-template-columns: 1fr;
  }
  .cycle-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
}
.financial-dialog .drawer-body {
  max-height: 75vh;
  overflow: auto;
  padding: 22px;
}
.financial-dialog .drawer-head {
  border-bottom: 1px solid #e2edf4;
  padding: 17px 21px;
}
.financial-dialog .drawer-body {
  padding: 0;
  max-height: calc(90vh - 75px);
}
.financial-dialog.method-picker-open > .drawer-head,
.financial-dialog.method-picker-open > .drawer-body,
.financial-dialog.supplier-picker-open > .drawer-head,
.financial-dialog.supplier-picker-open > .drawer-body {
  width: 50%;
}
.financial-dialog.method-picker-open > .drawer-body,
.financial-dialog.supplier-picker-open > .drawer-body {
  height: calc(90vh - 75px);
}
.supplier-packs {
  display: grid;
  gap: 10px;
  max-height: 290px;
  overflow: auto;
  margin-bottom: 12px;
}
.supplier-pack-row {
  border: 1px solid #dce5f1;
  border-radius: 9px;
  padding: 12px;
  background: #fff;
}
.supplier-pack-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.safety-block {
  max-width: 650px;
  margin: 12vh auto;
  padding: 28px;
  border: 2px solid #c53b39;
  border-radius: 14px;
  background: #fff;
  color: #173848;
  box-shadow: 0 15px 45px #142a3a24;
}
.safety-block h2 {
  margin: 0 0 12px;
}
.safety-block p {
  line-height: 1.5;
}
.backup-history-list .source-card {
  margin: 0;
}
