/* Notices share the existing header alerts and retain an independent dialog. */
.ops-header-alerts [data-cm-header] { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #e3edf3; }
.ops-header-alerts [data-cm-header]:empty { display: none; }
.ops-header-alerts .cm-header-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ops-header-alerts .cm-header-head strong { font-size: 13px; }
.ops-header-alerts .cm-header-head small { color: #64788e; font-size: 12px; font-weight: 400; white-space: nowrap; }
.ops-header-alerts .cm-header-head small b { color: #087fa4; }
.ops-header-alerts .cm-header-tabs { display: flex; gap: 3px; width: fit-content; padding: 3px; margin-bottom: 8px; border-radius: 7px; background: #edf4f8; }
.ops-header-alerts .cm-header-tab { min-height: 28px; padding: 4px 10px; border: 0; border-radius: 5px; background: transparent; color: #64788e; font-size: 12px; font-weight: 600; cursor: pointer; }
.ops-header-alerts .cm-header-tab.is-active { background: #fff; color: #087fa4; box-shadow: 0 1px 3px #12375316; }
.ops-header-alerts .cm-header-message-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.ops-header-alerts .cm-message-entry { display: grid; gap: 6px; width: 100%; padding: 10px; min-height: 52px; border: 1px solid #d3e3ee; border-radius: 7px; background: #f8fbfd; color: #152438; text-align: left; cursor: pointer; }
.ops-header-alerts .cm-message-entry.is-read { background: #fff; color: #64788e; }
.ops-header-alerts .cm-header-message-title { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.ops-header-alerts .cm-header-message-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #64788e; font-size: 11px; }
.ops-header-alerts .cm-header-message-meta > span { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.ops-header-alerts .cm-header-message-meta b { padding: 2px 5px; border-radius: 4px; background: #e6f3fa; color: #087fa4; font-size: 10px; }
.ops-header-alerts .cm-header-message-meta .is-read { background: #eef2f5; color: #64788e; }
.ops-header-alerts .cm-header-message-meta .cm-quote-label { white-space: nowrap; }
.ops-header-alerts .cm-header-message-meta .cm-quote-label.is-confirmed { background: #e5f7ef; color: #087457; }
.ops-header-alerts .cm-header-message-meta .cm-quote-label.is-unconfirmed { background: #fff3dc; color: #906014; }
.ops-header-alerts .cm-header-message-meta .cm-required-label { background: #fff1ef; color: #a12c25; }
.ops-header-alerts .cm-header-empty { margin: 8px 0; color: #64788e; font-size: 12px; }
.ops-header-alerts .cm-header-error { margin: 8px 0; color: #a12c25; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.ops-header-alerts .cm-message-entry:disabled, .ops-header-alerts .cm-header-tab:disabled { opacity: .65; cursor: default; }
.ops-header-alerts .cm-message-entry:focus-visible, .ops-header-alerts .cm-header-tab:focus-visible { outline: 3px solid #6cc7e7; outline-offset: 2px; }
.ops-header-alerts .ops-alert-badge.has-required-messages { background: #c44630; }
#customer-messages-root { color: #152438; font-family: inherit; }
#customer-messages-root button { font: inherit; cursor: pointer; border: 1px solid #d3e3ee; border-radius: 7px; background: #f0f7fb; color: #067ca4; padding: 8px 12px; min-height: 34px; font-size: 13px; font-weight: 700; }
#customer-messages-root button:disabled { cursor: default; opacity: .65; }
#customer-messages-root button:focus-visible { outline: 3px solid #6cc7e7; outline-offset: 3px; }
#customer-messages-root .cm-overlay { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 24px; background: #101f35a6; }
#customer-messages-root .cm-dialog { display: flex; flex-direction: column; width: min(880px,100%); max-height: min(86vh,900px); min-height: 0; border: 1px solid #d9e7ef; border-radius: 13px; background: #fff; box-shadow: 0 20px 70px #07172859; }
#customer-messages-root .cm-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 15px; border-bottom: 1px solid #e3edf3; }
#customer-messages-root .cm-dialog-head > div { min-width: 0; }
#customer-messages-root .cm-kind { color: #078575; font-size: 12px; font-weight: 700; }
#customer-messages-root h2 { margin: 5px 0 8px; font-size: 22px; line-height: 1.45; overflow-wrap: anywhere; }
#customer-messages-root .cm-dialog-head p { margin: 0; color: #64788e; font-size: 12px; }
#customer-messages-root .cm-close { padding: 0; min-width: 32px; flex-shrink: 0; font-size: 22px; }
#customer-messages-root .cm-dialog-body { overflow-y: auto; min-height: 0; padding: 20px 24px; overscroll-behavior: contain; }
#customer-messages-root .cm-message-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 14px; }
#customer-messages-root .cm-dialog-footer { padding: 14px 24px 18px; border-top: 1px solid #e3edf3; background: #f8fbfd; border-radius: 0 0 13px 13px; }
#customer-messages-root .cm-dialog-footer p { margin: 0 0 10px; color: #64788e; font-size: 12px; line-height: 1.6; }
#customer-messages-root .cm-dialog-footer > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#customer-messages-root .cm-confirm-review { width: 100%; padding: 12px; border: 1px solid #b9dbe8; border-radius: 7px; background: #eef8fc; }
#customer-messages-root .cm-confirm-review > strong { display: block; margin-bottom: 12px; font-size: 14px; color: #152438; overflow-wrap: anywhere; }
#customer-messages-root .cm-confirm-review > div { display: flex; gap: 8px; }
#customer-messages-root .cm-dialog-footer .cm-confirm-status { color: #087366; font-weight: 700; margin: 0; }
#customer-messages-root .cm-dialog-footer small { color: #64788e; font-size: 12px; }
#customer-messages-root .cm-primary { background: #087fa4; border-color: #087fa4; color: #fff; min-width: 108px; }
#customer-messages-root .cm-quote { margin-top: 20px; padding: 14px; border: 1px solid #dce8ee; border-radius: 8px; background: #f8fbfd; }
#customer-messages-root .cm-quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
#customer-messages-root .cm-quote-head > div { min-width: 0; }
#customer-messages-root .cm-quote-head h3 { margin-bottom: 5px; color: #087fa4; }
#customer-messages-root .cm-quote-head strong { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
#customer-messages-root .cm-quote-total { display: grid; gap: 5px; text-align: right; flex-shrink: 0; }
#customer-messages-root .cm-quote-total small { color: #64788e; font-size: 12px; }
#customer-messages-root .cm-quote-total b { color: #087fa4; font-size: 19px; }
#customer-messages-root h3, #customer-messages-root h4 { margin: 0 0 10px; font-size: 14px; }
#customer-messages-root .cm-quote-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 14px; }
#customer-messages-root .cm-quote-context { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 0 0 14px; color: #64788e; font-size: 12px; overflow-wrap: anywhere; }
#customer-messages-root dt { margin-bottom: 4px; color: #64788e; font-size: 12px; }
#customer-messages-root dd { margin: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
#customer-messages-root .cm-table-wrap { overflow-x: auto; }
#customer-messages-root table { width: 100%; border-collapse: collapse; font-size: 12px; }
#customer-messages-root th, #customer-messages-root td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #dce8ee; overflow-wrap: anywhere; }
#customer-messages-root th { background: #eaf3f8; color: #425e77; }
#customer-messages-root td small { display: block; margin-top: 5px; color: #64788e; line-height: 1.6; }
#customer-messages-root .cm-quote-charges { margin-top: 18px; }
#customer-messages-root .cm-quote-scope { display: grid; gap: 12px; margin: 18px 0 0; }
#customer-messages-root .cm-quote-scope dt { font-weight: 700; color: #425e77; }
#customer-messages-root .cm-quote-scope dd { white-space: pre-wrap; line-height: 1.65; font-size: 12px; font-weight: 400; }
#customer-messages-root .cm-quote-composition { margin-top: 18px; font-size: 13px; }
#customer-messages-root .cm-quote-composition summary { padding: 8px 0; color: #087fa4; font-weight: 700; cursor: pointer; }
#customer-messages-root .cm-quote-composition h4 { margin: 12px 0 6px; }
#customer-messages-root .cm-quote-composition summary:focus-visible { outline: 3px solid #6cc7e7; outline-offset: 2px; }
#customer-messages-root .cm-files { margin-top: 14px; padding: 12px; border: 1px solid #cce2ed; border-radius: 7px; background: #fff; }
#customer-messages-root .cm-file { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 12px; padding: 8px 0; border-top: 1px solid #dce8ee; }
#customer-messages-root .cm-file strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
#customer-messages-root .cm-file small { display: block; margin-top: 4px; color: #64788e; font-size: 11px; }
#customer-messages-root .cm-file-actions { display: flex; gap: 6px; }
#customer-messages-root .cm-file-actions button { min-height: 30px; padding: 5px 10px; font-size: 12px; }
#customer-messages-root .cm-file-feedback { grid-column: 1 / -1; margin: 0; color: #087366; font-size: 12px; }
#customer-messages-root .cm-error, #customer-messages-root .cm-error p, #customer-messages-root .is-error { color: #a12c25; }
#customer-messages-root .cm-muted { color: #64788e; font-size: 13px; }
#customer-messages-root .cm-inbox-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; margin-bottom: 8px; padding: 12px; text-align: left; background: #fff; color: #152438; }
#customer-messages-root .cm-inbox-item > span:first-child { min-width: 0; display: grid; gap: 6px; }
#customer-messages-root .cm-inbox-item strong { overflow-wrap: anywhere; }
#customer-messages-root .cm-inbox-item small, #customer-messages-root .cm-read-state { color: #64788e; font-size: 12px; }
@media (max-width: 760px) {
  #customer-messages-root .cm-overlay { padding: 12px; }
  #customer-messages-root .cm-dialog { max-height: 92vh; }
  #customer-messages-root .cm-dialog-head, #customer-messages-root .cm-dialog-body, #customer-messages-root .cm-dialog-footer { padding-left: 16px; padding-right: 16px; }
  #customer-messages-root .cm-file { grid-template-columns: minmax(0,1fr); }
  #customer-messages-root .cm-quote-meta { grid-template-columns: minmax(0,1fr); }
  #customer-messages-root .cm-quote-head { flex-wrap: wrap; gap: 12px; }
}
