/* Shared alignment for neighboring workspace components. */
.workspace-grid,.bottom-grid,.analytics-grid,.mission-layout,.admin-grid,.profile-grid,.fleet-grid,.area-cards { align-items: stretch; gap: 18px; }
.workspace-grid>*,.bottom-grid>*,.analytics-grid>*,.mission-layout>*,.admin-grid>*,.profile-grid>*,.fleet-grid>*,.area-cards>* { min-width: 0; }
.workspace-grid .side-stack { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.workspace-grid .side-stack>.panel { flex: 1; min-height: 0; }
.overview-grid>.map-panel { align-self: start; }
.overview-grid>.overview-alert-column { position: relative; }
@media(min-width:981px) {
 .overview-grid>.overview-alert-column>.live-alert-panel { position: absolute; inset: 0; }
}
.workspace-grid>div:not(.side-stack) { display: flex; flex-direction: column; }
.workspace-grid>div:not(.side-stack)>.panel { flex: 1; }
:is(.bottom-grid,.analytics-grid,.mission-layout,.admin-grid)>.panel,
.workspace-grid .side-stack>.panel:not(.live-alert-panel),.workspace-grid>div:not(.side-stack)>.panel { display: flex; flex-direction: column; }
:is(.workspace-grid,.bottom-grid,.analytics-grid,.mission-layout,.admin-grid) .panel-heading { flex-shrink: 0; }
.side-stack .identity-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 12px; }
.side-stack .identity-content>:is(h3,p,.identity-mark,.identity-permissions) { margin-block: 0; }
.side-stack .identity-content>.button,.side-stack .identity-permissions { width: 100%; }
.side-stack .flight-guide { margin-top: 0; }
.side-stack .flight-guide .checklist { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.side-stack .flight-guide>.text-button { margin: 0 18px 18px; min-height: 36px; }
.scenario-breakdown { flex: 1; display: flex; flex-direction: column; }
.scenario-breakdown>div:not([data-scenario-basis]) { flex: 1; }
.scenario-breakdown>p { margin-top: 14px; }
.latest-plans-panel .table-wrap { flex: 1; display: flex; flex-direction: column; }
.latest-plans-panel table:has(.empty-state) { height: 100%; }
.latest-plans-panel thead { height: 40px; }
.latest-plans-panel td.empty-state { text-align: center; }
.profile-card { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.profile-card :is(dl,.identity-permissions,.button) { width: 100%; }
.profile-card>.button { margin-top: auto; }
.profile-forms { align-content: stretch; gap: 18px; }
.profile-forms>.panel { display: flex; flex-direction: column; }
.profile-forms .profile-form { flex: 1; display: flex; flex-direction: column; }
.profile-forms .modal-actions { margin-top: auto; padding-top: 20px; }
.admin-grid .pending-users { flex: 1; }
.admin-grid .pending-users:has(>.empty-state) { display: flex; }
.admin-grid .pending-users>.empty-state { flex: 1; display: grid; place-content: center; }
.fleet-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.area-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); }
.fleet-card,.area-card { display: flex; flex-direction: column; }
.fleet-card>.button,.area-card>.button { margin-top: auto; }
.form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
.form-grid>label { min-width: 0; }
.form-field :is(input,select) { height: 40px; }
.section-toolbar>.search-input,.section-toolbar>.filter-button,.section-toolbar>.button { height: 36px; }
.heading-actions>.button { min-height: 36px; }
@media(max-width:980px) {
 .workspace-grid .side-stack { width: 100%; }
 .side-stack .identity-content { gap: 16px; justify-content: center; }
}
@media(max-width:640px) {
 .section-toolbar>.filter-button { flex: 1; }
 .profile-grid { gap: 18px; }
}
