.hk-parity-panel {
  min-width: 0;
}

.hk-parity-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
  align-items: stretch;
}

.hk-parity-main-grid,
.hk-payroll-work-area {
  min-height: 430px;
}

.hk-parity-main-grid > .panel,
.hk-payroll-work-area > .panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 430px;
}

.hk-parity-table-wrap {
  min-width: 0;
  height: 100%;
  max-height: none;
}

.hk-chart-form,
.hk-payroll-rule-form {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) minmax(140px, auto);
}

.hk-payroll-employee-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px auto auto minmax(220px, 1.4fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.hk-parity-status {
  align-self: center;
  white-space: normal;
}

.hk-payroll-adjustment {
  grid-template-rows: auto auto auto minmax(220px, 1fr) !important;
}

.hk-payroll-review {
  width: 100%;
  min-height: 220px;
  margin-top: 10px;
  resize: vertical;
  white-space: pre-wrap;
}

.hk-checkbox {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1180px) {
  .hk-parity-split,
  .hk-payroll-employee-toolbar {
    grid-template-columns: 1fr;
  }

  .hk-chart-form,
  .hk-payroll-rule-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
