@use '@angular/material' as mat; :host { display: flex; flex-direction: row; overflow: hidden; height: 100%; width: 100%; } .sidebar-header { display: flex; flex-direction: row; align-items: center; app-region: drag; button { @include mat.form-field-density(-5); app-region: no-drag; } } .main-content { flex: 1; display: flex; flex-direction: column; min-height: 0; // Important for proper flex behavior } .content-header { padding: 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); app-region: drag; h2 { margin: 0; font-size: 1.2rem; font-weight: 500; display: flex; align-items: center; gap: 10px; } button { app-region: no-drag; } } .scrollable-content { flex: 1; overflow-y: auto; }