.overview-grid,
.personal-page,
.atlas-v49-body {
  gap: 16px;
}
.overview-grid {
  align-items: stretch;
}
.overview-grid > .panel,
.overview-grid > article,
.personal-page > .atlas-v49-card,
.atlas-v49-body > .atlas-v49-card {
  box-sizing: border-box;
}
.atlas-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.atlas-card-grid > .statistics-fact,
.atlas-card-grid > .atlas-v49-card {
  height: 100%;
  min-height: 148px;
  margin: 0;
}
.schedule-dialog,
.atlas-v49-view dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(640px, calc(100dvh - 32px));
}
.equipment-print-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: min(880px, 100%);
  margin: 0;
  padding: 16px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
}
.equipment-print-sheet .equipment-qr { min-height: 180px; }
.sidebar nav button[data-atlas-role-hidden="true"] { display: none !important; }
.department-switch {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-columns: none;
  align-items: stretch;
}
.department-switch > button,
.department-switch > .atlas-v49-schedule-tab {
  min-width: 0;
  min-height: 64px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.department-switch > button span,
.department-switch > button small {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.panel-controls {
  box-sizing: border-box;
  max-width: 100%;
  padding-right: 96px;
}
.atlas-v49-card,
.manage-page,
.atlas-v49-body { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .department-switch {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .department-switch > button { flex: 1 0 132px; }
  .panel-controls { padding-right: 16px; }
}
@media (max-width: 720px) {
  .equipment-print-sheet { grid-template-columns: 1fr; }
}
