/* GPP Lending Customer Dashboard — isolated styles only */
#customerProfile.gppcd-profile-shell {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #122c52;
}
#customerProfile.gppcd-profile-shell.hidden { display: none !important; }
.gppcd-dashboard, .gppcd-dashboard * { box-sizing: border-box; }
.gppcd-dashboard {
  --gppcd-blue: #075bd8;
  --gppcd-navy: #0c3f8f;
  --gppcd-text: #18365f;
  --gppcd-muted: #536781;
  display: grid;
  gap: 30px;
  width: 100%;
  color: var(--gppcd-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.gppcd-welcome, .gppcd-panel, .gppcd-reminders {
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 32px rgba(48, 99, 160, .08);
}
.gppcd-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 38px;
}
.gppcd-welcome h1 {
  margin: 0 0 14px;
  color: #103e83;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  text-align: left;
}
.gppcd-welcome-copy > p { margin: 7px 0; color: #334d70; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.gppcd-welcome-copy > p strong { font-weight: 500; }
.gppcd-avatar {
  flex: 0 0 112px; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; background: #e2eeff; margin-top: 2px;
}
.gppcd-avatar svg { width: 76px; height: 76px; fill: #397dd4; }
.gppcd-actions { display: grid; grid-template-columns: 1.05fr 1.12fr .72fr; gap: 18px; margin-top: 30px; }
.gppcd-actions button, .gppcd-panel-head button {
  min-height: 64px; border-radius: 13px; padding: 14px 18px;
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
}
.gppcd-primary { color: #fff !important; background: linear-gradient(115deg,#0877f9,#0756d5) !important; border: 1px solid #0866ed !important; box-shadow: 0 5px 12px rgba(7,91,216,.12); }
.gppcd-outline { color: #0b438f !important; background: #f5f9ff !important; border: 1px solid #c8dcff !important; }
.gppcd-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gppcd-stat {
  display: flex; align-items: flex-start; gap: 22px; min-height: 180px;
  border: 1px solid rgba(255,255,255,.9); border-radius: 22px; padding: 24px 22px;
  box-shadow: 0 10px 28px rgba(48,99,160,.05);
}
.gppcd-stat-active { background: linear-gradient(135deg,#effbf4,#f8fffb); }
.gppcd-stat-payment { background: linear-gradient(135deg,#fff4f4,#fffafa); }
.gppcd-stat-total { background: linear-gradient(135deg,#f3f8ff,#fbfdff); }
.gppcd-icon { width: 64px; height: 64px; flex: 0 0 64px; display:grid; place-items:center; border-radius: 16px; font-size: 36px; font-weight: 700; background:#dff5e7; color:#13803b; }
.gppcd-stat-payment .gppcd-icon { background:#ffe1e1; color:#d92121; }
.gppcd-stat-total .gppcd-icon { background:#e0edff; color:#0960d5; }
.gppcd-stat h3 { margin: 10px 0 14px; color:#153b2a; font-size:18px; }
.gppcd-stat-payment h3 { color:#333d4b; }
.gppcd-stat-total h3 { color:#123e87; }
.gppcd-stat strong { display:block; color:#111f32; font-size:30px; line-height:1.2; margin-bottom:8px; }
.gppcd-stat #gppcdPaymentStatus { color:#087d2d; font-size:27px; white-space:normal; }
.gppcd-stat #gppcdPaymentStatus.gppcd-payment-overdue { color:#c82020; }
.gppcd-stat p { margin:8px 0 0; color:#3f536f; font-size:16px; line-height:1.45; }
.gppcd-pill { display:inline-block; border-radius:18px; padding:7px 15px; background:#ddf6e5; color:#08752b; font-weight:700; font-size:14px; }
.gppcd-panel { padding: 24px 22px; }
.gppcd-panel-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; }
.gppcd-heading { display:flex; align-items:center; gap:17px; min-width:0; }
.gppcd-heading-icon { width:60px; height:60px; flex:0 0 60px; display:grid; place-items:center; border-radius:15px; background:#e1edff; color:#0864d9; font-size:34px; font-weight:700; }
.gppcd-heading h2 { margin:0; color:#103e83; font-size:28px; line-height:1.2; }
.gppcd-heading p { margin:5px 0 0; color:#536781; font-size:16px; }
.gppcd-panel-head button { min-height:54px; white-space:nowrap; }
.gppcd-status-box { display:flex; align-items:center; gap:20px; min-height:104px; padding:20px; border-radius:18px; background:linear-gradient(120deg,#effbf5,#f3fbf7); border:1px solid #d6f5e5; color:#08732a; }
.gppcd-status-box.neutral { background:#f2f7ff; border-color:#d7e6ff; color:#174b90; }
.gppcd-status-box.overdue { background:#fff2f2; border-color:#ffdada; color:#b91c1c; }
.gppcd-check { flex:0 0 48px; width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:#07872e; color:#fff; font-size:28px; font-weight:800; }
.gppcd-status-box.neutral .gppcd-check { background:#1d6bd8; }
.gppcd-status-box.overdue .gppcd-check { background:#d62828; }
.gppcd-status-box strong { display:block; font-size:19px; line-height:1.4; }
.gppcd-status-box p { margin:5px 0 0; font-size:17px; line-height:1.4; }
.gppcd-history-heading { margin-bottom:22px; }
.gppcd-table-wrap { width:100%; overflow-x:auto; border:1px solid #e2eaf4; border-radius:12px; }
.gppcd-table { width:100%; border-collapse:separate; border-spacing:0; min-width:700px; background:#fff; font-size:16px; }
.gppcd-table th { background:#eef3f9; color:#263b59; font-weight:700; text-align:left; padding:17px 18px; white-space:nowrap; }
.gppcd-table td { padding:16px 18px; border-top:1px solid #e5edf7; color:#203856; white-space:nowrap; }
.gppcd-table th + th, .gppcd-table td + td { border-left:1px solid #e5edf7; }
.gppcd-table tbody tr:hover { background:#f8fbff; }
.gppcd-badge { display:inline-block; border-radius:17px; padding:8px 14px; font-size:14px; font-weight:700; }
.gppcd-badge.paid { color:#08752b; background:#ddf6e5; }
.gppcd-badge.delayed, .gppcd-badge.declined { color:#b91c1c; background:#ffe0e0; }
.gppcd-badge.approved { color:#0757b8; background:#e0edff; }
.gppcd-badge.pending, .gppcd-badge.partial { color:#875600; background:#fff0c7; }
.gppcd-late { display:block; margin-top:4px; color:#c82020; font-size:13px; }
.gppcd-reminders { padding:24px 28px; background:rgba(255,255,255,.58); }
.gppcd-reminders h3 { display:flex; align-items:center; gap:14px; margin:0 0 18px; color:#10428d; font-size:21px; }
.gppcd-info { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#0875ee; font-size:23px; font-weight:800; }
.gppcd-reminders ul { margin:0; padding-left:38px; color:#14365f; }
.gppcd-reminders li { margin:8px 0; padding-left:2px; line-height:1.4; font-size:16px; }
.gppcd-updated { margin:12px 0 0; color:#64748b; font-size:12px; }
@media (max-width: 850px) {
  .gppcd-welcome { padding:26px; }
  .gppcd-summary { grid-template-columns:1fr; }
  .gppcd-stat { min-height:130px; }
  .gppcd-actions { grid-template-columns:1fr; gap:10px; }
  .gppcd-panel-head { align-items:flex-start; flex-direction:column; }
  .gppcd-panel-head button { width:100%; }
}
@media (max-width: 520px) {
  .gppcd-dashboard { gap:18px; }
  .gppcd-welcome { padding:22px 18px; }
  .gppcd-welcome-copy > p { font-size:15px; }
  .gppcd-avatar { width:60px; height:60px; flex-basis:60px; }
  .gppcd-avatar svg { width:43px; height:43px; }
  .gppcd-welcome h1 { font-size:27px; }
  .gppcd-panel { padding:18px 14px; }
  .gppcd-heading-icon { width:46px; height:46px; flex-basis:46px; font-size:26px; }
  .gppcd-heading h2 { font-size:23px; }
  .gppcd-status-box { align-items:flex-start; padding:15px; gap:12px; }
  .gppcd-status-box strong { font-size:16px; }
  .gppcd-status-box p { font-size:14px; }
  .gppcd-check { width:38px; height:38px; flex-basis:38px; font-size:22px; }
  .gppcd-reminders { padding:20px 16px; }
  .gppcd-reminders li { font-size:14px; }
}


/* GPP DASHBOARD — GLASS + MOBILE FIX */
.gppcd-dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 20px;
  font-size: 14px;
}

.gppcd-welcome,
.gppcd-panel,
.gppcd-reminders,
.gppcd-stat {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(25, 65, 120, 0.09);
  border-radius: 18px;
}

.gppcd-welcome {
  padding: 24px;
  gap: 18px;
}

.gppcd-welcome h1 {
  font-size: clamp(22px, 2.5vw, 30px);
}

.gppcd-welcome-copy > p {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.gppcd-avatar {
  flex-basis: 76px;
  width: 76px;
  height: 76px;
}

.gppcd-avatar svg {
  width: 52px;
  height: 52px;
}

.gppcd-actions {
  gap: 12px;
  margin-top: 20px;
}

.gppcd-actions button,
.gppcd-panel-head button {
  min-height: 46px;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 11px;
}

.gppcd-summary {
  gap: 14px;
}

.gppcd-stat {
  min-height: 0;
  padding: 18px;
  gap: 14px;
}

.gppcd-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 25px;
  border-radius: 12px;
}

.gppcd-stat h3 {
  font-size: 15px;
  margin: 5px 0 9px;
}

.gppcd-stat strong {
  font-size: 24px;
  overflow-wrap: anywhere;
}

.gppcd-stat #gppcdPaymentStatus {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.gppcd-stat p,
.gppcd-heading p,
.gppcd-table {
  font-size: 13px;
}

.gppcd-panel {
  padding: 20px;
}

.gppcd-heading {
  gap: 12px;
}

.gppcd-heading-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 24px;
}

.gppcd-heading h2 {
  font-size: 21px;
  overflow-wrap: anywhere;
}

.gppcd-status-box {
  min-width: 0;
  gap: 12px;
  padding: 16px;
}

.gppcd-status-box strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.gppcd-status-box p {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.gppcd-table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.gppcd-reminders {
  padding: 20px;
}

.gppcd-reminders h3 {
  font-size: 17px;
}

.gppcd-reminders li {
  font-size: 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .gppcd-dashboard {
    gap: 14px;
  }

  .gppcd-welcome {
    padding: 18px 14px;
    gap: 10px;
  }

  .gppcd-welcome h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .gppcd-welcome-copy > p {
    font-size: 13px;
  }

  .gppcd-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .gppcd-avatar svg {
    width: 32px;
    height: 32px;
  }

  .gppcd-stat {
    padding: 15px 12px;
    gap: 10px;
  }

  .gppcd-stat strong {
    font-size: 21px;
  }

  .gppcd-stat #gppcdPaymentStatus {
    font-size: 17px;
  }

  .gppcd-panel {
    padding: 15px 12px;
  }

  .gppcd-heading h2 {
    font-size: 18px;
  }

  .gppcd-panel-head {
    gap: 12px;
  }

  .gppcd-panel-head button {
    white-space: normal;
  }

  .gppcd-reminders {
    padding: 16px 13px;
  }
}

/* FIX: CUSTOMER DASHBOARD WIDTH AND PLACEMENT */
#account .card:has(#customerProfile.gppcd-profile-shell) {
  width: min(1320px, calc(100% - 48px));
  max-width: 1320px;
  margin: 24px auto;
  padding: 24px;
  box-sizing: border-box;
}

#account #customerProfile.gppcd-profile-shell {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

#account #customerProfile .gppcd-dashboard {
  display: grid;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  gap: 20px;
}

#account #customerProfile .gppcd-welcome,
#account #customerProfile .gppcd-panel,
#account #customerProfile .gppcd-reminders {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#account #customerProfile .gppcd-welcome {
  padding: 22px 26px;
  gap: 16px;
  align-items: flex-start;
}

#account #customerProfile .gppcd-welcome h1 {
  margin: 0 0 10px;
  line-height: 1.15;
}

#account #customerProfile .gppcd-welcome-copy {
  flex: 1 1 auto;
  min-width: 0;
}

#account #customerProfile .gppcd-welcome-copy > p {
  margin: 5px 0;
  line-height: 1.4;
}

#account #customerProfile .gppcd-actions {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

#account #customerProfile .gppcd-actions button {
  min-width: 0;
  overflow-wrap: normal;
}

#account #customerProfile .gppcd-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

#account #customerProfile .gppcd-stat {
  min-width: 0;
  padding: 20px 16px;
  gap: 12px;
}

#account #customerProfile .gppcd-stat > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

#account #customerProfile .gppcd-stat h3,
#account #customerProfile .gppcd-stat strong,
#account #customerProfile .gppcd-stat p {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 900px) {
  #account .card:has(#customerProfile.gppcd-profile-shell) {
    width: calc(100% - 24px);
    padding: 16px;
  }

  #account #customerProfile .gppcd-summary {
    grid-template-columns: 1fr;
  }

  #account #customerProfile .gppcd-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #account .card:has(#customerProfile.gppcd-profile-shell) {
    width: calc(100% - 12px);
    padding: 8px;
  }

  #account #customerProfile .gppcd-dashboard {
    gap: 14px;
  }

  #account #customerProfile .gppcd-welcome {
    padding: 18px 14px;
    gap: 10px;
  }

  #account #customerProfile .gppcd-actions {
    gap: 10px;
    margin-top: 16px;
  }

  #account #customerProfile .gppcd-summary {
    gap: 12px;
  }

  #account #customerProfile .gppcd-stat {
    padding: 15px 12px;
    gap: 10px;
  }

  #account #customerProfile .gppcd-panel {
    padding: 16px 12px;
  }

  #account #customerProfile .gppcd-reminders {
    padding: 16px 13px;
  }
}



/* CUSTOMER PROFILE DETAILS - FIX */
#account #customerProfile .gppcd-welcome h1 {
    display: none !important;
}

#account #customerProfile .gppcd-welcome-copy > p {
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.6;
    margin: 8px 0;
}

#account #customerProfile .gppcd-welcome-copy > p strong {
    font-weight: 800 !important;
}

@media (max-width: 520px) {
    #account #customerProfile .gppcd-welcome-copy > p {
        font-size: 15px !important;
    }
}


/* CUSTOMER DETAILS FONT */
#customerProfile .gppcd-welcome-copy > p {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.6;
}

#customerProfile .gppcd-welcome-copy > p strong {
  font-weight: 800 !important;
}

@media (max-width: 520px) {
  #customerProfile .gppcd-welcome-copy > p {
    font-size: 15px !important;
  }
}

