:is(#history,#historyReceipt) { --dh-panel:#18181c; --dh-line:#29292e; --dh-muted:#b4b2bc; }
body:has(:is(#history,#historyReceipt):not([hidden])){background:#0e0e11}
main:has(:is(#history,#historyReceipt):not([hidden]))>nav{display:none}
.dh-heading-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
#history .back svg, #history .dh-toolbar svg, #history .dh-dialog-head svg,
#history .dh-detail-link svg, #history .dh-summary>svg {width:17px;height:17px;flex:none}
.dh-heading h1{font-size:22px;margin:0 0 6px;font-weight:800}
.dh-heading small{color:var(--dh-muted)}
.dh-toolbar,.dh-actions,.dh-dialog-head{display:flex;align-items:center;gap:8px}
.dh-toolbar{justify-content:flex-end}
.dh-heading-row{margin:0 0 12px}
.dh-toolbar a,.dh-toolbar button,.dh-action,.dh-dialog-head button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 13px;background:var(--dh-panel);color:inherit;border:1px solid var(--dh-line);border-radius:10px;font:inherit;font-size:13px}
#filterCount{background:#41414a;border-radius:20px;padding:0 6px}
.dh-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--dh-panel);border:1px solid var(--dh-line);border-radius:13px;padding:4px;margin-bottom:12px}
.dh-tabs button{background:transparent;color:var(--dh-muted);border:0;border-radius:9px;padding:7px 2px;font-size:13px}
.dh-tabs button[aria-pressed=true]{background:#2e2e32;color:white;font-weight:800}
#requestsList{display:grid;gap:8px}
.dh-card{border-radius:14px;padding:0 8px;color:#fff;background:#6b5015}
.dh-card[data-state=accepted],.dh-receipt-badge[data-state=accepted]{background:#1b7a3d}
.dh-card[data-state=rejected],.dh-receipt-badge[data-state=rejected]{background:#922e40}
.dh-summary{width:100%;min-height:61px;padding:8px;display:flex;align-items:center;gap:9px;border:0;color:inherit;background:transparent;text-align:start}
.dh-logo{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#ffffff20;flex:none;overflow:hidden}
.dh-logo img{width:100%;height:100%;object-fit:contain}
.dh-logo svg{width:17px;height:17px}
.dh-label{display:grid;min-width:0;gap:2px}
.dh-label strong,.dh-amount{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.dh-label small{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:700}
.dh-label bqt-order-icon{--size:13px;--glyph-size:10px;width:13px;height:13px;background:transparent;color:inherit;border:1px solid currentColor}
.dh-money{display:inline-flex;align-items:baseline;gap:2px;font-variant-numeric:tabular-nums}
.dh-money small{font-size:.72em;opacity:.88}
.dh-amount{margin-right:auto;flex-shrink:0;max-width:43%;font-variant-numeric:tabular-nums}
.dh-summary>i:last-child{line-height:1;display:flex}
.dh-summary[aria-expanded=true]>i:last-child{transform:rotate(180deg)}
.dh-panel{border-radius:10px;background:#131316;padding:2px 12px;margin:0 0 8px;display:flow-root}
.dh-rows{margin:0}
.dh-rows>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0;line-height:1.5;border-bottom:1px solid #ffffff10;font-size:13px}
.dh-rows dt{color:var(--dh-muted)}
.dh-rows dd{margin:0;text-align:end;overflow-wrap:anywhere;min-width:0;max-width:65%;font-weight:700;white-space:pre-line}
.dh-credit{color:#66dc91}
.dh-detail-link{display:flex;align-items:center;justify-content:center;gap:7px;background:transparent;color:#ff4b59;border:0;width:100%;padding:10px;font-size:14px;font-weight:800}
#historyMessage{color:var(--dh-muted);font-size:14px;text-align:center}
#historyMore{margin:12px auto;display:flex}
.dh-dialog{width:min(460px,calc(100% - 24px));max-height:85dvh;overflow:auto;background:#1a1a20;color:#fff;border:1px solid #3a3941;border-radius:18px;padding:20px}
.dh-dialog::backdrop{background:#000a}
.dh-dialog-head{justify-content:space-between;margin-bottom:14px}
.dh-dialog-head h2{font-size:19px}
.dh-dialog-head button{padding:8px}
.dh-dialog label{display:grid;gap:4px;font-size:13px;margin-bottom:10px;color:#d1ced6}
.dh-dialog :is(input,select){width:100%;min-width:0;border:1px solid #45424b;border-radius:9px;padding:9px;background:#121216;color:#fff;font:inherit}
.dh-dialog fieldset{border:0;padding:0;margin:0}.dh-dialog legend{padding:0;font-size:14px}
.dh-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dh-actions{margin-top:15px}.dh-actions .primary{width:auto;flex:1;padding:9px 16px}
#history :focus-visible{outline:2px solid #fff;outline-offset:2px}
.dh-action svg,.dh-receipt-actions svg{width:16px;height:16px}
#historyReceipt{max-width:640px;margin-inline:auto}
.dh-receipt-card,.dh-progress{background:#18181c;border:1px solid #252529;border-radius:16px;color:#fafafa}
.dh-receipt-card{padding:18px;min-height:210px}
.dh-receipt-top{display:flex;align-items:flex-start;gap:12px;min-height:42px}
.dh-receipt-top h2{flex:1;min-width:0;font-size:17px;line-height:1.45;overflow-wrap:anywhere}
.dh-receipt-top .dh-logo{width:42px;height:42px;border-radius:12px;background:#222228;color:#a1a1ab}
.dh-receipt-ref{align-self:flex-end;color:#a4a4ad;font-size:10px;direction:ltr}
.dh-receipt-badge{align-self:center;background:#795811;color:white;border-radius:20px;padding:2px 12px;font-size:12px}
.dh-receipt-id{flex:1;min-width:0;display:grid;gap:3px}
.dh-receipt-id .dh-receipt-ref{justify-self:start;font:600 12px/1.4 Cairo,Arial,sans-serif;color:#d1ced6}
.dh-receipt-grid{margin-top:15px;border-top:1px solid #ffffff12;padding-top:15px;display:grid;grid-template-columns:1fr minmax(150px,.8fr);align-items:center;gap:20px}
.dh-receipt-summary .dh-when{align-items:flex-start;flex-direction:column;gap:2px}
.dh-proof{background:#222127;border:1px solid #39353e;border-radius:12px;padding:10px;min-width:0}
.dh-proof h3{display:flex;align-items:center;gap:6px;margin:0 0 8px;font-size:13px;font-weight:700}
.dh-proof h3 svg,.dh-proof-upload svg,.dh-proof-thumb svg{width:15px;height:15px}
.dh-proof-thumb,.dh-proof-upload{width:100%;border:0;position:relative;border-radius:8px;overflow:hidden}
.dh-proof-thumb{display:block;background:#131317;padding:4px;cursor:zoom-in}
.dh-proof-thumb img{width:100%;height:130px;object-fit:contain;display:block}
.dh-proof-thumb span{position:absolute;bottom:5px;inset-inline-end:5px;background:#18181cf0;color:white;display:flex;align-items:center;gap:4px;padding:2px 6px;border-radius:6px;font-size:11px}
.dh-proof-upload{display:flex;align-items:center;justify-content:center;gap:6px;min-height:70px;background:#19191d;border:1px dashed #69616b;font-size:13px}
.dh-proof-upload:focus-within{outline:2px solid white}.dh-proof-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.dh-no-proof,.dh-proof-status{color:var(--dh-muted);font-size:12px;margin:5px 0}.dh-proof-status:empty{display:none}
#depositImageViewer{width:min(820px,96vw);margin:auto;border-radius:14px}
#depositFullImage{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain;background:#131317}
@media(max-width:480px){.dh-receipt-grid{grid-template-columns:1fr minmax(125px,.95fr);gap:10px}.dh-proof-thumb img{height:108px}.dh-receipt-summary .dh-net .dh-money{font-size:25px}.dh-receipt-card{padding:12px}}
@media(max-width:330px){.dh-receipt-grid{grid-template-columns:1fr}}
.dh-net{display:grid;justify-items:start;margin:14px 0 22px}
.dh-net>span,.dh-when>span,.dh-duration{font-size:12px;color:#a1a1aa}
.dh-net .dh-money{font-size:34px;font-weight:800;line-height:1.4;gap:3px}
.dh-net .dh-money small{font-size:20px;color:#a1a1aa}
.dh-when{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:12px}
.dh-when bdi{font-weight:800}
.dh-progress{margin-top:12px;padding:14px 16px;text-align:center}
.dh-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.dh-steps li{position:relative;display:grid;justify-items:center;gap:5px;color:#ddd;font-size:11px;font-weight:750}
.dh-steps li+li:before{content:"";position:absolute;inset-inline-end:calc(50% + 16px);width:calc(100% - 32px);height:2px;top:11px;background:#4b4b51}
.dh-steps [data-phase=accepted]:before{background:#13b66c}
.dh-step-mark{width:24px;height:24px;border-radius:50%;background:#45454d;display:grid;place-items:center}
.dh-step-mark bqt-order-icon{--size:24px;--glyph-size:14px;color:#fff}
.dh-steps [data-phase=accepted] bqt-order-icon{background:#13b66c}
.dh-steps [data-phase=rejected] bqt-order-icon{background:#ba3549}
.dh-steps [data-phase=future]{color:#9999a3}
.dh-duration{margin-top:11px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px;font-size:11px}
.dh-duration b{color:#f4f4f5}.dh-duration svg{width:12px;height:12px}
.dh-receipt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.dh-receipt-actions:has(#printDeposit[hidden]),.dh-receipt-grid:not(:has(.dh-proof)){grid-template-columns:1fr}
#depositDownloadRow{border-block:1px solid #ffffff11;margin-top:16px;padding:14px 0 0;border-bottom:0}
#downloadDeposit{font:inherit;font-weight:650;padding:9px 12px;border:1px solid #4a414b;border-radius:14px;color:#f7f3f6;background:#28242b}
#downloadDeposit:is(:hover,:focus-visible){background:#383139}#downloadDeposit:disabled{opacity:.65}
#depositDownloadNotice{font-size:13px;color:var(--dh-muted);margin-inline-start:8px}
.dh-receipt-actions :is(a,button){display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;border-radius:14px;font:inherit;font-weight:800;font-size:14px;color:white}
.dh-receipt-actions button{background:#18181c;border:1px solid #29292e}.dh-receipt-actions a{background:#ed2939}
.dh-receipt-tools{display:flex;align-items:start;gap:12px;margin-top:16px}
.dh-support-soon:disabled{cursor:default;color:#c7c4cb}.dh-support-soon small{color:#aca9b3;font-size:11px}
.dh-receipt-tools details{flex:1;font-size:13px}.dh-receipt-tools summary{padding:8px 0;color:var(--dh-muted);cursor:pointer}
@media(max-width:420px){.dh-receipt-top{gap:7px;flex-wrap:wrap}.dh-receipt-ref{font-size:9px}.dh-receipt-top h2{font-size:15px}}
@media print{
  @page{margin:12mm}
  body:has(#historyReceipt:not([hidden])){background:white;color:black}
  body:has(#historyReceipt:not([hidden]))>:not(main),main:has(#historyReceipt:not([hidden]))>:not(#historyReceipt),
  #historyReceipt :is(.dh-receipt-actions,.dh-receipt-tools,.dh-dialog,#depositDownloadRow){display:none!important}
  .dh-receipt-card,.dh-progress{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  #historyReceipt .dh-receipt-ref button::after{display:none}
}
@media(max-width:520px){.dh-dialog{margin:auto auto 0;width:100%;max-width:100%;border-radius:18px 18px 0 0;padding-bottom:max(20px,env(safe-area-inset-bottom))}.dh-toolbar{margin-top:0}.dh-card{padding-inline:6px}}
