.emt-poe-budget .emt-device-groups {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.emt-poe-budget .emt-device-group {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--emt-calc-line);
  border-radius: var(--emt-calc-radius-small);
  background: var(--emt-calc-bg);
}

.emt-poe-budget .emt-device-group > legend {
  padding: 0 8px;
  font-weight: 800;
}

.emt-poe-budget .emt-device-group__remove {
  position: absolute;
  top: 15px;
  right: 16px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--emt-calc-danger);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.emt-poe-budget .emt-device-group__remove:hover,
.emt-poe-budget .emt-device-group__remove:focus-visible {
  background: #fff0f0;
  outline: none;
}

.emt-poe-budget .emt-result__status {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--emt-calc-line);
  border-radius: var(--emt-calc-radius-small);
  background: var(--emt-calc-bg);
}

.emt-poe-budget .emt-result__status strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}

.emt-poe-budget .emt-result__status p {
  margin-bottom: 0;
}

.emt-poe-budget .emt-result__status--ok {
  border-color: #b8d7c8;
  background: #edf8f2;
}

.emt-poe-budget .emt-result__status--warning {
  border-color: #dfc777;
  background: #fff8df;
}

.emt-poe-budget .emt-result__status--error {
  border-color: #e2aaaa;
  background: #fff0f0;
}

.emt-poe-budget .emt-result__warnings {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #e4bd96;
  border-radius: var(--emt-calc-radius-small);
  background: #fff3e7;
}

.emt-poe-budget .emt-result__warnings h4 {
  margin-bottom: 8px;
}

.emt-poe-budget .emt-result__warnings ul {
  margin: 0;
  padding-left: 22px;
}

.emt-poe-budget .emt-result__warnings li + li {
  margin-top: 7px;
}

.emt-poe-budget .emt-poe-group-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.emt-poe-budget .emt-poe-group-status--ok {
  background: #e8f5ee;
  color: #15583f;
}

.emt-poe-budget .emt-poe-group-status--error {
  background: #ffe8e8;
  color: #8c2020;
}

@media print {
  .emt-poe-budget .emt-calculator__intro,
  .emt-poe-budget .emt-calculator__form,
  .emt-poe-budget .emt-result__actions,
  .emt-poe-budget .emt-copy-status {
    display: none !important;
  }

  .emt-poe-budget .emt-result {
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 680px) {
  .emt-poe-budget .emt-device-group {
    padding: 18px;
  }

  .emt-poe-budget .emt-device-group__remove {
    position: static;
    margin: 0 0 14px auto;
  }
}

.emt-poe-budget .emt-device-group__remove {
  min-height: 44px;
  min-width: 44px;
}

.emt-poe-budget .emt-group-preview {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px dashed #b9c6cf;
  border-radius: 10px;
  background: #ffffff;
  color: var(--emt-calc-muted);
  font-size: 14px;
  line-height: 1.45;
}

.emt-poe-budget .emt-group-preview--ready {
  border-style: solid;
  border-color: #c9d8ce;
  background: #f2f8f4;
  color: #244d3d;
}

@media (max-width: 680px) {
  .emt-poe-budget .emt-result-table-wrap {
    overflow: visible;
    border: 0;
  }

  .emt-poe-budget .emt-result-table-wrap table,
  .emt-poe-budget .emt-result-table-wrap tbody,
  .emt-poe-budget .emt-result-table-wrap tr,
  .emt-poe-budget .emt-result-table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .emt-poe-budget .emt-result-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .emt-poe-budget .emt-result-table-wrap tr {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--emt-calc-line);
    border-radius: 12px;
    background: #ffffff;
  }

  .emt-poe-budget .emt-result-table-wrap td {
    display: grid;
    grid-template-columns: minmax(105px, 42%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #edf1f4;
  }

  .emt-poe-budget .emt-result-table-wrap td:last-child {
    border-bottom: 0;
  }

  .emt-poe-budget .emt-result-table-wrap td::before {
    content: attr(data-label);
    color: var(--emt-calc-muted);
    font-size: 13px;
    font-weight: 800;
  }
}
