/* OSKAR WHITE CRM 3.1.20 — isolated sales detail layer with a single internal scroll owner.
 * The layer is mounted as a direct child of <html> to bypass shell overflow and legacy modal rules.
 */
html > .ow-sales-task-detail-layer{
    position:fixed!important;
    inset:0!important;
    z-index:2147483000!important;
    display:grid!important;
    place-items:center!important;
    width:100vw!important;
    height:100dvh!important;
    margin:0!important;
    padding:clamp(.55rem,1.6vw,1.1rem)!important;
    overflow:hidden!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    isolation:isolate!important;
    box-sizing:border-box!important;
    background:rgba(5,20,39,.66)!important;
    backdrop-filter:blur(.35rem)!important;
}
html > .ow-sales-task-detail-layer[hidden]{display:none!important}
.ow-sales-task-detail-layer__scrim{position:fixed!important;inset:0!important;z-index:-1!important;cursor:default}
html > .ow-sales-task-detail-layer > .ow-sales-task-detail-sheet{
    position:relative!important;
    z-index:1!important;
    display:block!important;
    width:min(72rem,calc(100vw - 1.2rem))!important;
    max-width:72rem!important;
    max-height:calc(100dvh - 1.2rem)!important;
    margin:auto!important;
    padding:0!important;
    overflow:auto!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
    pointer-events:auto!important;
    border:1px solid #d6e1ee!important;
    border-radius:1.05rem!important;
    background:#f5f7fb!important;
    color:#10243e!important;
    box-shadow:0 2rem 5rem rgba(5,20,39,.38)!important;
    box-sizing:border-box!important;
    scrollbar-gutter:stable;
}
html > .ow-sales-task-detail-layer > .ow-sales-task-detail-sheet.ow-m-sales-task-detail{
    display:flex!important;
    flex-direction:column!important;
    height:calc(100dvh - 1.2rem)!important;
    min-height:0!important;
    overflow:hidden!important;
}
html[data-ow-sales-task-layer="open"],body.ow-sales-task-detail-open{overflow:hidden!important}
.ow-sales-task-detail-sheet__loading{min-height:16rem;display:grid;place-items:center;gap:.8rem;padding:2rem;text-align:center;background:#fff;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}
.ow-sales-task-detail-sheet__loading::before{content:"";width:2.2rem;height:2.2rem;border:.22rem solid #dbe8f7;border-top-color:#236cb9;border-radius:50%;animation:ow-sales-task-spin .8s linear infinite}
.ow-sales-task-detail-sheet__loading h2{margin:.2rem 0;color:#10243e}.ow-sales-task-detail-sheet__loading p{margin:0;color:#65758a}
.ow-sales-task-detail-sheet__error{display:grid;gap:.75rem;margin:1rem;padding:1rem;border:1px solid #efb5b5;border-radius:.8rem;background:#fff3f3;color:#7e2020;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}
.ow-sales-task-detail-sheet>.ow-modal-close{position:absolute;top:.8rem;right:.8rem;z-index:5;width:2.35rem;height:2.35rem;border:1px solid #d5e0ec;border-radius:999px;background:#f5f8fc;color:#173b66;font:700 1.2rem/1 Inter,"Segoe UI",sans-serif;cursor:pointer}
@keyframes ow-sales-task-spin{to{transform:rotate(360deg)}}
@media (max-width:40rem){html > .ow-sales-task-detail-layer{padding:.3rem!important}html > .ow-sales-task-detail-layer > .ow-sales-task-detail-sheet{width:calc(100vw - .6rem)!important;max-height:calc(100dvh - .6rem)!important;border-radius:.78rem!important}html > .ow-sales-task-detail-layer > .ow-sales-task-detail-sheet.ow-m-sales-task-detail{height:calc(100dvh - .6rem)!important}}
@media (prefers-reduced-motion:reduce){.ow-sales-task-detail-sheet__loading::before{animation-duration:1.8s}}
