/* MDS-OFFICE-LAYOUT21 — dashboard presentation only, 2026-10-22.
   No JavaScript, API calls, permission changes, or saved-layout changes.
   Keep this file linked after the Office bundle in future frontend builds. */
#mds-office-app .mds-home-layout-shell .mds-custom-module-groups {
  align-items: start;
}
#mds-office-app .mds-home-layout-shell .mds-custom-group {
  min-height: 0;
  align-self: start;
}
#mds-office-app .mds-home-layout-shell .mds-custom-group > .mds-nav-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)) !important;
  gap: 10px !important;
  min-height: 0;
}
#mds-office-app .mds-home-layout-shell .mds-custom-tile {
  min-height: 104px !important;
  padding: 12px 10px !important;
  gap: 7px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}
#mds-office-app .mds-home-layout-shell .mds-custom-tile > .mds-nav-icon {
  width: 34px !important;
  height: 38px !important;
  flex: 0 0 34px !important;
  border-radius: 9px;
}
#mds-office-app .mds-home-layout-shell .mds-custom-tile .mds-module-emoji {
  font-size: 26px;
}
#mds-office-app .mds-home-layout-shell .mds-custom-tile > .mds-nav-icon img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
#mds-office-app .mds-home-layout-shell .mds-custom-tile > .mds-nav-icon + span {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
  width: 100%;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
  line-height: 1.35 !important;
  text-align: center !important;
}
#mds-office-app .mds-home-layout-shell .mds-custom-tile > .mds-home-badge {
  position: absolute;
  right: 6px;
  top: 6px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 20px;
  max-width: 34px;
  height: 20px;
  padding: 0 4px;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-align: center;
  pointer-events: none;
}
#mds-office-app .mds-home-layout-shell .mds-custom-tile > .mds-home-drag-handle {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  line-height: 1 !important;
  pointer-events: none;
}
/* Retain a visible drop area while customizing, without fixed-height view cards. */
#mds-office-app .mds-home-layout-shell.mds-home-layout-editing .mds-custom-group > .mds-nav-grid {
  min-height: 82px;
}
#mds-office-app .mds-home-layout-shell .mds-custom-group-header {
  flex-wrap: wrap;
}
#mds-office-app .mds-home-layout-shell .mds-custom-group-controls {
  flex-wrap: wrap;
}
/* Do not reveal hidden/permission-filtered controls. */
#mds-office-app .mds-home-layout-shell .mds-custom-tile[hidden],
#mds-office-app .mds-home-layout-shell .mds-custom-tile[style*="display: none"],
#mds-office-app .mds-home-layout-shell .mds-custom-tile[style*="display:none"] {
  display: none !important;
}
