.financial-action-history-modal .modal-dialog {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 1.75rem auto;
}

.financial-action-history-modal .modal-content {
  border: 0;
  border-radius: 12px !important;
  overflow: hidden;
}

.financial-action-history-modal .modal-header {
  align-items: center;
  border-bottom: 1px solid #e5eaf0 !important;
  padding: 20px 24px !important;
}

.financial-action-history-modal .modal-title {
  color: #2b3a55;
  font-size: 20px !important;
  line-height: 1.4;
}

.financial-action-history-modal .modal-header .close {
  margin: -8px -8px -8px 16px;
  padding: 8px;
}

.financial-action-history-modal .modal-body {
  padding: 20px 24px !important;
}

.financial-action-history-modal .financial-history-table-wrap {
  border: 1px solid #e5eaf0;
  border-radius: 8px;
}

.financial-action-history-modal .financial-history-table {
  table-layout: fixed;
  width: 100%;
  min-width: 1020px;
  margin-bottom: 0;
}

.financial-history-col-time { width: 170px; }
.financial-history-col-actor { width: 140px; }
.financial-history-col-action { width: 140px; }
.financial-history-col-result { width: 125px; }
.financial-history-col-remark { width: 25%; }

.financial-action-history-modal .financial-history-table th,
.financial-action-history-modal .financial-history-table td {
  padding: 14px 12px !important;
  text-align: left !important;
  vertical-align: top;
  font-size: 13px !important;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.financial-action-history-modal .financial-history-table th {
  background: #f4f6fa;
  border-top: 0;
  border-bottom: 1px solid #e5eaf0;
  color: #53627b;
  font-weight: 600;
}

.financial-action-history-modal .financial-history-table th::before {
  display: none;
}

.financial-action-history-modal .financial-history-table tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

.financial-action-history-modal .financial-history-table td {
  border-top: 1px solid #edf1f6;
  color: #42536e;
}

.financial-action-history-modal .financial-history-table .financial-history-time {
  white-space: nowrap;
}

.financial-action-history-modal .financial-history-table .financial-history-result {
  text-align: center !important;
}

.financial-history-status {
  display: inline-block;
  max-width: 100%;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}

.financial-history-status--succeeded { background: #e7f6ef; color: #18794e; }
.financial-history-status--failed { background: #fdecec; color: #b42318; }
.financial-history-status--pending { background: #fff5dd; color: #946200; }
.financial-history-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.financial-history-changes > div + div { margin-top: 6px; }

.financial-action-history-modal .financial-history-table .financial-history-empty {
  padding: 32px 16px !important;
  text-align: center !important;
}

.financial-history-footer,
.financial-history-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.financial-history-footer {
  justify-content: space-between;
  padding-top: 16px;
  font-size: 13px;
}

.financial-history-pages { gap: 8px; }

@media (max-width: 575px) {
  .financial-action-history-modal .modal-header { padding: 16px !important; }
  .financial-action-history-modal .modal-body { padding: 16px !important; }
  .financial-history-pages { margin-left: auto; }
}
