/* Shared tooltip surface and pointer, matching the profile menu. */
.sc-context-tooltip{width:max-content;white-space:pre-line;overflow-wrap:anywhere}
.sc-context-tooltip{position:fixed;z-index:1080;max-width:min(280px,calc(100vw - 16px));padding:8px 11px;border:1px solid var(--sc-border,#ded9e8);border-radius:9px;background:var(--sc-surface,#fff);color:var(--sc-text,#211b31);font-size:12px;line-height:1.4;box-shadow:0 5px 18px #211b3129;pointer-events:none;animation:sc-tooltip-enter .2s ease-out}
.sc-tooltip-arrow{position:absolute;left:var(--sc-arrow,50%);width:10px;height:10px;background:inherit;border:inherit;transform:translateX(-50%) rotate(45deg)}
.sc-context-tooltip[data-side=above] .sc-tooltip-arrow{bottom:-6px;border-top:0;border-left:0}
.sc-context-tooltip[data-side=below] .sc-tooltip-arrow{top:-6px;border-right:0;border-bottom:0}
html[data-theme=dark] .sc-context-tooltip{box-shadow:0 0 14px #c8afff26;border-color:var(--sc-border,#695b7c)}
html body .sc-invoice-help-launch[data-help-hint]::after{display:none!important}
@keyframes sc-tooltip-enter{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.sc-context-tooltip{animation:none}}
@media print{.sc-context-tooltip,.sc-panel-external-close{display:none!important}}

html body .tooltip-inner{box-shadow:0 5px 18px #211b3129;border-radius:8px}
html[data-theme=dark] body .tooltip-inner{box-shadow:0 0 14px #c8afff26}

/* The business preference is authoritative, including dynamically inserted help. */
html[data-sc-help-enabled="0"] body .sc-context-tooltip,
html[data-sc-help-enabled="0"] body .tooltip,
html[data-sc-help-enabled="0"] body .hover-q,
html[data-sc-help-enabled="0"] body .sc-context-help[role="img"],
html[data-sc-help-enabled="0"] body .a4-info,
html[data-sc-help-enabled="0"] body .sc-upload-info,
html[data-sc-help-enabled="0"] body .sc-invoice-help[data-help],
html[data-sc-help-enabled="0"] body .sc-help-trigger:not([aria-controls]){display:none!important}
