/* Butter Operations 9.1.2 — consistent controls, clear messages, documents */
.bo912-inline-confirm{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:14px;margin-top:12px}.bo912-inline-confirm strong{font-size:.9rem}.bo912-inline-confirm p{font-size:.8rem;line-height:1.5;color:var(--muted);margin:7px 0 13px}.bo912-inline-actions{display:flex;gap:9px;justify-content:flex-end}.bo912-inline-actions .btn{min-height:41px!important;height:auto!important;width:auto!important;flex:0 1 auto!important;padding:9px 13px!important}
.order-card .bo912-ready-action{margin:8px 0 0;max-height:44px!important;min-height:40px!important;height:auto!important;max-width:190px}
.bo912-stock-short{border:1px solid #d9a15d;background:#fff7eb;border-radius:10px;padding:13px;margin-bottom:14px;color:#8c541b}.bo912-stock-short p{margin:6px 0 11px;font-size:.82rem;line-height:1.5}.bo912-form-error{border:1px solid #e19a9a;color:#a42d2d;background:#fff0f0;border-radius:10px;padding:10px 12px;font-size:.82rem;line-height:1.5}
.bo912-document-detail{display:grid;gap:0}.bo912-document-detail h4{margin:16px 0 6px;font-size:.93rem}.bo912-doc-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:.85rem}.bo912-doc-row span{min-width:0;color:var(--muted)}.bo912-doc-row small{display:block;margin-top:3px;font-size:.73rem}.bo912-doc-row strong{text-align:right;overflow-wrap:anywhere}.bo912-doc-total{font-size:1rem}.bo912-document-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:18px}.bo912-document-actions .btn{min-height:44px!important;height:auto!important;max-height:58px!important;padding:9px 8px!important;flex:none!important;width:100%!important}
.bo912-upload-source{display:block}.bo912-file-hidden{position:absolute!important;opacity:0;pointer-events:none;width:1px!important;height:1px!important}.bo912-upload-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.bo912-upload-options .btn{min-height:43px!important;max-height:52px!important;height:auto!important;width:100%!important}.bo912-file-name{display:block;margin-top:7px;font-size:.79rem;color:var(--muted);overflow-wrap:anywhere}
.bo912-other-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 16px}.bo912-other-top h3{margin:0}.bo912-other-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:11px;min-height:70px}.bo912-other-symbol{width:43px;height:43px;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;color:var(--muted);font-weight:800;font-size:.7rem;flex:none}.bo912-other-main{display:grid;gap:5px;min-width:0;flex:1}.bo912-other-main strong{font-size:.86rem;overflow-wrap:anywhere}.bo912-other-main small{font-size:.75rem;color:var(--muted)}.bo912-error{color:var(--danger)}
/* Read messages recede; unread messages stand forward. No colourful full-card backgrounds. */
.bo90-message{transition:background-color .16s ease,box-shadow .16s ease,border-color .16s ease}
.bo90-message.unread{background:var(--surface);border-color:color-mix(in srgb,var(--info) 28%,var(--line));box-shadow:0 2px 12px rgba(16,49,92,.06)}
.bo90-message.unread .bo90-message-content strong{color:var(--text);font-weight:850}
.bo90-message.read{background:var(--surface-2)!important;border-color:var(--line);box-shadow:none;opacity:.70}
.bo90-message.read .bo90-message-marker{background:#a0aab7!important}.bo90-message.read .bo90-message-content strong{font-weight:570;color:var(--muted)}
.bo90-message.read .bo90-message-content small{color:var(--muted)}.bo90-message.selected{opacity:1;border-color:var(--info)}
[data-theme=dark] .bo90-message.read{opacity:.68}
@media(max-width:820px){
 .bo912-other-top{margin:5px 0 12px}.bo912-document-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bo912-doc-row{gap:9px}.bo912-other-row{flex-wrap:wrap}.bo912-other-main{flex:1 1 170px}
 .bo912-inline-actions{display:grid;grid-template-columns:1fr 1fr}.bo912-inline-actions .btn{width:100%!important;max-width:none!important}
}
@media(max-width:360px){.bo912-document-actions{grid-template-columns:1fr 1fr}.bo912-document-actions .btn:last-child{grid-column:1/-1}}

/* Make every Documents tab discoverable without sideways scrolling on a phone. */
@media (max-width:600px){.bo912-document-tabs.tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;flex-wrap:initial!important;gap:5px!important}.bo912-document-tabs.tabs .tab-button{white-space:normal!important;min-width:0!important;line-height:1.25!important;min-height:40px!important;font-size:.75rem;padding:8px 6px!important}}
