/* Agent balance request page */

.agent-balance-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.agent-balance-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(2, 29, 98, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.agent-balance-header {
  padding: 20px 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

.agent-balance-page .agent-balance-tabs.b2b_navul {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 0 16px;
  margin: 0;
}

.agent-balance-page .agent-balance-tabs.b2b_navul > li {
  float: none;
  margin: 0;
}

.agent-balance-page .agent-balance-tabs.b2b_navul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #dbe3ee !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
}

.agent-balance-page .agent-balance-tabs.b2b_navul > li > a:hover,
.agent-balance-page .agent-balance-tabs.b2b_navul > li > a:focus {
  background: #eef4ff !important;
  border-color: #003BCA !important;
  color: #003BCA !important;
}

.agent-balance-page .agent-balance-tabs.b2b_navul > li.active > a,
.agent-balance-page .agent-balance-tabs.b2b_navul > li.active > a:hover,
.agent-balance-page .agent-balance-tabs.b2b_navul > li.active > a:focus {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.agent-balance-body {
  padding: 24px;
}

.agent-balance-body .tab-content {
  float: none;
}

.agent-balance-body .tab-pane {
  float: none;
}

/* New request tab */
.agent-balance-deposit-panel {
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.agent-balance-request-type {
  max-width: none;
  margin-bottom: 20px;
}

.agent-balance-request-type label {
  display: block;
  margin: 0 0 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.agent-balance-page .agent-balance-request-type select,
.agent-balance-page .agent-balance-request-type .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

.agent-balance-page .agent-balance-request-type select.form-control,
.agent-balance-page .agent-balance-request-type .select2-selection--single {
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.agent-balance-page .section_deposite,
.agent-balance-page .agent-balance-deposit-panel {
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

/* Override legacy horizontal form layout */
.agent-balance-page #request_form.form-horizontal,
.agent-balance-page #credit_request_form.form-horizontal {
  margin: 0;
  float: none;
}

.agent-balance-page #request_form fieldset,
.agent-balance-page #credit_request_form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
}

.agent-balance-page #request_form .form_legend,
.agent-balance-page #credit_request_form .form_legend {
  position: static;
  top: auto;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 4px;
  padding: 0 0 12px;
  background: transparent !important;
  color: #334155 !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  float: none;
}

.agent-balance-page #request_form .form_legend::after,
.agent-balance-page #request_form .form_legend::before,
.agent-balance-page #credit_request_form .form_legend::after,
.agent-balance-page #credit_request_form .form_legend::before {
  display: none !important;
}

.agent-balance-page #request_form .form-group,
.agent-balance-page #credit_request_form .form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  float: none;
  width: 100%;
  min-width: 0;
}

.agent-balance-page #request_form .form-group .control-label,
.agent-balance-page #credit_request_form .form-group .control-label {
  width: 100%;
  float: none;
  text-align: left;
  padding: 0;
  margin: 0 0 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.agent-balance-page #request_form .form-group > .col-sm-3,
.agent-balance-page #request_form .form-group > .col-sm-6,
.agent-balance-page #request_form .form-group > .col-sm-8,
.agent-balance-page #request_form .form-group > [class*="col-sm"],
.agent-balance-page #credit_request_form .form-group > .col-sm-3,
.agent-balance-page #credit_request_form .form-group > .col-sm-6,
.agent-balance-page #credit_request_form .form-group > .col-sm-8,
.agent-balance-page #credit_request_form .form-group > [class*="col-sm"] {
  width: 100%;
  float: none;
  padding: 0;
  max-width: 100%;
  margin: 0;
}

.agent-balance-page #request_form .form-group .col-sm-offset-4,
.agent-balance-page #credit_request_form .form-group .col-sm-offset-4 {
  margin-left: 0;
}

.agent-balance-page #request_form .form-control,
.agent-balance-page #request_form select.form-control,
.agent-balance-page #request_form textarea.form-control,
.agent-balance-page #request_form .select2-container,
.agent-balance-page #credit_request_form .form-control,
.agent-balance-page #credit_request_form select.form-control,
.agent-balance-page #credit_request_form textarea.form-control,
.agent-balance-page #credit_request_form .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

