/* CA Portal 1.16.04 — consistent, accessible crystal polish across portal areas.
   Presentation-only: no data, roles, routing, or payment state changes. */
@media screen {
body.msa-crystal-ui:is(.portal-context-staff,.portal-context-admin,.portal-context-client,.portal-context-associate){
 --crystal-ink:#153c61;--crystal-muted:#506d84;--crystal-blue:#1577c5;
 --crystal-teal:#0e998e;--crystal-purple:#7459c2;--crystal-amber:#c7801c;
 --crystal-border:#d7e7f0;--crystal-shadow:0 8px 24px rgba(20,65,102,.085);
 background:radial-gradient(ellipse 45% 38% at 0% 7%,rgba(139,211,252,.43),transparent 80%),radial-gradient(ellipse 36% 37% at 100% 15%,rgba(134,234,203,.31),transparent 77%),linear-gradient(126deg,#f4f9ff 0%,#faf7ff 52%,#f0fcfa 100%)!important;
 color:var(--crystal-ink);
}
body.msa-crystal-ui .portal-topbar{background:rgba(255,255,255,.96)!important;border-bottom:1px solid #dbe9f4!important;box-shadow:0 5px 23px rgba(17,67,119,.07)!important}
body.msa-crystal-ui .portal-brand .brand-mark{background:linear-gradient(145deg,#125b9d,#109a9a)!important;color:#fff!important;border:1px solid rgba(255,255,255,.45)!important}
body.msa-crystal-ui :is(.table-wrap,.collection-register-scroll,.e79-scroll,.billingx-table-wrap,.fee-table-wrap){overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#9fc5d5 #eef7fc}
body.msa-crystal-ui :is(table.collection-register-table,table.ep-table,table.portal-fit-table,table.ca-hl-table){border-collapse:separate;border-spacing:0;line-height:1.45}
body.msa-crystal-ui :is(table.collection-register-table,table.ep-table,table.portal-fit-table,table.ca-hl-table) thead th{background:linear-gradient(115deg,#e5f3ff,#e5faf5)!important;color:#214e72!important;border-bottom:1px solid #bcdbe6!important;font-weight:850!important}
body.msa-crystal-ui :is(table.collection-register-table,table.ep-table,table.portal-fit-table,table.ca-hl-table) tbody tr:nth-child(2n){background:rgba(232,246,253,.35)}
body.msa-crystal-ui :is(table.collection-register-table,table.ep-table,table.portal-fit-table,table.ca-hl-table) tbody tr:hover{background:#e9f8f8!important}
body.msa-crystal-ui :is(.notice,.notice-success,.notice-warning,.notice-error){border-radius:13px!important;line-height:1.5;border-width:1px!important}
body.msa-crystal-ui :is(.notice-success){background:linear-gradient(110deg,#e8fbf0,#f4fdfb)!important;border-color:#b1e4c9!important;color:#116143!important}
body.msa-crystal-ui :is(.notice-warning){background:linear-gradient(110deg,#fff7e5,#fffaf1)!important;border-color:#ebd19a!important;color:#845516!important}
body.msa-crystal-ui :is(.notice-error){background:linear-gradient(110deg,#ffebf0,#fff7f7)!important;border-color:#ebbbc6!important;color:#9b213e!important}
body.msa-crystal-ui :is(.btn-secondary,.btn-small,button,select,input,textarea):focus-visible{outline:3px solid #399dc2!important;outline-offset:2px!important}
body.msa-crystal-ui :is(.card,.ep-panel,.ch-panel,.collection-register,.collection-center-summary>div,.collection-report-kpi,.staff-pending-queue-card){box-shadow:0 8px 28px rgba(25,67,111,.09)!important;border-radius:17px!important}
body.msa-crystal-ui :is(.collection-register,.collection-center-row,.ep-panel,.ch-panel) :is(h2,h3){letter-spacing:-.018em}
/* Interactive receipt/payment controls retain their own semantic colors. */
body.msa-crystal-ui .collection-register :is(.collection-followup-action,.collection-register-tools button){min-height:38px;border-radius:10px;transition:filter .15s ease,box-shadow .15s ease}
body.msa-crystal-ui .collection-register :is(.collection-followup-action,.collection-register-tools button):hover{filter:brightness(.985);box-shadow:0 4px 10px rgba(20,77,116,.11)}
body.msa-crystal-ui .collection-register-scroll{border-radius:0 0 15px 15px}
body.msa-crystal-ui .collection-followup-dialog{border:1px solid #c5e4e5;box-shadow:0 26px 70px rgba(14,47,84,.31)!important}
body.msa-crystal-ui .collection-followup-dialog header{background:linear-gradient(115deg,#164f8b,#127b9c 54%,#12a08a)}
/* Fix: fullscreen popups must be able to cover the fixed topbar on desktop. */
body.msa-crystal-ui:has(:is(.collection-followup-modal,.income-live-popup,.exbank-dialog-backdrop):not([hidden]))>.portal-topbar{z-index:1100!important}
body.msa-crystal-ui .exbank-dialog-backdrop[hidden]{display:none!important}
body.msa-crystal-ui :is(.collection-followup-modal,.income-live-popup,.exbank-dialog-backdrop):not([hidden]){z-index:99999!important}
}
@media screen and (max-width:700px){body.msa-crystal-ui .collection-register-scroll{border-radius:12px}body.msa-crystal-ui :is(.collection-followup-dialog,.exbank-dialog){max-height:calc(100dvh - 24px);overflow-y:auto}}
@media(prefers-reduced-motion:reduce){body.msa-crystal-ui .collection-register :is(.collection-followup-action,.collection-register-tools button){transition:none!important}}
