/* Shared modal controls stay at the edge even when headings wrap. */
.modal-shell .modal-head{min-width:0;align-items:flex-start}
.modal-shell .modal-head>div{min-width:0}
.modal-shell .modal-head>button[data-modal-close],
.modal-shell .modal-head>button[data-route-modal-close],
.modal-shell .modal-head>button[data-global-customer-close]{margin-inline-start:auto;flex:0 0 38px;align-self:flex-start;display:grid;place-items:center}
.notify-item-icon .notification-bell{display:block;flex:none}
.notify-item.unread .notification-bell{animation:opal-bell-ring 2.4s ease-in-out infinite;transform-origin:50% 15%}
@keyframes opal-bell-ring{0%,35%,100%{transform:rotate(0)}5%,15%{transform:rotate(14deg)}10%,20%{transform:rotate(-14deg)}}
@media(prefers-reduced-motion:reduce){.notify-item.unread .notification-bell{animation:none}}
.sales-head-actions{flex-wrap:wrap;max-width:100%}
.sales-head-metrics{flex-wrap:wrap;max-width:100%}
.sales-head-metrics .enterprise-metric{flex:1 1 130px;min-width:0}
.sales-cart-table{max-width:100%}
@media(max-width:1200px){
 .sales-module .enterprise-page-head{flex-wrap:wrap}
 .sales-head-actions{width:100%}
 .sales-head-metrics{flex:1 1 100%}
 .sales-workspace{grid-template-columns:minmax(0,1fr)}
 .sales-summary{border-inline-start:0;border-top:1px solid var(--line)}
}
/* A short laptop viewport must scroll rather than collapse the jobs table. */
@media(max-height:850px) and (min-width:901px){
 body:has([data-route-admin]) .opal-content{overflow:auto}
 .route-module[data-route-admin]{height:auto;min-height:100%;overflow:visible}
 .route-module[data-route-admin] .route-workspace{height:auto;min-height:560px}
 .route-module[data-route-admin] .route-jobs-card{min-height:560px}
 .route-module[data-route-admin] .route-table-shell{min-height:260px;overflow:auto}
}

/* Modal help and close controls stay together at the right edge. */
.modal-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex:0 0 auto}
.modal-head-actions>button{margin:0;flex:0 0 auto}
@media(max-width:520px){.modal-head-actions{gap:6px}.modal-head-actions>button{width:36px;height:36px}}

.opal-license-banner{display:flex;align-items:center;gap:10px;margin:10px 18px 0;padding:10px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-size:13px;font-weight:600}.opal-license-banner svg{width:17px;height:17px;flex:0 0 auto}.opal-license-banner.is-expired{border-color:#fecaca;background:#fef2f2;color:#991b1b}.opal-license-banner.is-trial{border-color:#fde68a;background:#fffbeb;color:#92400e}@media(max-width:720px){.opal-license-banner{margin:8px 10px 0;font-size:12px}}
