.period-preview-table .period-amendment-cell { min-width: 148px; }
.period-amendment-state { display: grid; gap: 5px; min-width: 142px; }
.period-amendment-state span { font-size: 12px; font-weight: 800; color: #5d6d86; }
.period-amendment-state.pending span { color: #b45309; }
.period-amendment-state.pending strong { color: #a63c08; }
.period-amendment-state.positive strong { color: #b54708; }
.period-amendment-state.negative strong { color: #176b4c; }
.period-amendment-actions { display: grid; gap: 7px; min-width: 96px; }

.settlement-amendment-editor {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #d7e3f7;
  border-radius: 20px;
  background: linear-gradient(145deg, #fbfdff 0%, #f3f7ff 100%);
  box-shadow: 0 14px 34px rgba(31, 58, 104, .08);
}
.settlement-amendment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid #dfe7f5; }
.settlement-amendment-heading > div { display: grid; gap: 5px; }
.settlement-amendment-kicker { color: #3670d7; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.settlement-amendment-heading b { color: #14294b; font-size: 21px; }
.settlement-amendment-heading p, .settlement-amendment-detail-block span { margin: 0; color: #70809a; font-size: 13px; line-height: 1.55; }
.settlement-amendment-notice { margin-top: 16px; padding: 13px 15px; border: 1px solid #f1d6a0; border-radius: 12px; background: #fffaf0; color: #8a5600; font-size: 14px; font-weight: 700; line-height: 1.55; }
.settlement-amendment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.settlement-amendment-fields label, .settlement-amendment-reason, .settlement-amendment-detail-fields label { display: grid; gap: 7px; color: #30425e; font-size: 13px; font-weight: 800; }
.settlement-amendment-editor input, .settlement-amendment-editor textarea { width: 100%; box-sizing: border-box; border: 1px solid #d7e1f0; border-radius: 11px; padding: 11px 12px; background: #fff; color: #172b4d; font: inherit; font-weight: 700; }
.settlement-amendment-editor textarea { min-height: 86px; resize: vertical; font-weight: 500; }
.settlement-amendment-editor input:focus, .settlement-amendment-editor textarea:focus { outline: 3px solid rgba(52, 112, 215, .14); border-color: #5d91e8; }
.settlement-amendment-detail-block { margin-top: 20px; padding: 17px; border: 1px solid #e0e8f5; border-radius: 15px; background: rgba(255,255,255,.78); }
.settlement-amendment-detail-block > div:first-child { display: grid; gap: 4px; }
.settlement-amendment-detail-block b { color: #203a63; }
.settlement-amendment-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.settlement-amendment-reason { margin-top: 18px; }
.settlement-amendment-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 18px; }

@media (max-width: 680px) {
  .settlement-amendment-editor { padding: 18px; border-radius: 17px; }
  .settlement-amendment-heading { gap: 10px; }
  .settlement-amendment-heading b { font-size: 18px; }
  .settlement-amendment-fields, .settlement-amendment-detail-fields { grid-template-columns: 1fr; }
  .settlement-amendment-actions { display: grid; grid-template-columns: 1fr; }
  .settlement-amendment-actions .rider-action { width: 100%; min-height: 46px; }
}
