/* AMT type, palette and shared dropdown controls, scoped to Bid Options. */
.bo-root{--bo-bg:#fff;--bo-soft:#f5f7fb;--bo-ink:#172b50;--bo-muted:#65758d;--bo-border:#dbe2ec;color:var(--bo-ink);font-family:'DM Sans',sans-serif;font-size:14px;padding:4px 0 20px}.bo-root *{box-sizing:border-box}.bo-toolbar,.bo-actions,.bo-card header,.bo-card footer,.bo-dialog header,.bo-dialog footer,.bo-evidence-head,.bo-restore{display:flex;align-items:center;justify-content:space-between;gap:10px}.bo-toolbar{flex-wrap:wrap;margin:0 0 14px}.bo-toolbar h2{font-size:19px;font-weight:600;margin:0 0 5px}.bo-toolbar p,.bo-foot,.bo-muted{color:var(--bo-muted);margin:0;font-size:13px;line-height:1.5}.bo-actions{flex-wrap:wrap;justify-content:flex-end}.bo-status{min-height:30px;font-size:13px;color:var(--bo-muted);display:flex;align-items:center;gap:12px;margin-bottom:8px}.bo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.bo-card{background:var(--bo-bg);border:1px solid var(--bo-border);border-radius:14px;overflow:hidden;box-shadow:0 3px 12px #172b5005}.bo-card header{align-items:flex-start;padding:20px 18px 14px}.bo-kicker{font-size:14px;font-weight:500}.bo-card h2{font-size:clamp(24px,2.4vw,34px);font-weight:600;letter-spacing:-1px;margin:6px 0 3px;font-variant-numeric:tabular-nums}.bo-card header small{font-size:11px;color:var(--bo-muted)}.bo-badge{font-size:11px;background:#fff6e9;color:#8c5d18;padding:5px 7px;border-radius:6px;white-space:nowrap}.bo-badge.ready{color:#256653;background:#edf6f2}.bo-totals{display:grid;gap:6px;padding:12px 18px;background:var(--bo-soft);margin:0;font-size:12px}.bo-totals div{display:flex;justify-content:space-between;gap:8px}.bo-totals dt{color:var(--bo-muted)}.bo-totals dd{margin:0;font-weight:500;font-variant-numeric:tabular-nums}.bo-list{max-height:340px;min-height:170px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.bo-list-heading{position:sticky;top:0;display:flex;justify-content:space-between;background:var(--bo-bg);padding:10px 18px;font-size:11px;color:var(--bo-muted);border-bottom:1px solid var(--bo-border);z-index:1}.bo-line{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;border-bottom:1px solid var(--bo-border);border-radius:0;text-align:left;background:var(--bo-bg);color:inherit;padding:12px 18px;font:inherit;cursor:pointer}.bo-line:hover{background:var(--bo-soft)}.bo-line strong{display:block;font-size:12px;font-weight:500;line-height:1.4}.bo-line small{display:block;font-size:11px;line-height:1.4;color:var(--bo-muted);margin-top:3px}.bo-line em{font-style:normal;display:block;font-size:10px;color:#97601c;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.bo-line-price{font-size:13px;font-weight:500;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.bo-card footer{padding:12px;justify-content:flex-start;flex-wrap:wrap}.bo-root .amt195-btn{font-size:12px;font-weight:500;min-height:34px;cursor:pointer}.bo-root button:disabled{opacity:.55;cursor:default}.bo-warning{color:#986022;background:var(--bo-soft);padding:10px;font-size:12px;line-height:1.5}.bo-foot{margin-top:12px}.bo-empty{padding:24px;color:var(--bo-muted)}.bo-overlay{position:fixed;inset:0;z-index:2500;background:#10213e66;display:flex;justify-content:flex-end;padding:18px}.bo-dialog{width:520px;max-width:100%;background:var(--bo-bg);border:1px solid var(--bo-border);border-radius:14px;display:flex;flex-direction:column;box-shadow:0 16px 50px #08112640}.bo-dialog header,.bo-dialog footer{padding:16px 20px;flex-shrink:0;border-bottom:1px solid var(--bo-border)}.bo-dialog h2{font-size:16px;font-weight:600;margin:0}.bo-dialog-body{padding:18px 20px;overflow:auto;min-height:0;flex:1}.bo-dialog footer{border-top:1px solid var(--bo-border);border-bottom:0;font-size:13px}.bo-dialog footer strong{display:block;font-size:21px;margin-top:4px;font-weight:600}.bo-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.bo-form>label:first-child,.bo-form>.bo-choice:nth-child(2){grid-column:1/-1}.bo-root label,.bo-label{display:block;font-size:12px;color:var(--bo-muted);line-height:1.5}.bo-root input:not([type=checkbox]),.bo-root textarea{display:block;width:100%;border:1px solid var(--bo-border);background:var(--bo-bg);color:var(--bo-ink);padding:10px 11px;border-radius:8px;font:400 14px 'DM Sans',sans-serif;margin-top:5px;min-height:40px}.bo-check{display:flex!important;align-items:center;gap:8px;margin:14px 0}.bo-check input{width:16px;height:16px;accent-color:#25477d}.bo-choice{min-width:0;position:relative}.bo-choice .amt280-select-trigger{font-weight:500;margin-top:5px;color:var(--bo-ink);background:var(--bo-bg);border-color:var(--bo-border)}.bo-choice .amt280-select-menu{grid-template-columns:1fr;width:100%;max-height:240px;overflow:auto;background:var(--bo-bg);border-color:var(--bo-border);z-index:2600}.bo-choice .amt280-select-menu[hidden]{display:none}.bo-choice .amt280-select-option{font-weight:400;color:var(--bo-ink)}.bo-choice .amt280-select-option.is-selected{box-shadow:none;background:#edf2fc}.bo-choice .amt280-select-option[hidden]{display:none}.bo-choice .amt280-select-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bo-evidence{margin:18px 0;font-size:13px;line-height:1.5}.bo-evidence-head{margin-bottom:12px}.bo-evidence strong{font-weight:500}.bo-evidence details{border-top:1px solid var(--bo-border);padding:10px 0}.bo-evidence summary{cursor:pointer;font-weight:500}.bo-evidence p{color:var(--bo-muted);white-space:normal}.bo-formula{padding:12px;background:var(--bo-soft);font-size:13px;line-height:1.6;border-radius:8px}.bo-restore{padding:12px 0;border-bottom:1px solid var(--bo-border)}.bo-root :focus-visible{outline:2px solid #8aa2c6;outline-offset:2px}
html[data-theme-resolved=dark] .bo-root,[data-theme=dark] .bo-root,.dark .bo-root,html[data-amt-theme=dark] .bo-root{--bo-bg:#182237;--bo-soft:#1e2b43;--bo-ink:#dce5f4;--bo-muted:#a6b4cb;--bo-border:#33425b}html[data-theme-resolved=dark] .bo-choice .is-selected,.dark .bo-choice .is-selected,[data-theme=dark] .bo-choice .is-selected{background:#2b3c58}html[data-theme-resolved=dark] .bo-badge,.dark .bo-badge,[data-theme=dark] .bo-badge{background:#3a3229;color:#dfc193}
@media(max-width:1100px){.bo-grid{gap:10px}.bo-card header{flex-direction:column;padding:14px}.bo-card h2{font-size:27px}.bo-line{padding:11px 12px}.bo-line-price{font-size:12px}.bo-card footer .amt195-btn{padding:6px 8px}}
@media(max-width:720px){.bo-grid{grid-template-columns:1fr}.bo-card header{flex-direction:row}.bo-list{max-height:240px}.bo-overlay{padding:8px}.bo-form{grid-template-columns:1fr}.bo-form>*{grid-column:1!important}.bo-toolbar .bo-actions{justify-content:flex-start}.bo-dialog header,.bo-dialog footer,.bo-dialog-body{padding:14px}}

.bo-root .amt195-btn{background:var(--bo-bg);border-color:var(--bo-border);color:var(--bo-ink)}.bo-root .amt195-btn:hover{background:var(--bo-soft)}

.bo-form>.bo-choice{display:block;width:100%}.bo-choice .amt280-select-trigger{width:100%;min-height:40px}.bo-root .bo-line em{color:#986022}html[data-theme-resolved=dark] .bo-root .bo-line em{color:#dfbd88}

/* Compact comparison; detail stays in the editor. */
.bo-toolbar{margin-bottom:14px;gap:10px;align-items:center}
.bo-status{min-height:34px;margin:0;flex:1 1 140px}
.bo-actions{gap:7px;flex:0 1 auto}
.bo-root [data-bo-action=save]{background:#244778;color:#fff;border-color:#244778}
.bo-root [data-bo-action=reload]{font-size:20px;width:36px;padding:0}
.bo-card header{padding:17px 16px 12px;gap:8px}
.bo-card h2{margin-top:5px;letter-spacing:-.7px}
.bo-card header small{font-size:12px}
.bo-totals{padding:12px 16px}
.bo-list{max-height:300px}
.bo-list-heading{padding:9px 16px}
.bo-line{padding:12px 16px;gap:12px;min-height:65px}
.bo-line-label{min-width:0;flex:1}
.bo-scope-name{display:flex;gap:7px;align-items:center;min-width:0}
.bo-line strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.bo-line-label>small{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bo-line-price{flex-shrink:0;font-size:14px}
.bo-flag{display:inline-grid;place-items:center;flex:0 0 16px;width:16px;height:16px;border-radius:50%;background:#fff3df;color:#86571a;font-size:11px}
.bo-card footer{padding:10px 12px}
.bo-foot{font-size:12px;margin-top:9px}
.bo-help{border-top:1px solid var(--bo-border);padding:12px 0 0;color:var(--bo-muted);font-size:13px;line-height:1.5}
.bo-help summary{color:var(--bo-ink);cursor:pointer;font-weight:500}
.bo-help p{margin:10px 0 0}
.bo-help ul{padding-left:18px;margin:10px 0 0}
.bo-fee-form{grid-template-columns:1fr;gap:16px;margin:0 0 18px}
.bo-fee-form>*{grid-column:1/-1}
.bo-dialog header h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bo-dialog [aria-label="Close editor"]{font-size:22px;padding:0;width:34px;flex-shrink:0}
.bo-dialog footer strong{font-size:24px}

/* A native modal uses the browser's top layer, above the fixed AMT header. */
dialog.bo-overlay{display:none;position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:24px;border:0;background:transparent;color:var(--bo-ink);font:inherit;overflow:hidden;overscroll-behavior:contain}
dialog.bo-overlay[open]{display:flex;align-items:center;justify-content:center}
dialog.bo-overlay::backdrop{background:#10213e66}
.bo-overlay .bo-dialog{width:520px;max-width:100%;height:auto;max-height:calc(100dvh - 48px);overflow:hidden;flex:0 1 520px}
.bo-dialog-body{overscroll-behavior:contain}
html[data-theme-resolved=dark] .bo-flag{background:#3b3327;color:#eac791}
html[data-theme-resolved=dark] .bo-root [data-bo-action=save]{background:#a9c2e6;border-color:#a9c2e6;color:#172b50}

/* Bid Room tabs follow the shared soft-blue navigation state. */
#amt195-bid-room .amt195-tabs .amt195-tab{font-weight:500!important;border-bottom:0!important;box-shadow:none!important}
#amt195-bid-room .amt195-tabs .amt195-tab.active{background:#eaf0fa!important;color:#244778!important;border-color:transparent!important}
html[data-theme-resolved=dark] #amt195-bid-room .amt195-tabs .amt195-tab.active{background:#293b58!important;color:#e0eafb!important}
@media(max-width:720px){
 .bo-status{flex-basis:100%;min-height:20px}
 .bo-actions{justify-content:flex-start}
 .bo-toolbar{gap:6px}
 dialog.bo-overlay{padding:12px}
 .bo-overlay .bo-dialog{max-height:calc(100dvh - 24px)}
 .bo-list{max-height:240px}
 .bo-line{padding:11px 14px}
}

/* Immediate, in-context feedback for quote selection and scope review. */
.bo-root .amt195-btn:has(.bo-spinner){display:inline-flex;align-items:center;gap:7px;opacity:1;background:var(--bo-soft);color:var(--bo-ink)}
.bo-spinner{display:inline-block;width:16px;height:16px;flex:0 0 16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:bo-spin .8s linear infinite}
@keyframes bo-spin{to{transform:rotate(360deg)}}
.bo-progress{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;margin:0 0 14px;border:1px solid #c9d7eb;border-radius:10px;background:#edf3fc;color:#244778}
.bo-progress-copy{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.bo-progress-copy>.bo-spinner{width:22px;height:22px;flex-basis:22px}
.bo-progress-copy strong{display:block;font-size:15px;font-weight:600;line-height:1.4}
.bo-progress-copy span:not(.bo-spinner){display:block;font-size:12px;font-weight:400;line-height:1.5;margin-top:2px}
.bo-progress progress{width:100%;flex:0 0 100%;height:5px;border:0;border-radius:4px;overflow:hidden;background:#d7e2f1;accent-color:#426da8}
.bo-progress progress::-webkit-progress-bar{background:#d7e2f1;border-radius:4px}
.bo-progress progress::-webkit-progress-value{background:#426da8;border-radius:4px;transition:width .2s}
.bo-progress progress::-moz-progress-bar{background:#426da8;border-radius:4px}
html[data-theme-resolved=dark] .bo-progress,[data-theme=dark] .bo-progress,.dark .bo-progress,html[data-amt-theme=dark] .bo-progress{background:#24354f;border-color:#425877;color:#d7e5fa}
@media(prefers-reduced-motion:reduce){.bo-spinner{animation:none}.bo-progress progress::-webkit-progress-value{transition:none}}
