.bid-entry-link{display:inline-flex;align-items:center;min-height:42px;padding:5px 0;color:var(--green);background:none;border:0;font-weight:700;text-align:start;text-decoration:underline;text-underline-offset:3px;font-size:.9rem}
.bid-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 22px;margin-top:12px}
.bid-actions .pair-link{color:var(--green);font-size:.9rem;font-weight:650}
.bid-actions .report-enquiry{flex-basis:100%;border-top:1px solid var(--line);margin-top:7px}
.result .report-enquiry .note{margin-top:0}
.bid-dialog{width:min(884px,calc(100% - 36px));max-height:94dvh;margin:auto;padding:0;background:var(--paper);color:var(--ink);border:1px solid #a7bab6;border-radius:12px;box-shadow:0 25px 80px #102d3936;overflow:auto;overscroll-behavior:contain}
.bid-dialog::backdrop{background:#102d3996}.bid-dialog *{box-sizing:border-box}
.bid-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 16px;padding:16px 22px;background:#fff;border-bottom:1px solid var(--line)}
.bid-head h2{margin:0;font-size:clamp(1.3rem,3.3vw,2rem);line-height:1.25;letter-spacing:-.025em}.bid-head h2:focus{outline:0}
.bid-vehicle{margin:0;grid-column:1/-1;color:var(--muted);font-size:.85rem;font-weight:700;overflow-wrap:anywhere}
.bid-close{border:1px solid #afbfbb;border-radius:5px;background:white;font-weight:650;min-height:40px;padding:5px 12px}
.bid-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);align-items:start;gap:22px;padding:18px 22px 5px}
.bid-entry{min-width:0}.bid-currency{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.9rem}
.bid-currency select{width:96px;margin:0;padding:5px 9px;min-height:38px}
.bid-copy,.bid-footer,.bid-status,.bid-shortfall,.bid-equation{margin:.45rem 0;color:var(--muted);font-size:.85rem;line-height:1.45}
.bid-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.bid-field{min-width:0;display:flex;flex-direction:column;justify-content:flex-end;font-size:.86rem;line-height:1.35}
.bid-field input{display:block;min-width:0;width:100%;min-height:38px;padding:6px 9px;margin:3px 0 0;font-weight:550;text-align:start;font-size:1rem}
.bid-field input[aria-invalid=true]{border:2px solid #a23c27}.bid-resale{grid-column:1/-1}
.bid-paperwork{grid-column:1/-1}
.bid-paperwork-hint{margin-block-start:4px;color:var(--muted);font-size:.8rem}
.bid-paperwork input[aria-invalid=true]+small{color:#8d3628}
.bid-result{border-radius:8px;background:var(--ink);color:#fff;padding:17px}
.bid-metric{display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere;font-size:.87rem}
.bid-metric bdi{font-weight:720;font-size:1.12rem;font-variant-numeric:tabular-nums}
.metric-limit bdi{font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.2;color:#fff}
.bid-equation{margin:5px 0 12px;color:#c4d6d3;font-size:.78rem}
.metric-costs,.metric-margin,.metric-remaining{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:8px;border-top:1px solid #526970;padding:8px 0;line-height:1.3}
.metric-margin[hidden]{display:none}
.metric-costs bdi,.metric-margin bdi,.metric-remaining bdi{text-align:end;flex-shrink:0;font-size:.95rem}
.bid-result .negative bdi,.bid-shortfall{color:#ffd09e}.bid-status{color:#d5e6e3}
.bid-footer{padding:2px 22px 12px}.bid-dialog[lang=ar] .bid-head h2{line-height:1.55;letter-spacing:0}
@media(max-width:670px){
 .bid-dialog{width:min(490px,100% - 12px);max-height:97dvh;border-radius:8px}
 .bid-head{padding:8px 12px}.bid-body{display:flex;flex-direction:column;gap:9px;padding:8px 12px 3px}
 .bid-entry,.bid-result{width:100%}.bid-result{padding:10px 12px}.bid-grid{gap:6px 9px}
 .bid-copy,.bid-status,.bid-shortfall,.bid-footer{font-size:.76rem;line-height:1.4}
 .bid-field{font-size:.79rem}.bid-field input{min-height:37px}
 .bid-currency select{min-height:34px}.bid-footer{padding:3px 12px 8px}
 .metric-costs,.metric-margin,.metric-remaining{padding:5px 0}.bid-equation{margin-bottom:6px}
}
.bid-field input:focus-visible{outline:3px solid #387cd2;outline-offset:-2px}
.bid-dialog[lang=ar] .bid-field>span{line-height:1.75}
.bid-dialog[lang=ar] .bid-field input{margin-top:5px}
@media(max-width:670px){.bid-dialog{max-width:calc(100% - 12px)}}

.hold-worksheet{border-top:1px solid var(--line);margin:0 22px;padding:12px 0}
.hold-worksheet summary{cursor:pointer;color:var(--green);font-weight:700}
.hold-worksheet .bid-grid{margin-block:.7rem}.hold-worksheet h3{font-size:1rem;margin-block:1rem .25rem}
.hold-outcome{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:.3rem 0}
.hold-outcome bdi{font-weight:700;white-space:nowrap}.hold-worksheet section a{color:var(--green)}
@media(max-width:670px){.hold-worksheet{margin:0 12px}.hold-outcome{flex-wrap:wrap;column-gap:.4rem;row-gap:0}}
.bid-prep{border-block-start:1px solid var(--line);margin-block-start:10px}
.bid-prep summary{min-height:44px;align-content:center;color:#00665e;font-weight:700}
.bid-prep select{min-height:44px}
.bid-prep [hidden]{display:none!important}
.bid-prep-estimates{margin-block:10px}
.bid-prep-estimates .hold-outcome{flex-wrap:wrap;gap:3px 12px}
.bid-prep-estimates bdi{white-space:normal}
.bid-prep-apply{min-height:44px;padding:8px 12px;border:1px solid var(--line);background:white;border-radius:5px;font-weight:650;text-align:start}
.bid-prep-apply:disabled{cursor:default}
.bid-prep-sources a{color:#00665e}
.bid-import-choice{display:flex;align-items:center;gap:.55rem;min-height:44px;font-size:.86rem;color:var(--ink)}
.bid-import-choice input{inline-size:1.1rem;block-size:1.1rem;min-height:0;margin:0;padding:0;flex:none;accent-color:var(--green)}
#dubai-import-reference .bid-field{justify-content:flex-start}
#dubai-import-reference .bid-field input[aria-invalid=true]+small,#uae-margin-reference .bid-field input[aria-invalid=true]+small{color:#8d3628}
@media(max-width:480px){#dubai-import-reference .bid-grid{grid-template-columns:minmax(0,1fr)}}
