/* ==========================================================================
   Money Transfer service pages – card based redesign ("mtx-" prefix)
   Pure presentational layer. Does not affect any Vue logic/bindings/API calls.
   ========================================================================== */

.mtx-type-switch {
  margin-bottom: 18px;
}

/* Service switcher (FastPay / Mini Payout / UPI / ...) built on el-radio-group */
.mtx-type-switch .custom_switch.el-radio-group {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 4px;
  background: #eef1f6;
  padding: 6px;
  border-radius: 14px;
  max-width: 100%;
}
.mtx-type-switch .custom_switch .el-radio-button {
  margin: 0 !important;
}
.mtx-type-switch .custom_switch .el-radio-button__inner {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  line-height: 1.4 !important;
  height: auto !important;
  transition: 0.15s ease;
}
.mtx-type-switch .custom_switch .el-radio-button:hover .el-radio-button__inner {
  color: #1b2a41 !important;
}
.mtx-type-switch .custom_switch .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: linear-gradient(135deg, #17356a 0%, #060f1f 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25) !important;
}
/* Any secondary toggle inside a themed card (e.g. "Search By: Mobile / Account") */
.mtx-body .custom_switch.el-radio-group {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 4px;
  background: #eef1f6;
  padding: 6px;
  border-radius: 14px;
  max-width: 100%;
}
.mtx-body .custom_switch .el-radio-button {
  margin: 0 !important;
}
.mtx-body .custom_switch .el-radio-button__inner {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 9px 16px !important;
  border-radius: 10px !important;
  line-height: 1.4 !important;
  height: auto !important;
  transition: 0.15s ease;
}
.mtx-body .custom_switch .el-radio-button:hover .el-radio-button__inner {
  color: #1b2a41 !important;
}
.mtx-body .custom_switch .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: linear-gradient(135deg, #17356a 0%, #060f1f 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25) !important;
}

@media (max-width: 767px) {
  .mtx-type-switch .custom_switch.el-radio-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mtx-type-switch .custom_switch .el-radio-button__inner {
    padding: 9px 14px !important;
    font-size: 12.5px !important;
  }
}

.mtx-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

/* Header banner */
.mtx-header {
  background: linear-gradient(135deg, #17356a 0%, #060f1f 100%);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.mtx-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mtx-header-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
}
.mtx-title {
  color: #fff;
  font-weight: 700;
  font-size: 21px;
  margin: 0;
  line-height: 1.3;
}
.mtx-subtitle {
  color: #c9d3e3;
  font-size: 13px;
  margin: 3px 0 0;
}
.mtx-subtitle strong {
  color: #fff;
  font-weight: 600;
}
.mtx-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.mtx-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.2s ease;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.mtx-btn:hover {
  text-decoration: none;
}
.mtx-btn-dark {
  background: #1b2a41;
  color: #fff !important;
}
.mtx-btn-dark:hover {
  background: #24374f;
  color: #fff !important;
}
.mtx-btn-primary {
  background: #123a7a;
  color: #fff !important;
}
.mtx-btn-primary:hover {
  background: #16478f;
  color: #fff !important;
}
.mtx-btn-outline {
  background: #fff;
  border: 1px solid #d7dce5;
  color: #334155 !important;
}
.mtx-btn-outline:hover {
  background: #f3f5f9;
  color: #1b2a41 !important;
}
.mtx-btn:disabled,
.mtx-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tabs */
.mtx-tabs-wrap {
  padding: 18px 28px 0;
}
.mtx-tabs {
  display: inline-flex;
  background: #eef1f6;
  border-radius: 12px;
  padding: 6px;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 100%;
}
.mtx-tab {
  padding: 10px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s ease;
  user-select: none;
}
.mtx-tab i {
  font-size: 13px;
}
.mtx-tab.active {
  background: #fff;
  color: #0f2a52;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}
.mtx-tab:hover:not(.active) {
  color: #334155;
}

.mtx-body {
  padding: 26px 28px 30px;
}

/* Section title */
.mtx-section-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}
.mtx-section-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #123a7a;
  display: inline-block;
  flex: none;
}
.mtx-section-sub {
  color: #8592a6;
  font-size: 13.5px;
  margin: 0 0 16px 18px;
}
.mtx-divider {
  border: none;
  border-top: 1px solid #e8ebf1;
  margin: 0 0 26px;
}

