.rm-head h1,
.rm-line-main,
.rm-pairs dd {
  overflow-wrap: anywhere;
}
.rm-panel {
  margin-bottom: 15px;
  overflow: hidden;
}
.rm-panel .panel-head h2 {
  font-size: 17px;
}
.rm-empty {
  padding: 23px 19px;
  color: var(--muted);
  font-size: 14px;
}
.rm-list {
  display: grid;
}
.rm-line {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  width: 100%;
  text-align: left;
  padding: 13px 19px;
  margin: 0;
  min-height: 59px;
  font-size: 14px;
  line-height: 1.4;
}
.rm-line + .rm-line {
  border-top: 1px solid var(--line);
}
.rm-line:hover,
.rm-line:focus-visible {
  background: #f6f9f3;
}
.rm-line > .ico:last-child {
  color: #748371;
}
.rm-line-main {
  flex: 1;
  min-width: 0;
}
.rm-line-main b,
.rm-line-main small {
  display: block;
}
.rm-line-main b {
  font-weight: 600;
}
.rm-line-main small {
  font-size: 12px;
  margin-top: 2px;
}
.rm-workplace + .rm-workplace {
  border-top: 1px solid var(--line);
}
.rm-workplace > summary {
  cursor: pointer;
  list-style: none;
}
.rm-workplace > summary::-webkit-details-marker {
  display: none;
}
.rm-workplace[open] > summary {
  background: #f3f7ef;
  border-bottom: 1px solid var(--line);
}
.rm-workplace[open] > summary > .ico:last-child {
  transform: rotate(180deg);
}
.rm-workplace-counts {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 35%;
}
.rm-workplace-body {
  border-left: 3px solid #c4d7b9;
  margin: 10px 18px 17px;
  background: white;
}
.rm-workplace-body .rm-pairs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rm-workplace-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 19px 16px;
}
.rm-ip-source {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.rm-ip-source a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rm-workplace-body > .rm-ip-source {
  margin: -3px 19px 16px;
}
.rm-workplace-equipment {
  border-top: 1px solid var(--line);
}
.rm-workplace-equipment > h3 {
  padding: 15px 19px 3px;
  font-size: 14px;
}
.rm-workplace-equipment .equipment-group {
  margin-inline: 8px;
}
@media (max-width: 850px) {
  .rm-workplace-body .rm-pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .rm-workplace > summary {
    flex-wrap: wrap;
  }
  .rm-workplace-counts {
    order: 1;
    justify-content: flex-start;
    max-width: 100%;
    width: 100%;
    padding-left: 38px;
  }
  .rm-workplace-body {
    margin: 8px 9px 13px;
  }
  .rm-workplace-body .rm-pairs {
    grid-template-columns: 1fr;
  }
  .rm-workplace-actions {
    padding: 0 12px 13px;
  }
  .rm-workplace-body > .rm-ip-source {
    margin-inline: 12px;
  }
  .rm-workplace-actions > .row-actions,
  .rm-workplace-actions > .remote-actions {
    width: 100%;
  }
}
.rm-building-head {
  flex-wrap: wrap;
}
.rm-building-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rm-building-head h2 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rm-building-head h2 a:hover {
  text-decoration: underline;
}
.rm-floor + .rm-floor,
.rm-room-row + .rm-room-row {
  border-top: 1px solid var(--line);
}
.rm-floor > summary {
  cursor: pointer;
  list-style: none;
}
.rm-floor > summary::-webkit-details-marker {
  display: none;
}
.rm-floor[open] > summary {
  background: #f3f7ef;
}
.rm-floor[open] > summary > .ico:last-child {
  transform: rotate(180deg);
}
.rm-floor-content {
  border-inline-start: 2px solid var(--line);
  margin: 8px 14px 10px 34px;
}
.rm-floor-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 10px;
}
.rm-room-row {
  display: flex;
  align-items: center;
  padding-right: 4px;
}
.rm-room-row > .rm-line {
  flex: 1;
  min-width: 0;
}
.rm-tile {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #f0f4ed;
  color: #51654c;
  border: 1px solid #e1e8dc;
  border-radius: 8px;
  flex: none;
}
.rm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff2ed;
  color: #576153;
  font-size: 12px;
  font-weight: 580;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.4;
}
.rm-chip.green,
.rm-feedback.green {
  background: #eaf5e2;
  color: #416833;
}
.rm-chip.amber,
.rm-feedback.amber {
  background: #fcf1db;
  color: #866027;
}
.rm-chip.violet {
  background: #f0ecf6;
  color: #726085;
}
.rm-chip.blue {
  background: #eaf1f7;
  color: #4c6d88;
}
.rm-crumbs,
.rm-session-meta,
.rm-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rm-crumbs,
.rm-session-meta {
  font-size: 12px;
  color: var(--muted);
}
.rm-crumbs a:hover,
.rm-session-meta a:hover {
  text-decoration: underline;
  color: var(--green-dark);
}
.rm-crumbs span {
  font-weight: 600;
  color: var(--ink);
}
.rm-crumbs > a,
.rm-crumbs > span {
  overflow-wrap: anywhere;
}
.rm-tools {
  margin-top: -5px;
}
.rm-search {
  margin-bottom: 15px;
}
.rm-search .search {
  max-width: 560px;
}
.rm-pairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 16px 19px;
}
.rm-pairs dt {
  font-size: 12px;
  color: var(--muted);
}
.rm-pairs dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.rm-context {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #f3f6f0;
  font-size: 13px;
  line-height: 1.45;
  color: #51604d;
  margin: 0 0 13px;
}
.field + .rm-context {
  margin-top: 12px;
}
.rm-fields {
  display: grid;
  gap: 15px;
}
.rm-fieldset {
  border: 1px solid var(--line);
  padding: 8px 12px 12px;
  border-radius: 8px;
  margin: 0;
  min-width: 0;
}
.rm-fieldset legend,
.rm-permissions summary {
  font-size: 14px;
  font-weight: 600;
}
.rm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink);
}
.rm-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
}
[data-court-list] {
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  margin-top: 5px;
  padding-top: 5px;
}
.rm-notes {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 10px;
}
.rm-permissions {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}
.rm-permissions summary {
  cursor: pointer;
}
.rm-permissions[open] summary {
  margin-bottom: 11px;
}
.rm-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.rm-right > span {
  flex: 1;
  min-width: 0;
}
.rm-right select {
  font-size: 12px;
  max-width: 50%;
  padding: 6px;
}
.rm-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaeee7;
  width: max-content;
  max-width: 100%;
}
.rm-tabs a {
  display: block;
  text-align: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 550;
  border-radius: 5px;
  color: var(--muted);
}
.rm-tabs .active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #1a2d1a16;
}
.rm-session-meta {
  margin-top: -6px;
  margin-bottom: 16px;
  gap: 10px;
}
.rm-session-meta > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--green-dark);
}
.rm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.rm-stat {
  display: grid;
  gap: 9px;
  padding: 13px 16px;
}
.rm-stat > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.rm-stat b {
  font-size: 27px;
  line-height: 1.1;
  font-weight: 650;
}
.rm-stat .green {
  color: #487639;
}
.rm-stat .amber {
  color: #8b692d;
}
.rm-stat .violet {
  color: #77608a;
}
.rm-scan {
  padding: 17px 19px;
}
.rm-scan h2 {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rm-scan p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.rm-scan form {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.rm-scan .search {
  flex: 1;
  min-width: 145px;
}
.rm-feedback {
  margin-top: 12px;
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 6px;
}
.rm-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}
.rm-group::-webkit-details-marker {
  display: none;
}
.rm-group > .ico {
  margin-left: auto;
}
.rm-panel[open] .rm-group {
  border-bottom: 1px solid var(--line);
}
.rm-panel[open] .rm-group > .ico {
  transform: rotate(180deg);
}
@media (max-width: 580px) {
  .rm-floor-content {
    margin-inline: 13px 6px;
  }
  .rm-line {
    padding: 12px;
    gap: 8px;
  }
  .rm-tile {
    width: 30px;
    height: 30px;
  }
  .rm-chip {
    font-size: 11px;
  }
  .rm-crumbs {
    gap: 4px;
    margin-bottom: 9px;
  }
  .rm-pairs {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 13px;
  }
  .rm-pairs > div {
    display: grid;
    grid-template-columns: minmax(105px, 0.7fr) 1fr;
    gap: 8px;
  }
  .rm-pairs dd {
    margin: 0;
  }
  .rm-stats {
    gap: 6px;
  }
  .rm-stat {
    padding: 10px;
    gap: 8px;
  }
  .rm-stat > span {
    font-size: 11px;
    align-items: flex-start;
  }
  .rm-stat > span .ico {
    display: none;
  }
  .rm-stat b {
    font-size: 24px;
  }
  .rm-scan {
    padding: 14px;
  }
  .rm-scan .search {
    flex: 1 1 calc(100% - 105px);
  }
  .rm-scan [data-rm='scan-asset'] {
    width: 100%;
  }
  .rm-crumbs a,
  .rm-tabs a,
  .rm-check {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .rm-check {
    display: flex;
  }
  .rm-right {
    display: grid;
    gap: 4px;
  }
  .rm-right select {
    max-width: 100%;
  }
}
@media (max-width: 650px) {
  .rm-line > .badge {
    max-width: 35%;
    white-space: normal;
    flex: none;
  }
}
