.disputes { --dq-bg:#f8fafc; --dq-surface:#fff; --dq-text:#17243b; --dq-muted:#64748b; --dq-line:#e2e8f0; --dq-blue:#245dc9; --dq-selected:#edf3ff; --dq-amber:#8a5511; --dq-amber-bg:#fff5e4; --dq-red:#b03942; color:var(--dq-text); container-type:inline-size; }
html.dark .disputes { --dq-bg:#111827; --dq-surface:#1e293b; --dq-text:#e8edf6; --dq-muted:#a4b1c6; --dq-line:#475569; --dq-blue:#93b8ff; --dq-selected:#243755; --dq-amber:#edc47d; --dq-amber-bg:#3a3022; --dq-red:#ffadb2; }
.disputes [hidden] { display:none!important; }
.disputes-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:20px; }
.disputes-heading h2 { font-size:24px; font-weight:600; }
.disputes-heading p { color:var(--dq-muted); font-size:13px; margin-top:4px; }
.disputes-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.disputes-filters, .disputes-search { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.disputes-search { flex:1 1 360px; justify-content:flex-end; }
.disputes-search label { min-width:0; flex:1 1 140px; max-width:230px; }
.dispute-filter { display:inline-flex; align-items:center; padding:8px 12px; border:1px solid var(--dq-line); border-radius:7px; background:var(--dq-surface); color:var(--dq-muted); font-size:13px; }
.dispute-filter.is-active { border-color:var(--dq-blue); background:var(--dq-selected); color:var(--dq-blue); }
.dispute-count { min-width:1.5em; margin-inline-start:6px; padding:1px 6px; border-radius:999px; background:var(--dq-selected); color:var(--dq-blue); text-align:center; font-weight:600; font-variant-numeric:tabular-nums; }
.dispute-filter.is-active .dispute-count { background:var(--dq-surface); }
.disputes-workspace { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr); gap:16px; align-items:start; }
.disputes-queue { min-width:0; container-type:inline-size; background:var(--dq-surface); border:1px solid var(--dq-line); border-radius:9px; overflow:hidden; }
.disputes-table { width:100%; table-layout:fixed; border-collapse:collapse; text-align:left; font-size:13px; }
.disputes-table th { padding:12px 10px; background:var(--dq-bg); color:var(--dq-muted); font-size:11px; font-weight:500; }
.disputes-table th:first-child { width:30%; }.disputes-table th:nth-child(2) { width:26%; }.disputes-table th:nth-child(3) { width:27%; }.disputes-table th:nth-child(4) { width:17%; }
.disputes-timed-table th:first-child,.disputes-timed-table th:nth-child(2) { width:25%; }.disputes-timed-table th:nth-child(3) { width:21%; }.disputes-timed-table th:nth-child(4) { width:29%; }
.disputes-table td { padding:16px 10px; border-top:1px solid var(--dq-line); vertical-align:top; overflow-wrap:anywhere; }
.disputes-table tr[data-dispute-row] { cursor:pointer; }
.disputes-table tr[data-dispute-row]:hover td { background:var(--dq-selected); }
.disputes-table tr[data-selected="true"] td { background:var(--dq-selected); }
.disputes-table tr[data-selected="true"] td:first-child { box-shadow:inset 3px 0 0 var(--dq-blue); }
.dispute-order { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; color:var(--dq-blue); font-weight:600; }
.dispute-secondary { display:block; margin-top:5px; }.dispute-secondary:hover { text-decoration:underline; }
.dispute-sub { display:block; margin-top:5px; color:var(--dq-muted); font-size:12px; overflow-wrap:anywhere; }
.dispute-amount { font-variant-numeric:tabular-nums; font-weight:600; }
.dispute-receipt-link { display:inline-flex; padding:5px 8px; border:1px solid var(--dq-blue); border-radius:6px; color:var(--dq-blue); background:var(--dq-surface); white-space:nowrap; }
.dispute-missing { display:inline-flex; border-radius:5px; padding:4px 7px; background:var(--dq-amber-bg); color:var(--dq-amber); font-size:12px; }
.dispute-age { font-size:12px; font-variant-numeric:tabular-nums; }.dispute-stale { color:var(--dq-red); }
.disputes-empty { padding:32px 18px; text-align:center; color:var(--dq-muted); font-size:14px; }.disputes-empty h4 { color:var(--dq-text); margin-bottom:6px; font-weight:600; }
.disputes-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:13px; border-top:1px solid var(--dq-line); color:var(--dq-muted); font-size:12px; }.disputes-pagination>div { display:flex; gap:6px; }
.dispute-panel { position:sticky; top:16px; max-height:calc(100dvh - 32px); overflow-y:auto; overscroll-behavior:contain; min-width:0; background:var(--dq-surface); border:1px solid var(--dq-line); border-radius:9px; scroll-margin-top:85px; }
.dispute-panel-navigation { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 16px 0; color:var(--dq-muted); font-size:12px; }.dispute-panel-navigation>div { display:flex; gap:5px; }
.dispute-load-status { padding:20px 16px; color:var(--dq-muted); font-size:14px; }
.dispute-preview-heading { padding:8px 16px 16px; display:flex; flex-wrap:wrap; gap:6px 10px; align-items:baseline; }.dispute-preview-heading h3 { width:100%; margin-bottom:6px; font:600 14px ui-monospace,SFMono-Regular,Consolas,monospace; }.dispute-preview-heading strong { font-size:23px; font-weight:600; font-variant-numeric:tabular-nums; }.dispute-preview-heading>span { color:var(--dq-muted); font-size:13px; }
.dispute-timing-cell .dispute-sub:first-child { margin-top:0; }.dispute-timing-cell time,.dispute-timing-cell .dispute-date-unknown { display:block; font-size:12px; }.dispute-date-unknown { color:var(--dq-muted); }
.dispute-payment-interval { color:var(--dq-blue); }.dispute-timing-cell time,.dispute-timeline time,.dispute-payment-interval { font-variant-numeric:tabular-nums; }
.dispute-timeline { margin:0 16px 12px; padding:10px 12px; background:var(--dq-bg); border:1px solid var(--dq-line); border-radius:7px; }
.dispute-timeline-heading,.dispute-timeline-interval,.dispute-timeline li { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:3px 8px; font-size:12px; }.dispute-timeline-heading h4 { font-size:13px; font-weight:600; }
.dispute-timeline-heading span,.dispute-timeline time,.dispute-timeline-interval { color:var(--dq-muted); }
.dispute-timeline ol { margin:8px 0; padding:0 0 0 11px; margin-inline-start:4px; border-inline-start:1px solid var(--dq-line); list-style:none; }
.dispute-timeline li { position:relative; }.dispute-timeline li+li { margin-top:6px; }.dispute-timeline li::before { content:""; position:absolute; inset-inline-start:-15px; top:5px; width:7px; height:7px; border-radius:50%; background:var(--dq-muted); box-shadow:0 0 0 2px var(--dq-bg); }.dispute-timeline li.dispute-timeline-opening::before { background:var(--dq-blue); }
.dispute-timeline-interval { padding-top:8px; border-top:1px solid var(--dq-line); }.dispute-timeline-interval strong { font-size:14px; }
.dispute-preview-tabs { display:flex; flex-wrap:wrap; gap:18px; padding:0 16px; border-bottom:1px solid var(--dq-line); }.dispute-preview-tabs button { padding:10px 0; border-bottom:2px solid transparent; color:var(--dq-muted); font-size:13px; }.dispute-preview-tabs button[aria-pressed="true"] { color:var(--dq-blue); border-bottom-color:var(--dq-blue); }
.dispute-pane { padding:16px; }.dispute-files { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }.dispute-file { border:1px solid var(--dq-line); border-radius:6px; padding:6px 8px; color:var(--dq-muted); font-size:12px; }.dispute-file[aria-pressed="true"] { color:var(--dq-blue); background:var(--dq-selected); border-color:var(--dq-blue); }
.dispute-document { background:var(--dq-bg); border:1px solid var(--dq-line); border-radius:6px; padding:8px; min-height:180px; }.dispute-document img { width:100%; height:auto; max-height:480px; object-fit:contain; }.dispute-document iframe { width:100%; height:440px; border:0; background:var(--dq-surface); }
.dispute-document-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:10px; font-size:12px; }.dispute-document-actions>span { margin-right:auto; color:var(--dq-muted); }.dispute-document-actions a,.dispute-text-button,.dispute-facts a { color:var(--dq-blue); }.dispute-document-actions a:hover,.dispute-text-button:hover,.dispute-facts a:hover { text-decoration:underline; }
.dispute-context { margin-top:16px; padding-top:14px; border-top:1px solid var(--dq-line); font-size:13px; }.dispute-context h4 { color:var(--dq-muted); font-size:12px; margin-bottom:6px; }.dispute-context p+p { margin-top:8px; }
.dispute-merchant-request { margin:12px 16px; padding:12px; border:1px solid var(--dq-amber); border-radius:6px; background:var(--dq-amber-bg); overflow-wrap:anywhere; }.dispute-merchant-request h4 { color:var(--dq-amber); font-size:13px; font-weight:600; }
.dispute-facts { display:grid; grid-template-columns:100px minmax(0,1fr); gap:13px 10px; font-size:13px; }.dispute-facts dt { color:var(--dq-muted); }.dispute-facts dd { overflow-wrap:anywhere; }
.dispute-history { list-style:none; padding:0; }.dispute-history li { position:relative; padding:0 0 20px 16px; margin-left:4px; border-left:1px solid var(--dq-line); font-size:13px; }.dispute-history li:before { content:""; position:absolute; left:-4px; top:6px; width:7px; height:7px; border-radius:50%; background:var(--dq-blue); }.dispute-history strong { font-weight:500; }.dispute-history span { display:block; margin-top:4px; color:var(--dq-muted); font-size:12px; }.dispute-history p { margin-top:4px; overflow-wrap:anywhere; }
.dispute-preview-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:12px 16px; border-top:1px solid var(--dq-line); background:var(--dq-bg); border-radius:0 0 9px 9px; font-size:12px; }.dispute-preview-footer>span:first-child { color:var(--dq-amber); }
.disputes-note { margin-top:14px; color:var(--dq-muted); font-size:12px; }
.dispute-document-dialog { margin:auto; width:min(960px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); padding:16px; border:1px solid var(--dq-line); border-radius:10px; background:var(--dq-surface); color:var(--dq-text); }.dispute-document-dialog:modal { overscroll-behavior:contain; }.dispute-document-dialog::backdrop { background:rgb(15 23 42 / 60%); overflow:hidden; overscroll-behavior:contain; }.dispute-document-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; }.dispute-document-heading h3 { font-weight:600; }.dispute-document-dialog .dispute-document img { max-height:calc(100dvh - 150px); }.dispute-document-dialog .dispute-document iframe { height:calc(100dvh - 150px); }
.dispute-review-dialog { width:min(520px,calc(100vw - 32px)); }
.dispute-review-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.disputes button:focus-visible,.disputes a:focus-visible { outline:2px solid var(--dq-blue); outline-offset:3px; }
.disputes button:disabled { opacity:.4; cursor:default; }
@container (max-width:850px) { .dispute-panel { position:static; max-height:none; overflow:visible; } .disputes-workspace { grid-template-columns:minmax(0,1fr); }.dispute-document img { max-height:540px; }.disputes-search { justify-content:flex-start; } }
@container (max-width:480px) {
 .disputes-table,.disputes-table tbody { display:block; }.disputes-table thead { display:none; }.disputes-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border-top:1px solid var(--dq-line); }.disputes-table td { display:block; border:0; padding:12px; }.disputes-table td:before { content:attr(data-label); display:block; color:var(--dq-muted); font-size:11px; margin-bottom:6px; }.disputes-search label { max-width:none; }.disputes-heading { flex-wrap:wrap; }.dispute-facts { grid-template-columns:85px minmax(0,1fr); }
}
@media (pointer:coarse) { .disputes button,.disputes a { min-height:44px; }.disputes a { align-content:center; }.dispute-file { padding:10px; } }
