.device-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.device-footer .device-state {
  margin-top: 0;
}

.device-host {
  display: block;
  color: #8a96a8;
  font-size: 10px;
  margin-top: 3px;
}

.device-card-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.icon-button svg,
.icon-state svg,
.shell-warning svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-state {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
}

.icon-state.locked {
  color: #b83535;
  background: #ffe7e7;
}

.icon-state.unlocked {
  color: #14795f;
  background: #daf7ed;
}

.icon-state.maintenance {
  color: #9a6417;
  background: #fff0d3;
}

.shell-warning {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a06b16;
}

.shell-warning svg {
  width: 15px;
  height: 15px;
}

button.compact {
  padding: 8px 10px;
  font-size: 12px;
}

.application-actions,
.configuration-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.application-actions button {
  padding: 8px 11px;
}

.application-actions .toggle {
  padding: 3px;
}

.permission-label {
  color: #657187;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.permission-label.mixed {
  color: #9a6417;
}

.toggle.mixed {
  background: #e7ad54;
}

.toggle.mixed::after {
  margin-left: 11px;
}

.modal-card.large {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
}

.configuration-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.configuration-actions {
  margin: 18px 0;
}

.shell-status {
  padding: 7px 10px;
  border-radius: 9px;
  background: #eef1f7;
  color: #657187;
  font-size: 12px;
  font-weight: 800;
}

.shell-status.active {
  background: #daf7ed;
  color: #14795f;
}

.inventory-search {
  display: grid;
  gap: 7px;
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.inventory-search input {
  padding: 11px 12px;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
}

.inventory-list {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid #e3e9f2;
  border-radius: 13px;
}

.inventory-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 13px 15px;
  border-bottom: 1px solid #edf1f6;
}

.inventory-row:last-child {
  border-bottom: 0;
}

.inventory-row small {
  display: block;
  margin-top: 3px;
  color: #8490a3;
  word-break: break-all;
}

.page-back {
  margin: 0 0 24px;
  padding: 0;
  color: #52627f;
  font-weight: 800;
}

.device-configuration-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.device-configuration-heading h3 {
  margin: 6px 0;
  font-size: 30px;
}

.configuration-toolbar {
  margin: 24px 0 18px;
}

.configuration-list {
  max-height: none;
  background: #fff;
}

.configuration-list .inventory-row {
  padding: 20px 24px;
}

@media (max-width: 850px) {
  .application-actions {
    grid-column: 1 / 3;
    justify-content: flex-start;
  }

  .configuration-head {
    display: block;
  }

  .device-configuration-heading {
    display: block;
  }

  .shell-status {
    display: inline-block;
    margin-bottom: 10px;
  }
}
