/* Supporting cards grow with their content; only the page scrolls vertically. */
#pbDashboardTwoColumn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}
#pbDashboardTwoColumn > .pb-dash-card {
  grid-column: auto !important;
  min-width: 0;
  width: 100%;
  margin: 0;
}
#pbDashboardTwoColumn > .pb-dash-card > summary {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
#pbDashboardTwoColumn .pb-dash-head-r,
#pbDashboardTwoColumn .pb-courier-live-map-status {
  flex-wrap: wrap;
  min-width: 0;
}
#pbDashboardTwoColumn .pb-dash-card-title { overflow-wrap: anywhere; }
#pbDashboardTwoColumn .pb-courier-chat-content {
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
}
#pbDashboardTwoColumn #pbCourierChatThreads { grid-column: 1 / -1; }
#pbDashboardTwoColumn .pb-courier-chat-search { width:100%;max-width:none;min-width:0;margin:0; }
#pbDispatchExpandable[hidden] { display:none!important; }
#pbDashboardTwoColumn > details[open] > :not(summary):not(.pb-courier-live-map) {
  height: auto;
  min-height: 0;
  max-height: none !important;
  overflow: visible !important;
}
#pbDashboardTwoColumn > details[open] { align-self: stretch; }
#pbDashboardTwoColumn :is(#pbCourierChatThreads, #pbDashFeed, [data-warning-list]) {
  height: auto;
  max-height: none !important;
  overflow: visible !important;
}
/* Maps require a real canvas height; do not turn the map itself into a list. */
#pbDashboardTwoColumn > details[open] > .pb-courier-live-map { height: 360px; }
#pbCourierLiveMap { position: relative; isolation: isolate; overflow: hidden !important; }
#pbCourierLiveMapCard > summary { position: relative; z-index: 1; }
/* Preserve the shared card, equal columns and every assignment action. */
#pbDispatchCenter .pb-dispatch-board { min-height: 0; height: auto; }
#pbDispatchCenter .pb-dispatch-list { max-height: none; overflow-y: visible; }
#pbDashboardTwoColumn > details:not([open]) > :not(summary) { display: none; }
@media (max-width: 1100px) {
  #pbDashboardTwoColumn { grid-template-columns: minmax(0, 1fr); }
  #pbDashboardTwoColumn > .pb-dash-card > summary { min-height: 60px; }
}
@media (max-width: 720px) {
  #pbDashboardTwoColumn > details[open] > .pb-courier-live-map { height: 300px; }
}
@media (max-width: 600px) {
  #pbDashboardTwoColumn .pb-courier-chat-content { grid-template-columns:minmax(0,1fr); }
}
