.resources-modal {
  width: min(1320px, 100%);
  height: min(860px, 92vh);
  padding: 0;
  overflow: hidden;
  background: #f4f4f4;
  font-family: Arial, sans-serif;
}
.resources-modal > .modal-head {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #b9bec5;
  background: linear-gradient(#fff, #e9ebed);
}
.resources-modal > .modal-head h2 { font: 600 20px Arial, sans-serif; color: #333; }
.resources-modal > .modal-head p { color: #1f6ca8; }
.resources-modal > .modal-head span { color: #5b626b; }
.resources-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #b9bec5;
  background: #e7e9ec;
}
.resources-toolbar label { min-width: 260px; margin: 0; }
.resources-toolbar select { background: #fff; }
.resource-browser {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 0;
  height: calc(100% - 137px);
  min-height: 480px;
  background: #fff;
}
.resource-tree {
  overflow: auto;
  border-right: 1px solid #aeb4bc;
  padding: 7px 4px;
  background: #fff;
  font-size: 12px;
}
.resource-group { margin-bottom: 5px; }
.resource-group > button, .resource-node > button, .resource-vm {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #222;
  text-align: left;
  padding: 4px 5px;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.resource-group > button { font-weight: 700; }
.resource-node { margin-left: 13px; }
.resource-node > button { font-weight: 600; }
.resource-vm { margin-left: 25px; width: calc(100% - 25px); }
.resource-vm:hover, .resource-node > button:hover, .resource-group > button:hover { background: #d7e8f6; }
.resource-vm.selected, .resource-node > button.selected { background: #bad7ee; }
.resource-dot { width: 8px; height: 8px; border-radius: 50%; background: #24a148; flex: 0 0 auto; }
.resource-dot.off { background: #d64045; }
.resource-icon { width: 18px; color: #1c6ca1; text-align: center; }
.resource-detail { overflow: auto; padding: 0; background: #f8f8f8; }
.resource-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 17px;
  border-bottom: 1px solid #bbb;
  background: linear-gradient(#fff, #ededed);
}
.resource-detail-head h3 { margin: 0 0 4px; font-size: 17px; color: #1670b7; font-weight: 400; }
.resource-detail-head p { margin: 0; color: #555; font-size: 11px; }
.resource-detail-status { height: max-content; padding: 4px 9px; border-radius: 2px; background: #daf0dc; color: #177a30; font-size: 10px; font-weight: 700; }
.resource-detail-status.off { background: #f8d9dc; color: #b3232c; }
.resource-metrics { display: grid; grid-template-columns: 1fr; margin: 15px; border: 1px solid #b8bdc4; background: #fff; }
.resource-metric {
  display: grid;
  grid-template-columns: 190px 160px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid #e0e0e0;
}
.resource-metric:last-child { border-bottom: 0; }
.resource-metric small { color: #333; font-size: 10px; }
.resource-metric strong { font-size: 12px; font-weight: 400; text-align: right; }
.resource-meter { height: 12px; border: 1px solid #a9b0b7; background: #f3f3f3; overflow: hidden; box-shadow: inset 0 1px 2px #ccc; }
.resource-meter i { display: block; height: 100%; background: linear-gradient(#71b7e5, #2787c4); }
.resource-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 15px; border: 1px solid #b8bdc4; background: #fff; }
.resource-facts div { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #e0e0e0; font-size: 11px; }
.resource-facts span { color: #555; }
@media (max-width: 800px) {
  .resource-browser { grid-template-columns: 1fr; height: auto; }
  .resource-tree { max-height: 300px; border-right: 0; border-bottom: 1px solid #aaa; }
  .resource-metric { grid-template-columns: 1fr; }
  .resource-metric strong { text-align: left; }
  .resource-facts { grid-template-columns: 1fr; }
}
