/* PreAuths Pro shared UX upgrade: deliberately scoped to new components. */
.pap-toast-stack{position:fixed;z-index:110000;top:18px;right:18px;width:min(390px,calc(100vw - 36px));display:grid;gap:10px;pointer-events:none}.pap-toast{pointer-events:auto;display:grid;grid-template-columns:40px 1fr 30px;align-items:start;gap:12px;padding:15px;background:#fff;color:#15314e;border:1px solid #dbe7e4;border-left:4px solid #16834b;border-radius:13px;box-shadow:0 12px 35px #102c4b24;animation:pap-in .18s ease-out}.pap-toast[data-tone=info]{border-left-color:#1765cb}.pap-toast-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#e6f5ed;color:#167447}.pap-toast[data-tone=info] .pap-toast-icon{background:#eaf3ff;color:#1765cb}.pap-toast-icon svg,.pap-ui-icon svg{width:22px;height:22px}.pap-toast strong{font-size:14px;display:block;margin:0 0 4px}.pap-toast p{font-size:13px;line-height:1.5;color:#52657a;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.pap-ui-close{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;color:#64748b!important;border:0!important;box-shadow:none!important;border-radius:7px!important;cursor:pointer}.pap-ui-close:hover{background:#edf3f8!important}.pap-ui-close svg{width:18px;height:18px}
.pap-ui-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #e1e7ef;border-radius:16px;background:#fff;color:#15314e;padding:24px;box-shadow:0 24px 70px #102c4b35;font-family:inherit}.pap-ui-dialog[open]{animation:pap-in .18s ease-out}.pap-ui-dialog::backdrop{background:#102b4e75;backdrop-filter:blur(3px)}.pap-ui-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px}.pap-ui-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff3df;color:#9b5d0a}.pap-ui-dialog h2{font:700 20px/1.3 inherit;font-family:inherit;font-size:20px;font-weight:700;line-height:1.3;margin:0 0 8px;color:#15314e}.pap-ui-dialog p{font:inherit;font-size:14px;line-height:1.65;color:#52657a;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.pap-ui-actions{border-top:1px solid #e5ebf1;display:flex;gap:9px;justify-content:flex-end;margin-top:20px;padding-top:16px;flex-wrap:wrap}.pap-ui-button{box-sizing:border-box!important;font-family:inherit!important;font-size:14px!important;font-weight:650!important;line-height:1.4!important;min-height:42px!important;padding:10px 16px!important;margin:0!important;border-radius:9px!important;border:1px solid #d6e0eb!important;color:#334155!important;background:#fff!important;box-shadow:none!important;cursor:pointer}.pap-ui-button.primary{background:#155fb8!important;border-color:#155fb8!important;color:white!important}.pap-ui-button.danger{background:#b42332!important;border-color:#b42332!important;color:white!important}.pap-ui-button:focus-visible,.pap-ui-close:focus-visible,.pap-search-launch:focus-visible{outline:3px solid #93c5fd!important;outline-offset:2px}
.pap-search-launch{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:38px!important;min-height:38px!important;border:1px solid #d9e4ef!important;border-radius:9px!important;background:#fff!important;color:#185995!important;padding:7px 10px!important;margin:0!important;box-shadow:none!important;font:inherit!important;cursor:pointer}.pap-search-launch svg{width:19px;height:19px}.pap-search-launch kbd{font:11px/1.2 inherit;color:#62778e}.pap-search-dialog{width:min(520px,calc(100vw - 32px))}.pap-search-dialog input{width:100%;box-sizing:border-box;margin:0 0 12px;padding:12px 14px;border:1px solid #cfdcec;border-radius:9px;font:inherit}.pap-search-list{display:grid;gap:4px;max-height: min(360px,45dvh);overflow:auto}.pap-search-list a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 12px;border-radius:8px;color:#15314e;text-decoration:none;font-size:14px}.pap-search-list a:hover,.pap-search-list a:focus-visible{background:#eaf3ff;outline:2px solid #93c5fd;outline-offset:-2px}.pap-search-list a span:last-child{color:#55718b}.pap-search-hint{font-size:12px!important;margin-top:12px!important}.pap-search-empty{padding:14px 4px}
.pap-notice-link{position:relative!important}.pap-unread-count{position:absolute;top:-4px;right:-5px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;background:#155fb8;color:white;border:2px solid #fff;border-radius:999px;font:700 10px/1 Arial,sans-serif;box-sizing:content-box;pointer-events:none;white-space:nowrap}
body .empty-panel,body .notice-empty,body .hd-empty{border:1px dashed #cbd9e9;border-radius:13px;padding:24px 18px;text-align:center;background:#f8fbff;color:#435a73;line-height:1.55}body .empty-panel strong,body .notice-empty strong{display:block;color:#15314e;font-size:15px;margin-bottom:6px}body .empty-panel p,body .notice-empty p{margin:0}.pap-empty-icon{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 12px;border-radius:11px;color:#1765cb;background:#e8f1ff}.pap-empty-icon svg{width:24px;height:24px}
.pap-busy-layer{position:fixed;inset:0;z-index:100001;background:#102b4e70;display:grid;place-items:center;padding:16px;box-sizing:border-box;backdrop-filter:blur(2px)}.pap-busy-panel{display:flex;align-items:center;gap:15px;width:min(380px,100%);box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px;box-shadow:0 18px 52px #102b4e30;color:#15314e}.pap-busy-panel strong{display:block;font-size:15px;margin-bottom:5px}.pap-busy-panel p{font-size:13px;color:#52657a;margin:0;line-height:1.4}.pap-spinner{width:30px;height:30px;flex:none;border:3px solid #dce9f7;border-top-color:#155fb8;border-radius:50%;animation:pap-spin .8s linear infinite}.pap-nav-progress{position:fixed;inset:0 0 auto;height:3px;z-index:110001;pointer-events:none;overflow:hidden;background:#e6f1ff}.pap-nav-progress:after{content:'';display:block;width:35%;height:100%;background:#155fb8;animation:pap-nav 1.2s ease-in-out infinite}.pap-nav-progress[hidden]{display:none!important}
/* Match the preauth-specific confirmation without replacing its business logic. */
body .po-dialog-overlay{padding:16px;background:#102b4e75;backdrop-filter:blur(3px)}body .po-dialog-panel{width:min(460px,100%);max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:24px;border-radius:16px;border:1px solid #e1e7ef;box-shadow:0 24px 70px #102c4b35;animation:pap-in .18s ease-out}body .po-dialog-title{font-size:20px;color:#15314e}body .po-dialog-message{font-size:14px;color:#52657a}body .po-dialog-footer{border-top:1px solid #e5ebf1;margin-top:20px;padding-top:16px}body .po-dialog-btn.primary{background:#155fb8;border-color:#155fb8}
@keyframes pap-spin{to{transform:rotate(360deg)}}@keyframes pap-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes pap-nav{from{transform:translateX(-110%)}to{transform:translateX(390%)}}@media(max-width:600px){.pap-toast-stack{top:10px;right:10px;width:calc(100vw - 20px)}.pap-search-launch{padding:6px!important;min-width:34px!important;min-height:34px!important}.pap-search-launch kbd{display:none}.pap-ui-dialog,body .po-dialog-panel{padding:20px}.pap-ui-actions>*{flex:1}}@media(prefers-reduced-motion:reduce){.pap-toast,.pap-ui-dialog[open],.pap-spinner,.pap-nav-progress:after,body .po-dialog-panel{animation:none}.pap-nav-progress:after{width:100%}}

@media(max-width:600px){body .portal-topbar .portal-top-actions{gap:6px!important;flex:0 0 auto}body .portal-topbar .portal-logo{flex:1 1 0!important;min-width:0}body .portal-topbar .portal-logo img{max-width:100%;height:auto;object-fit:contain}body .portal-topbar .portal-header-icon{flex-shrink:0}}
@media(max-width:360px){body .portal-topbar{gap:6px;padding-left:8px;padding-right:8px}body .portal-topbar .portal-top-actions{gap:4px!important}}
