.panel-resource-overview-host,
.resource-overview-panel,
.resource-overview-grid {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.panel-resource-overview-host {
  padding: 0;
  overflow: hidden;
}
.resource-overview-panel {
  position: relative;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  background: #1f2021;
}
.resource-overview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 8px;
  border-bottom: 1px solid #4b4d4f;
  background: #2b2d2f;
}
.resource-overview-summary {
  display: flex;
  gap: 12px;
  color: #b8bdc2;
  font-size: 12px;
  white-space: nowrap;
}
.resource-overview-summary strong {
  color: #f0f0f0;
  font-size: 14px;
}
.resource-overview-search {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 150px;
  max-width: 300px;
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid #55595d;
  border-radius: 4px;
  background: #202122;
}
.resource-overview-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f0f0;
}
.resource-overview-header button {
  min-width: 30px;
  min-height: 28px;
  border: 1px solid #55595d;
  border-radius: 4px;
  background: #373a3d;
  color: #f0f0f0;
  cursor: pointer;
}

.resource-overview-grid {
  --ag-background-color: #202122;
  --ag-foreground-color: #f0f0f0;
  --ag-header-background-color: #37393a;
  --ag-header-foreground-color: #f4f4f4;
  --ag-odd-row-background-color: #242526;
  --ag-row-hover-color: #303335;
  --ag-border-color: #4b4d4f;
  --ag-secondary-border-color: #454749;
  --ag-font-family: Arial, system-ui, sans-serif;
  --ag-font-size: 13px;
  --ag-grid-size: 4px;
  --ag-row-border-color: #333537;
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-color: #606264;
  --ag-wrapper-border-radius: 0;
}
.resource-overview-grid .ag-root-wrapper {
  border: 0;
}
.resource-overview-grid .ag-cell {
  display: flex;
  align-items: center;
}
.resource-overview-resource {
  display: flex;
  flex-direction: column;
  line-height: 15px;
}
.resource-overview-resource small {
  color: #aeb4ba;
  font-size: 10px;
}
.resource-overview-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.resource-overview-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b949e;
  content: "";
}
.resource-overview-state.state-assigned::before {
  background: #58a6ff;
}
.resource-overview-state.state-break::before {
  background: #d99530;
}
.resource-overview-state.state-available::before {
  background: #57ab5a;
}
.resource-overview-state.state-unstaffed::before,
.resource-overview-state.state-no-shift::before {
  background: #d1495b;
}
.resource-overview-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.resource-overview-tag {
  display: inline-block;
  flex: 0 0 auto;
  max-width: 190px;
  padding: 1px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #555b61;
  color: #fff;
  font: inherit;
  font-size: 11px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.resource-overview-tag {
  cursor: pointer;
  background: #176aa1;
}
.resource-overview-flags .resource-overview-tag {
  background: #8c4b2f;
  color: #fff2e8;
}
.resource-overview-message {
  position: absolute;
  inset: 42px 0 auto;
  z-index: 3;
  margin: 0;
  padding: 18px;
  color: #aeb4ba;
  background: #202122;
}
.resource-overview-message[hidden] {
  display: none;
}
.resource-overview-panel.is-stale .resource-overview-message {
  background: #382a20;
}

@media (max-width: 900px) {
  .resource-overview-summary span:nth-child(2),
  .resource-overview-summary span:nth-child(3) {
    display: none;
  }
}
