/* betkhalifa-payments-v1.4 */
.bk-funds-open{overflow:hidden}
.bk-wallet-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center;padding:7px 10px;background:#fff;border-top:1px solid #fcf8f0;border-bottom:1px solid #e5d5c6}
.bk-wallet-actions button{min-height:34px;padding:7px 16px;font:600 13px/1.2 Arial,sans-serif}
.a-header nav>.bk-payments-admin-link{color:#a70608!important;background:transparent!important;font-weight:700!important}
dialog.bk-funds-dialog{position:fixed;inset:0;margin:auto;width:min(570px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90dvh;padding:0;border:0;border-radius:16px;background:#fff;color:#040d1d;font:15px/1.5 Arial,sans-serif;box-shadow:0 20px 80px #040d1d55;overflow:hidden;zoom:1;box-sizing:border-box;text-align:left}
.bk-funds-dialog[open]{display:flex;flex-direction:column}.bk-funds-dialog.bk-funds-wide{width:min(1100px,calc(100vw - 24px));height:90dvh}
.bk-funds-dialog::backdrop{background:#23152f99;backdrop-filter:blur(3px)}.bk-funds-dialog *{box-sizing:border-box}
.bk-funds-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#a70608!important;color:#fff!important;padding:17px 22px;flex:none}
.bk-funds-dialog h1{font:700 21px/1.3 Arial,sans-serif;margin:0;color:inherit}.bk-funds-dialog h2{font:700 21px/1.3 Arial,sans-serif;margin:0 0 14px;color:#040d1d}.bk-funds-dialog h3{font:700 17px/1.4 Arial,sans-serif;margin:20px 0 10px}
.bk-funds-close{padding:0;border:0;background:transparent;color:#fff;font:30px/1 Arial,sans-serif;width:34px;height:34px;cursor:pointer}
.bk-funds-tabs{display:flex;gap:4px;padding:8px 12px;background:#fcf8f0;border-bottom:1px solid #e5d5c6;overflow-x:auto;flex:none}
.bk-funds-tab{border:0;background:transparent;color:#766076;padding:9px 12px;font:600 13px/1.3 Arial,sans-serif;white-space:nowrap;cursor:pointer;border-radius:7px}.bk-funds-tab.active{background:#a70608;color:#fff}
.bk-funds-content{padding:22px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.bk-funds-form{display:flex;flex-direction:column;gap:14px;margin:15px 0 0}
.bk-funds-field{display:flex;flex-direction:column;gap:6px;font:600 13px/1.4 Arial,sans-serif;color:#720a11}
.bk-funds-dialog input:not([type=checkbox]),.bk-funds-dialog select{width:100%;min-height:43px;padding:10px 12px;border:1px solid #e5d5c6;border-radius:8px;background:#fff;color:#040d1d;font:16px/1.35 Arial,sans-serif;min-width:0}
.bk-funds-dialog input:focus,.bk-funds-dialog select:focus{outline:2px solid #a7060855;border-color:#a70608}.bk-funds-dialog input[type=file]{font-size:14px;padding:8px}
.bk-funds-check{display:flex;align-items:center;gap:8px;color:#720a11;font-size:13px}.bk-funds-check input{appearance:auto;accent-color:#a70608;width:17px;height:17px}
.bk-funds-primary,.bk-funds-secondary,.bk-funds-danger,.bk-funds-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:9px 15px;border:0;border-radius:8px;font:600 14px/1.4 Arial,sans-serif;cursor:pointer;text-decoration:none}
.bk-funds-primary{background:#a70608;color:#fff}.bk-funds-secondary{background:#fcf8f0;color:#720a11;border:1px solid #e5d5c6}.bk-funds-danger{background:#fff0f1;color:#ad2441;border:1px solid #f0cad2}.bk-funds-link{color:#a70608;background:transparent;padding-left:0;padding-right:0;justify-content:flex-start}
.bk-funds-dialog button:disabled{opacity:.55;cursor:wait}.bk-funds-dialog button:focus-visible,.bk-wallet-actions button:focus-visible{outline:3px solid #a7060877;outline-offset:3px}
.bk-funds-note{margin:8px 0;color:#796b7c;font:13px/1.6 Arial,sans-serif}.bk-funds-error{margin:7px 0;padding:10px 12px;border-radius:8px;color:#ad2441;background:#fff0f1;font:14px/1.5 Arial,sans-serif}.bk-funds-error[hidden]{display:none}
.bk-funds-pay-instructions{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #e5d5c6;background:#fffafa;border-radius:10px;padding:16px}.bk-funds-qr{width:190px;max-width:100%;height:190px;object-fit:contain;background:#fff}.bk-funds-upi{display:flex;align-items:center;gap:12px;max-width:100%;overflow-wrap:anywhere}.bk-funds-dialog code{font:500 14px/1.5 monospace;overflow-wrap:anywhere}
.bk-funds-bank,.bk-funds-record{display:flex;flex-direction:column;gap:6px;padding:15px;border:1px solid #e5d5c6;border-radius:10px;background:#fff;margin-bottom:12px;overflow-wrap:anywhere}.bk-funds-record p{margin:2px 0}.bk-funds-record small{font-size:12px;color:#827085}.bk-funds-record-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.bk-funds-status{font:700 11px/1.4 Arial,sans-serif;border-radius:20px;padding:4px 9px;white-space:nowrap}.bk-funds-status.pending{background:#fff3d7;color:#845b00}.bk-funds-status.approved{background:#e6f7ec;color:#206a3c}.bk-funds-status.declined{background:#fff0f1;color:#ad2441}
.bk-funds-row-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:8px}.bk-funds-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:18px}.bk-funds-filters h2{margin:0 auto 0 0}.bk-funds-filters select{width:auto;min-width:130px}.bk-funds-filters>span{font-size:12px;color:#827085}.bk-funds-proof-preview img{max-width:100%;max-height:360px;object-fit:contain;border:1px solid #e5d5c6;border-radius:8px}
@media(max-width:767px){.bk-wallet-actions{justify-content:center;gap:7px;padding:6px}.bk-wallet-actions button{flex:1;min-width:0;padding:8px;font-size:12px}.bk-wallet-actions .bk-funds-link{justify-content:center}.bk-funds-content{padding:17px}.bk-funds-dialog>header{padding:13px 17px}.bk-funds-dialog h1{font-size:19px}.bk-funds-tabs{padding:6px 8px}.bk-funds-tab{padding:9px;font-size:12px}.bk-funds-record-title{align-items:flex-start}.bk-funds-record-title strong{font-size:14px}.bk-funds-filters select{flex:1;min-width:110px}.bk-funds-filters h2{width:100%}.bk-funds-filters .bk-funds-primary{flex:1}}

/* betkhalifa-header-v1.4.1 */
@media(min-width:768px){
 .header .header-controls>.bk-wallet-actions{display:inline-flex;align-items:center;justify-content:flex-start;flex:0 0 auto;gap:6px;height:auto;min-width:0;margin:0;padding:0;background:transparent;border:0}
 .header .header-controls>.bk-wallet-actions button{flex:none;min-height:34px;margin:0;padding:7px 11px;font:600 13px/1.2 Arial,sans-serif;white-space:nowrap}
 .header .header-controls>.bk-wallet-actions .bk-funds-primary{color:#fff}
 .header .header-controls>.bk-wallet-actions .bk-funds-secondary{color:#720a11}
 .header .header-controls>.bk-wallet-actions .bk-funds-link{color:#a70608;padding-left:6px;padding-right:6px}
}

/* betkhalifa-admin-payments-pages-v1.4.3 */
/* Admin payments are ordinary document pages; customer wallet dialogs retain their layout. */
html.bk-admin-payments-page #root .admin-shell{min-height:0!important;height:auto!important}
html.bk-admin-payments-page #root .admin-shell>.a-main{display:none!important}
.bk-funds-page{position:relative;display:block;width:auto;min-width:0;margin:18px 20px 30px;padding:0;border:1px solid #e5d5c6;background:#fff;color:#040d1d;font:15px/1.5 Arial,sans-serif;text-align:left;box-sizing:border-box}
.bk-funds-page *{box-sizing:border-box}
.bk-funds-page>header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 24px;border-bottom:1px solid #e5d5c6;background:#fff;color:#040d1d}
.bk-funds-page h1{font:700 23px/1.3 Arial,sans-serif;margin:0;color:#040d1d}
.bk-funds-page h2{font:700 21px/1.3 Arial,sans-serif;margin:0 0 14px;color:#040d1d}
.bk-funds-page h3{font:700 17px/1.4 Arial,sans-serif;margin:20px 0 10px}
.bk-funds-admin-home{font-size:14px;font-weight:600;color:#a70608;text-decoration:none}
.bk-funds-page .bk-funds-content{padding:24px;overflow:visible;overscroll-behavior:auto}
.bk-funds-page .bk-funds-tabs{padding:0 20px;gap:16px;background:#fff;overflow-x:auto}
.bk-funds-page .bk-funds-tab{display:inline-flex;align-items:center;padding:15px 2px 12px;text-decoration:none;border-radius:0;border-bottom:3px solid transparent;background:transparent;color:#766076}
.bk-funds-page .bk-funds-tab.active{background:transparent;color:#a70608;border-bottom-color:#a70608}
.bk-funds-page input:not([type=checkbox]),.bk-funds-page select{width:100%;min-height:43px;padding:10px 12px;border:1px solid #e5d5c6;border-radius:8px;background:#fff;color:#040d1d;font:16px/1.35 Arial,sans-serif;min-width:0}
.bk-funds-page input:focus,.bk-funds-page select:focus{outline:2px solid #a7060855;border-color:#a70608}
.bk-funds-page input[type=file]{font-size:14px;padding:8px}
.bk-funds-page button:disabled{opacity:.55;cursor:wait}
.bk-funds-page button:focus-visible,.bk-funds-page a:focus-visible{outline:3px solid #a7060877;outline-offset:3px}
.bk-funds-page code{font:500 14px/1.5 monospace;overflow-wrap:anywhere}
.bk-funds-page .bk-funds-filters h2{margin:0 auto 0 0}
.bk-funds-page .bk-funds-filters select{width:auto;min-width:130px}
.bk-funds-page .bk-funds-form{max-width:760px}
.a-header nav>a.bk-payments-admin-link{text-decoration:none;display:inline-flex;align-items:center;padding:8px;color:#a70608!important;background:transparent!important;font-weight:700!important;white-space:nowrap}
@media(max-width:767px){
 .bk-funds-page{margin:12px 10px 22px}
 .bk-funds-page>header{padding:16px}
 .bk-funds-page h1{font-size:21px}
 .bk-funds-page .bk-funds-content{padding:16px}
 .bk-funds-page .bk-funds-tabs{padding:0 14px;gap:12px}
 .bk-funds-page .bk-funds-tab{font-size:13px;padding-top:13px}
 .bk-funds-page .bk-funds-filters select{flex:1;min-width:110px}
}
