/* Corporate portal: Pending Approvals, My Requests, notification switches and the signed-in identity. */
.cp-nav-item[hidden], .cp-nav-group-label[hidden], .cp-qa[hidden] { display: none !important; }
.mc-nav-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #b42318; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.mc-nav-count[hidden] { display: none; }
.mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mc-h2 { margin: 0 0 4px; font-size: 18px; color: var(--text-primary, #363b21); }
.mc-h3 { margin: 0 0 8px; font-size: 14.5px; color: var(--text-primary, #363b21); }
.mc-h4 { margin: 18px 0 6px; font-size: 13px; color: var(--text-muted, #69715e); text-transform: uppercase; letter-spacing: .04em; }
.mc-lead, .mc-note-text { margin: 0; color: var(--text-muted, #69715e); font-size: 13px; line-height: 1.55; }
.mc-note-text + .mc-note-text { margin-top: 10px; }
.mc-filter { display: flex; align-items: center; gap: 10px; }
.mc-filter select { width: auto; min-width: 150px; padding: 9px 12px; border: 1px solid var(--border-input, #e8ede5); border-radius: 8px; background: var(--bg-input, #fff); color: var(--text-primary, #363b21); font: inherit; font-size: 13px; }
.mc-count { font-size: 13px; font-weight: 700; color: var(--brand-primary, #333715); }
.mc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mc-row { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(100px, 1fr)) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border-color, #e8ede5); }
.mc-row:first-child { border-top: 0; }
.mc-title { font-weight: 700; color: var(--text-primary, #363b21); font-size: 14px; }
.mc-sub { margin-top: 2px; font-size: 12.5px; color: var(--text-muted, #69715e); overflow-wrap: anywhere; }
.mc-cell { font-size: 13px; color: var(--text-primary, #363b21); overflow-wrap: anywhere; }
.mc-k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #69715e); margin-bottom: 2px; }
.mc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mc-empty { padding: 28px 8px; text-align: center; color: var(--text-muted, #69715e); font-size: 13.5px; }
.mc-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1e8; color: #4b5120; }
.mc-pending, .mc-awaiting_device { background: #fff4e0; color: #9a5b00; } .mc-executed { background: #e5f4e8; color: #1c6b34; } .mc-approved { background: #e5f4e8; color: #1c6b34; }
.mc-rejected, .mc-failed { background: #fde7e5; color: #a3261b; } .mc-cancelled, .mc-expired { background: #eceeea; color: #55594d; }
.mc-history { list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; }
.mc-history li { padding: 8px 0; border-bottom: 1px dashed var(--border-color, #e8ede5); text-transform: none; }
.mc-history b { text-transform: capitalize; }
.mc-time { color: var(--text-muted, #69715e); font-size: 12px; margin-left: 6px; }
.mc-note { margin-top: 2px; color: var(--text-muted, #69715e); }
.mc-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.mc-buttons-start { justify-content: flex-start; flex-wrap: wrap; }
#mcUsernameModal .modal-box, #mcPasswordModal .modal-box { width: min(440px, calc(100% - 32px)); }
.mc-switch { width: 42px; height: 24px; border-radius: 20px; border: 0; padding: 0; background: #d5dacb; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.mc-switch.on { background: var(--brand-primary, #333715); }
.mc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.mc-switch.on::after { left: 21px; }
.mc-switch:focus-visible { outline: 2px solid var(--brand-primary, #333715); outline-offset: 2px; }
#cp-settings-profile input[readonly], #cp-settings-profile textarea[readonly] { background: var(--bg-muted, #fafbf8); color: var(--text-primary, #363b21); }
.sidebar-company-card .scc-company-name { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .mc-row { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .mc-main { grid-column: 1 / -1; }
  .mc-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .mc-filter { width: 100%; justify-content: space-between; }
  .mc-buttons { flex-direction: column-reverse; }
  .mc-buttons .btn { width: 100%; }
}

/* Waiting for the person's phone */
.mc-phone-backdrop { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(39,48,24,.55); }
.mc-phone-backdrop[hidden] { display: none; }
.mc-phone-dialog { box-sizing: border-box; width: min(400px, 100%); background: #fff; color: #363b21; border-radius: 16px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 20px 50px #1a210e66; }
.mc-phone-dialog h3 { margin: 0 0 8px; font-size: 20px; }
.mc-phone-dialog p { margin: 0; color: #5f6650; font-size: 14px; }
.mc-phone-count { margin: 12px 0 4px; font-size: 38px; font-weight: 700; color: #333715; font-variant-numeric: tabular-nums; }
.mc-phone-dialog button { margin-top: 18px; width: 100%; min-height: 46px; border: 1px solid #ccd5c3; border-radius: 10px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Loading placeholders: grey shapes shaped like what is coming, with a soft moving light (still when the person asks for less motion) */
.cp-skel { display: block; position: relative; overflow: hidden; border-radius: 6px; background: #e9ece4; }
.cp-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: cp-skel-shimmer 1.4s ease-in-out infinite; }
@keyframes cp-skel-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .cp-skel::after { animation: none; } }
.cp-skel-card { pointer-events: none; transform: none !important; }
.cp-skel-card::before { background: #dfe3d8; }
.cp-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
/* the sidebar total says nothing (not a wrong 0.00) until the accounts arrive */
body.cp-loading-accounts #cpPortfolioTotal { color: transparent !important; position: relative; width: 96px; height: 18px; border-radius: 6px; background: #e9ece4; overflow: hidden; }
body.cp-loading-accounts #cpPortfolioTotal::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: cp-skel-shimmer 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.cp-loading-accounts #cpPortfolioTotal::after { animation: none; } }

/* Paging under My Requests and Pending Approvals */
.mc-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 0 2px; border-top: 1px solid var(--border-color, #e8ede5); margin-top: 6px; font-size: 13px; color: var(--text-muted, #69715e); }
.mc-pager-info { font-weight: 600; color: var(--text-primary, #363b21); }
.mc-pager-size { display: inline-flex; align-items: center; gap: 8px; }
.mc-pager-size select { width: auto; min-width: 64px; padding: 6px 28px 6px 10px; }
.mc-pager-nav { display: inline-flex; align-items: center; gap: 10px; }
.mc-pager-nav .btn { padding: 7px 14px; min-height: 36px; }
.mc-pager-nav .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) { .mc-pager { justify-content: center; text-align: center; } }

/* ---- Fund Transfer screen: sections, the beneficiary card, the three charge choices and the live summary ---- */
#cp-transfer .tf-section { padding: 18px 0 4px; border-top: 1px solid var(--border-color, #e8ede5); }
#cp-transfer .cp-ft-head + .tf-section { border-top: 0; padding-top: 6px; }
.tf-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--text-primary, #363b21); }
.tf-step { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-glow-subtle, #eef1e6); color: var(--brand-primary, #363b21); font-size: 12px; font-weight: 800; }
.tf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tf-row .field-group { margin-bottom: 14px; }
@media (max-width: 760px) { .tf-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }
#cp-transfer .field-group select, #cp-transfer .field-group input, #cp-transfer .field-group textarea { width: 100%; box-sizing: border-box; }
#cpPurpose { width: 100% !important; }
.tf-counter { margin-top: 4px; text-align: right; font-size: 11.5px; color: var(--text-muted, #69715e); }
.tf-hidden-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* the chosen beneficiary */
.tf-payee { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border-color, #e8ede5); border-radius: 10px; background: var(--bg-muted, #fafbf8); }
.tf-payee-head { display: flex; align-items: center; gap: 12px; }
.tf-payee-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-glow-subtle, #eef1e6); color: var(--brand-primary, #363b21); font-weight: 800; font-size: 13px; }
.tf-payee-head b { display: block; font-size: 14px; color: var(--text-primary, #363b21); }
.tf-payee-nick { display: block; font-size: 12px; color: var(--text-muted, #69715e); }
.tf-payee-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.tf-payee-list dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted, #69715e); }
.tf-payee-list dd { margin: 2px 0 0; font-size: 13px; color: var(--text-primary, #363b21); overflow-wrap: anywhere; }
.tf-payee-warn { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: #fff4e5; color: #8a4b0a; font-size: 12.5px; }

/* who pays the bank charges */
.tf-choices { display: grid; gap: 10px; }
.tf-choice { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border: 1px solid var(--border-color, #dfe5da); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.tf-choice:hover { border-color: #b9c4ad; }
.tf-choice input { margin-top: 3px; accent-color: var(--brand-primary, #363b21); flex: none; width: 16px; height: 16px; }
.tf-choice.is-on { border-color: var(--brand-primary, #363b21); background: var(--brand-glow-subtle, #f4f6ee); box-shadow: 0 0 0 1px var(--brand-primary, #363b21) inset; }
.tf-choice:focus-within { outline: 2px solid var(--brand-primary, #363b21); outline-offset: 2px; }
.tf-choice-body { display: flex; flex-direction: column; gap: 2px; }
.tf-choice-title { font-size: 14px; font-weight: 700; color: var(--text-primary, #363b21); }
.tf-choice-text { font-size: 12.5px; color: var(--text-muted, #69715e); }

/* the button and what sits under it */
.tf-cta { width: 100%; margin-top: 8px; }
.tf-foot { margin-top: 10px; text-align: center; font-size: 12px; color: var(--text-muted, #69715e); }

/* the live summary beside the form */
.tf-side { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 16px; }
@media (max-width: 1100px) { .tf-side { position: static; } }
.tf-summary { height: fit-content; }
.tf-summary-title { margin: 0 0 6px; font-size: 14.5px; color: #363b21; }
.tf-sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #eef1eb; font-size: 13px; }
.tf-sum-k { flex: none; color: var(--text-muted, #69715e); }
.tf-sum-v { text-align: right; font-weight: 600; color: var(--text-primary, #363b21); overflow-wrap: anywhere; }
.tf-sum-v.is-empty { color: #b3baa6; font-weight: 400; }
.tf-sum-status { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #f4f6ee; color: #5a6147; font-size: 12.5px; }
.tf-sum-status.is-ready { background: #e8f5ee; color: #1b7a4b; font-weight: 700; }
.tf-sum-note { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f4f6ee; color: #4a5138; font-size: 12.5px; line-height: 1.45; }
.tf-sum-warn { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fff1f0; color: #a3261b; font-size: 12.5px; line-height: 1.45; }

/* an empty required field, marked when Review Transfer is pressed */
.tf-invalid input, .tf-invalid select, .tf-invalid textarea, .tf-invalid .cp-amt-wrap { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.tf-field-error { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #b3261e; }