.gpc-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #d8e6f6;
  border-radius: 6px;
  font: 500 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #f7fbff;
  cursor: pointer;
}

.gpc-open-btn:hover {
  background: #eef6ff;
}

.gpc-modal__dialog {
  width: min(880px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gpc-modal__title {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #eef3f9;
  font: 600 16px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.gpc-modal__body {
  padding: 12px 16px;
  overflow: auto;
}

.gpc-tables-wrap {
  margin: 0;
}

.gpc-table {
  margin: 8px 0 16px;
  padding: 8px 12px;
  border: 1px solid #e3eef7;
  border-radius: 8px;
  background: #f8fbff;
}

.gpc-table h4 {
  margin: 0 0 6px;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.gpc-table h4 small {
  font-weight: 400;
  opacity: 0.7;
}

.gpc-table h4 em {
  margin-left: auto;
  font-style: normal;
  opacity: 0.7;
}

.gpc-table table {
  width: 100%;
  border-collapse: collapse;
}

.gpc-table td {
  padding: 4px 6px;
  border-top: 1px solid #e3eef7;
  font: 13px/1.4 system-ui, Arial;
}

.gpc-table tr:first-child td {
  border-top: none;
}

.gpc-table a {
  text-decoration: none;
}

.gpc-table a:hover {
  text-decoration: underline;
}

#form-buttons .gpc-open-td {
  width: 24px;
  height: 24px;
  text-align: center;
  vertical-align: middle;
}

#form-buttons .gpc-open-btn {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

#form-buttons .gpc-open-btn {
  font: 700 14px/20px system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