/* Field label */
.mtx-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1b2a41;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Search row */
.mtx-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.mtx-flex-1 {
  flex: 1 1 240px;
  min-width: 240px;
}
/* Mobile number field should not stretch to fill the whole row */
.mtx-search-row .mtx-flex-1 {
  flex: 0 1 50%;
  max-width: 50%;
  min-width: 260px;
}
.mtx-search-row .mtx-btn {
    box-sizing: border-box !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    line-height: 46px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    margin-bottom: 22px;
}
.mtx-search-row .mtx-btn-primary {
  box-shadow: 0 3px 10px rgba(18, 58, 122, 0.25);
}
.mtx-search-row .mtx-btn-outline {
  border-color: #e2e6ee;
}
.mtx-service-img {
  margin-top: 18px;
}

/* Element input/select restyle inside mtx scope
   NOTE: height/line-height carry !important + a 3-class selector so they
   reliably win over the global ".custom_feild .el-input__inner{height:auto!important}"
   rule in custom-website.css, which otherwise lets inputs grow past 55px. */
.mtx-input.el-input .el-input__inner,
.mtx-input .el-input__inner,
.mtx-flex-1 .el-input__inner,
.mtx-body .custom_feild .el-input__inner,
.mtx-body .custom_select .el-input__inner {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  line-height: 46px !important;
  border-radius: 12px;
  border: 1px solid #e2e6ee;
  background: #f8f9fb;
  font-size: 14.5px !important;
  padding: 0 46px 0 44px !important;
  box-sizing: border-box !important;
}
.mtx-body .custom_select .el-input__inner {
  padding-left: 44px !important;
  padding-right: 36px !important;
}
.mtx-input .el-input__count,
.mtx-body .custom_feild .el-input__count {
  background: transparent;
  color: #a4adba;
  font-size: 11px;
  right: 14px;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}
.mtx-body .custom_feild .el-input__prefix,
.mtx-input .el-input__prefix,
.mtx-body .custom_select .el-input__prefix {
  left: 14px;
  display: flex;
  align-items: center;
  height: 100%;
  color: #8b96a8;
}
.mtx-body .custom_feild .el-input__prefix i,
.mtx-input .el-input__prefix i,
.mtx-body .custom_select .el-input__prefix i,
.mtx-input-icon {
  font-size: 13px;
  margin: 0;
  line-height: 1;
}
.mtx-body .el-form-item__label {
  font-size: 13px;
  font-weight: 700;
  color: #1b2a41;
  padding-bottom: 8px;
  line-height: 1.3;
}
.mtx-required .el-form-item__label:before {
  content: "* ";
  color: #e11d48;
}
.mtx-body .row {
  margin-left: -12px;
  margin-right: -12px;
}
.mtx-body .row > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
}

/* Info row (sender details) */
.mtx-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  background: #f8f9fb;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
}
.mtx-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}
.mtx-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8592a6;
}
.mtx-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

/* Badges */
.mtx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.mtx-badge-success {
  background: #e5f7ee;
  color: #0f9d58;
}
.mtx-badge-danger {
  background: #fdecec;
  color: #d93025;
}
.mtx-mini-btn {
  border: none;
  background: #123a7a;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  margin-left: 6px;
  cursor: pointer;
}
.mtx-mini-btn:hover {
  background: #16478f;
}

/* Tables */
.mtx-table-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  overflow: hidden;
}
.mtx-table-card .table {
  margin-bottom: 0;
}
.mtx-table-card thead th {
  background: #f8f9fb;
  border-bottom: 1px solid #eef0f4;
  color: #5b6472;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  padding: 14px 16px;
}
.mtx-table-card tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: #f1f2f6;
}

.mtx-amount-input .input-group-text {
  border-radius: 10px 0 0 10px;
  background: #f8f9fb;
}

