.cash-services-page {
  max-width: 1540px;
  margin: 0 auto;
  padding: 22px;
}

.cash-services-page .page-heading h1 {
  color: #17375f;
}

.cash-services-page .page-heading h1 span {
  color: #2667ed;
}

.cash-services-actions {
  display: flex;
  gap: 10px;
}

.cash-services-history {
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(19, 49, 88, .08);
}

.cash-services-history .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  border-bottom: 1px solid #e7eef7;
  background: linear-gradient(115deg, #fff, #f4f8ff);
}

.cash-services-history .panel-header h2 {
  margin: 4px 0 0;
  color: #18375f;
  font-size: 19px;
}

.cash-services-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid #e7eef7;
  background: #fbfdff;
}

.cash-services-toolbar .search {
  width: min(460px, 100%);
}

.cash-services-bulk-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: #647d9b;
  font-size: 11px;
  font-weight: 700;
}

.cash-service-selection {
  width: 42px;
  min-width: 42px;
  text-align: center;
}

.cash-service-selection input {
  width: 16px;
  height: 16px;
  accent-color: #2667ed;
  cursor: pointer;
}

.cash-services-search-icon {
  color: #597595;
  font-size: 19px;
}

.cash-services-live {
  padding: 7px 10px;
  border: 1px solid #c9ead9;
  border-radius: 999px;
  color: #278457;
  background: #f2fcf6;
  font-size: 10px;
  font-weight: 800;
}

.cash-services-table-wrap table {
  min-width: 1740px;
  border-collapse: separate;
  border-spacing: 0;
}

.cash-services-table-wrap th {
  padding: 13px 15px;
  border-right: 1px solid #e6edf6;
  border-bottom: 1px solid #dfe8f4;
  color: #7084a2;
  background: #f6f9fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .65px;
  text-transform: uppercase;
}

.cash-services-table-wrap td {
  padding: 14px 15px;
  border-right: 1px solid #edf2f8;
  border-bottom: 1px solid #edf2f8;
  vertical-align: middle;
  color: #243d61;
  font-size: 12px;
}

.cash-services-table-wrap th:last-child,
.cash-services-table-wrap td:last-child {
  border-right: 0;
}

.cash-services-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.cash-services-table-wrap .cash-service-payment-proof,
.cash-services-table-wrap .cash-service-pdf-links {
  vertical-align: middle;
}

.cash-service-folio {
  min-width: 185px;
}

.cash-service-registration {
  display: block;
  margin-top: 6px;
  color: #7185a0;
  font: 600 9px/1.45 'DM Sans', sans-serif;
}

.cash-service-status {
  min-width: 145px;
  padding: 7px 9px;
  border: 1px solid #e7c674;
  border-radius: 7px;
  color: #8b6510;
  background: #fff7da;
  font: 800 10px 'DM Sans', sans-serif;
}

.cash-service-status.is-paid {
  border-color: #bfe7d0;
  color: #18744b;
  background: #f0fbf5;
}

.cash-service-pdf-links {
  display: grid;
  gap: 6px;
  min-width: 108px;
}

.cash-service-pdf-links .table-action {
  width: fit-content;
}

.cash-service-pdf-links .cash-service-file-action {
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.cash-service-existing-invoices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cash-service-existing-invoices .table-action {
  width: fit-content;
}

.cash-service-payment-proof {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.cash-service-payment-proof .table-action {
  width: fit-content;
}

.cash-service-file-modal {
  width: min(940px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
}

.cash-service-file-modal h2 {
  margin: 4px 0 14px;
  color: #17375f;
}

.cash-service-file-viewer {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 20px;
  border: 1px solid #d7e3f2;
  border-radius: 10px;
  color: #426484;
  background: #f6f9fd;
  line-height: 1.5;
}

.cash-service-file-viewer strong,
.cash-service-file-viewer p {
  margin: 0;
}

.cash-service-payment-proof-modal {
  width: min(520px, calc(100vw - 28px));
}

.cash-service-payment-proof-modal label {
  display: block;
  margin-top: 16px;
  color: #405878;
  font-size: 12px;
  font-weight: 700;
}

.cash-service-payment-proof-modal input {
  box-sizing: border-box;
  width: 100%;
  min-height: 41px;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid #d5e1ef;
  border-radius: 8px;
}

.cash-services-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  color: #7084a2;
  background: #fbfdff;
  font-size: 11px;
  font-weight: 700;
}

.cash-services-pagination div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cash-services-pagination strong {
  color: #284b75;
}

.cash-service-modal {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
}

.cash-service-modal h2,
.cash-service-import-modal h2 {
  margin: 4px 0 8px;
  color: #17375f;
}

.cash-service-modal label,
.cash-service-import-modal label {
  display: block;
  margin-top: 15px;
  color: #405878;
  font-size: 12px;
  font-weight: 700;
}

.cash-service-modal input,
.cash-service-import-modal input {
  box-sizing: border-box;
  width: 100%;
  min-height: 41px;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid #d5e1ef;
  border-radius: 8px;
  color: #193758;
  font: 500 13px 'DM Sans', sans-serif;
}

.cash-service-time-range {
  display: block;
  margin-top: 15px;
  color: #405878;
  font-size: 12px;
  font-weight: 700;
}

.cash-service-time-range > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.cash-service-time-range label {
  margin: 0;
  color: #7185a0;
  font-size: 10px;
}

.cash-service-time-range input {
  margin-top: 4px;
}

.cash-service-form-note,
.cash-service-import-guide {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #d7e8f8;
  border-radius: 9px;
  color: #426484;
  background: #f4f9ff;
  font-size: 12px;
  line-height: 1.45;
}

.cash-service-import-modal {
  width: min(600px, calc(100vw - 28px));
}

.cash-service-import-guide {
  display: grid;
  gap: 6px;
}

.cash-service-import-guide strong {
  color: #1d5fd6;
}

.cash-service-import-guide small {
  color: #7185a0;
}

@media (max-width: 700px) {
  .cash-services-page {
    padding: 16px;
  }

  .cash-services-page .page-heading,
  .cash-services-actions,
  .cash-services-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .cash-services-actions .primary-button,
  .cash-services-actions .secondary-button {
    width: 100%;
  }
}