.agent-balance-page #request_form .form-control,
.agent-balance-page #request_form select.form-control,
.agent-balance-page #request_form textarea.form-control,
.agent-balance-page #credit_request_form .form-control,
.agent-balance-page #credit_request_form select.form-control,
.agent-balance-page #credit_request_form textarea.form-control {
  height: auto;
  min-height: 44px;
  padding: 10px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  box-sizing: border-box;
}

.agent-balance-page #request_form .select2-container--default .select2-selection--single,
.agent-balance-page #credit_request_form .select2-container--default .select2-selection--single {
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.agent-balance-page #request_form .select2-container--default .select2-selection--single .select2-selection__rendered,
.agent-balance-page #credit_request_form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  padding-left: 14px !important;
  color: #334155;
}

.agent-balance-page #request_form .select2-container--default .select2-selection--single .select2-selection__arrow,
.agent-balance-page #credit_request_form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
}

.agent-balance-page #request_form textarea.form-control,
.agent-balance-page #credit_request_form textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.agent-balance-page #request_form .form-control:focus,
.agent-balance-page #request_form .select2-container--default.select2-container--open .select2-selection--single,
.agent-balance-page #request_form .select2-container--default.select2-container--focus .select2-selection--single,
.agent-balance-page #credit_request_form .form-control:focus,
.agent-balance-page #credit_request_form .select2-container--default.select2-container--open .select2-selection--single,
.agent-balance-page #credit_request_form .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #003BCA !important;
  box-shadow: 0 0 0 3px rgba(0, 59, 202, 0.12) !important;
}

/* Full-width fields inside fieldset */
.agent-balance-page #request_form fieldset .form-group:has(#remarks),
.agent-balance-page #credit_request_form fieldset .form-group:has(#remarks) {
  grid-column: 1 / -1;
}

.agent-balance-page #request_form fieldset .form-group:has(#image) {
  grid-column: 1 / -1;
}

/* Bank deposit slip upload */
.agent-balance-page #request_form .form-group:has(#image) > [class*="col-sm"] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-balance-page #request_form #image[type="file"] {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 96px;
  height: auto;
  padding: 18px 20px !important;
  border: 2px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.agent-balance-page #request_form #image[type="file"]:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

.agent-balance-page #request_form #image[type="file"]:focus {
  outline: none;
  border-color: #003BCA !important;
  background: #eef4ff !important;
  box-shadow: 0 0 0 3px rgba(0, 59, 202, 0.12) !important;
}

.agent-balance-page #request_form #image[type="file"].has-file {
  border-color: #003BCA !important;
  background: #eef4ff !important;
}

.agent-balance-page #request_form #image[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: #FF5F20;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.agent-balance-page #request_form #image[type="file"]::file-selector-button:hover {
  background: #e5551c;
}

.agent-balance-page #request_form #image[type="file"]::-webkit-file-upload-button {
  margin-right: 14px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: #FF5F20;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.agent-balance-page #request_form #image[type="file"]::-webkit-file-upload-button:hover {
  background: #e5551c;
}

.agent-balance-page #request_form .agent-balance-file-hint {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.agent-balance-page #request_form .agent-balance-file-name {
  margin: 0;
  color: #021D62;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.agent-balance-page #request_form .agent-balance-file-name:empty {
  display: none;
}

/* Submit / reset row (outside fieldset) */
.agent-balance-page #request_form > .form-group,
.agent-balance-page #credit_request_form > .form-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.agent-balance-page #request_form > .form-group > [class*="col-sm"],
.agent-balance-page #credit_request_form > .form-group > [class*="col-sm"] {
  width: auto;
  float: none;
  padding: 0;
  margin: 0;
}

.agent-balance-page #request_form .btn-success,
.agent-balance-page #request_form input[type="submit"],
.agent-balance-page #credit_request_form .btn-success,
.agent-balance-page #credit_request_form input[type="submit"] {
  background: #FF5F20 !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px !important;
  border-radius: 10px !important;
}

.agent-balance-page #request_form .btn-warning,
.agent-balance-page #request_form input[type="reset"],
.agent-balance-page #credit_request_form .btn-warning,
.agent-balance-page #credit_request_form input[type="reset"] {
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 600;
  padding: 10px 18px !important;
  border-radius: 10px !important;
}

