/* src/components/PersonnelAffairs/agreements/agreementIssue.css */
.agreement-signing-summary {
  border: 1px solid #dce5e8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f6f9fa;
  display: grid;
  gap: 4px;
}
.agreement-signing-summary span,
.agreement-signing-summary small {
  font-size: 12px;
  color: #657984;
}
.agreement-signing-summary strong {
  font-size: 14px;
  color: #2c4e5c;
  font-weight: 600;
}
.agreement-issue-items .agreement-items-heading h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.agreement-issue-items > .agreement-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.agreement-issue-choices {
  border: 0;
  padding: 0;
  margin: 0 0 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.agreement-issue-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfdde3;
  border-radius: 7px;
  background: #fff;
  padding: 10px;
  min-height: 42px;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}
.agreement-issue-choices label:has(input:checked) {
  background: #eaf2f5;
  border-color: #84a7b6;
  color: #244e61;
}
.agreement-issue-choices input[type=checkbox] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: #315c6c;
  flex: 0 0 16px;
}
.agreement-issue-items .agreement-item {
  padding: 12px 14px;
}
.agreement-issue-items .agreement-item legend {
  font-size: 12px;
}
.agreement-issue-items .agreement-item-heading {
  margin-bottom: 10px;
}
.agreement-issue-items .agreement-item-heading strong {
  font-size: 14px;
}
.agreement-issue-items .agreement-item-details {
  margin-top: 12px;
  border-top: 1px solid #e0e7ea;
  padding-top: 9px;
}
.agreement-item-details summary {
  font-size: 12px;
  font-weight: 600;
  color: #526f7e;
  cursor: pointer;
}
.agreement-item-details[open] summary {
  margin-bottom: 10px;
}
.agreement-add-other {
  justify-self: start;
}
.agreement-issue-items .agreement-fields-grid {
  gap: 10px 14px;
}
.agreement-issue-items input::placeholder {
  font-size: 12px;
}
.agreement-issue-items .agreement-row-actions {
  gap: 12px;
}
@media (max-width:600px) {
  .agreement-issue-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agreement-issue-items .agreement-item-heading {
    align-items: flex-start;
  }
  .agreement-issue-items .agreement-fields-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .agreement-issue-choices label {
    min-height: 44px;
  }
  .agreement-issue-items .agreement-row-actions {
    gap: 8px;
  }
  .agreement-issue-items input,
  .agreement-issue-items select {
    font-size: 16px !important;
  }
}
.agreement-model-picker {
  position: relative;
  min-width: 0;
}
.agreement-model-picker input {
  padding-right: 34px;
}
.agreement-model-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #526f7e;
  cursor: pointer;
  padding: 0;
}
.agreement-model-toggle:hover {
  background: #edf3f6;
}
.agreement-model-toggle:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.agreement-model-popup {
  z-index: 16000;
  border: 1px solid #bacdd7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 22px #20374624;
  overflow: auto;
  color: #294452;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
}
.agreement-model-help {
  padding: 9px 11px;
  border-bottom: 1px solid #e2e9ed;
  font-weight: 600;
  background: #f4f7f9;
  position: sticky;
  top: 0;
}
.agreement-model-help span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #657c88;
  margin-top: 2px;
}
.agreement-model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  cursor: pointer;
  box-sizing: border-box;
  font-weight: 400;
}
.agreement-model-option.is-active,
.agreement-model-option:hover {
  background: #e7f0f5;
}
.agreement-model-option[aria-selected=true] {
  color: #234e64;
  font-weight: 600;
}
.agreement-model-empty {
  padding: 10px 11px;
  margin: 0;
  color: #657c88;
  font-size: 12px;
}
@media (max-width:600px) {
  .agreement-model-option {
    min-height: 44px;
    font-size: 14px;
  }
  .agreement-model-toggle {
    width: 34px;
  }
}
.agreement-item-model-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
