/* One canonical editor, expanded to the viewport. Its dialog lifecycle and
   child dialogs stay intact; only the outer editor's presentation changes. */
.client-record-workspace[data-slot="dialog-content"] {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  transform: none;
  translate: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  animation: none;
}
.client-record-workspace > [data-slot="dialog-header"] {
  padding-right: 3.5rem;
  text-align: left;
}
.client-record-workspace > [data-slot="dialog-header"] > div,
.client-record-workspace > [data-slot="dialog-header"] [data-slot="dialog-title"] {
  flex-wrap: wrap;
}
.client-record-workspace > [data-slot="tabs"] {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.client-record-workspace > [data-slot="tabs"] > div:first-child {
  flex-shrink: 0;
  max-height: 35vh;
  max-height: 35dvh;
  overflow-y: auto;
}
.client-record-workspace > [data-slot="tabs"] > div:first-child > [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  justify-content: flex-start;
}
.client-record-workspace > [data-slot="tabs"] > .overflow-y-auto {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.client-record-workspace > .bg-background {
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: .75rem;
}
@media (max-width: 640px) {
  .client-record-workspace > [data-slot="dialog-header"] { padding-left: 1rem; padding-top: 1rem; padding-bottom: .75rem; }
  .client-record-workspace > [data-slot="tabs"] > div:first-child { padding-left: .5rem; padding-right: .5rem; }
  .client-record-workspace > [data-slot="tabs"] > .overflow-y-auto { padding: 1rem; }
  .client-record-workspace > .bg-background { padding: .75rem 1rem; }
  .client-record-workspace > [data-slot="tabs"] > .overflow-y-auto > [role="tabpanel"] > .grid { grid-template-columns: minmax(0, 1fr); }
}