.agent-balance-page #request_form .text-danger,
.agent-balance-page #credit_request_form .text-danger {
  color: #FF5F20 !important;
}

@media (max-width: 991px) {
  .agent-balance-page #request_form fieldset,
  .agent-balance-page #credit_request_form fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .agent-balance-page #request_form fieldset,
  .agent-balance-page #credit_request_form fieldset {
    grid-template-columns: 1fr;
  }

  .agent-balance-deposit-panel {
    padding: 16px;
  }
}

/* Sent requests tab */
.agent-balance-search-title {
  margin: 0 0 16px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
}

.agent-balance-search-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
}

.agent-balance-search-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  flex: 1 1 560px;
  min-width: 0;
}

.agent-balance-search-field {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: none;
  min-width: 0;
}

.agent-balance-search-grid-3 {
  flex-direction: column;
  align-items: stretch;
}

.agent-balance-search-grid-3 .agent-balance-search-fields {
  flex: 1 1 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-balance-search-grid-3 .agent-balance-search-actions {
  width: 100%;
  justify-content: flex-start;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.agent-balance-search-grid-3 .agent-balance-search-field {
  flex: none;
  min-width: 0;
  max-width: none;
}

.agent-balance-search-field label {
  display: block;
  margin: 0 0 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.agent-balance-search-field .form-control,
.agent-balance-search-field select.form-control {
  height: 44px !important;
  width:100%;
  padding: 0 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  display: block;
  box-sizing: border-box;
}

.agent-balance-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.agent-balance-page .agent-balance-btn-search {
  background: #FF5F20 !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px !important;
  border-radius: 10px !important;
}

.agent-balance-page .agent-balance-btn-reset,
.agent-balance-page .agent-balance-btn-clear {
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px !important;
  border-radius: 10px !important;
}

.agent-balance-page .agent-balance-btn-reset {
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

.agent-balance-page .agent-balance-btn-clear {
  background: transparent !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.agent-balance-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #eef4ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
}

.agent-balance-summary strong {
  color: #021D62;
}

.agent-balance-table-wrap {
  overflow-x: auto !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.agent-balance-page #balance_request_table,
.agent-balance-page #credit_request_table {
  margin-bottom: 0;
  width: 100%;
  table-layout: fixed;
}

.agent-balance-page #balance_request_table.table-condensed > thead > tr > th,
.agent-balance-page #balance_request_table.table-condensed > tbody > tr > td,
.agent-balance-page #credit_request_table.table-condensed > thead > tr > th,
.agent-balance-page #credit_request_table.table-condensed > tbody > tr > td {
  padding: 12px 10px !important;
  white-space: nowrap;
    text-align: center;
}

.agent-balance-page #balance_request_table thead tr th,
.agent-balance-page #credit_request_table thead tr th {
  background: #e2e8f0 !important;
  color: #334155 !important;
  font-size: 12px;
  font-weight: 600;
  border-color: #cbd5e1 !important;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
}

.agent-balance-page #balance_request_table tbody tr td,
.agent-balance-page #credit_request_table tbody tr td {
  font-size: 13px;
  color: #334155;
  vertical-align: middle !important;
  border-color: #eef2f7 !important;
  word-break: break-word;
}

.agent-balance-page #balance_request_table tbody tr:nth-child(even) td,
.agent-balance-page #credit_request_table tbody tr:nth-child(even) td {
  background: #fafbfd;
}

.agent-balance-page #balance_request_table tbody tr:hover td,
.agent-balance-page #credit_request_table tbody tr:hover td {
  background: #eef4ff;
}

.agent-balance-page #balance_request_table .label,
.agent-balance-page #credit_request_table .label {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
  display: inline-block;
}

