/* GBP → PKR Wallet Manager — premium front-end UI */
.gpm-app {
  --gpm-navy: #102b4c;
  --gpm-navy-deep: #0b2039;
  --gpm-blue: #2878d0;
  --gpm-blue-soft: #edf5ff;
  --gpm-teal: #167c70;
  --gpm-teal-soft: #edf8f5;
  --gpm-ink: #172b43;
  --gpm-muted: #708198;
  --gpm-border: #dfe7f0;
  --gpm-surface: #ffffff;
  --gpm-canvas: #f5f8fc;
  --gpm-green: #168452;
  --gpm-green-soft: #eaf7f0;
  --gpm-shadow: 0 14px 38px rgba(22, 48, 79, .075);
  max-width: 1360px;
  margin: 30px auto 48px;
  padding: 24px;
  color: var(--gpm-ink);
  background: #f7f9fc;
  border: 1px solid #e5ebf3;
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(22, 48, 79, .055);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body .gpm-app,
body .gpm-app *,
.gpm-app,
.gpm-app * {
  box-sizing: border-box;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  letter-spacing: normal;
  text-transform: none;
}
.gpm-app [hidden] { display: none !important; }
.gpm-app button,
.gpm-app input,
.gpm-app select,
.gpm-app textarea { font: inherit; }

/* Header */
.gpm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  color: #fff;
  background: linear-gradient(112deg, var(--gpm-navy-deep), #173d68 72%, #1b4c78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(13, 39, 69, .13);
}
.gpm-brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.gpm-brand-icon {
  width: 43px; height: 43px; flex: 0 0 43px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 23px; font-weight: 750;
}
.gpm-brand strong { display: block; color: #fff; font-size: 17px; line-height: 1.2; font-weight: 750; letter-spacing: -.35px; }
.gpm-brand strong i { color: #9bc8ff; font-style: normal; padding: 0 2px; }
.gpm-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.72); font-size: 11px; }
.gpm-secure-label { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 600; white-space: nowrap; }
.gpm-dot { width: 8px; height: 8px; border-radius: 50%; background: #42d392; box-shadow: 0 0 0 4px rgba(66,211,146,.14); }

/* Page title */
.gpm-main { padding: 29px 2px 20px; }
.gpm-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 2px 21px; }
.gpm-eyebrow { margin: 0 0 6px; color: #7b8ca2; font-size: 10px; line-height: 1.3; font-weight: 800; letter-spacing: 1.5px !important; }
.gpm-heading-row h1 { margin: 0; color: #142d4c; font-size: 31px; line-height: 1.12; font-weight: 780; letter-spacing: -1.05px !important; }
.gpm-subtitle { margin: 8px 0 0; color: #74849a; font-size: 13px; }
.gpm-date-chip { padding: 8px 13px; color: #63758b; background: #fff; border: 1px solid var(--gpm-border); border-radius: 30px; font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(20,42,70,.025); }

/* Wallet overview */
.gpm-wallet-overview { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.gpm-wallet-card {
  position: relative; overflow: hidden; min-width: 0;
  padding: 21px 23px 19px;
  background: #fff;
  border: 1px solid var(--gpm-border);
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(20,42,70,.035);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gpm-wallet-card:hover { transform: translateY(-2px); box-shadow: 0 11px 25px rgba(20,42,70,.075); }
.gpm-wallet-card:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #438de0; }
.gpm-wallet-card-two:before { background: #39a18e; }
.gpm-wallet-card:after { content: ""; position: absolute; z-index: 0; width: 145px; height: 145px; right: -62px; top: -84px; border-radius: 50%; background: rgba(39,119,207,.065); pointer-events: none; }
.gpm-wallet-card-two:after { background: rgba(29,132,112,.07); }
.gpm-wallet-card > * { position: relative; z-index: 1; }
.gpm-wallet-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gpm-wallet-symbol { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 10px; color: #1f65b1; background: #eaf3ff; font-size: 12px; font-weight: 800; }
.gpm-wallet-card-two .gpm-wallet-symbol { color: #187c68; background: #e9f5f2; }
.gpm-status { padding: 4px 9px; color: #16774d; background: #e8f6ef; border-radius: 20px; font-size: 10px; font-weight: 750; }
.gpm-card-label { margin: 12px 0 4px; color: #53677e; font-size: 13px; font-weight: 700; }
.gpm-card-label span { color: #8190a1; font-weight: 500; }
.gpm-balance { display: block; color: #132e4e; font-size: 27px; line-height: 1.2; font-weight: 780; letter-spacing: -.8px !important; font-variant-numeric: tabular-nums; }
.gpm-balance small { color: #75869a; font-size: 11px; font-weight: 700; letter-spacing: 0 !important; }
.gpm-card-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; color: #8a98a8; font-size: 10px; }
.gpm-card-foot strong { color: #168452; font-size: 10px; font-weight: 750; }

/* Main payment card */
.gpm-entry-card, .gpm-history-card { overflow: hidden; background: #fff; border: 1px solid var(--gpm-border); border-radius: 18px; box-shadow: var(--gpm-shadow); }
.gpm-entry-heading { display: flex; align-items: center; gap: 13px; padding: 20px 24px; background: linear-gradient(112deg, #fff 0%, #f6faff 100%); border-bottom: 1px solid #eaf0f6; }
.gpm-heading-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; color: #1d67b6; background: #eaf3ff; font-size: 25px; font-weight: 500; }
.gpm-entry-heading h2, .gpm-history-heading h2 { margin: 0; color: #183452; font-size: 18px; line-height: 1.25; font-weight: 760; letter-spacing: -.4px !important; }
.gpm-entry-heading p { margin: 4px 0 0; color: #75869a; font-size: 12px; }
.gpm-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 19px 18px; padding: 24px; }
.gpm-form > .gpm-field-block { margin: 0 !important; }
.gpm-field-block { min-width: 0; }
.gpm-field-block label { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; color: #263c55; font-size: 12px; line-height: 1.35; font-weight: 750; }
.gpm-field-block label em { color: #d34c4c; font-style: normal; }
.gpm-input-wrap, .gpm-select-wrap { display: flex; align-items: center; height: 51px; min-width: 0; background: #fff; border: 1px solid #cfdae8; border-radius: 11px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.gpm-input-wrap:focus-within, .gpm-select-wrap:focus-within { border-color: #438bd5; background: #fff; box-shadow: 0 0 0 4px rgba(48,126,205,.11); }
.gpm-input-wrap > span { padding-left: 16px; color: #193a5d; font-size: 20px; font-weight: 750; }
.gpm-input-wrap input, .gpm-select-wrap select { width: 100%; height: 100%; min-width: 0; margin: 0 !important; padding: 0 14px !important; color: #1c3048 !important; background: transparent !important; border: 0 !important; border-radius: 10px !important; outline: 0 !important; box-shadow: none !important; font-size: 15px !important; line-height: normal !important; font-weight: 650 !important; }
.gpm-input-wrap input::placeholder { color: #a2afbd; font-weight: 450; }
.gpm-money-input input { font-size: 18px !important; font-variant-numeric: tabular-nums; }
.gpm-select-wrap { position: relative; }
.gpm-select-wrap:after { content: "⌄"; position: absolute; top: 8px; right: 16px; color: #506780; font-size: 22px; pointer-events: none; }
.gpm-select-wrap select { appearance: none; padding-right: 43px !important; cursor: pointer; }
.gpm-helper { margin: 7px 0 0; color: #8a98a8; font-size: 10px; }
.gpm-field-block + .gpm-field-block { margin-top: 0; }

/* Progressive wallet details */
.gpm-dynamic-fields { grid-column: 1 / -1; min-width: 0; margin-top: 0; padding-top: 21px; border-top: 1px solid #edf1f6; animation: gpmReveal .24s ease-out; }
@keyframes gpmReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.gpm-selected-wallet-banner { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; padding: 12px 14px; background: #edf5ff; border: 1px solid #dceaff; border-radius: 12px; }
.gpm-selected-wallet-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; color: #fff; background: #246fbe; border-radius: 10px; font-size: 11px; font-weight: 800; }
.gpm-selected-wallet-name { display: block; color: #193958; font-size: 14px; font-weight: 750; }
.gpm-selected-wallet-source { display: block; margin-top: 2px; color: #6e8196; font-size: 11px; }
.gpm-selected-pill { margin-left: auto; padding: 5px 10px; color: #1c6ab7; background: #fff; border: 1px solid #d4e5fa; border-radius: 20px; font-size: 10px; font-weight: 750; }
.gpm-rate-source-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 0 2px; }
.gpm-small-label { display: block; color: #8a98a8; font-size: 9px; font-weight: 800; letter-spacing: 1.1px !important; }
.gpm-source-name { display: block; margin-top: 2px; color: #244768; font-size: 13px; font-weight: 700; }
.gpm-fetch-rate { padding: 8px 12px; color: #245f9c; background: #f6faff; border: 1px solid #d5e3f2; border-radius: 9px; font-size: 11px; font-weight: 750; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.gpm-fetch-rate:hover { background: #eaf3ff; border-color: #bdd5f0; }
.gpm-fetch-rate:disabled { opacity: .55; cursor: wait; }
.gpm-dynamic-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.9fr); align-items: stretch; gap: 17px; }
.gpm-rate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-content: start; gap: 13px; min-width: 0; }
.gpm-rate-grid .gpm-field-block + .gpm-field-block { margin-top: 0; }
.gpm-rate-grid label { min-height: 18px; font-size: 11px; }
.gpm-rate-tag { padding: 2px 7px; color: #1f68b1; background: #eaf3ff; border-radius: 20px; font-size: 9px; font-weight: 750; }
.gpm-rate-grid .gpm-input-wrap { height: 47px; }
.gpm-rate-grid .gpm-input-wrap input { padding: 0 11px !important; font-size: 14px !important; }
.gpm-field-help { display: block; margin: 5px 0 0; color: #8a98a8; font-size: 10px; line-height: 1.35; }

/* Calculation summary */
.gpm-calculation-card { min-width: 0; margin-top: 0; padding: 17px; background: #f7faff; border: 1px solid #e1eaf5; border-radius: 14px; }
.gpm-calculation-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gpm-calc-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; color: #246db5; background: #e6f0fc; border-radius: 9px; font-size: 18px; font-weight: 750; }
.gpm-calculation-title strong { display: block; color: #23415f; font-size: 13px; font-weight: 760; }
.gpm-calculation-title small { display: block; margin-top: 2px; color: #8291a1; font-size: 10px; }
.gpm-calculation-values { display: grid; grid-template-columns: 1fr; gap: 8px; }
.gpm-calculation-values > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 12px; background: #fff; border: 1px solid #e8eef5; border-radius: 10px; }
.gpm-calculation-values span { display: block; color: #7c8b9b; font-size: 11px; }
.gpm-calculation-values strong { display: block; color: #1c3958; font-size: 14px; font-weight: 780; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.gpm-calculation-values .gpm-margin-cell { background: #effaf4; border-color: #d5efdf; }
.gpm-calculation-values .gpm-margin-cell span { color: #39795c; font-weight: 700; }
.gpm-calculation-values .gpm-margin-cell strong { color: var(--gpm-green); font-size: 16px; }
.gpm-margin-note { margin: 10px 1px 0; color: #8492a1; font-size: 9px; line-height: 1.45; }
.gpm-note-field { margin-top: 17px !important; }
.gpm-optional { color: #8a98a8; font-size: 10px; font-weight: 500; }
.gpm-note { display: block; width: 100%; min-height: 68px; padding: 12px 13px !important; color: #1c3048 !important; background: #fff !important; border: 1px solid #cfdbe8 !important; border-radius: 10px !important; resize: vertical; font-size: 13px !important; line-height: 1.5 !important; box-shadow: none !important; }
.gpm-note:focus { border-color: #438bd5 !important; box-shadow: 0 0 0 4px rgba(48,126,205,.11) !important; outline: 0; }
.gpm-note::placeholder { color: #a2afbd; }
.gpm-save-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 300px; min-height: 50px; margin: 18px 0 0 auto; padding: 0 20px; color: #fff; background: linear-gradient(105deg,#153b63,#1c5484); border: 0; border-radius: 11px; font-size: 13px; font-weight: 780; cursor: pointer; box-shadow: 0 7px 16px rgba(16,43,76,.14); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.gpm-save-button b { font-size: 19px; font-weight: 500; }
.gpm-save-button:hover { color: #fff; background: linear-gradient(105deg,#1a4b79,#246ba2); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(16,43,76,.18); }
.gpm-save-button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.gpm-form-message { margin-top: 12px; font-size: 12px; }
.gpm-form-message:empty { display: none; }
.gpm-form-message.success { padding: 10px 12px; color: #126b45; background: #eaf7f0; border: 1px solid #d4efdf; border-radius: 9px; }
.gpm-form-message.error { padding: 10px 12px; color: #a23b3b; background: #fff0f0; border: 1px solid #f4dada; border-radius: 9px; }
.gpm-form-message.info { padding: 10px 12px; color: #315d86; background: #eff6ff; border: 1px solid #d9e9fb; border-radius: 9px; }

/* Recent transactions */
.gpm-history-card { margin-top: 20px; padding: 20px 22px; }
.gpm-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gpm-history-heading .gpm-eyebrow { margin-bottom: 3px; }
.gpm-history-heading h2 { font-size: 17px; }
.gpm-history-count { padding: 5px 9px; color: #7c8da0; background: #f2f5f9; border-radius: 20px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.gpm-table-wrap { overflow-x: auto; border: 1px solid #e8eef5; border-radius: 11px; -webkit-overflow-scrolling: touch; }
.gpm-table { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; }
.gpm-table th { padding: 11px 12px; color: #72839a; background: #f6f8fb; border-bottom: 1px solid #e8eef5; font-size: 10px; font-weight: 780; text-align: left; white-space: nowrap; }
.gpm-table td { padding: 12px; color: #40566f; background: #fff; border-bottom: 1px solid #edf1f5; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gpm-table tbody tr:last-child td { border-bottom: 0; }
.gpm-table tbody tr:hover td { background: #fafcff; }
.gpm-wallet-chip { display: inline-block; padding: 4px 8px; color: #2268b1; background: #eaf3ff; border-radius: 7px; font-size: 10px; font-weight: 750; }
.gpm-wallet-chip.wallet2 { color: #197866; background: #eaf5f2; }
.gpm-positive { color: #168452 !important; font-weight: 780; }
.gpm-empty-row td { padding: 25px; color: #8492a1; text-align: center; }
.gpm-history-foot { margin: 11px 0 0; color: #8996a5; font-size: 10px; }
.gpm-footer { display: flex; justify-content: space-between; gap: 10px; padding: 13px 3px 0; color: #8b98a7; font-size: 10px; }
.gpm-access-note { max-width: 700px; margin: 25px auto; padding: 18px; color: #76531b; background: #fff9eb; border: 1px solid #f0d8a6; border-radius: 10px; font-size: 14px; }

/* Tablet */
@media (max-width: 980px) {
  .gpm-app { padding: 18px; }
  .gpm-dynamic-layout { grid-template-columns: 1fr; }
  .gpm-calculation-values { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .gpm-calculation-values > div { display: block; }
  .gpm-calculation-values strong { margin-top: 5px; text-align: left; }
}

/* Mobile */
@media (max-width: 680px) {
  .gpm-app { width: 100%; margin: 10px auto 24px; padding: 12px; border-radius: 17px; }
  .gpm-topbar { padding: 12px 13px; border-radius: 13px; }
  .gpm-brand { gap: 9px; }
  .gpm-brand-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; font-size: 20px; }
  .gpm-brand strong { font-size: 14px; }
  .gpm-brand small { font-size: 10px; }
  .gpm-secure-label { font-size: 0; }
  .gpm-secure-label .gpm-dot { width: 9px; height: 9px; }
  .gpm-main { padding: 23px 0 14px; }
  .gpm-heading-row { align-items: flex-start; margin-bottom: 16px; }
  .gpm-heading-row h1 { font-size: 26px; }
  .gpm-subtitle { max-width: 270px; font-size: 12px; }
  .gpm-date-chip { padding: 6px 9px; font-size: 10px; }
  .gpm-wallet-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 14px; }
  .gpm-wallet-card { padding: 13px 12px; border-radius: 12px; }
  .gpm-wallet-symbol { width: 31px; height: 28px; border-radius: 8px; font-size: 10px; }
  .gpm-status { padding: 3px 7px; font-size: 9px; }
  .gpm-card-label { margin-top: 9px; font-size: 11px; }
  .gpm-balance { font-size: 18px; letter-spacing: -.5px !important; }
  .gpm-balance small { font-size: 9px; }
  .gpm-card-foot { margin-top: 6px; font-size: 9px; }
  .gpm-card-foot strong { font-size: 9px; }
  .gpm-entry-card, .gpm-history-card { border-radius: 14px; }
  .gpm-entry-heading { padding: 15px; gap: 10px; }
  .gpm-heading-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; font-size: 22px; }
  .gpm-entry-heading h2 { font-size: 16px; }
  .gpm-entry-heading p { font-size: 11px; }
  .gpm-form { grid-template-columns: 1fr; gap: 16px; padding: 16px 14px; }
  .gpm-field-block label { font-size: 12px; }
  .gpm-input-wrap, .gpm-select-wrap { height: 48px; }
  .gpm-input-wrap input, .gpm-select-wrap select { font-size: 14px !important; }
  .gpm-money-input input { font-size: 16px !important; }
  .gpm-dynamic-fields { padding-top: 16px; }
  .gpm-selected-wallet-banner { padding: 10px 11px; }
  .gpm-selected-wallet-name { font-size: 13px; }
  .gpm-rate-source-row { margin-bottom: 12px; }
  .gpm-fetch-rate { padding: 7px 9px; font-size: 10px; }
  .gpm-rate-grid { grid-template-columns: 1fr; gap: 12px; }
  .gpm-rate-grid label { min-height: 0; font-size: 11px; }
  .gpm-rate-grid .gpm-input-wrap { height: 45px; }
  .gpm-calculation-card { padding: 13px; }
  .gpm-calculation-values { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .gpm-calculation-values > div { padding: 9px 7px; }
  .gpm-calculation-values span { min-height: 25px; font-size: 9px; line-height: 1.3; }
  .gpm-calculation-values strong { margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }
  .gpm-calculation-values .gpm-margin-cell strong { font-size: 12px; }
  .gpm-margin-note { font-size: 9px; }
  .gpm-save-button { max-width: none; min-height: 49px; font-size: 13px; }
  .gpm-history-card { margin-top: 14px; padding: 15px 12px; }
  .gpm-history-heading h2 { font-size: 15px; }
  .gpm-footer { font-size: 9px; }
  .gpm-footer span { display: none; }
}
@media (max-width: 420px) {
  .gpm-wallet-overview { grid-template-columns: 1fr; }
  .gpm-wallet-card { padding: 13px 14px; }
  .gpm-balance { font-size: 20px; }
  .gpm-calculation-values { grid-template-columns: 1fr; }
  .gpm-calculation-values > div { display: flex; align-items: center; }
  .gpm-calculation-values span { min-height: 0; }
  .gpm-calculation-values strong { margin-top: 0; text-align: right; font-size: 13px; }
  .gpm-calculation-values .gpm-margin-cell strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .gpm-app *, .gpm-app *:before, .gpm-app *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Additional narrow-screen refinements */
@media (max-width: 420px) {
  .gpm-app { padding: 9px; }
  .gpm-wallet-overview { grid-template-columns: 1fr; }
  .gpm-wallet-card { padding: 14px 15px; }
  .gpm-form { padding: 15px; }
  .gpm-rate-grid { grid-template-columns: 1fr; }
  .gpm-calculation-values { grid-template-columns: 1fr; }
  .gpm-calculation-values > div { display: flex; }
  .gpm-calculation-values strong { margin-top: 0; text-align: right; }
  .gpm-save-button { max-width: none; }
}

/* Database health and actionable save diagnostics */
.gpm-db-indicator{display:flex;align-items:center;gap:8px;margin:-12px 0 18px;color:#52708f;font-size:12px;font-weight:600}
.gpm-db-indicator span{width:8px;height:8px;border-radius:50%;background:#159568;box-shadow:0 0 0 3px #e6f5ef}
.gpm-db-error{max-width:900px;margin:24px auto;padding:18px 20px;border:1px solid #efc4c4;border-radius:12px;background:#fff7f7;color:#7e2828;font:14px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}

/* v2.5: Confirmed-save receipt popup */
body.gpm-receipt-open{overflow:hidden}
.gpm-app .gpm-receipt-overlay{position:fixed;inset:0;background:rgba(9,25,45,.66);z-index:999999;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;backdrop-filter:blur(4px)}
.gpm-app .gpm-receipt-dialog{box-sizing:border-box;position:relative;background:#fff;color:#172b45;border-radius:20px;width:100%;max-width:525px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:24px 28px 26px;box-shadow:0 22px 85px rgba(0,0,0,.23);font-family:inherit;outline:none}
.gpm-app .gpm-receipt-accent{height:5px;background:#1c7665;position:absolute;top:0;left:0;right:0}
.gpm-app .gpm-receipt-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.gpm-app .gpm-receipt-check{display:grid;place-items:center;background:#e2f4e9;color:#147849;width:44px;height:44px;border-radius:50%;font-size:26px;font-weight:750}
.gpm-app .gpm-receipt-close{border:0;background:#f0f3f8;color:#475b73;font-size:26px;border-radius:50%;width:35px;height:35px;cursor:pointer}
.gpm-app .gpm-receipt-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;color:#557287;margin:0 0 5px}
.gpm-app .gpm-receipt-dialog h2{color:#132d4c;font-size:24px;line-height:1.3;margin:0}
.gpm-app .gpm-receipt-description{font-size:13px;color:#63758d;margin:6px 0 16px}
.gpm-app .gpm-receipt-amount{border-radius:13px;background:#eef6fa;padding:15px 18px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.gpm-app .gpm-receipt-amount small{color:#536b82;font-size:13px}
.gpm-app .gpm-receipt-amount strong{font-size:25px;color:#103253;font-variant-numeric:tabular-nums}
.gpm-app .gpm-receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.gpm-app .gpm-receipt-grid>div{min-width:0;display:flex;flex-direction:column;gap:3px;padding:9px 0;border-bottom:1px solid #e9edf3}
.gpm-app .gpm-receipt-grid span{font-size:11px;color:#73839a}
.gpm-app .gpm-receipt-grid strong{font-size:13px;overflow-wrap:anywhere;color:#183352;font-weight:700;font-variant-numeric:tabular-nums}
.gpm-app .gpm-receipt-grid .gpm-receipt-profit strong{color:#128357}
.gpm-app .gpm-receipt-grid .gpm-receipt-note{grid-column:1/-1}
.gpm-app .gpm-receipt-ref{font-size:11px!important}
.gpm-app .gpm-receipt-disclaimer{font-size:11px;line-height:1.5;color:#71849a;margin:15px 0}
.gpm-app .gpm-receipt-actions{display:flex;gap:10px}
.gpm-app .gpm-receipt-actions button{cursor:pointer;border-radius:10px;padding:12px 16px;font-size:14px;font-weight:700;flex:1}
.gpm-app .gpm-receipt-print{border:1px solid #cbd8e6;background:#fff;color:#183b5b}
.gpm-app .gpm-receipt-done{border:1px solid #163756;background:#163756;color:#fff}
@media(max-width:540px){.gpm-app .gpm-receipt-overlay{padding:9px;align-items:flex-end}.gpm-app .gpm-receipt-dialog{padding:19px 18px 22px;max-height:94dvh;border-radius:18px 18px 10px 10px}.gpm-app .gpm-receipt-amount strong{font-size:22px}.gpm-app .gpm-receipt-grid{gap:0 12px}}
@media print{body *{visibility:hidden!important}.gpm-app .gpm-receipt-overlay,.gpm-app .gpm-receipt-overlay *{visibility:visible!important}.gpm-app .gpm-receipt-overlay{position:absolute;inset:0;background:#fff;display:block;padding:0}.gpm-app .gpm-receipt-dialog{width:100%;max-width:none;max-height:none;overflow:visible;box-shadow:none;border-radius:0}.gpm-app .gpm-receipt-actions,.gpm-app .gpm-receipt-close{display:none!important}}
/* v2.6: immutable dual source reference stamps */
.gpm-app .gpm-dual-stamp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0 8px}
.gpm-app .gpm-dual-stamp>div{display:flex;flex-direction:column;gap:5px;border:1px solid #d4e1ee;border-radius:12px;background:#f5f9fd;padding:15px}
.gpm-app .gpm-dual-stamp small{font-size:12px;color:#546a83;font-weight:700}
.gpm-app .gpm-dual-stamp strong{font-size:20px;font-variant-numeric:tabular-nums;color:#173452;overflow-wrap:anywhere}
.gpm-app .gpm-dual-stamp span{font-size:10px;color:#72879e}
.gpm-app .gpm-reference-notice{font-size:12px;line-height:1.55;color:#657b92;margin:7px 0 18px}
.gpm-app .gpm-reference-rate[readonly]{background:#f2f7fc;color:#15395c;cursor:not-allowed}
@media(max-width:600px){.gpm-app .gpm-dual-stamp{grid-template-columns:1fr}.gpm-app .gpm-dual-stamp strong{font-size:18px}}

.gpm-fetch-rate { display:inline-flex; text-decoration:none; align-items:center; justify-content:center; }
.gpm-xe-time, .gpm-google-time { display:block; overflow-wrap:anywhere; margin-top:8px; font-size:12px; color:#667a92; }

/* v3.1 — accurately attributed, professional reference provider cards */
.gpm-app .gpm-dual-stamp>.gpm-reference-card{padding:17px 18px;border:1px solid #d9e4ef;border-radius:15px;background:#fff;box-shadow:0 3px 14px rgba(19,53,82,.035);min-width:0;gap:11px}
.gpm-app .gpm-provider-one{border-top:3px solid #2670b9!important}
.gpm-app .gpm-provider-two{border-top:3px solid #287f75!important}
.gpm-app .gpm-provider-heading{display:flex;align-items:center;gap:11px;min-width:0;flex-wrap:wrap}
.gpm-app .gpm-provider-logo{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#e7f1fd;color:#175893;font-size:16px;font-weight:850;letter-spacing:-.04em;line-height:1}
.gpm-app .gpm-provider-logo.gpm-provider-er{background:#e2f4ef;color:#15705f}
.gpm-app .gpm-provider-logo.gpm-provider-google{background:#fff;border:1px solid #e1e6ed;color:#4285f4;font-size:25px;font-weight:800}
.gpm-app .gpm-provider-logo.gpm-provider-xe{background:#1554aa;color:#fff}
.gpm-app .gpm-provider-copy{display:flex;flex:1 1 145px;flex-direction:column;gap:3px;min-width:0}
.gpm-app .gpm-provider-copy .gpm-provider-title{font-family:inherit;color:#173452;font-size:13px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.gpm-app .gpm-provider-copy small{font-size:11px;font-weight:500;line-height:1.35;color:#708399;overflow-wrap:anywhere}
.gpm-app .gpm-locked-pill{white-space:nowrap;background:#f0f5fa;color:#496982;border:1px solid #e0e9f1;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:750}
.gpm-app .gpm-dual-stamp>.gpm-reference-card>.gpm-provider-rate{font-size:24px;letter-spacing:-.025em;color:#172f4d;font-variant-numeric:tabular-nums;font-weight:800;line-height:1.25}
.gpm-app .gpm-dual-stamp>.gpm-reference-card>.gpm-provider-date{color:#647b91;font-size:11px;line-height:1.55;margin-top:0;overflow-wrap:anywhere}
@media(max-width:700px){.gpm-app .gpm-dual-stamp>.gpm-reference-card{padding:14px}.gpm-app .gpm-dual-stamp>.gpm-reference-card>.gpm-provider-rate{font-size:22px}}


/* v3.2 — wallet totals: GBP received, today's activity and combined totals */
.gpm-app .gpm-wallet-metrics{display:grid;grid-template-columns:1fr;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid #edf1f6}
.gpm-app .gpm-wallet-metrics>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.gpm-app .gpm-wallet-metrics span{color:#7c8da1;font-size:10px;line-height:1.45}
.gpm-app .gpm-wallet-metrics strong{color:#24415f;font-size:11px;font-weight:780;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gpm-app .gpm-wallet-metrics strong small{color:#8191a3;font-size:9px;font-weight:650}
.gpm-app .gpm-all-wallet-summary{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:12px;margin:-5px 0 20px;padding:15px 18px;background:#f0f5fb;border:1px solid #dce7f2;border-radius:13px}
.gpm-app .gpm-all-wallet-summary>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.gpm-app .gpm-all-wallet-summary>div+div{padding-left:15px;border-left:1px solid #d8e3ee}
.gpm-app .gpm-all-wallet-summary span{color:#6f8298;font-size:10px;font-weight:650;line-height:1.4}
.gpm-app .gpm-all-wallet-summary strong{color:#173654;font-size:16px;font-weight:820;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gpm-app .gpm-all-wallet-summary strong small{color:#6f8298;font-size:10px;font-weight:650}
.gpm-app .gpm-business-rate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.gpm-app .gpm-reference-notice{padding:9px 11px;background:#f7f9fc;border:1px solid #e8eef5;border-radius:9px}
@media(max-width:680px){
 .gpm-app .gpm-all-wallet-summary{grid-template-columns:1fr;gap:9px;margin:-2px 0 14px;padding:12px 13px}
 .gpm-app .gpm-all-wallet-summary>div+div{padding:9px 0 0;border-left:0;border-top:1px solid #d8e3ee}
 .gpm-app .gpm-all-wallet-summary strong{font-size:14px}
 .gpm-app .gpm-wallet-metrics span{font-size:9px}
 .gpm-app .gpm-wallet-metrics strong{font-size:10px}
 .gpm-app .gpm-business-rate-grid{grid-template-columns:1fr}
}

/* v3.3 — official XE and current Google G brand assets in reference cards */
.gpm-app .gpm-provider-image{display:block;flex:0 0 auto;width:48px;height:44px;object-fit:contain;object-position:center;background:#fff;border-radius:9px;padding:2px}
.gpm-app .gpm-provider-image-xe{width:50px;height:42px}
.gpm-app .gpm-provider-image-google{width:42px;height:42px}
.gpm-app .gpm-provider-copy{flex:1 1 145px;min-width:0}
.gpm-app .gpm-provider-copy small{overflow-wrap:anywhere}
@media(max-width:700px){.gpm-app .gpm-provider-image{width:42px;height:40px}.gpm-app .gpm-provider-image-xe{width:46px;height:38px}.gpm-app .gpm-provider-image-google{width:38px;height:38px}}

/* v3.4 — professional combined + per-wallet balance hierarchy */
.gpm-app .gpm-all-wallet-summary {
  display:grid;
  grid-template-columns:minmax(1.45fr,1.35fr) repeat(3,minmax(0,1fr));
  gap:0;
  margin:0 0 18px;
  padding:18px 20px;
  color:#fff;
  background:linear-gradient(112deg,#102b4c 0%,#173d65 58%,#1c5279 100%);
  border:1px solid #1b466d;
  border-radius:16px;
  box-shadow:0 10px 26px rgba(16,43,76,.12);
}
.gpm-app .gpm-all-wallet-summary>div {display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0;padding:2px 16px}
.gpm-app .gpm-all-wallet-summary>div+div {border-left:1px solid rgba(255,255,255,.17)}
.gpm-app .gpm-all-wallet-summary .gpm-summary-primary {padding-left:2px}
.gpm-app .gpm-all-wallet-summary span {color:rgba(235,244,255,.72);font-size:10px;font-weight:700;line-height:1.45;letter-spacing:.035em}
.gpm-app .gpm-all-wallet-summary strong {color:#fff;font-size:17px;font-weight:800;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gpm-app .gpm-all-wallet-summary .gpm-summary-primary strong {font-size:25px;letter-spacing:-.025em}
.gpm-app .gpm-all-wallet-summary .gpm-summary-primary small {color:rgba(235,244,255,.65);font-size:10px;line-height:1.4}
.gpm-app .gpm-wallet-section-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 2px 11px}
.gpm-app .gpm-wallet-section-heading .gpm-eyebrow {margin:0 0 3px}
.gpm-app .gpm-wallet-section-heading h2 {margin:0;color:#183452;font-size:17px;line-height:1.3;font-weight:780;letter-spacing:-.02em}
.gpm-app .gpm-wallet-section-heading>span {color:#8190a2;font-size:11px}
.gpm-app .gpm-wallet-overview {margin-bottom:22px}
.gpm-app .gpm-wallet-card {padding:20px 22px 17px;border-radius:16px;box-shadow:0 5px 17px rgba(20,42,70,.045)}
.gpm-app .gpm-balance {font-size:25px;letter-spacing:-.035em}
.gpm-app .gpm-wallet-metrics {grid-template-columns:1fr;gap:8px;margin-top:13px;padding-top:12px}
.gpm-app .gpm-wallet-metrics>div {align-items:center}
.gpm-app .gpm-wallet-metrics span {font-size:11px}
.gpm-app .gpm-wallet-metrics strong {font-size:12px}
.gpm-app .gpm-card-foot {margin-top:10px;padding-top:8px;border-top:1px solid #edf1f6;font-size:10px}

/* v3.4 — concise customer-facing payment slip; technical reference metadata remains stored in DB */
.gpm-app .gpm-receipt-dialog {max-width:560px;padding:25px 30px 27px}
.gpm-app .gpm-receipt-meta {display:flex;justify-content:space-between;gap:12px;margin:7px 0 15px;color:#8090a3;font-size:11px;font-weight:600}
.gpm-app .gpm-receipt-amount {margin-bottom:15px;background:linear-gradient(110deg,#eef5fb,#f4f8fc);border:1px solid #e3edf6}
.gpm-app .gpm-receipt-grid {gap:0 22px}
.gpm-app .gpm-receipt-grid>div {padding:10px 0}
.gpm-app .gpm-receipt-grid span {font-size:11px}
.gpm-app .gpm-receipt-grid strong {font-size:14px}
.gpm-app .gpm-receipt-grid .gpm-receipt-profit {background:#eff9f3;border:1px solid #d9eee1;border-radius:10px;padding:11px 12px;margin:7px 0}
.gpm-app .gpm-receipt-reference-block {margin-top:14px;padding:13px 15px;background:#f6f8fb;border:1px solid #e5ebf2;border-radius:12px}
.gpm-app .gpm-receipt-reference-heading {display:flex;flex-direction:column;gap:2px;margin-bottom:7px}
.gpm-app .gpm-receipt-reference-heading strong {color:#29435e;font-size:12px;font-weight:800}
.gpm-app .gpm-receipt-reference-heading small {color:#8795a6;font-size:10px}
.gpm-app .gpm-receipt-reference-block>div:not(.gpm-receipt-reference-heading) {display:flex;justify-content:space-between;gap:14px;padding:6px 0;border-top:1px solid #e8edf3}
.gpm-app .gpm-receipt-reference-block span {color:#73849a;font-size:11px}
.gpm-app .gpm-receipt-reference-block>div>strong {color:#28435f;font-size:12px;font-variant-numeric:tabular-nums}
.gpm-app .gpm-receipt-note {display:flex;flex-direction:column;gap:4px;margin-top:12px;padding:11px 13px;background:#fff;border:1px solid #e7edf3;border-radius:10px}
.gpm-app .gpm-receipt-note span {color:#7a8ba0;font-size:10px}
.gpm-app .gpm-receipt-note strong {color:#28435f;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.gpm-app .gpm-receipt-disclaimer {margin:12px 0 14px;font-size:10px}
@media(max-width:900px){
  .gpm-app .gpm-all-wallet-summary {grid-template-columns:repeat(3,minmax(0,1fr));row-gap:14px}
  .gpm-app .gpm-all-wallet-summary .gpm-summary-primary {grid-column:1/-1;padding:0 0 12px;border-bottom:1px solid rgba(255,255,255,.17)}
  .gpm-app .gpm-all-wallet-summary>div:nth-child(2) {border-left:0;padding-left:0}
}
@media(max-width:680px){
  .gpm-app .gpm-all-wallet-summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:14px 15px}
  .gpm-app .gpm-all-wallet-summary .gpm-summary-primary {grid-column:1/-1;padding:0 0 12px;margin-bottom:10px}
  .gpm-app .gpm-all-wallet-summary>div {padding:8px 9px}
  .gpm-app .gpm-all-wallet-summary>div:nth-child(2) {padding-left:0}
  .gpm-app .gpm-all-wallet-summary>div:nth-child(4) {border-left:1px solid rgba(255,255,255,.17)}
  .gpm-app .gpm-all-wallet-summary strong {font-size:14px}
  .gpm-app .gpm-all-wallet-summary .gpm-summary-primary strong {font-size:23px}
  .gpm-app .gpm-wallet-section-heading {align-items:flex-start;margin-bottom:9px}
  .gpm-app .gpm-wallet-section-heading h2 {font-size:15px}
  .gpm-app .gpm-wallet-section-heading>span {font-size:9px;text-align:right}
  .gpm-app .gpm-wallet-overview {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .gpm-app .gpm-wallet-card {padding:13px 12px}
  .gpm-app .gpm-balance {font-size:18px;overflow-wrap:anywhere}
  .gpm-app .gpm-wallet-metrics span {font-size:9px}
  .gpm-app .gpm-wallet-metrics strong {font-size:10px}
  .gpm-app .gpm-card-foot {align-items:flex-start;font-size:9px}
  .gpm-app .gpm-card-foot strong {font-size:9px}
  .gpm-app .gpm-receipt-dialog {padding:19px 18px 22px}
  .gpm-app .gpm-receipt-meta {font-size:10px}
  .gpm-app .gpm-receipt-grid {gap:0 13px}
  .gpm-app .gpm-receipt-grid strong {font-size:12px}
}
@media(max-width:420px){
  .gpm-app .gpm-wallet-overview {grid-template-columns:1fr}
  .gpm-app .gpm-wallet-card {padding:14px 15px}
  .gpm-app .gpm-balance {font-size:21px}
  .gpm-app .gpm-all-wallet-summary span {font-size:9px}
}


/* v3.5 — selectable historical dashboard, net balances and Main Company outflows */
.gpm-app .gpm-dashboard-date-filter{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;padding:13px 15px;background:#f7f9fc;border:1px solid #e4ebf3;border-radius:12px}
.gpm-app .gpm-dashboard-date-filter form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.gpm-app .gpm-dashboard-date-filter label{color:#405a75;font-size:12px;font-weight:750}
.gpm-app .gpm-dashboard-date-filter input{min-height:38px;padding:7px 10px;border:1px solid #ccd9e7;border-radius:8px;background:#fff;color:#183452;font-family:inherit;font-size:12px;font-weight:600}
.gpm-app .gpm-dashboard-date-filter button{min-height:38px;padding:0 15px;border:0;border-radius:8px;background:#173d65;color:#fff;font-size:11px;font-weight:750;cursor:pointer}
.gpm-app .gpm-dashboard-date-filter a{color:#2868a5;font-size:11px;font-weight:750;text-decoration:none}
.gpm-app .gpm-dashboard-date-filter p{margin:0;color:#8392a4;font-size:10px;line-height:1.45}
.gpm-app .gpm-all-wallet-summary{grid-template-columns:minmax(1.35fr,1.35fr) repeat(4,minmax(0,1fr))}
.gpm-app .gpm-all-wallet-summary .gpm-summary-outgoing strong{color:#c9f4df}
.gpm-app .gpm-all-wallet-summary .gpm-summary-outgoing small{color:rgba(235,244,255,.65);font-size:9px}
.gpm-app .gpm-wallet-metrics .gpm-wallet-sent-today{padding-top:7px;border-top:1px solid #edf1f6}
.gpm-app .gpm-wallet-metrics .gpm-wallet-sent-today strong{color:#b54747}
.gpm-app .gpm-money-out-success{margin:0 0 15px;padding:12px 15px;color:#176344;background:#edf9f2;border:1px solid #cfeedd;border-radius:10px;font-size:12px;line-height:1.5}
.gpm-app .gpm-money-out-card{margin-top:20px;overflow:hidden;background:#fff;border:1px solid #e0e8f1;border-radius:15px;box-shadow:0 4px 16px rgba(20,42,70,.035)}
.gpm-app .gpm-money-out-heading{border-bottom:1px solid #edf1f5}
.gpm-app .gpm-money-out-heading .gpm-heading-icon{color:#a33f45;background:#fff0f0}
.gpm-app .gpm-money-out-form{padding:19px 22px 21px}
.gpm-app .gpm-money-out-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.gpm-app .gpm-money-out-fields .gpm-field-block{margin:0}
.gpm-app .gpm-money-out-fields input[readonly]{background:#f6f8fb!important;color:#64778d!important}
.gpm-app .gpm-money-out-note{margin-top:14px}
.gpm-app .gpm-money-out-note textarea{display:block;width:100%;min-height:64px;padding:11px 13px;border:1px solid #cfdbe8;border-radius:10px;color:#1c3048;background:#fff;font:inherit;font-size:13px;resize:vertical}
.gpm-app .gpm-money-out-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:300px;min-height:48px;margin:16px 0 0 auto;padding:0 18px;border:0;border-radius:10px;background:linear-gradient(105deg,#7c3039,#a4444d);color:#fff;font-size:12px;font-weight:780;cursor:pointer;box-shadow:0 6px 14px rgba(124,48,57,.12)}
.gpm-app .gpm-money-out-button b{font-size:18px;font-weight:500}
.gpm-app .gpm-activity-out{display:inline-block;padding:4px 8px;color:#9b3c45;background:#fff0f0;border-radius:7px;font-size:10px;font-weight:750}
.gpm-app .gpm-activity-in{display:inline-block;padding:4px 8px;color:#18704e;background:#eaf7f0;border-radius:7px;font-size:10px;font-weight:750}
.gpm-app .gpm-negative{color:#b54747!important;font-weight:780}
@media(max-width:980px){.gpm-app .gpm-all-wallet-summary{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:12px}.gpm-app .gpm-all-wallet-summary .gpm-summary-primary{grid-column:1/-1}.gpm-app .gpm-all-wallet-summary>div:nth-child(2){border-left:0;padding-left:0}}
@media(max-width:680px){
 .gpm-app .gpm-dashboard-date-filter form{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .gpm-app .gpm-dashboard-date-filter label{grid-column:1/-1}
 .gpm-app .gpm-dashboard-date-filter input{width:100%;min-width:0}
 .gpm-app .gpm-dashboard-date-filter button{width:100%}
 .gpm-app .gpm-all-wallet-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
 .gpm-app .gpm-all-wallet-summary .gpm-summary-primary{grid-column:1/-1}
 .gpm-app .gpm-all-wallet-summary>div{padding:8px 9px}
 .gpm-app .gpm-all-wallet-summary>div:nth-child(2){padding-left:0}
 .gpm-app .gpm-all-wallet-summary>div:nth-child(4){border-left:1px solid rgba(255,255,255,.17)}
 .gpm-app .gpm-all-wallet-summary>div:nth-child(5){padding-left:0;border-left:0}
 .gpm-app .gpm-money-out-fields{grid-template-columns:1fr;gap:12px}
 .gpm-app .gpm-money-out-form{padding:15px}
 .gpm-app .gpm-money-out-button{max-width:none}
}

@media(max-width:980px){.gpm-app .gpm-all-wallet-summary>div:nth-child(5){border-left:0;padding-left:0}}
@media(max-width:680px){
 .gpm-app .gpm-all-wallet-summary>div:nth-child(4){border-left:0;padding-left:0}
 .gpm-app .gpm-all-wallet-summary>div:nth-child(5){border-left:1px solid rgba(255,255,255,.17);padding-left:9px}
}

/* Version 3.6 — optional encrypted payment proof uploads */
.gpm-proof-field { margin-top: 18px; }
.gpm-proof-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px dashed #b8c9dc;
  border-radius: 10px;
  background: #f8fbff;
  color: #243b55;
  font: inherit;
  font-size: 14px;
}
.gpm-proof-input::file-selector-button {
  margin-right: 12px;
  padding: 9px 13px;
  border: 0;
  border-radius: 7px;
  background: #e8f1fb;
  color: #174b7b;
  font-weight: 700;
  cursor: pointer;
}
.gpm-proof-selected { display: block; margin-top: 7px; color: #244f79; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.gpm-receipt-proof { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #e5ebf2; }
.gpm-receipt-proof span { color: #70839a; }
.gpm-receipt-proof a, .gpm-proof-view-link { color: #1767ad; font-weight: 700; text-decoration: none; }
.gpm-receipt-proof a:hover, .gpm-proof-view-link:hover { text-decoration: underline; }
.gpm-proof-view-link { white-space: nowrap; }
@media (max-width: 640px) {
  .gpm-proof-input { font-size: 13px; }
  .gpm-receipt-proof { align-items: flex-start; flex-direction: column; }
}


/* Version 3.7.0 — progressive Money In / Money Out action chooser */
.gpm-app .gpm-transaction-launcher {
  margin: 24px 0 18px;
  padding: 22px;
  border: 1px solid #dce6f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(23, 53, 83, .045);
}
.gpm-app .gpm-transaction-launcher-heading { margin: 0 0 16px; }
.gpm-app .gpm-transaction-launcher-heading .gpm-eyebrow { margin: 0 0 5px; }
.gpm-app .gpm-transaction-launcher-heading h2 {
  margin: 0;
  color: #183653;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -.02em;
}
.gpm-app .gpm-transaction-launcher-heading p:last-child {
  margin: 5px 0 0;
  color: #7b8fa6;
  font-size: 13px;
}
.gpm-app .gpm-transaction-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gpm-app .gpm-transaction-action {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 17px 18px;
  border: 1px solid #dce6f1;
  border-radius: 13px;
  background: #fff;
  color: #183653;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(25, 55, 85, .035);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.gpm-app .gpm-transaction-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(25, 55, 85, .08);
}
.gpm-app .gpm-transaction-action:focus-visible {
  outline: 3px solid rgba(42, 112, 184, .22);
  outline-offset: 3px;
}
.gpm-app .gpm-transaction-action-icon {
  display: inline-flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
}
.gpm-app .gpm-action-in .gpm-transaction-action-icon { background: #e9f6ef; color: #16834b; }
.gpm-app .gpm-action-out .gpm-transaction-action-icon { background: #fff0f0; color: #b33b45; }
.gpm-app .gpm-transaction-action-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
.gpm-app .gpm-transaction-action-copy strong { color: #183653; font-size: 16px; font-weight: 750; }
.gpm-app .gpm-transaction-action-copy small { color: #7b8fa6; font-size: 12px; line-height: 1.45; }
.gpm-app .gpm-transaction-action-arrow { flex: 0 0 auto; color: #8ba0b7; font-size: 21px; font-weight: 600; }
.gpm-app .gpm-action-in.is-selected { border-color: #8bc8a6; background: #f5fbf7; box-shadow: 0 0 0 3px rgba(38, 145, 85, .08); }
.gpm-app .gpm-action-out.is-selected { border-color: #e0a0a4; background: #fff8f8; box-shadow: 0 0 0 3px rgba(179, 59, 69, .07); }
.gpm-app .gpm-transaction-panels { margin-top: 0; }
.gpm-app.gpm-chooser-ready .gpm-transaction-panels > [data-gpm-mode-panel] { display: none !important; }
.gpm-app.gpm-chooser-ready .gpm-transaction-panels > [data-gpm-mode-panel].is-active { display: block !important; animation: gpm-panel-in .18s ease-out; }
@keyframes gpm-panel-in {
  from { opacity: .55; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 680px) {
  .gpm-app .gpm-transaction-launcher { margin: 18px 0 14px; padding: 15px; border-radius: 13px; }
  .gpm-app .gpm-transaction-action-grid { grid-template-columns: 1fr; gap: 10px; }
  .gpm-app .gpm-transaction-action { min-height: 78px; padding: 13px; gap: 11px; }
  .gpm-app .gpm-transaction-action-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 10px; font-size: 24px; }
  .gpm-app .gpm-transaction-action-copy strong { font-size: 15px; }
}


/* v3.8.0 — compact workspace header and integrated reports/statements */
.gpm-app {
  margin-top: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 16px;
}
.gpm-app .gpm-topbar {
  padding: 12px 18px;
}
.gpm-app .gpm-main {
  padding: 17px 2px 12px;
}
.gpm-app .gpm-heading-row {
  align-items: center;
  margin: 0 2px 12px;
}
.gpm-app .gpm-heading-row h1 {
  font-size: 27px;
  line-height: 1.12;
}
.gpm-app .gpm-subtitle {
  margin-top: 4px;
  font-size: 12px;
}
.gpm-app .gpm-db-indicator { display: none !important; }
.gpm-app .gpm-dashboard-date-filter {
  margin: 0 0 14px;
  padding: 9px 12px;
  gap: 0;
  border-radius: 10px;
}
.gpm-app .gpm-dashboard-date-filter form { gap: 8px; }
.gpm-app .gpm-dashboard-date-filter label { font-size: 11px; }
.gpm-app .gpm-dashboard-date-filter input,
.gpm-app .gpm-dashboard-date-filter button { min-height: 34px; }
.gpm-app .gpm-all-wallet-summary { margin-top: 0; }
.gpm-app .gpm-transaction-launcher { margin-top: 18px; }

.gpm-app .gpm-workspace-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid #e0e8f1;
  border-radius: 11px;
  background: #eef3f8;
}
.gpm-app .gpm-workspace-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667b93;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.gpm-app .gpm-workspace-tab:hover { color: #173c62; }
.gpm-app .gpm-workspace-tab.is-active {
  background: #fff;
  color: #173c62;
  box-shadow: 0 2px 7px rgba(20, 48, 78, .09);
}
.gpm-app .gpm-workspace-tab:focus-visible {
  outline: 2px solid #4388cf;
  outline-offset: 2px;
}
.gpm-app .gpm-workspace-panel[hidden] { display: none !important; }

.gpm-app .gpm-reports-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 2px 14px;
}
.gpm-app .gpm-reports-heading h2 {
  margin: 0;
  color: #183452;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: -.55px !important;
}
.gpm-app .gpm-reports-heading p:last-child {
  margin: 5px 0 0;
  color: #7b8ca2;
  font-size: 12px;
}
.gpm-app .gpm-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d7e2ee;
  border-radius: 9px;
  background: #fff;
  color: #1d5d98;
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.gpm-app .gpm-export-button:hover { background: #f2f7fc; }
.gpm-app .gpm-report-filter-card {
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #e0e8f1;
  border-radius: 12px;
  background: #fff;
}
.gpm-app .gpm-report-filter-card form {
  display: grid;
  grid-template-columns: minmax(140px,1fr) minmax(140px,1fr) minmax(170px,1.2fr) auto;
  align-items: end;
  gap: 11px;
}
.gpm-app .gpm-report-filter-field { min-width: 0; }
.gpm-app .gpm-report-filter-field label {
  display: block;
  margin: 0 0 5px;
  color: #405873;
  font-size: 11px;
  font-weight: 750;
}
.gpm-app .gpm-report-filter-field input,
.gpm-app .gpm-report-filter-field select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #d5e0eb;
  border-radius: 8px;
  background: #fff;
  color: #203b59;
  font: inherit;
  font-size: 12px;
}
.gpm-app .gpm-report-apply {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: #173d65;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.gpm-app .gpm-report-apply:hover { background: #22527f; }
.gpm-app .gpm-report-kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 11px;
  margin-bottom: 14px;
}
.gpm-app .gpm-report-kpis article {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #e0e8f1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20,42,70,.025);
}
.gpm-app .gpm-report-kpis span,
.gpm-app .gpm-statement-balances span {
  display: block;
  color: #77899e;
  font-size: 10px;
  font-weight: 700;
}
.gpm-app .gpm-report-kpis strong {
  display: block;
  margin-top: 5px;
  color: #173653;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.gpm-app .gpm-report-kpis small {
  display: block;
  margin-top: 4px;
  color: #91a0b1;
  font-size: 9px;
}
.gpm-app .gpm-report-kpis .gpm-report-profit { color: #168452; }
.gpm-app .gpm-statement-card {
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20,42,70,.035);
}
.gpm-app .gpm-statement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e9eef4;
  background: linear-gradient(110deg,#fff,#f7faff);
}
.gpm-app .gpm-statement-head h3 {
  margin: 0;
  color: #183452;
  font-size: 17px;
  font-weight: 780;
}
.gpm-app .gpm-statement-head p:last-child {
  margin: 4px 0 0;
  color: #8191a4;
  font-size: 10px;
}
.gpm-app .gpm-statement-balances {
  display: flex;
  gap: 20px;
}
.gpm-app .gpm-statement-balances > div + div {
  padding-left: 18px;
  border-left: 1px solid #dfe7f0;
}
.gpm-app .gpm-statement-balances strong {
  display: block;
  margin-top: 4px;
  color: #183653;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.gpm-app .gpm-statement-table { min-width: 900px; }
.gpm-app .gpm-statement-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid #e9eef4;
  background: #f8fafc;
  color: #7d8da1;
  font-size: 10px;
}
.gpm-app .gpm-statement-foot strong { color: #183653; font-size: 11px; }

@media (max-width: 760px) {
  .gpm-app { margin: 8px auto 16px; padding: 10px; border-radius: 12px; }
  .gpm-app .gpm-topbar { padding: 10px 12px; }
  .gpm-app .gpm-main { padding: 13px 0 8px; }
  .gpm-app .gpm-heading-row { margin: 0 1px 10px; }
  .gpm-app .gpm-heading-row h1 { font-size: 23px; }
  .gpm-app .gpm-workspace-tabs { width: 100%; }
  .gpm-app .gpm-workspace-tab { flex: 1; padding: 0 8px; font-size: 11px; }
  .gpm-app .gpm-dashboard-date-filter form { gap: 7px; }
  .gpm-app .gpm-dashboard-date-filter label { width: 100%; }
  .gpm-app .gpm-reports-heading { align-items: flex-start; }
  .gpm-app .gpm-reports-heading h2 { font-size: 20px; }
  .gpm-app .gpm-report-filter-card form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gpm-app .gpm-report-filter-card .gpm-report-apply { grid-column: 1 / -1; }
  .gpm-app .gpm-report-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gpm-app .gpm-report-kpis article { padding: 11px; }
  .gpm-app .gpm-report-kpis strong { font-size: 14px; }
  .gpm-app .gpm-statement-head { align-items: flex-start; flex-direction: column; }
  .gpm-app .gpm-statement-balances { width: 100%; justify-content: space-between; }
}
@media (max-width: 420px) {
  .gpm-app .gpm-report-filter-card form { grid-template-columns: 1fr; }
  .gpm-app .gpm-report-filter-card .gpm-report-apply { grid-column: auto; }
  .gpm-app .gpm-reports-heading { flex-direction: column; }
  .gpm-app .gpm-export-button { align-self: flex-start; }
  .gpm-app .gpm-statement-balances { gap: 10px; }
  .gpm-app .gpm-statement-balances > div + div { padding-left: 10px; }
  .gpm-app .gpm-statement-balances strong { font-size: 11px; }
}
@media print {
  body.gpm-print-statement .gpm-topbar,
  body.gpm-print-statement .gpm-heading-row,
  body.gpm-print-statement .gpm-workspace-tabs,
  body.gpm-print-statement [data-gpm-tab-panel="dashboard"],
  body.gpm-print-statement .gpm-report-filter-card,
  body.gpm-print-statement .gpm-export-button { display: none !important; }
  body.gpm-print-statement .gpm-app { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  body.gpm-print-statement .gpm-app .gpm-statement-card { border: 0; box-shadow: none; }
}

.gpm-app .gpm-report-actions { display:flex; align-items:center; gap:8px; }
.gpm-app .gpm-print-statement {
  min-height:38px; padding:0 13px; border:1px solid #d7e2ee; border-radius:9px;
  background:#fff; color:#405a75; font:inherit; font-size:11px; font-weight:750; cursor:pointer;
}
.gpm-app .gpm-print-statement:hover { background:#f2f7fc; }
@media(max-width:420px) {
  .gpm-app .gpm-report-actions { width:100%; }
  .gpm-app .gpm-report-actions > * { flex:1; text-align:center; }
}

/* v3.9 — amount-first wallet hierarchy, clean and mobile-friendly */
.gpm-app .gpm-all-wallet-summary .gpm-balance-gbp{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;margin:6px 0 3px;padding-top:9px;border-top:1px solid rgba(255,255,255,.18)}
.gpm-app .gpm-all-wallet-summary .gpm-balance-gbp span{color:#bfd0e3;font-size:11px;font-weight:650;letter-spacing:0}
.gpm-app .gpm-all-wallet-summary .gpm-balance-gbp strong{font-size:18px;font-weight:750;color:#fff;white-space:nowrap}
.gpm-app .gpm-wallet-gbp{display:flex;justify-content:space-between;align-items:baseline;gap:9px;margin:9px 0 14px;padding:10px 12px;background:#f1f6fb;border:1px solid #e2eaf3;border-radius:9px}
.gpm-app .gpm-wallet-gbp span{font-size:11px;color:#61768d;font-weight:650}
.gpm-app .gpm-wallet-gbp strong{font-size:17px;color:#123553;font-weight:800;letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums}
.gpm-app .gpm-money-out-button.is-submitting{opacity:.78;cursor:progress}
.gpm-app .gpm-out-status{margin:14px 0 0;padding:10px 14px;background:#eaf2fb;color:#224e78;border:1px solid #d0e2f5;border-radius:9px;font-size:12px;font-weight:600}
.gpm-app .gpm-out-status.is-error{background:#fff5f0;border-color:#f0d0c5;color:#923c2c}
@media(max-width:700px){.gpm-app .gpm-wallet-gbp{flex-direction:column;gap:2px}.gpm-app .gpm-all-wallet-summary .gpm-balance-gbp{align-items:flex-start;flex-direction:column;gap:3px}.gpm-app .gpm-all-wallet-summary .gpm-balance-gbp strong{font-size:17px}}

/* v3.10 — three clear columns: balance / received on date / sent */
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered {
  grid-template-columns:minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr);
  align-items:stretch;
  gap:0;
  padding:20px 24px;
}
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered > div {
  min-width:0;
  padding:5px 22px;
}
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-primary {padding-left:0;}
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-primary strong {font-size:clamp(20px,2.1vw,29px);}
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-daily,
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-sent {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
}
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-metric {display:flex;flex-direction:column;gap:6px;min-width:0;}
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-metric strong {font-size:clamp(16px,1.4vw,20px);}
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-metric + .gpm-summary-metric {padding-top:13px;border-top:1px solid rgba(255,255,255,.12);}
.gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-primary small {margin-top:3px;}
@media(max-width:900px) {
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered {grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;}
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-primary {grid-column:1/-1;border:0;border-bottom:1px solid rgba(255,255,255,.18);padding:0 0 17px;margin-bottom:15px;}
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-daily {padding:0 17px 0 0;border-left:0;}
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-sent {padding:0 0 0 17px;border-left:1px solid rgba(255,255,255,.18);}
}
@media(max-width:540px) {
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered {grid-template-columns:1fr;padding:17px;}
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-primary {grid-column:1;}
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-daily,
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-sent {padding:0;border-left:0;gap:13px;}
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-daily {padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid rgba(255,255,255,.18);}
  .gpm-app .gpm-all-wallet-summary.gpm-summary-reordered .gpm-summary-metric + .gpm-summary-metric {padding-top:11px;}
}

/* v3.11: wallet cards -- GBP immediately under PKR; remove duplicated totals rows */
.gpm-app .gpm-wallet-gbp-compact{display:flex;align-items:baseline;gap:9px;margin:6px 0 12px;padding:0;border:0;background:transparent;flex-wrap:wrap}
.gpm-app .gpm-wallet-gbp-compact strong{color:#1d527d;font-size:20px;font-weight:800;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.gpm-app .gpm-wallet-gbp-compact span{font-size:11px;font-weight:600;color:#8091a5}
.gpm-app .gpm-wallet-metrics{margin-top:10px}

/* v3.12 transaction slips, administrator-only corrections */
.gpm-app tr.gpm-clickable-transaction{cursor:pointer;transition:background .15s ease}
.gpm-app tr.gpm-clickable-transaction:hover,.gpm-app tr.gpm-clickable-transaction:focus-visible{background:#eff6ff;outline:2px solid #aac8eb;outline-offset:-2px}
.gpm-app .gpm-row-receipt{color:#17548e;font-weight:650;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
.gpm-app .gpm-row-receipt:hover{text-decoration-color:currentColor}
.gpm-app .gpm-actions-cell{min-width:142px;white-space:nowrap}
.gpm-app .gpm-actions-cell>a{display:inline-flex;align-items:center;padding:6px 9px;border:1px solid #d6e4ef;border-radius:7px;font-size:12px;font-weight:700;color:#184a77;background:#f3f8ff;text-decoration:none;margin-right:5px}
.gpm-app .gpm-void-form{display:inline;margin:0;padding:0}
.gpm-app .gpm-void-form button{border:1px solid #f2d5d7;background:#fff5f5;color:#a23844;border-radius:7px;padding:7px 9px;font-weight:700;font-size:12px;cursor:pointer}
.gpm-app .gpm-editor-dialog{max-width:560px}
.gpm-app .gpm-edit-form{display:grid;gap:14px;margin:16px 0 0}
.gpm-app .gpm-edit-form label{display:flex;flex-direction:column;gap:6px;color:#304963;font-weight:700;font-size:13px}
.gpm-app .gpm-edit-form input,.gpm-app .gpm-edit-form select,.gpm-app .gpm-edit-form textarea{width:100%;box-sizing:border-box;border:1px solid #cad9e8;border-radius:9px;background:#fff;color:#16304e;padding:11px;font:inherit}
.gpm-app .gpm-edit-form .gpm-receipt-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.gpm-app .gpm-edit-form .gpm-receipt-done{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:640px){.gpm-app .gpm-actions-cell{min-width:125px}.gpm-app .gpm-actions-cell>a,.gpm-app .gpm-void-form button{padding:7px}}

.gpm-rate-diagnostic{display:inline-flex;align-items:center;padding:9px 14px;border:1px solid #cbddeb;border-radius:9px;background:#fff;color:#19476c;font-weight:650;text-decoration:none;font-size:13px;margin-left:8px}.gpm-rate-diagnostic:hover{background:#eef5fa}

/* v3.17: rate box is served from a private no-cache WordPress endpoint */
.gpm-app .gpm-live-rate-panel{margin:14px 0 8px;width:100%}
.gpm-app .gpm-rate-cards-frame{display:block;width:100%;height:195px;border:0;background:transparent}
.gpm-app .gpm-rate-frame-help{margin:5px 0!important;font-size:11px;color:#74869a}
.gpm-app .gpm-rate-frame-help a{color:#175a97;text-decoration:underline}
@media(max-width:620px){.gpm-app .gpm-rate-cards-frame{height:340px}}

/* v3.19.0 — compact, readable Money In reference area on mobile only */
@media (max-width: 700px) {
 .gpm-app .gpm-rate-source-row {
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr));
   column-gap:8px;row-gap:10px;
   align-items:stretch;
   margin:12px 0 10px!important;
 }
 .gpm-app .gpm-rate-source-row > div:first-child {grid-column:1/-1;min-width:0}
 .gpm-app .gpm-rate-source-row .gpm-small-label {display:block;font-size:10px;letter-spacing:.08em}
 .gpm-app .gpm-rate-source-row .gpm-source-name {font-size:12px;line-height:1.4;margin-top:3px;max-width:100%}
 .gpm-app .gpm-rate-source-row .gpm-fetch-rate,
 .gpm-app .gpm-rate-source-row .gpm-rate-diagnostic {
   display:flex!important;align-items:center;justify-content:center;
   width:100%;box-sizing:border-box;min-height:41px;
   margin:0!important;padding:9px 8px!important;
   font-size:11px!important;line-height:1.25!important;
   text-align:center;white-space:normal;overflow-wrap:anywhere;
 }
 .gpm-app .gpm-live-rate-panel {margin:8px 0 0!important;min-width:0;max-width:100%}
 .gpm-app .gpm-rate-cards-frame {width:100%!important;max-width:100%;height:490px;border:0;display:block;overflow:hidden}
 .gpm-app .gpm-rate-frame-help {font-size:10px;line-height:1.45;margin:5px 0!important}
 .gpm-app .gpm-reference-notice {font-size:10px;line-height:1.5;margin:7px 0 12px;padding:8px 10px}
 .gpm-app .gpm-selected-wallet-banner {margin-bottom:10px}
 .gpm-app .gpm-dynamic-layout {margin-top:8px}
}
@media (max-width: 360px) {
 .gpm-app .gpm-rate-source-row {grid-template-columns:1fr}
 .gpm-app .gpm-rate-source-row > div:first-child {grid-column:1}
 .gpm-app .gpm-rate-cards-frame {height:540px}
}

/* v3.20: iframe height follows rate-card content, not a permanent mobile placeholder. */
@media (max-width: 700px) {
  .gpm-app .gpm-rate-cards-frame { min-height:0!important; transition:none!important; }
  .gpm-app .gpm-rate-frame-help { margin-top:2px!important; }
}


/* v3.33 — professional receipt / final slip layout fix for Central Operations shell */
.gpm-app .gpm-receipt-overlay{align-items:center!important;justify-content:center!important;}
.gpm-app .gpm-receipt-dialog,
body.csm-body .gpm-central-content .gpm-receipt-dialog{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  gap:0!important;
  width:min(100%,760px)!important;
  max-width:760px!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:22px!important;
  border:1px solid #dbe5ef;
  background:#ffffff!important;
}
.gpm-app .gpm-receipt-dialog *{box-sizing:border-box;}
.gpm-app .gpm-receipt-accent{position:static!important;flex:0 0 auto;height:6px;background:linear-gradient(90deg,#1c7665,#2f8fb8)!important;}
.gpm-app .gpm-receipt-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;padding:24px 28px 18px!important;margin:0!important;border-bottom:1px solid #e8eef5;background:linear-gradient(180deg,#f9fbfd 0%,#ffffff 100%);}
.gpm-app .gpm-receipt-head-main{display:flex!important;align-items:flex-start!important;gap:16px!important;min-width:0!important;flex:1 1 auto!important;}
.gpm-app .gpm-receipt-title-block{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:5px!important;min-width:0!important;}
.gpm-app .gpm-receipt-check{flex:0 0 48px!important;margin:0!important;}
.gpm-app .gpm-receipt-eyebrow{margin:0!important;font-size:11px!important;letter-spacing:1.8px!important;color:#5f7389!important;}
.gpm-app .gpm-receipt-dialog h2{margin:0!important;font-size:28px!important;line-height:1.2!important;color:#173452!important;}
.gpm-app .gpm-receipt-description{margin:0!important;font-size:13px!important;line-height:1.55!important;color:#667b90!important;}
.gpm-app .gpm-receipt-close{flex:0 0 auto!important;margin:0!important;align-self:flex-start!important;}
.gpm-app .gpm-receipt-meta{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:18px 28px 0!important;margin:0!important;}
.gpm-app .gpm-receipt-meta-chip{display:flex!important;flex-direction:column!important;gap:4px!important;padding:12px 14px!important;border:1px solid #e3ebf3!important;border-radius:14px!important;background:#f8fbfe!important;color:#54708a!important;min-width:0!important;}
.gpm-app .gpm-receipt-meta-chip small{display:block!important;font-size:10px!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#7f92a6!important;}
.gpm-app .gpm-receipt-meta-chip strong{display:block!important;font-size:13px!important;line-height:1.45!important;color:#1d3856!important;font-weight:800!important;font-variant-numeric:tabular-nums!important;overflow-wrap:anywhere!important;}
.gpm-app .gpm-receipt-amount{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:18px!important;margin:18px 28px 0!important;padding:20px 22px!important;border:1px solid #dbe8f3!important;border-radius:16px!important;background:linear-gradient(135deg,#eff6fb 0%,#f9fcff 100%)!important;}
.gpm-app .gpm-receipt-amount > div{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;}
.gpm-app .gpm-receipt-amount small{margin:0!important;font-size:12px!important;line-height:1.4!important;text-transform:uppercase!important;letter-spacing:.04em!important;color:#60778f!important;}
.gpm-app .gpm-receipt-amount strong{margin:0!important;font-size:34px!important;line-height:1.1!important;color:#0f2f4d!important;font-weight:800!important;font-variant-numeric:tabular-nums!important;overflow-wrap:anywhere!important;}
.gpm-app .gpm-receipt-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:8px 12px!important;border-radius:999px!important;background:#e6f5ef!important;border:1px solid #cce7db!important;color:#146c56!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;}
.gpm-app .gpm-receipt-section{padding:18px 28px 0!important;}
.gpm-app .gpm-receipt-section-heading{margin:0 0 12px!important;font-size:12px!important;font-weight:800!important;letter-spacing:.05em!important;text-transform:uppercase!important;color:#6a8097!important;}
.gpm-app .gpm-receipt-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0!important;align-items:stretch!important;}
.gpm-app .gpm-receipt-grid>div{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:6px!important;padding:14px 15px!important;margin:0!important;border:1px solid #e6edf4!important;border-radius:14px!important;background:#fff!important;min-width:0!important;}
.gpm-app .gpm-receipt-grid span{font-size:11px!important;line-height:1.4!important;color:#74869a!important;}
.gpm-app .gpm-receipt-grid strong{font-size:16px!important;line-height:1.35!important;color:#183453!important;font-weight:800!important;overflow-wrap:anywhere!important;font-variant-numeric:tabular-nums!important;}
.gpm-app .gpm-receipt-grid .gpm-receipt-profit{background:linear-gradient(135deg,#effaf4 0%,#ffffff 100%)!important;border-color:#d6ebde!important;}
.gpm-app .gpm-receipt-grid .gpm-receipt-profit strong{color:#14724e!important;}
.gpm-app .gpm-receipt-reference-block{margin:14px 0 0!important;padding:16px!important;border-radius:16px!important;background:#f7fafc!important;border:1px solid #e2eaf2!important;}
.gpm-app .gpm-receipt-reference-heading{margin:0 0 10px!important;}
.gpm-app .gpm-receipt-reference-heading strong{font-size:13px!important;}
.gpm-app .gpm-receipt-reference-heading small{font-size:10px!important;line-height:1.5!important;}
.gpm-app .gpm-receipt-reference-block>div:not(.gpm-receipt-reference-heading){display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:14px!important;padding:10px 0!important;}
.gpm-app .gpm-receipt-reference-block>div>strong{text-align:right!important;}
.gpm-app .gpm-receipt-note,
.gpm-app .gpm-receipt-proof{margin:14px 28px 0!important;padding:14px 16px!important;border:1px solid #e3ebf3!important;border-radius:14px!important;background:#ffffff!important;}
.gpm-app .gpm-receipt-note{display:flex!important;flex-direction:column!important;gap:6px!important;}
.gpm-app .gpm-receipt-proof{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;}
.gpm-app .gpm-receipt-note span,
.gpm-app .gpm-receipt-proof span{font-size:11px!important;color:#7a8ca0!important;}
.gpm-app .gpm-receipt-note strong{font-size:13px!important;line-height:1.6!important;}
.gpm-app .gpm-receipt-proof a{font-size:13px!important;}
.gpm-app .gpm-receipt-disclaimer{margin:16px 28px 0!important;padding-top:14px!important;border-top:1px dashed #d9e3ed!important;font-size:11px!important;line-height:1.6!important;color:#73869b!important;}
.gpm-app .gpm-receipt-actions{display:flex!important;gap:12px!important;padding:20px 28px 28px!important;margin:0!important;}
.gpm-app .gpm-receipt-actions button{min-height:48px!important;font-size:14px!important;}
.gpm-app .gpm-receipt-print{background:#fff!important;color:#173b5d!important;border:1px solid #cfddea!important;}
.gpm-app .gpm-receipt-done{background:#183b5b!important;color:#fff!important;border:1px solid #183b5b!important;}

@media (max-width: 720px){
  .gpm-app .gpm-receipt-dialog{width:100%!important;max-width:100%!important;border-radius:18px!important;}
  .gpm-app .gpm-receipt-head{padding:20px 18px 16px!important;}
  .gpm-app .gpm-receipt-head-main{gap:12px!important;}
  .gpm-app .gpm-receipt-dialog h2{font-size:23px!important;}
  .gpm-app .gpm-receipt-meta,
  .gpm-app .gpm-receipt-section{padding-left:18px!important;padding-right:18px!important;}
  .gpm-app .gpm-receipt-amount,
  .gpm-app .gpm-receipt-note,
  .gpm-app .gpm-receipt-proof,
  .gpm-app .gpm-receipt-disclaimer,
  .gpm-app .gpm-receipt-actions{margin-left:18px!important;margin-right:18px!important;padding-left:16px!important;padding-right:16px!important;}
  .gpm-app .gpm-receipt-actions{padding-top:18px!important;padding-bottom:20px!important;}
  .gpm-app .gpm-receipt-meta{grid-template-columns:1fr!important;}
  .gpm-app .gpm-receipt-amount{flex-direction:column!important;align-items:flex-start!important;}
  .gpm-app .gpm-receipt-amount strong{font-size:28px!important;}
  .gpm-app .gpm-receipt-grid{grid-template-columns:1fr!important;}
  .gpm-app .gpm-receipt-reference-block>div:not(.gpm-receipt-reference-heading),
  .gpm-app .gpm-receipt-proof{flex-direction:column!important;align-items:flex-start!important;}
  .gpm-app .gpm-receipt-reference-block>div>strong{text-align:left!important;}
  .gpm-app .gpm-receipt-actions{flex-direction:column!important;}
}

@media print {
  body *{visibility:hidden!important;}
  .gpm-app .gpm-receipt-overlay,
  .gpm-app .gpm-receipt-overlay *{visibility:visible!important;}
  .gpm-app .gpm-receipt-overlay{position:absolute!important;inset:0!important;background:#fff!important;display:block!important;padding:0!important;overflow:visible!important;}
  .gpm-app .gpm-receipt-dialog{width:100%!important;max-width:none!important;min-height:auto!important;box-shadow:none!important;border:0!important;border-radius:0!important;}
  .gpm-app .gpm-receipt-head{padding:18px 0 14px!important;}
  .gpm-app .gpm-receipt-meta,
  .gpm-app .gpm-receipt-section{padding-left:0!important;padding-right:0!important;}
  .gpm-app .gpm-receipt-amount,
  .gpm-app .gpm-receipt-note,
  .gpm-app .gpm-receipt-proof,
  .gpm-app .gpm-receipt-disclaimer{margin-left:0!important;margin-right:0!important;}
  .gpm-app .gpm-receipt-actions,
  .gpm-app .gpm-receipt-close{display:none!important;}
}

/* v3.33: independent GBP ledger balance; signed admin adjustments display separately. */
.gpm-app .gpm-gbp-received-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;font-size:11px;line-height:1.5;}
.gpm-app .gpm-all-wallet-summary .gpm-gbp-received-total{color:#d2e0ed;margin-top:3px;}
.gpm-app .gpm-all-wallet-summary .gpm-gbp-received-total strong{font-size:12px;color:#fff;font-variant-numeric:tabular-nums;}
.gpm-app .gpm-wallet-card .gpm-gbp-wallet-received{margin:-6px 0 12px;color:#8091a5;}
.gpm-app .gpm-wallet-card .gpm-gbp-wallet-received strong{font-size:11px;color:#64788d;font-variant-numeric:tabular-nums;}
.gpm-app .gpm-statement-table{min-width:1430px!important;}
.gpm-app .gpm-statement-note{display:block;margin-top:4px;max-width:230px;color:#7c8a98;font-size:10px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;}
.gpm-app .gpm-statement-balances>div{display:flex;flex-direction:column;gap:3px;align-items:flex-start;}
.gpm-app .gpm-statement-balances>div span:not(:first-child){margin-top:8px;}
.gpm-app .gpm-statement-balances>div strong{margin:0!important;}
.gpm-app .gpm-wallet-admin-adjustment{background:#f8fbfc;}
.gpm-app .gpm-all-wallet-summary .gpm-balance-gbp strong.gpm-balance-negative,
html body .gpm-app .gpm-wallet-gbp-compact strong.gpm-balance-negative{color:#e07575!important;}
@media print{.gpm-app .gpm-statement-table{min-width:0!important;font-size:8px!important}.gpm-app .gpm-statement-table th,.gpm-app .gpm-statement-table td{padding:4px!important;}}
