/* T2782 UX batch B: editors, workspaces, unsaved-changes prompt. */

/* Cancel is a neutral action in every workspace (was red). */
.qw-footer .qw-cancel,.qw-actionbar .qw-cancel{color:var(--text);border-color:var(--line);background:var(--panel)}

/* Unsaved-changes / save-review prompt: the safe choice is primary, the destructive one is secondary red. */
dialog.modal-unsaved .dialogfoot button{min-width:112px}
dialog.modal-unsaved .modal-danger{color:light-dark(#b42318,#ffb4b4);border-color:light-dark(#e5a9a5,#875252);background:var(--panel,#fff)}
dialog.modal-unsaved .modal-danger:hover{background:light-dark(#fdf1f0,#3a2526)}
dialog.modal-unsaved .qw-save-issues{margin:8px 0 0;padding-left:20px}
dialog.modal-unsaved .qw-save-issues li{margin:3px 0}

/* One sticky action bar per quote / SO / PO workspace, with live totals. */
.qw-actionbar{position:sticky;bottom:0;z-index:6;display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-top:16px;padding:10px 14px;background:var(--panel);border:1px solid var(--line);border-radius:7px;box-shadow:0 -6px 18px light-dark(#13243a1f,#0007)}
.qw-actionbar-totals{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;font-size:12px;color:var(--muted)}
.qw-actionbar-totals strong{margin-left:4px;color:var(--text);font-size:15px;font-variant-numeric:tabular-nums}
.qw-actionbar .qw-error{flex:1 1 220px;font-size:12px;font-weight:600}
.qw-actionbar-buttons{display:flex;gap:8px;margin-left:auto}
.qw-actionbar-buttons button{min-height:34px;font-size:12px;white-space:nowrap}
.qw-line-done{min-width:96px}
/* T2827: page content follows the width #content has (container "main", base.css), not the viewport; the @media copy keeps dialogs/menus outside #content on the viewport */
@container main (max-width:616px){
 .qw-actionbar{padding:10px}
 .qw-actionbar-buttons{width:100%;flex-wrap:wrap}
 .qw-actionbar-buttons button{flex:1 1 auto;min-height:44px}
}
@media (max-width:640px){.qw-actionbar:where(:not(#content *)){padding:10px}.qw-actionbar-buttons:where(:not(#content *)){width:100%;flex-wrap:wrap}.qw-actionbar-buttons button:where(:not(#content *)){flex:1 1 auto;min-height:44px}}

/* Allocation status reads as text, not a red cross. */
.allocation-status.allocation-empty{font-size:12px;line-height:1.3;color:var(--muted)}
/* In the document modal the scroll box has 16px (12px on phones) padding; sit flush with its bottom edge. */
#modal .qw-actionbar{bottom:-16px;border-radius:7px 7px 0 0}
@media(max-width:760px){#modal .qw-actionbar{bottom:-12px}}

/* RFQ → Quote → SO → PO strip on document record pages (records.js recordChain). */
.record-chain{display:flex;align-items:stretch;flex-wrap:wrap;gap:6px;margin:0 0 15px;font-size:12px}
.record-chain-step{display:flex;flex-direction:column;gap:3px;min-width:120px;padding:8px 12px;background:var(--panel);border:1px solid var(--line);border-radius:6px}
.record-chain-step>span{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.record-chain-step a,.record-chain-step strong{font-weight:600;margin-right:6px}
.record-chain-step.is-current{border-color:light-dark(#2184cf,#5aa9e6);box-shadow:inset 3px 0 0 light-dark(#2184cf,#5aa9e6)}
.record-chain-step.is-empty small{color:var(--muted)}
.record-chain-arrow{align-self:center;color:var(--muted)}
a.record-chain-so{display:inline-flex;align-items:center;padding:8px 14px;border:1px solid var(--line);border-radius:6px;font-weight:600;text-decoration:none;background:var(--panel)}
@container main (max-width:616px){.record-chain-arrow{display:none}.record-chain-step{flex:1 1 40%;min-width:0}}
@media (max-width:640px){.record-chain-arrow:where(:not(#content *)){display:none}.record-chain-step:where(:not(#content *)){flex:1 1 40%;min-width:0}}

/* T2789: Downloads page */
.dl-card h2{margin-bottom:4px}.dl-card>p.muted{margin:0 0 12px}
.dl-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dl-btn{display:inline-block;background:#0968bd;color:#fff;font-weight:600;padding:8px 14px;border-radius:6px}
.dl-btn:hover{text-decoration:none;background:#0b5aa3}
.dl-note{font-size:12px}
.dl-steps{margin:12px 0 6px;padding-left:20px;line-height:1.7}
.dl-table{width:auto;min-width:0;border-collapse:collapse}.dl-table td{border:0;padding:6px 14px 6px 0;vertical-align:middle}
/* T2792: recommended (new Outlook) card stands out; classic is a collapsed, quiet section */
.dl-recommended{border:2px solid #0968bd;box-shadow:0 2px 10px #0968bd22;position:relative}
.dl-badge{display:inline-block;background:#e3f6ea;color:#186743;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;padding:3px 8px;border-radius:10px;margin-bottom:8px}
.dl-classic{background:var(--stripe)}
.dl-classic summary{cursor:pointer;font-size:13px}
.dl-classic summary .muted{font-size:12px;margin-left:6px}
.dl-classic .dl-btn{background:transparent;color:var(--blue);border:1px solid var(--line)}
.dl-classic .dl-btn:hover{background:var(--group)}
