.note-section-tab-bar {
  gap: 1rem;
  display: flex;
}

.active-note-panel {
  flex: 1;
}

.note-tabs-generated-notes-container {
  display: flex;
  flex: 1 1 0px;
  /* min-width: 25%; */
  min-width: 0;
  /* max-width: 50%; */
  overflow-x: auto;
}

.note-tabs-generated-notes-container::-webkit-scrollbar {
  height: 0; /* Make it subtle or set display: none to hide completely */
}

.note-tabs-templates-container {
  flex: 0 0 auto;
  padding-left: 1rem;
}

.note-output {
  flex: 1;
  align-self: stretch;
  resize: none;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  padding: 0.5rem;
  padding-bottom: 3rem;
}

.note-panel-outlet {
  padding: 24px;
  flex: 0 0 50%;
  min-width: 0;
}

.note-section {
  flex: 0 0 50%;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 152px);
  /* height: 100%; */
  border-left: 1px solid var(--grey);
  padding: 1rem;
}

.note-section-container {
  display: flex;
  flex-direction: column;
  width: 100%; /* Force strictly 100% width */
  max-width: 100%; /* Double safety */
  min-width: 0; /* Allows children (like the tabs) to trigger overflow */
  /* height: 100%; */
  /* height: 500px !important; */
  padding: 1rem;
  /* padding-bottom: 1rem; */
  /* border-left: 1px solid var(--grey); */
  flex: 1;
}

/* Hide tabs by default until they are revealed by data */
.btn-tab-note {
  display: none;
}

@media (max-width: 768px) {
  .note-panel-outlet {
    padding: 1rem;
  }
  .note-tabs > div {
    flex: auto;
  }

  .note-section {
    margin-left: auto;
    margin-right: auto;
  }
  .note-section-container {
    flex-direction: column;
    flex: 1;
  }

  .note-tabs-generated-notes-container {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
  }
}