/* DataTables toolbar, search & pagination */
.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper {
  padding: 16px 16px 12px;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper.form-inline.dt-bootstrap {
  display: block;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper .row > [class*="col-"] {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 1 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:first-child {
  margin-bottom: 16px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:first-child > .col-sm-6:last-child {
  margin-left: auto;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:nth-child(2) {
  width: 100%;
  margin-bottom: 0 !important;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:nth-child(2) > .col-sm-12 {
  flex: 1 1 100%;
  width: 100% !important;
  padding: 0 !important;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper table.dataTable {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:last-child {
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:last-child > .col-sm-7 {
  margin-left: auto;
}

.agent-balance-page .dataTables_wrapper .dataTables_length,
.agent-balance-page .dataTables_wrapper .dataTables_filter {
  float: none !important;
  text-align: left !important;
  margin: 0 !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_filter {
  text-align: right !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_length label,
.agent-balance-page .dataTables_wrapper .dataTables_filter label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.agent-balance-page .dataTables_wrapper .dataTables_length select,
.agent-balance-page .dataTables_wrapper .dataTables_filter input,
.agent-balance-page .dataTables_wrapper .dataTables_length select.form-control,
.agent-balance-page .dataTables_wrapper .dataTables_filter input.form-control {
  display: inline-block !important;
  width: auto !important;
  min-width: 72px;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  background-color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  vertical-align: middle;
  box-sizing: border-box;
}

.agent-balance-page .dataTables_wrapper .dataTables_filter input {
  min-width: 220px;
  padding-left: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}

.agent-balance-page .dataTables_wrapper .dataTables_filter input:focus,
.agent-balance-page .dataTables_wrapper .dataTables_length select:focus {
  border-color: #003BCA !important;
  box-shadow: 0 0 0 3px rgba(0, 59, 202, 0.12) !important;
  outline: none !important;
  transform: none !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_info {
  float: none !important;
  clear: none !important;
  padding: 0 !important;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate {
  float: none !important;
  text-align: right !important;
  padding: 0 !important;
  margin: 0 !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li {
  float: none;
  margin: 0 !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li > a,
.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li > span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px !important;
  margin: 0 !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li.active > a,
.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li.active > span {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li:not(.active):not(.disabled) > a:hover,
.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li:not(.active):not(.disabled) > a:focus {
  background: #eef4ff !important;
  border-color: #003BCA !important;
  color: #003BCA !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li.disabled > a,
.agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination > li.disabled > span {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px !important;
  height: 36px !important;
  margin: 0 0 0 6px !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.agent-balance-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
  background: #eef4ff !important;
  border-color: #003BCA !important;
  color: #003BCA !important;
}

.agent-balance-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.agent-balance-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc !important;
  border-color: #dbe3ee !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

@media (max-width: 991px) {
  .agent-balance-search-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-balance-search-fields {
    width: 100%;
  }

  .agent-balance-search-field {
    flex: 1 1 100%;
    max-width: none;
  }

  .agent-balance-search-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .agent-balance-page #balance_request_table,
  .agent-balance-page #credit_request_table {
    table-layout: auto;
  }

  .agent-balance-search-grid-3 .agent-balance-search-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-balance-table-wrap {
    overflow-x: auto;
  }

  .agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:first-child {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:first-child > .col-sm-6:last-child {
    margin-left: 0;
  }

  .agent-balance-page .dataTables_wrapper .dataTables_filter {
    text-align: left !important;
    width: 100%;
  }

  .agent-balance-page .dataTables_wrapper .dataTables_filter label,
  .agent-balance-page .dataTables_wrapper .dataTables_length label {
    width: 100%;
    justify-content: space-between;
  }

  .agent-balance-page .dataTables_wrapper .dataTables_filter input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100% !important;
    max-width: 100%;
  }

  .agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:last-child {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-balance-page .agent-balance-table-wrap .dataTables_wrapper > .row:last-child > .col-sm-7 {
    margin-left: 0;
  }

  .agent-balance-page .dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
  }

  .agent-balance-page .dataTables_wrapper .dataTables_paginate ul.pagination {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .agent-balance-search-grid-3 .agent-balance-search-fields {
    grid-template-columns: 1fr;
  }

  .agent-balance-body {
    padding: 16px;
  }

  .agent-balance-search-fields {
    flex-direction: column;
  }

  .agent-balance-search-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-balance-page .agent-balance-btn-search,
  .agent-balance-page .agent-balance-btn-reset,
  .agent-balance-page .agent-balance-btn-clear {
    width: 100%;
  }
}
