.supplier-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.supplier-contact a {
  display: block;
  color: #286854;
  text-decoration: none;
}

.supplier-name {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: #286854;
  text-align: left;
  font-weight: 750;
}

.supplier-name:hover {
  text-decoration: underline;
}

.supplier-contact small {
  display: block;
}

.danger-link {
  color: #8f332b;
}

.supplier-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #dce3df;
  border-top: 0;
  border-radius: 0 0 11px 11px;
  background: #fff;
  color: #68756f;
  font-size: 13px;
}

.supplier-pagination div {
  display: flex;
  gap: 8px;
}

#suppliers-page .table-panel {
  border-radius: 0;
}

#orders-page .table-panel {
  border-radius: 0;
}

.supplier-form-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
  overflow: auto;
}

.supplier-form-body label {
  color: #596861;
  font-size: 12px;
  font-weight: 700;
}

.supplier-form-body input,
.supplier-form-body textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
}

.supplier-form-body .wide {
  grid-column: 1 / -1;
}

.supplier-form-body .supplier-email-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #dce3df;
  border-radius: 9px;
  background: #f8faf9;
}

.supplier-form-body .supplier-email-toggle input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
}

.supplier-email-toggle strong,
.supplier-email-toggle small {
  display: block;
}

.supplier-email-toggle small {
  margin-top: 4px;
  color: #718079;
  font-weight: 450;
  line-height: 1.4;
}

#supplier-dialog {
  width: min(720px, calc(100% - 32px));
}

#supplier-dialog form {
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 40px));
}

#supplier-dialog .modal-head,
#supplier-dialog .modal-footer {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .supplier-form-body { grid-template-columns: 1fr; }
  .supplier-form-body .wide { grid-column: auto; }
}
