/* Preferences: support the shared settings markup in existing panel releases. */
.native-panel:has(> .native-table-scroll[aria-label="Forwarding rules table"]) {
  padding: 0;
}
.native-panel:has(> .native-table-scroll[aria-label="Forwarding rules table"]) > h2 {
  margin: 0;
  padding: 22px 22px 0;
}
.native-panel:has(> .native-table-scroll[aria-label="Forwarding rules table"]) > p {
  margin: 6px 22px 20px;
  color: #687487;
  font-size: 13px;
  line-height: 1.6;
}
.native-table-scroll[aria-label="Forwarding rules table"] {
  position: relative;
  max-width: 100%;
}
.native-table-scroll[aria-label="Forwarding rules table"] .native-table {
  white-space: normal;
  table-layout: fixed;
}
.native-table-scroll[aria-label="Forwarding rules table"] th button,
.native-table-scroll[aria-label="Forwarding rules table"] td {
  padding: 14px 22px;
}
.native-table-scroll[aria-label="Forwarding rules table"] th:nth-child(1) { width: 30%; }
.native-table-scroll[aria-label="Forwarding rules table"] th:nth-child(2) { width: 18%; }
.native-table-scroll[aria-label="Forwarding rules table"] th:last-child { width: 136px; }
.native-table-scroll[aria-label="Forwarding rules table"] td { overflow-wrap: anywhere; }
.native-table-scroll[aria-label="Forwarding rules table"] td:first-child { color: #3a4457; font-weight: 500; }
.native-table-scroll[aria-label="Forwarding rules table"] td:last-child { text-align: right; }
.native-table-scroll[aria-label="Forwarding rules table"] .text-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #e5ddef;
  border-radius: 8px;
  background: #fff;
  line-height: 18px;
  white-space: nowrap;
}
.native-table-scroll[aria-label="Forwarding rules table"] .text-button:hover {
  background: #f7f3fd;
  border-color: #bba2de;
}
.native-panel:has(> .server-form input[name="auto_record_all_calls"]) {
  padding: 22px;
}
.native-panel:has(> .server-form input[name="auto_record_all_calls"]) > h2 { margin: 0 0 8px; }
.native-panel:has(> .server-form input[name="auto_record_all_calls"]) > p {
  margin: 0 0 16px;
  color: #687487;
  font-size: 13px;
  line-height: 1.6;
}
.server-form:has(input[name="auto_record_all_calls"]) > .native-form-grid { grid-template-columns: minmax(0, 1fr); }
.server-form:has(input[name="auto_record_all_calls"]) .checkbox-field {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #4b576c;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.server-form input[name="auto_record_all_calls"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}
.server-form:has(input[name="auto_record_all_calls"]) > .native-form-actions {
  margin-top: 16px;
  padding-top: 16px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .native-panel:has(> .native-table-scroll[aria-label="Forwarding rules table"]) > h2 { padding: 18px 16px 0; }
  .native-panel:has(> .native-table-scroll[aria-label="Forwarding rules table"]) > p { margin: 6px 16px 18px; }
  .native-table-scroll[aria-label="Forwarding rules table"] .native-table,
  .native-table-scroll[aria-label="Forwarding rules table"] tbody { display: block; }
  .native-table-scroll[aria-label="Forwarding rules table"] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .native-table-scroll[aria-label="Forwarding rules table"] tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #eef0f5;
  }
  .native-table-scroll[aria-label="Forwarding rules table"] td { display: block; height: auto; padding: 0; border: 0; min-width: 0; }
  .native-table-scroll[aria-label="Forwarding rules table"] td:nth-child(2) { text-align: right; }
  .native-table-scroll[aria-label="Forwarding rules table"] td:nth-child(3) { grid-column: 1 / -1; }
  .native-table-scroll[aria-label="Forwarding rules table"] td:nth-child(3)::before { content: attr(data-label) ": "; color: #687487; }
  .native-table-scroll[aria-label="Forwarding rules table"] td:last-child { grid-column: 1 / -1; }
  .native-table-scroll[aria-label="Forwarding rules table"] .text-button { min-height: 44px; width: 100%; }
  .native-panel:has(> .server-form input[name="auto_record_all_calls"]) { padding: 18px 16px; }
  .server-form:has(input[name="auto_record_all_calls"]) > .native-form-actions .primary-button {
    min-height: 44px;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}
