/* AssetPulse bulk-loan enhancement. Loaded after app.css; no theme or hosting reset. */
/* All popup notifications, including legacy actions, stay above every modal at top-right. */
.toast-region{top:calc(18px + env(safe-area-inset-top,0px));right:calc(18px + env(safe-area-inset-right,0px));bottom:auto!important;left:auto;z-index:2200;max-width:420px;width:calc(100% - 36px);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;gap:10px;align-items:stretch}
.pulse-toast{flex-shrink:0}
.bulk-loan-modal .modal-content{border-radius:22px;overflow:hidden;border:1px solid #e4dff0;box-shadow:0 26px 95px #24213935}
.bulk-loan-modal .modal-header{padding:23px 28px 18px;border-bottom:1px solid #efebf5;background:#fff}
.bulk-loan-modal .modal-body{padding:24px 28px;background:#fff}
.bulk-loan-modal .modal-footer{padding:17px 28px;gap:9px;background:#fbfafe;border-top:1px solid #eae5f2}
.bulk-loan-modal .modal-title{font-size:24px!important;letter-spacing:-.035em}
.bulk-loan-modal .eyebrow{font-size:11px;letter-spacing:.11em}
.bulk-loan-modal .form-label{font-size:14px}
.bulk-loan-modal .form-control,.bulk-loan-modal .form-select{font-size:15px}
.bulk-loan-modal .borrower-contact{min-height:39px;font-size:13px}
.bulk-loan-modal .form-text{font-size:12px;line-height:1.5}
.bulk-loan-modal .btn{font-size:14px;min-height:41px}
.bulk-loan-modal .btn-primary{--bs-btn-bg:#7964d8;--bs-btn-border-color:#7964d8;--bs-btn-hover-bg:#6953c8;--bs-btn-hover-border-color:#6953c8;--bs-btn-active-bg:#604abe;--bs-btn-active-border-color:#604abe;--bs-btn-disabled-bg:#7964d8;--bs-btn-disabled-border-color:#7964d8;background:#7964d8;border-color:#7964d8;color:#fff}
.bulk-loan-modal .btn-sm{font-size:13px;min-height:33px}
.bulk-intro{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 23px}
.bulk-intro .eyebrow{color:#7c6c9f;font-weight:800}
.bulk-intro p{margin:6px 0 0;color:#6c647d;font-size:14px;max-width:570px;line-height:1.55}
.bulk-step-chip{display:flex;align-items:center;gap:7px;color:#6b54a1;background:#f2edf9;border:1px solid #e6ddf2;border-radius:24px;padding:9px 12px;font-size:12px;font-weight:650;white-space:nowrap}
.bulk-step-chip svg{width:17px;height:17px}
.bulk-notes{border-top:1px solid #eeeaf5;padding:13px 0 2px;font-size:13px}
.bulk-notes summary{cursor:pointer;font-weight:600;color:#554968}
.bulk-notes textarea{min-height:72px}
.bulk-scan-zone{margin-top:22px;padding:18px 20px;border:1px solid #d8cbed;background:linear-gradient(115deg,#f4efff,#faf9fd);border-radius:16px;box-shadow:0 2px 5px #8872ab08}
.bulk-scan-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.bulk-scan-heading label{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:750;color:#463463;margin:0}
.bulk-scan-heading label svg{width:20px;height:20px}
.bulk-live-dot{font-size:11px;font-weight:650;color:#66856c;white-space:nowrap;display:flex;align-items:center;gap:6px}
.bulk-live-dot i{height:6px;width:6px;background:#67aa85;border-radius:50%;box-shadow:0 0 0 3px #67aa8516}
.bulk-scan-controls{display:flex;gap:9px;align-items:stretch}
.bulk-scan-controls .form-control{background:#fff;flex:1;min-width:0;font-size:16px;min-height:48px;border:1px solid #d7c8eb;padding:11px 14px}
.bulk-scan-controls .form-control:focus{border-color:#9474d1;box-shadow:0 0 0 3px #9d7ad91f}
.bulk-scan-controls .btn{white-space:nowrap;padding:10px 15px}
.bulk-scan-zone p{color:#80748f;font-size:12px;margin:9px 0 0;line-height:1.5}
.bulk-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:23px 0 13px}
.bulk-list-head h3{font-size:17px;margin:0 0 5px;font-weight:750;letter-spacing:-.02em;color:#3c324e}
.bulk-list-head p{font-size:12px;color:#837a90;margin:0;line-height:1.5}
.bulk-count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:23px;padding:0 6px;background:#eee7f9;color:#7650b7;font-size:12px;border-radius:7px;margin-left:6px;vertical-align:middle}
.bulk-list-head .btn{white-space:nowrap}
.bulk-table-wrap{overflow:auto;max-width:100%;border:1px solid #e9e4f0;border-radius:12px;background:#fff;max-height:350px;overscroll-behavior:contain}
.bulk-table{margin:0;min-width:865px;font-size:13px;line-height:1.4;table-layout:fixed;width:100%}
.bulk-table thead{position:sticky;top:0;z-index:1}
.bulk-table thead th{background:#f7f5fb;color:#867a98;font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:750;padding:12px;border-bottom:1px solid #e9e4f0;white-space:normal}
.bulk-table tbody td{padding:14px 12px;vertical-align:top;border-bottom:1px solid #eeeaf4;color:#50445e;white-space:normal;overflow-wrap:anywhere;background:transparent}
.bulk-table tbody tr:last-child td{border-bottom:0}
.bulk-table th:first-child{width:36px}.bulk-table th:nth-child(2){width:23%}.bulk-table th:nth-child(3){width:17%}.bulk-table th:nth-child(4){width:16%}.bulk-table th:nth-child(5){width:14%}.bulk-table th:last-child{width:42px}
.bulk-table strong{display:block;font-weight:650;color:#3a304a;font-size:13px}
.bulk-table .bulk-row-number{color:#b2a7c0;font-size:11px}
.bulk-cell-sub{display:block;font-size:11px;color:#8a7d99;line-height:1.55;margin-top:3px}
.bulk-table .badge-status{font-size:10px;padding:4px 8px;min-height:auto}
.bulk-table .icon-btn{width:28px;height:28px;min-height:28px;color:#a799b6;border-radius:7px}
.bulk-table .icon-btn:hover{color:#b54261;background:#fcebf0}
.bulk-table .icon-btn svg{width:15px;height:15px}
.bulk-validation{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:650;line-height:1.25}
.bulk-validation svg{height:15px;width:15px;flex-shrink:0}
.bulk-validation.is-ready{color:#458069}.bulk-validation.is-blocked{color:#bb546e}
.bulk-invalid{background:#fff6f8}
.bulk-warning{display:block;color:#a37832;font-size:11px;margin-top:4px;line-height:1.4}
.bulk-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #dcd2eb;border-radius:14px;padding:32px 20px;background:#fdfcfe}
.bulk-empty>svg{width:34px;height:34px;color:#b29ad2;margin-bottom:13px}
.bulk-empty strong{color:#655276;font-size:16px;font-weight:650}
.bulk-empty p{font-size:13px;color:#9b8ba9;margin:7px 0 16px;max-width:480px}
.bulk-empty>span{font-size:11px;color:#967bba;word-spacing:7px}
.bulk-footer-status{margin-right:auto;color:#887698;font-size:13px;display:flex;align-items:center;gap:6px}
.bulk-footer-status>svg{height:17px;width:17px;color:#57a783}
.bulk-review{border:1px solid #dcd0ef;background:#f7f2ff;border-radius:12px;padding:18px;margin-top:18px;font-size:14px;color:#5c4a74}
.bulk-review>div:first-child{display:flex;align-items:center;gap:7px;color:#634685}
.bulk-review svg{height:19px;width:19px}
.bulk-review p{line-height:1.6;margin:9px 0}
.bulk-review small{font-size:12px;color:#877695;overflow-wrap:anywhere}
.bulk-success-mark{width:58px;height:58px;border-radius:50%;background:#e7f5ee;display:grid;place-items:center;margin:8px auto 20px;color:#448965}.bulk-success-mark svg{width:28px;height:28px}
.bulk-receipt-heading{text-align:center;margin-bottom:24px}.bulk-receipt-heading h3{font-size:23px;margin:9px 0;letter-spacing:-.03em}.bulk-receipt-heading p{font-size:14px;color:#91809f}
.bulk-receipt-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;background:#f8f5fc;padding:19px;border-radius:12px;margin-bottom:22px}
.bulk-receipt-meta div{display:flex;flex-direction:column;gap:5px;min-width:0}.bulk-receipt-meta small{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#9d8bad}.bulk-receipt-meta strong{font-size:13px;color:#655273}.bulk-receipt-meta span{font-size:12px;color:#9a89a6;overflow-wrap:anywhere}
#bulk-camera-panel{margin-top:15px}#bulk-camera-reader{max-width:440px;max-height:260px;border-radius:10px;overflow:hidden;margin:auto}#bulk-camera-reader video{max-width:100%;max-height:260px;object-fit:cover}
@media(min-width:1200px){.bulk-loan-dialog{max-width:1130px}}
@media(max-width:767px){
 .toast-region{top:calc(12px + env(safe-area-inset-top,0px));right:12px;left:auto;bottom:auto!important;width:calc(100% - 24px);max-width:420px}
 .bulk-loan-modal .modal-dialog{margin:8px;max-height:calc(100% - 16px);min-height:calc(100% - 16px)}
 .bulk-loan-modal .modal-content{border-radius:17px}
 .bulk-loan-modal .modal-header{padding:18px 17px 14px}.bulk-loan-modal .modal-body{padding:18px 16px}.bulk-loan-modal .modal-footer{padding:12px;gap:7px}
 .bulk-loan-modal .modal-title{font-size:21px!important}
 .bulk-loan-modal .form-control,.bulk-loan-modal .form-select{font-size:16px}
 .bulk-intro{align-items:flex-start;flex-direction:column;gap:11px;margin-bottom:20px}.bulk-intro p{font-size:13px}.bulk-step-chip{font-size:10px;padding:6px 9px}
 .bulk-scan-zone{padding:14px 12px}.bulk-scan-heading{gap:6px}.bulk-scan-heading label{font-size:13px}.bulk-live-dot{font-size:10px}
 .bulk-scan-controls{flex-wrap:wrap}.bulk-scan-controls input{flex-basis:100%!important}.bulk-scan-controls .btn{flex:1;justify-content:center;min-height:42px}
 .bulk-list-head{align-items:flex-start}.bulk-list-head h3{font-size:16px}.bulk-list-head p{font-size:11px;max-width:185px}.bulk-list-head .btn{font-size:11px;padding:7px}
 .bulk-table-wrap{max-height:310px}.bulk-table{font-size:13px;min-width:870px}.bulk-table thead th{padding:10px}
 .bulk-loan-modal .modal-footer .bulk-footer-status{flex-basis:100%;font-size:12px;margin:0 0 3px}.bulk-loan-modal .modal-footer .btn{font-size:12px;min-height:40px;padding:8px 11px}.bulk-loan-modal .modal-footer #modal-submit{flex:1;justify-content:center}
 .bulk-review{padding:15px;font-size:13px}.bulk-receipt-meta{grid-template-columns:1fr;gap:15px}.bulk-receipt-heading h3{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.bulk-loan-modal *{scroll-behavior:auto!important}}
@media print{.toast-region{display:none!important}}
