/* Cartões em três colunas, com valores completos em uma única linha. */
#view .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#view .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  min-height: 63px;
  padding: 7px 6px;
  border-radius: 8px;
}
#view .card > .symbol {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 6px;
}
#view .card .symbol .app-icon {
  font-size: 11px;
  width: 12px;
  height: 12px;
  line-height: 12px;
}
#view .card > div {
  width: 100%;
  min-width: 0;
}
#view .card small {
  display: block;
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: normal;
  min-height: 19px;
}
#view .card strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.35px;
}
#view .financial-section {
  padding: 10px;
  margin-bottom: 11px;
  border-radius: 10px;
}
#view .financial-section h3 {
  font-size: 14px;
}
#view .receipt-channel h4 {
  font-size: 11px;
  margin: 9px 0 6px;
}
#view .financial-section .hint {
  font-size: 10px;
  line-height: 1.4;
  margin-top: 6px;
}
#period-host {
  margin-bottom: 12px;
}
.period-picker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  color: var(--green);
}
.period-picker summary {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  font-weight: 700;
}
.period-picker summary::-webkit-details-marker {
  display: none;
}
.period-picker summary > span {
  flex: 1;
  min-width: 0;
}
.period-picker summary .app-icon {
  width: 15px;
  height: 15px;
  font-size: 14px;
}
.period-fields {
  padding: 0 10px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.period-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  min-width: 0;
}
.period-fields label:first-child,
.period-fields button,
.period-fields p {
  grid-column: 1/-1;
}
.period-fields input,
.period-fields select {
  padding: 8px 5px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  background: #fff;
  font-size: 13px;
}
#period-error {
  color: #b13319;
  margin: 0;
  font-size: 11px;
}
@media (max-width: 360px) {
  #view .card {
    padding: 6px 4px;
  }
  #view .card strong {
    font-size: 14px;
  }
  #view .card small {
    font-size: 7px;
  }
  #view .cards {
    gap: 4px;
  }
  .period-picker summary {
    font-size: 11px;
  }
}
