/* Linked handovers 3.7 - additive theme. Existing top-right alerts remain above dialogs. */
.handover-view-tabs{display:flex;gap:6px;padding:5px;border:1px solid #e6dff1;background:#f1edf8;border-radius:13px;width:max-content;max-width:100%;margin:4px 0 23px}
.handover-view-tabs button{display:flex;align-items:center;gap:8px;border:0;border-radius:10px;background:transparent;padding:11px 18px;font-size:14px;color:#8e7aa6;font-weight:650;min-height:43px}.handover-view-tabs button.active{color:#7454a1;background:#fff;box-shadow:0 2px 7px #70518412}.handover-view-tabs svg{width:18px;height:18px}
.handover-banner{background:linear-gradient(110deg,#f1e9fc,#faf7fd);border:1px solid #e7dcef;border-radius:19px;padding:24px 26px;display:flex;align-items:center;gap:20px;margin:0 0 26px}.handover-banner-icon,.handover-doc-icon{display:grid;place-items:center;background:#e8ddf7;color:#9a78bd;width:60px;height:60px;border-radius:16px;flex-shrink:0}.handover-banner-icon svg,.handover-doc-icon svg{width:28px;height:28px}.handover-banner .eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:#9b7bb5}.handover-banner h2{font-size:24px;color:#553e6e;letter-spacing:-.035em;margin:5px 0 8px}.handover-banner p{font-size:14px;line-height:1.65;color:#967fa8;margin:0;max-width:620px}.handover-banner-note{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:12px;color:#9b83ad;white-space:nowrap}.handover-banner-note svg{width:16px;height:16px}
.handover-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:0 0 18px}.handover-toolbar .filter-tabs{margin:0}.handover-search{position:relative;flex:1;max-width:460px;min-width:230px}.handover-search>svg{position:absolute;left:15px;top:16px;width:17px;height:17px;color:#ad9bbe}.handover-search input{padding:12px 14px 12px 43px;background:#fff;border:1px solid #e7dfef;min-height:47px;font-size:14px;box-shadow:0 2px 4px #7e5e9704}.handover-search input::placeholder{color:#ae9bbd}
.handover-register{font-size:14px}.handover-register thead th{font-size:11px;letter-spacing:.055em;white-space:nowrap;padding:15px 17px;background:#fcfaff;color:#a18dad;font-weight:650}.handover-register tbody td{vertical-align:middle;padding:22px 17px;color:#715c87;border-color:#f0eaf5}.handover-register tbody strong{font-weight:650;font-size:14px}.handover-register .asset-name{font-size:15px}.handover-title{max-width:270px;text-align:left}.handover-ref{display:block;overflow-wrap:anywhere;word-break:break-word;font-size:11px;line-height:1.7;letter-spacing:.01em;color:#9e88b1;max-width:290px;margin:4px 0}.handover-register .asset-sub{font-size:12px}.handover-register .avatar{width:35px;height:35px;font-size:12px}.handover-register progress{display:block;width:108px;height:5px;margin-top:10px;appearance:none;-webkit-appearance:none;background:#efe8f6;border:0;border-radius:10px;overflow:hidden}.handover-register progress::-webkit-progress-bar{background:#efe8f6;border-radius:10px}.handover-register progress::-webkit-progress-value{background:#b39acb;border-radius:10px}.handover-register progress::-moz-progress-bar{background:#b39acb}.handover-register .btn{font-size:12px;min-height:35px;white-space:nowrap}.handover-actions{min-width:115px}.handover-actions .btn{margin:3px 0;display:flex;width:max-content;min-width:106px;justify-content:flex-start}.handover-help{padding:14px 2px;color:#a592b0;font-size:12px;line-height:1.75}.handover-warn{color:#af8547!important}.handover-wrap{white-space:normal!important;overflow-wrap:anywhere;max-width:330px}
.handover-modal .modal-content{border-radius:21px;border:1px solid #e7deef;overflow:hidden}.handover-modal .modal-header{padding:22px 27px;border-color:#eee7f5}.handover-modal .modal-body{padding:24px 27px}.handover-modal .modal-footer{padding:17px 27px;background:#fcfaff;gap:8px}.handover-modal .modal-title{font-size:23px!important}.handover-modal .btn{font-size:14px;min-height:42px}
.handover-detail-hero{display:flex;align-items:center;gap:17px;margin-bottom:23px}.handover-detail-hero .eyebrow{font-size:10px;letter-spacing:.11em;color:#9a7eb0;font-weight:750}.handover-detail-hero h3{font-size:23px;color:#584068;letter-spacing:-.03em;margin:6px 0}.handover-detail-hero .badge-status{margin-left:auto}.handover-detail-hero .handover-ref{max-width:460px;font-size:12px}.handover-meta{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:20px;background:#f8f4fd;border:1px solid #ede4f5;border-radius:13px;padding:18px 21px;margin-bottom:22px}.handover-meta>div{display:flex;flex-direction:column;gap:6px;min-width:0}.handover-meta small{font-size:9px;letter-spacing:.08em;color:#a591b3}.handover-meta strong{font-size:15px;color:#745786}.handover-meta span{font-size:12px;color:#a08eae;overflow-wrap:anywhere}.handover-detail-table{border:1px solid #e9e1f1;border-radius:12px}.handover-detail-table .table{margin:0;min-width:610px;font-size:14px}.handover-detail-table thead th{font-size:11px;background:#faf7fd;color:#a48eaf;padding:13px}.handover-detail-table td{padding:17px 13px;white-space:normal;vertical-align:top}.handover-return-note{display:flex;gap:5px;font-size:12px;max-width:275px;color:#aa7d51;margin-top:5px}.handover-return-note svg{width:15px;height:15px;flex-shrink:0}
.handover-history{margin-top:29px}.handover-history h3{font-size:18px;color:#614978}.handover-history details{border:1px solid #e9e1f1;border-radius:11px;padding:14px 17px;margin-top:10px;color:#847193;font-size:13px}.handover-history summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer}.handover-history summary>span{display:flex;align-items:center;gap:8px}.handover-history summary svg{width:17px;height:17px;color:#ad92c3}.handover-history p{margin:9px 0;overflow-wrap:anywhere}.handover-history small{font-size:11px;color:#af9cba}.handover-history .form-text{font-size:12px}.handover-confirm{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6;color:#796085}.handover-confirm input{width:17px;height:17px;margin-top:4px;flex-shrink:0;accent-color:#9374b8}.handover-outstanding{margin-top:20px;border-top:1px solid #ece4f3;padding-top:15px;font-size:13px;color:#8f77a0}.handover-outstanding summary{cursor:pointer;font-weight:650}.handover-outstanding p{display:flex;gap:12px;padding:8px 0;margin:0;border-bottom:1px solid #f0eaf5}.handover-outstanding span{margin-left:auto;font-size:12px}
.receive-hero{margin-bottom:17px}.receive-hero .handover-doc-icon{width:55px;height:55px}.receive-outstanding{margin-left:auto;font-size:31px;font-weight:700;line-height:1.1;text-align:right;color:#a58abe}.receive-outstanding small{display:block;font-size:10px;font-weight:600;letter-spacing:.03em;margin-top:6px;color:#ad98bb}.receive-borrower{display:flex;align-items:center;gap:11px;border:1px solid #eee7f5;border-radius:11px;padding:12px 15px;background:#fbf9fe;margin-bottom:20px}.receive-borrower>div{display:flex;flex-direction:column;gap:4px}.receive-borrower strong{font-size:14px;font-weight:650;color:#6b537e}.receive-borrower span{font-size:12px;color:#a28fae}.receive-borrower>span:last-child{margin-left:auto}.receive-borrower .avatar{width:35px;height:35px;font-size:13px}.receive-modal .bulk-scan-zone{margin-top:0}.receive-modal .bulk-list-head p{max-width:650px}.receive-modal .bulk-list-head{margin-top:22px}.receive-table-wrap{border:1px solid #e7e0ef;border-radius:12px;overflow:auto;max-height:440px;overscroll-behavior:contain}.receive-table{margin:0;width:100%;table-layout:fixed;min-width:945px;font-size:13px;line-height:1.5}.receive-table thead{position:sticky;top:0;z-index:2}.receive-table th{padding:12px 11px;background:#f8f5fc;color:#a28caf;font-size:10px;letter-spacing:.05em;text-transform:uppercase;white-space:normal}.receive-table td{padding:16px 11px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;border-color:#eee7f5;color:#81708e;background:transparent}.receive-table th:first-child{width:32px}.receive-table th:nth-child(2){width:23%}.receive-table th:nth-child(3){width:17%}.receive-table th:nth-child(4){width:20%}.receive-table th:nth-child(5){width:16%}.receive-table th:nth-child(6){width:16%}.receive-table th:last-child{width:34px}.receive-table td strong{font-size:14px;display:block;color:#624b77;font-weight:650}.receive-table .asset-sub{font-size:11px;color:#ab98b7}.receive-table .form-select{padding:7px 24px 7px 9px;font-size:13px;min-height:35px;border-color:#e4d9ee}.receive-inspect{display:flex;align-items:flex-start;gap:6px;font-size:11px;line-height:1.5;margin-top:8px;color:#a38aaf}.receive-inspect input{margin-top:3px;accent-color:#a482be;flex-shrink:0}.receive-table .icon-btn{width:24px;height:28px;color:#b5a5c1}.receive-table .icon-btn svg{width:16px;height:16px}.receive-note-button{display:flex;align-items:center;gap:5px;font-size:12px!important;min-height:33px!important;padding:5px 8px;white-space:nowrap}.receive-note-button.has-notes{background:#f2eafc!important;color:#8e64b0!important;border-color:#dfcdef!important}.receive-note-preview{display:block;font-size:11px;line-height:1.5;margin-top:6px;color:#a28baf;max-height:52px;overflow:hidden}.receive-note-dot{display:inline-block;width:5px;height:5px;background:#a77dc4;border-radius:50%;margin-left:4px}.receive-note-required{display:block;font-size:11px;color:#c08855;margin-top:6px}.receive-notes-row>td{background:#faf7fd;padding:14px 18px!important}.receive-note-editor{display:flex;align-items:flex-start;gap:15px}.receive-note-editor>div{flex:0 0 250px}.receive-note-editor label{font-size:12px;font-weight:650;color:#846294}.receive-note-editor label strong{font-size:12px;display:inline}.receive-note-editor span{display:block;font-size:11px;color:#aa92b8;margin-top:4px}.receive-note-editor textarea{font-size:14px!important;flex:1;border-color:#dfd1eb;min-width:0;resize:vertical}.receive-note-editor .btn{font-size:12px!important;white-space:nowrap;min-height:37px!important}.receive-shared-notes{font-size:13px;margin-top:20px;color:#9c85ac}.receive-shared-notes summary{cursor:pointer}.receive-shared-notes .form-label{font-size:13px}.receive-shared-notes textarea{font-size:14px;min-height:70px}.receive-modal #receive-submit{min-width:175px}.receive-modal #receive-camera-reader{margin:15px auto 10px;max-width:450px;border-radius:12px;overflow:hidden}.receive-modal #receive-camera-reader video{max-height:245px;max-width:100%;object-fit:cover}.receive-modal #receive-receipt .table td{white-space:normal!important;overflow-wrap:anywhere}
@media(max-width:1199px) and (min-width:768px){.handover-banner-note{display:none}.handover-register{min-width:1000px}}
@media(max-width:767px){
 .handover-view-tabs{width:100%;margin-bottom:17px}.handover-view-tabs button{flex:1;justify-content:center;padding:10px 8px;font-size:12px}.handover-view-tabs svg{width:15px;height:15px}.handover-banner{padding:19px 17px;gap:13px;align-items:flex-start}.handover-banner-icon{width:40px;height:40px;border-radius:11px}.handover-banner-icon svg{width:22px;height:22px}.handover-banner h2{font-size:20px}.handover-banner p{font-size:13px;line-height:1.65}.handover-banner-note{display:none}.handover-toolbar{gap:14px}.handover-search{max-width:none;min-width:0;flex-basis:100%}.handover-search input{font-size:16px}.handover-toolbar .filter-tabs{width:100%}.handover-toolbar .filter-tabs button{flex:1;font-size:12px;padding:9px 5px}.handover-register tbody td{padding:11px 16px;font-size:14px}.handover-register .handover-actions{display:flex;width:100%;gap:8px;padding-bottom:17px}.handover-register .handover-actions .btn{display:inline-flex;width:auto;flex:1;justify-content:center;font-size:13px;min-height:40px}.handover-register .handover-title{font-size:16px;max-width:none}.handover-register .handover-ref{max-width:none;font-size:11px}.handover-register progress{margin-left:auto}.handover-register .person-cell{justify-content:flex-end}.handover-register td[data-label=Assets]>strong{display:block}.handover-help{font-size:12px}
 .handover-modal .modal-dialog{margin:8px;max-height:calc(100% - 16px)}.handover-modal .modal-header{padding:17px}.handover-modal .modal-body{padding:18px 16px}.handover-modal .modal-footer{padding:12px}.handover-modal .modal-title{font-size:21px!important}.handover-modal .form-control,.handover-modal .form-select{font-size:16px}.handover-modal .modal-footer .btn{font-size:12px;min-height:40px}.handover-detail-hero{gap:12px;align-items:flex-start}.handover-detail-hero .handover-doc-icon{width:43px;height:43px;border-radius:12px}.handover-detail-hero h3{font-size:20px}.handover-detail-hero .handover-ref{font-size:11px}.handover-detail-hero .badge-status{font-size:10px}.handover-meta{grid-template-columns:1fr;gap:17px;padding:17px}.handover-meta strong{font-size:16px}.handover-history summary{align-items:flex-start;flex-direction:column;gap:6px}.handover-history details{padding:13px}.handover-confirm{font-size:13px}.handover-outstanding p{display:block;line-height:1.8}.handover-outstanding span{display:block}.receive-borrower{padding:11px;gap:10px;flex-wrap:wrap}.receive-borrower>span:last-child{width:100%;margin-left:45px;font-size:11px}.receive-borrower strong{font-size:15px}.receive-outstanding{font-size:27px}.receive-outstanding small{font-size:9px}.receive-hero .handover-doc-icon{display:none}.receive-modal .bulk-list-head p{max-width:240px}.receive-modal #receive-footer-status{width:100%;font-size:12px}.receive-modal #receive-submit{flex:1;min-width:0;font-size:12px}.receive-modal .modal-footer .btn{font-size:12px}.receive-shared-notes textarea{font-size:16px}.receive-note-editor textarea{font-size:16px!important}
 /* Mobile return cards retain inline Notes and condition controls without horizontal hunting. */
 .receive-table-wrap{max-height:510px;overflow-x:hidden}.receive-table{min-width:0;table-layout:auto;display:block}.receive-table thead{display:none}.receive-table tbody{display:block}.receive-table tbody>tr:not(.receive-notes-row){display:grid;grid-template-columns:1fr 1fr;gap:0;padding:13px 12px;position:relative;border-bottom:1px solid #ece3f4}.receive-table td{display:block;border:0;padding:7px 5px;font-size:13px;min-width:0}.receive-table td:first-child{display:none}.receive-table td:nth-child(2){grid-column:1/-1;padding-right:25px}.receive-table td:nth-child(3){grid-column:1/-1;padding-top:0}.receive-table td:nth-child(3) .asset-sub{display:inline;margin-left:8px}.receive-table td:nth-child(4){grid-column:1}.receive-table td:nth-child(5){grid-column:2}.receive-table td:nth-child(6){grid-column:1/-1}.receive-table .receive-remove-cell{position:absolute;top:11px;right:10px}.receive-table .form-select{font-size:16px!important;min-height:39px}.receive-table td strong{font-size:15px}.receive-inspect{font-size:12px;line-height:1.6}.receive-inspect input{width:16px;height:16px}.receive-note-button{font-size:13px!important;min-height:38px!important}.receive-note-preview{font-size:12px;max-height:none}.receive-table .receive-notes-row:not([hidden]){display:block}.receive-notes-row td{display:block!important;padding:14px!important}.receive-note-editor{flex-wrap:wrap;gap:10px}.receive-note-editor>div{flex-basis:100%}.receive-note-editor label{font-size:13px}.receive-note-editor textarea{flex-basis:100%}.receive-note-editor .btn{margin-left:auto;min-height:39px!important}.receive-note-required{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.receive-modal *{scroll-behavior:auto!important}}

/* Keep metadata on separate lines: core asset-sub is intentionally inline elsewhere. */
.handover-register .asset-sub,.handover-detail-table .asset-sub,.receive-table .asset-sub,#receive-receipt .asset-sub{display:block;margin-top:4px;line-height:1.6}
.handover-register .person-cell>div{min-width:0}
.receive-table .mono{overflow-wrap:anywhere}
