/**
 * @file
 * Section 13: Dashboards (general).
 *
 * Split from css/staged-edits-from-gui.css (see docs/Theme updates.md for
 * the full split file list).
 *
 * General dashboard rules — apply across all dashboards. Page-specific
 * dashboard styling lives in 16-page-overrides.css.
 */

/* Dashboard block headers */
.dashboard .layout .block h2 {
  font-size: clamp(1.4625rem, 2.333333333vw, 1.5625rem);
  color: var(--bs-dark);
  margin: 1.5rem 0 1rem 0;
  padding: 0 0 0.5rem 0;
  font-weight: 500;
  padding-top: 8px;
  text-align: center;
  text-transform: uppercase;
  background-color: transparent;
}

/* Remove duplicate padding/borders on nested dashboard blocks */
.dashboard--general-dashboard .layout .block .block,
.dashboard .layout .block .block {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.dashboard .layout .block {
  box-shadow: none;
}

/**
 * Layout Builder: Full-Height Container & Centered Content
 * Eliminates need for repeated h-100 classes on nested structure
 */

/* Make block container and all children take full available height */
.dashboard .block-content-general {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dashboard .block-content-general>.content,
.dashboard .block-content-general .layout,
.dashboard .block-content-general .layout__region,
.dashboard .block-content-general .block-layout-builder,
.dashboard .block-content-general .block-layout-builder>.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

/* Full-height inner content wrapper */
.dashboard .block-content-general .field__item {
  justify-content: center;
  align-items: center;
  display: flex;
  height: 100%;
}

/* Center content vertically and horizontally */
.dashboard .block-content-general .bg-light.rounded-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
}

/* Vertically center paragraph */
.dashboard .block-content-general .bg-light.rounded-3>p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* fix for bootstrap column widths */
.dashboard .override-md-63 {
  justify-content: space-between;
}

@media (min-width: 768px) {
  .dashboard .override-md-63 .col-md-3 {
    flex: 0 0 auto;
    width: 32.33%;
  }
}

@media (min-width: 768px) {
  .dashboard .override-md-63 .col-md-9 {
    flex: 0 0 auto;
    width: 65.66%;
  }
}

.smart-date-break .smart-date--date::after,
.smart-date-break .add-to-calendar::before {
  content: "\A";
  white-space: pre;
}
