.reference-shell,
.reference-shell .staff-main,
.reference-shell .content,
.reference-shell .panel,
.reference-shell .live-grid,
.reference-shell .heading,
.reference-shell .toolbar,
.reference-shell .table-wrap,
.reference-shell .settings-layout,
.reference-shell .settings {
  min-width: 0;
  max-width: 100%;
}

.reference-shell .panel-head,
.reference-shell .live-heading,
.reference-shell .heading,
.reference-shell .inline-actions,
.reference-shell .logo-preview,
.reference-shell .staff-utility,
.reference-shell .account-tools {
  flex-wrap: wrap;
}

.reference-shell .panel-title-icon h2,
.reference-shell .panel-title-icon p,
.reference-shell .panel-head .text-link,
.reference-shell .heading h1,
.reference-shell .live-heading h1,
.reference-shell .live-heading p {
  white-space: normal;
  overflow-wrap: anywhere;
}

.reference-shell .panel-title-icon,
.reference-shell .dashboard-service-main {
  min-width: 0;
}

.reference-shell .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.reference-shell table {
  min-width: 640px;
}

.reference-shell .toolbar .search,
.reference-shell .toolbar select {
  min-width: min(100%, 12rem);
  max-width: 100%;
}

.reference-shell .account-role {
  overflow-wrap: anywhere;
}

.reference-shell .report-bar {
  flex-wrap: wrap;
}

.reference-shell .report-bar > span {
  width: auto;
  flex: 1 1 8rem;
}

.reference-shell .report-bar > div {
  flex: 1 1 8rem;
  min-width: 0;
}

@media (max-width: 1100px) {
  .reference-shell .reference-stats,
  .reference-shell .room-grid,
  .reference-shell .hotel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reference-shell .reference-board,
  .reference-shell .live-grid {
    grid-template-columns: 1fr;
  }

  .reference-shell .reference-lane {
    min-height: 0;
  }

  .reference-shell .reference-stats .stat {
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }
}

@media (max-width: 800px) {
  .reference-shell .dashboard-service {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .reference-shell .staff-utility {
    margin-left: 12px;
    margin-right: 12px;
    align-items: stretch;
  }

  .reference-shell .department-picker,
  .reference-shell .account-tools {
    width: 100%;
  }

  .reference-shell .department-picker select {
    flex: 1;
    min-width: 0;
    font-size: 14px;
  }

  .reference-shell .account-tools {
    justify-content: space-between;
    margin-left: 0;
  }

  .reference-shell .account-tools button,
  .reference-shell .account-role {
    font-size: 13px;
  }

  .reference-shell .staff-utility > span {
    display: block;
  }
}

@media (max-width: 700px) {
  .reference-shell .side-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .reference-shell .side-nav a {
    min-width: 4.5rem;
    min-height: 4rem;
    font-size: 12px;
    justify-content: center;
  }

  .reference-shell .content {
    padding: 16px 12px;
  }

  .reference-shell .settings-row,
  .reference-shell .reference-stats,
  .reference-shell .room-grid,
  .reference-shell .hotel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-shell .heading .btn,
  .reference-shell .toolbar .btn,
  .reference-shell .inline-actions .btn {
    width: 100%;
  }
}