.mtx-pill-btn-group {
  display: flex;
  gap: 6px;
}
.mtx-pill-btn {
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #fff !important;
  text-decoration: none !important;
}
.mtx-pill-primary {
  background: #123a7a;
}
.mtx-pill-primary:hover {
  background: #16478f;
}
.mtx-pill-dark {
  background: #1b2a41;
}
.mtx-pill-dark:hover {
  background: #24374f;
}
.mtx-icon-btn-danger {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fdecec;
  color: #d93025 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mtx-icon-btn-danger:hover {
  background: #fbd6d6;
}

/* Empty state */
.mtx-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.mtx-empty-dashed {
  border: 2px dashed #dbe1ec;
  border-radius: 14px;
  background: #f8f9fc;
}
.mtx-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e9edf7;
  color: #6d7ea8;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.mtx-empty-state h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.mtx-empty-state p {
  color: #8592a6;
  font-size: 13.5px;
  margin: 0;
}

/* Numbered sections */
.mtx-num-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 18px;
}
.mtx-num-head-row:first-child {
  margin-top: 0;
}
.mtx-num-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 9px;
  background: #e9edf7;
  color: #123a7a;
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mtx-num-line {
  flex: 1;
  border-top: 1px solid #e8ebf1;
}
.mtx-num-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #5b6472;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Transaction mode cards (built on el-radio-button) */
.mtx-mode-grid .el-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.mtx-mode-grid .el-radio-button {
  width: 100%;
}
.mtx-mode-grid .el-radio-button__inner {
  width: 100%;
  border: 1.5px solid #e5e9f0 !important;
  border-radius: 14px !important;
  background: #fff;
  padding: 16px 18px;
  text-align: left;
  box-shadow: none !important;
  height: auto;
  line-height: normal;
}
.mtx-mode-grid .el-radio-button:hover .el-radio-button__inner {
  border-color: #c7d2e3 !important;
}
.mtx-mode-grid .el-radio-button.is-active .el-radio-button__inner {
  background: #0d1f3d !important;
  border-color: #0d1f3d !important;
}
.mtx-mode-content {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.mtx-mode-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 16px;
}
.mtx-mode-grid .el-radio-button.is-active .mtx-mode-icon {
  background: #123a7a;
  color: #fff;
}
.mtx-mode-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mtx-mode-title-inline {
  font-weight: 700;
  font-size: 14.5px;
  color: #0f172a;
}
.mtx-mode-grid .el-radio-button.is-active .mtx-mode-title-inline {
  color: #fff;
}
.mtx-mode-desc-inline {
  font-size: 12px;
  color: #8592a6;
}
.mtx-mode-grid .el-radio-button.is-active .mtx-mode-desc-inline {
  color: #c9d3e3;
}
.mtx-mode-content:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d7dce5;
  background: transparent;
}
.mtx-mode-grid .el-radio-button.is-active .mtx-mode-content:after {
  border-color: #fff;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23123a7a'%3E%3Cpath d='M13.7 4.3a1 1 0 0 1 0 1.4l-6.5 6.5a1 1 0 0 1-1.4 0L2.3 8.7a1 1 0 1 1 1.4-1.4L6.5 10l5.8-5.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") no-repeat center / 11px;
}

.mtx-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #eef0f4;
  margin-top: 30px !important;
}

/* Filter card (Transactions tab) */
.mtx-filter-card {
  border: 1px solid #eef0f4;
  border-radius: 14px;
  overflow: hidden;
}
.mtx-filter-header {
  background: linear-gradient(135deg, #17356a 0%, #060f1f 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mtx-filter-body {
  background: #fff;
  padding: 20px;
}
.mtx-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mtx-filter-row .mtx-flex-1 {
  min-width: 260px;
}
.mtx-filter-row .el-date-editor.el-input,
.mtx-filter-row .el-date-editor.el-input__inner {
  width: 100%;
}
.mtx-filter-row .el-range-editor.el-input__inner {
  height: 55px !important;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #e2e6ee;
  background: #f8f9fb;
}

@media (max-width: 767px) {
  .mtx-header {
    padding: 18px 18px;
  }
  .mtx-body {
    padding: 20px 16px 26px;
  }
  .mtx-tabs-wrap {
    padding: 16px 16px 0;
  }
  .mtx-mode-grid .el-radio-group {
    grid-template-columns: 1fr;
  }
  .mtx-info-row {
    gap: 16px;
    padding: 16px;
  }
}
