﻿/*
 * OW shell refresh
 * Incremental visual override layer for Inspinia-based shell
 * Keep this file loaded after the legacy/global stylesheets.
 */

/* -------------------------------------------------------------------------- */
/* Utility surfaces                                                            */
/* -------------------------------------------------------------------------- */

.ow-shell-surface {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ow-shell-card {
    background: #fff;
    border: 1px solid #d9e3ec;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(19, 49, 78, 0.08);
}

.ow-shell-kpi-card {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ow-shell-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ow-u-radius-sm {
    border-radius: 10px !important;
}

.ow-u-radius-md {
    border-radius: 14px !important;
}

.ow-u-radius-lg {
    border-radius: 18px !important;
}

.ow-u-shadow-sm {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
}

.ow-u-shadow-md {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
}

.ow-u-text-muted {
    color: #6b7d90 !important;
}

.ow-u-text-soft {
    color: #506579 !important;
}

.ow-u-text-strong {
    color: #17324d !important;
}

.ow-u-soft-info {
    background: #eff7fd !important;
}

.ow-u-soft-success {
    background: #eef8f2 !important;
}

.ow-u-soft-warning {
    background: #fff8eb !important;
}

.ow-u-soft-danger {
    background: #fff2f3 !important;
}

/* -------------------------------------------------------------------------- */
/* Shell base                                                                  */
/* -------------------------------------------------------------------------- */

html,
body {
    background: #eef3f8;
    min-height: 100%;
}

body {
    margin: 0;
    color: #243447;
    font-family: "Segoe UI Variable Text", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#ow-app {
    display: flex;
    min-height: 100vh;
}

#ow-sidebar {
    flex: 0 0 244px;
    width: 244px;
    transition: width 0.24s ease, flex-basis 0.24s ease;
}

#ow-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

#ow-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 2030;
}

#ow-sidebar-overlay.ow-overlay-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.ow-scroll-lock,
body.ow-scroll-locked {
    overflow: hidden;
}

#wrapper,
#page-wrapper.gray-bg {
    background: linear-gradient(180deg, #f7fafd 0%, #eef4f9 100%);
}

#wrapper,
#page-wrapper.gray-bg {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

#page-wrapper > .border-bottom {
    border-bottom: 0 !important;
    background: transparent;
    position: relative;
    z-index: 11;
}

#wrapper > #page-wrapper > #contentPanel {
    padding: 18px 18px 28px;
}

#ow-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

#ow-content > #contentPanel {
    flex: 1 1 auto;
    padding: 8px 0px 8px;
}

#ow-sidebar-nav,
#ow-sidebar .sidebar-collapse {
    min-height: 0;
}

.wrapper-content {
    padding: 18px 16px 28px;
}

#ow-footer {
    margin-top: auto;
    flex: 0 0 auto;
}

.footer {
    background: transparent;
    border-top: 1px solid #dfe7ef;
    color: #6b7d90;
    padding: 14px 20px 18px;
    clear: both;
}

.footer a {
    color: #0b66d1;
    font-weight: 400;
}

body {
    --ow-shell-float-bottom: 7px;
    --ow-shell-float-right: 18px;
    --ow-shell-float-gap: 12px;
    --ow-shell-float-size: 44px;
    --ow-shell-studioia-float-width: 62px;
    --ow-shell-float-radius: 18px;
}

body.mini-navbar {
    --ow-shell-float-right: 18px;
}

#btnBackToTop,
.ow-shell-support-whatsapp,
.ow-shell-studioia-prototype {
    position: fixed;
    bottom: var(--ow-shell-float-bottom);
    width: var(--ow-shell-float-size);
    height: var(--ow-shell-float-size);
    border: 0;
    border-radius: var(--ow-shell-float-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    z-index: 99;
}

#btnBackToTop {
    right: calc(var(--ow-shell-float-right) + var(--ow-shell-studioia-float-width) + var(--ow-shell-float-gap) + var(--ow-shell-float-size) + var(--ow-shell-float-gap));
    background: linear-gradient(180deg, rgb(29 122 226 / 39%) 0%, rgb(15 107 214 / 48%) 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(11, 102, 209, 0.28);
}

#btnBackToTop .ow-shell-floating-icon,
.ow-shell-support-whatsapp .ow-shell-floating-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ow-shell-support-whatsapp .ow-shell-floating-image {
    width: 26px;
    height: 26px;
    display: block;
}

#btnBackToTop:hover,
#btnBackToTop:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, #1d7ae2 0%, #0f6bd6 100%);
    box-shadow: 0 18px 34px rgba(11, 102, 209, 0.34);
    transform: translateY(-2px);
}

.ow-shell-support-whatsapp {
    right: calc(var(--ow-shell-float-right) + var(--ow-shell-studioia-float-width) + var(--ow-shell-float-gap));
    background: #25d36685;
    color: #fff;
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.3);
}

.ow-shell-support-whatsapp:hover,
.ow-shell-support-whatsapp:focus-visible {
    color: #fff;
    background: #21bf5c;
    box-shadow: 0 18px 34px rgba(37, 211, 102, 0.34);
    transform: translateY(-2px);
}

.ow-shell-studioia-prototype {
    right: var(--ow-shell-float-right);
    width: var(--ow-shell-studioia-float-width);
    padding: 0;
    background: transparent;
    color: #062247;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
}

.ow-shell-studioia-prototype:hover,
.ow-shell-studioia-prototype:focus-visible {
    color: #ffffff;
    transform: translateY(-2px) scale(1.015);
}

.ow-shell-studioia-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
}

.ow-shell-studioia-beacon,
.ow-shell-studioia-glow,
.ow-shell-studioia-ring,
.ow-shell-studioia-spark,
.ow-shell-studioia-core {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 999px;
    pointer-events: none;
}

.ow-shell-studioia-beacon {
    width: 100%;
    height: 100%;
    inset: -3px;
    border: 3px solid transparent;
    opacity: 0;
    transform: scale(0.92);
}

.ow-shell-studioia-glow {
    width: 66%;
    height: 66%;
    opacity: 0.28;
    filter: blur(8px);
}

.ow-shell-studioia-ring-outer {
    width: 78%;
    height: 78%;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.ow-shell-studioia-ring-inner {
    width: 58%;
    height: 58%;
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.ow-shell-studioia-spark {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.44);
}

.ow-shell-studioia-spark-a {
    top: 10px;
    right: 11px;
}

.ow-shell-studioia-spark-b {
    bottom: 11px;
    left: 10px;
    opacity: 0.82;
}

.ow-shell-studioia-core {
    width: 44%;
    height: 44%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(229, 242, 255, 0.9) 58%, rgba(190, 220, 255, 0.82) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52), 0 10px 18px rgba(2, 19, 41, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ow-shell-studioia-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b2d57;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-shell-studioia-prototype[data-variant="premium"] .ow-shell-studioia-glow {
    background: radial-gradient(circle, rgba(126, 220, 255, 0.68) 0%, rgba(57, 167, 255, 0.18) 68%, transparent 100%);
}

.ow-shell-studioia-prototype[data-variant="premium"] .ow-shell-studioia-core {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(232, 246, 255, 0.94) 58%, rgba(176, 233, 223, 0.88) 100%);
}

.ow-shell-studioia-prototype[data-variant="premium"] .ow-shell-studioia-beacon {
    border-color: rgba(255, 193, 84, 0.72);
    box-shadow: 0 0 0 8px rgba(255, 193, 84, 0.18);
}

.ow-shell-studioia-prototype[data-variant="chamativo"] {
    background: transparent;
    box-shadow: none;
}

.ow-shell-studioia-prototype[data-variant="chamativo"] .ow-shell-studioia-glow {
    width: 74%;
    height: 74%;
    background: radial-gradient(circle, rgba(255, 211, 96, 0.76) 0%, rgba(74, 247, 219, 0.38) 50%, transparent 100%);
    opacity: 0.62;
}

.ow-shell-studioia-prototype[data-variant="chamativo"] .ow-shell-studioia-ring-outer {
    border-color: rgba(255, 247, 208, 0.42);
}

.ow-shell-studioia-prototype[data-variant="chamativo"] .ow-shell-studioia-ring-inner {
    border-color: rgba(255, 255, 255, 0.52);
}

.ow-shell-studioia-prototype[data-variant="chamativo"] .ow-shell-studioia-spark {
    background: #fff7d1;
    box-shadow: 0 0 18px rgba(255, 220, 132, 0.72);
}

.ow-shell-studioia-prototype[data-variant="chamativo"] .ow-shell-studioia-core {
    width: 46%;
    height: 46%;
    background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 248, 0.95) 52%, rgba(255, 236, 182, 0.92) 100%);
}

.ow-shell-studioia-prototype[data-variant="chamativo"] .ow-shell-studioia-beacon {
    border-color: rgba(255, 173, 33, 0.92);
    box-shadow: 0 0 0 10px rgba(255, 173, 33, 0.26);
}

.ow-shell-studioia-prototype[data-variant="corporativo"] {
    background: transparent;
    box-shadow: none;
}

.ow-shell-studioia-prototype[data-variant="corporativo"] .ow-shell-studioia-glow {
    width: 62%;
    height: 62%;
    background: radial-gradient(circle, rgba(130, 216, 221, 0.6) 0%, rgba(99, 171, 255, 0.18) 70%, transparent 100%);
    opacity: 0.3;
}

.ow-shell-studioia-prototype[data-variant="corporativo"] .ow-shell-studioia-ring-outer {
    width: 74%;
    height: 74%;
    border-style: solid;
    border-color: rgba(208, 235, 244, 0.28);
}

.ow-shell-studioia-prototype[data-variant="corporativo"] .ow-shell-studioia-ring-inner {
    width: 52%;
    height: 52%;
    border-color: rgba(255, 255, 255, 0.44);
}

.ow-shell-studioia-prototype[data-variant="corporativo"] .ow-shell-studioia-spark {
    width: 6px;
    height: 6px;
    background: rgba(216, 249, 255, 0.92);
    box-shadow: 0 0 12px rgba(176, 244, 255, 0.42);
}

.ow-shell-studioia-prototype[data-variant="corporativo"] .ow-shell-studioia-beacon {
    border-color: rgba(255, 198, 96, 0.62);
    box-shadow: 0 0 0 7px rgba(255, 198, 96, 0.14);
}

.ow-shell-studioia-prototype[data-activity="sleeping"] .ow-shell-studioia-glow {
    transform: scale(0.88);
    opacity: 0.22;
}

.ow-shell-studioia-prototype[data-activity="sleeping"] .ow-shell-studioia-ring {
    opacity: 0.58;
}

.ow-shell-studioia-prototype[data-activity="sleeping"] .ow-shell-studioia-core {
    transform: scale(0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 8px 14px rgba(2, 19, 41, 0.18);
}

.ow-shell-studioia-prototype[data-activity="sleeping"] .ow-shell-studioia-spark {
    opacity: 0.36;
}

.ow-shell-studioia-prototype[data-activity="sleeping"] .ow-shell-studioia-beacon {
    opacity: 0;
}

.ow-shell-studioia-prototype[data-activity="calling"] {
    box-shadow: 0 0 0 1px rgba(255, 207, 111, 0.34);
}

.ow-shell-studioia-prototype[data-variant="premium"][data-activity="calling"] {
    background: transparent;
    box-shadow: none;
}

.ow-shell-studioia-prototype[data-variant="chamativo"][data-activity="calling"] {
    background: transparent;
    box-shadow: none;
}

.ow-shell-studioia-prototype[data-variant="corporativo"][data-activity="calling"] {
    background: transparent;
    box-shadow: none;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-beacon {
    opacity: 0;
    animation: none;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-glow {
    animation: owStudioIAPrototypeCallingGlow 2.1s ease-in-out infinite;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-ring-outer {
    border-width: 2px;
    animation: owStudioIAPrototypeCallingOuter 2.1s ease-in-out infinite;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-ring-inner {
    border-width: 2px;
    animation: owStudioIAPrototypeCallingInner 2.1s ease-in-out infinite;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-core {
    animation: owStudioIAPrototypeCallingCore 2.1s ease-in-out infinite;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-spark-a {
    animation: owStudioIAPrototypeCallingSparkA 1.8s linear infinite;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-spark-b {
    animation: owStudioIAPrototypeCallingSparkB 2.4s linear infinite;
}

.ow-shell-studioia-prototype,
.ow-shell-studioia-prototype[data-variant="premium"][data-activity="calling"],
.ow-shell-studioia-prototype[data-variant="chamativo"][data-activity="calling"],
.ow-shell-studioia-prototype[data-variant="corporativo"][data-activity="calling"] {
    background: transparent;
    color: #062247;
    box-shadow: none;
}

.ow-shell-studioia-prototype:hover,
.ow-shell-studioia-prototype:focus-visible {
    color: #062247;
    transform: translateY(-2px) scale(1.015);
    box-shadow: none;
}

.ow-shell-studioia-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.ow-shell-studioia-logo {
    width: 62px;
    display: block;
    object-fit: contain;
    transform: scale(0.98);
    transform-origin: center;
    transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.ow-shell-studioia-attention-badge {
    position: absolute;
    top: 2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #2f6df6;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(47, 109, 246, 0.26);
    pointer-events: none;
    z-index: 2;
}

.ow-shell-studioia-prototype[data-attention-level="high"] .ow-shell-studioia-attention-badge {
    background: #f59e0b;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.ow-shell-studioia-prototype[data-attention-level="critical"] .ow-shell-studioia-attention-badge {
    background: #ef4444;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.3);
}

.ow-shell-studioia-beacon {
    inset: -8px;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 999px;
    background: transparent;
    opacity: 0;
    transform: scale(0.9);
}

.ow-shell-studioia-prototype[data-activity="sleeping"] .ow-shell-studioia-logo {
    animation: none;
    filter: saturate(0.96);
    opacity: 0.96;
}

.ow-shell-studioia-prototype[data-activity="calling"],
.ow-shell-studioia-prototype[data-variant="chamativo"][data-activity="calling"] {
    box-shadow: none;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-logo {
    animation: owStudioIAFooterLogoPulse 1.45s ease-in-out infinite;
    filter: saturate(1.12) contrast(1.03);
    opacity: 1;
}

.ow-shell-studioia-prototype[data-activity="calling"] .ow-shell-studioia-beacon {
    animation: none;
    opacity: 0;
}

@keyframes owStudioIAFooterLogoPulse {
    0%, 100% {
        transform: scale(0.98);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes owStudioIAFooterBeacon {
    0% {
        opacity: 0.45;
        transform: scale(0.92);
    }

    100% {
        opacity: 0;
        transform: scale(1.34);
    }
}

@keyframes owStudioIAPrototypeCallingGlow {
    0%, 100% {
        transform: scale(0.94);
        opacity: 0.44;
    }

    45% {
        transform: scale(1.24);
        opacity: 0.96;
    }
}

@keyframes owStudioIAPrototypeCallingOuter {
    0%, 100% {
        transform: scale(0.94);
        opacity: 0.52;
    }

    45% {
        transform: scale(1.16);
        opacity: 1;
    }
}

@keyframes owStudioIAPrototypeCallingInner {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.7;
    }

    45% {
        transform: scale(1.12);
        opacity: 0.94;
    }
}

@keyframes owStudioIAPrototypeCallingCore {
    0%, 100% {
        transform: scale(0.98);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 12px 20px rgba(2, 19, 41, 0.24);
    }

    45% {
        transform: scale(1.12);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82), 0 16px 28px rgba(2, 19, 41, 0.34);
    }
}

@keyframes owStudioIAPrototypeCallingSparkA {
    0% {
        transform: translate3d(0, 0, 0) scale(0.9);
        opacity: 0.54;
    }

    50% {
        transform: translate3d(-4px, 3px, 0) scale(1.42);
        opacity: 1;
    }

    100% {
        transform: translate3d(0, 0, 0) scale(0.9);
        opacity: 0.54;
    }
}

.ow-shell-studioia-hot-assist-root {
    --ow-studioia-hot-assist-safe-bottom: calc(var(--ow-shell-float-bottom) + var(--ow-shell-float-size) + 18px);
    position: fixed;
    right: calc(var(--ow-shell-float-right) - 6px);
    bottom: var(--ow-studioia-hot-assist-safe-bottom);
    width: min(460px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    z-index: 2065;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.12);
    transform-origin: calc(100% - 36px) calc(100% + 58px);
    transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ow-shell-studioia-hot-assist-root.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.ow-shell-studioia-hot-assist-root.is-maximized {
    right: 24px;
    bottom: var(--ow-studioia-hot-assist-safe-bottom);
    width: min(920px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    transform-origin: 100% 100%;
}

.ow-shell-studioia-hot-assist-window {
    display: flex;
    flex-direction: column;
    max-height: min(76vh, 720px);
    min-height: 420px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(68, 134, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 32px 64px rgba(10, 38, 84, 0.18);
    overflow: hidden;
}

.ow-shell-studioia-hot-assist-window.is-priority-day-notification {
    min-height: min(360px, calc(100vh - var(--ow-studioia-hot-assist-safe-bottom) - 24px));
    max-height: min(72vh, 560px);
}

.ow-shell-studioia-hot-assist-root.is-maximized .ow-shell-studioia-hot-assist-window {
    min-height: min(720px, calc(100vh - var(--ow-studioia-hot-assist-safe-bottom) - 24px));
    max-height: calc(100vh - var(--ow-studioia-hot-assist-safe-bottom) - 24px);
    border-radius: 24px;
}

.ow-shell-studioia-hot-assist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 16px;
    background: linear-gradient(135deg, rgba(15, 35, 92, 0.98) 0%, rgba(12, 111, 214, 0.95) 52%, rgba(15, 184, 145, 0.92) 100%);
    color: #fff;
}

.ow-shell-studioia-hot-assist-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 180px;
}

.ow-shell-studioia-hot-assist-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(219, 234, 254, 0.9), 0 12px 24px rgba(8, 42, 96, 0.16);
}

.ow-shell-studioia-hot-assist-logo {
    width: 174px;
    max-width: 100%;
    height: auto;
    display: block;
}

.ow-shell-studioia-hot-assist-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
    min-width: 0;
}

.ow-shell-studioia-hot-assist-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 232, 159, 0.98);
    color: #875400;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.ow-shell-studioia-hot-assist-status.is-priority-day {
    background: rgba(255, 232, 159, 0.98);
    color: #875400;
}

.ow-shell-studioia-hot-assist-queue-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ow-shell-studioia-hot-assist-queue-nav-count {
    min-width: 46px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.ow-shell-studioia-hot-assist-queue-nav-button {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.ow-shell-studioia-hot-assist-queue-nav-button .lucide {
    width: 17px;
    height: 17px;
}

.ow-shell-studioia-hot-assist-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.ow-shell-studioia-hot-assist-icon-action:hover,
.ow-shell-studioia-hot-assist-icon-action:focus {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.ow-shell-studioia-hot-assist-icon-action .lucide {
    width: 19px;
    height: 19px;
    stroke-width: 1;
}

.ow-shell-studioia-hot-assist-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(245, 249, 255, 0.92) 100%);
    scrollbar-gutter: stable;
}

.ow-shell-studioia-hot-assist-intro {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(76, 132, 224, 0.14);
}

.ow-shell-studioia-hot-assist-intro.is-dossier {
    padding-bottom: 8px;
    border-bottom: 0;
}

.ow-shell-studioia-hot-assist-intro.is-dossier + .ow-shell-studioia-hot-assist-thread {
    padding-top: 4px;
}

.ow-shell-studioia-hot-assist-window.is-priority-day-notification .ow-shell-studioia-hot-assist-intro {
    padding: 18px 20px 10px;
}

.ow-shell-studioia-hot-assist-intro h3 {
    margin: 0 0 8px;
    color: #09214a;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-window.is-priority-day-notification .ow-shell-studioia-hot-assist-intro h3 {
    margin-bottom: 0;
    font-size: 22px;
}

.ow-shell-studioia-hot-assist-intro p {
    margin: 0;
    color: #365176;
    font-size: 14px;
    line-height: 1.55;
}

.ow-shell-studioia-hot-assist-patient-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
    color: #345174;
    font-size: 13px;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-patient-compact a,
.ow-shell-studioia-hot-assist-bubble.is-context a {
    color: #145fd7;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ow-shell-studioia-hot-assist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ow-shell-studioia-hot-assist-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(73, 124, 212, 0.16);
    background: rgba(255, 255, 255, 0.9);
    color: #18408f;
    font-size: 12px;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-thread {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
    overflow: visible;
    padding: 16px 18px 18px;
}

.ow-shell-studioia-hot-assist-window.is-priority-day-notification .ow-shell-studioia-hot-assist-thread {
    gap: 10px;
    min-height: 0;
    padding: 12px 18px 14px;
}

.ow-shell-studioia-hot-assist-empty {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 210px;
    padding: 22px 18px;
    border: 1px solid rgba(68, 134, 255, 0.14);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 247, 255, 0.96) 100%);
    box-shadow: 0 16px 34px rgba(10, 38, 84, 0.08);
    text-align: center;
}

.ow-shell-studioia-hot-assist-empty-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
}

.ow-shell-studioia-hot-assist-empty-copy strong {
    color: #0b2654;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-empty-copy p {
    margin: 0;
    color: #496382;
    font-size: 14px;
    line-height: 1.55;
}

.ow-shell-studioia-hot-assist-bubble {
    max-width: 92%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ow-shell-studioia-hot-assist-window.is-priority-day-notification .ow-shell-studioia-hot-assist-bubble {
    max-width: 100%;
}

.ow-shell-studioia-hot-assist-bubble.assistant {
    align-self: flex-start;
}

.ow-shell-studioia-hot-assist-bubble.user {
    align-self: flex-end;
}

.ow-shell-studioia-hot-assist-bubble.is-context {
    max-width: 100%;
}

.ow-shell-studioia-hot-assist-bubble.is-dossier-metrics {
    width: 100%;
    align-self: stretch;
}

.ow-shell-studioia-hot-assist-bubble-author {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2462d9;
}

.ow-shell-studioia-hot-assist-bubble.user .ow-shell-studioia-hot-assist-bubble-author {
    color: #19315f;
    text-align: right;
}

.ow-shell-studioia-hot-assist-bubble-body {
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(95, 151, 255, 0.22);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(233, 243, 255, 0.96) 100%);
    box-shadow: 0 12px 28px rgba(10, 38, 84, 0.08);
}

.ow-shell-studioia-hot-assist-window.is-priority-day-notification .ow-shell-studioia-hot-assist-bubble-body {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.98) 0%, rgba(232, 243, 255, 0.96) 100%);
    box-shadow: 0 10px 24px rgba(10, 38, 84, 0.07);
}

.ow-shell-studioia-hot-assist-bubble.user .ow-shell-studioia-hot-assist-bubble-body {
    border-color: rgba(18, 90, 196, 0.18);
    background: linear-gradient(180deg, rgba(24, 78, 194, 0.98) 0%, rgba(10, 115, 225, 0.96) 100%);
    color: #fff;
}

.ow-shell-studioia-hot-assist-bubble-body strong {
    display: block;
    margin: 0 0 6px;
    color: inherit;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-bubble-body p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.58;
}

.ow-shell-studioia-hot-assist-context-patient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ow-shell-studioia-hot-assist-context-patient-name {
    display: block;
    margin: 0;
    color: #18335c;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.ow-shell-studioia-hot-assist-context-patient a {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-context-summary {
    margin-top: 2px !important;
    color: #2e4565 !important;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-context-details {
    margin-top: 10px;
}

.ow-shell-studioia-hot-assist-context-details > summary {
    color: #145fd7;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-context-details[open] > summary {
    margin-bottom: 8px;
}

.ow-shell-studioia-hot-assist-context-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.ow-shell-studioia-hot-assist-context-signals > span {
    flex: 0 0 100%;
    color: #526985;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
}

.ow-shell-studioia-hot-assist-context-signals em {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(60, 121, 219, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #294968;
    font-size: 12px;
    line-height: 1.25;
    font-style: normal;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-context-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 12px;
}

.ow-shell-studioia-hot-assist-context-line:last-child {
    margin-bottom: 0;
}

.ow-shell-studioia-hot-assist-context-line strong {
    margin-bottom: 0;
}

.ow-shell-studioia-hot-assist-context-line span {
    color: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.ow-shell-studioia-hot-assist-dossier-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
}

.ow-shell-studioia-hot-assist-dossier-metric {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(72, 128, 220, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.ow-shell-studioia-hot-assist-dossier-metric span {
    display: block;
    margin: 0;
    color: #315b8e;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-dossier-metric strong {
    display: block;
    margin: 4px 0 0;
    color: #122a4e;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-dossier-metrics .ow-shell-studioia-hot-assist-inline-hint {
    grid-column: 1 / -1;
    margin-top: 0;
}

.ow-shell-studioia-hot-assist-bubble.is-typing {
    max-width: 92%;
}

.ow-shell-studioia-hot-assist-bubble.is-typing .ow-shell-studioia-hot-assist-bubble-body {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
}

.ow-shell-studioia-hot-assist-typing-label {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    color: #24466d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.48;
    white-space: normal;
}

.ow-shell-studioia-hot-assist-typing-label::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    border-radius: 999px;
    background: #2462d9;
    vertical-align: -0.12em;
    animation: owStudioIACaret 0.85s steps(2, start) infinite;
}

.ow-shell-studioia-hot-assist-message-text {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.ow-shell-studioia-hot-assist-message-text strong {
    margin: 0;
}

.ow-shell-studioia-hot-assist-message-text.is-recommendation strong {
    font-size: 14px;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-message-text p {
    margin: 0;
}

.ow-shell-studioia-hot-assist-bubble.is-completion .ow-shell-studioia-hot-assist-bubble-body {
    border-color: rgba(95, 151, 255, 0.22);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(233, 243, 255, 0.96) 100%);
}

.ow-shell-studioia-hot-assist-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 26px;
}

.ow-shell-studioia-hot-assist-typing-dots i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #2462d9;
    opacity: 0.34;
    animation: owStudioIATypingDot 1.05s ease-in-out infinite;
}

.ow-shell-studioia-hot-assist-typing-dots i:nth-child(2) {
    animation-delay: 0.14s;
}

.ow-shell-studioia-hot-assist-typing-dots i:nth-child(3) {
    animation-delay: 0.28s;
}

@keyframes owStudioIATypingDot {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.34;
    }

    40% {
        transform: translateY(-3px);
        opacity: 0.92;
    }
}

@keyframes owStudioIACaret {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ow-shell-studioia-hot-assist-typing-dots i {
        animation: none;
        opacity: 0.72;
    }

    .ow-shell-studioia-hot-assist-typing-label::after {
        animation: none;
    }
}

.ow-shell-studioia-hot-assist-option-history {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.ow-shell-studioia-hot-assist-option-history > span {
    color: #5a6f8e;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-shell-studioia-hot-assist-option-history-item {
    position: relative;
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid rgba(60, 121, 219, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
}

.ow-shell-studioia-hot-assist-option-history-item.is-selected {
    border-color: rgba(14, 112, 210, 0.28);
    background: rgba(232, 244, 255, 0.94);
}

.ow-shell-studioia-hot-assist-option-history-item strong {
    margin: 0;
    padding-right: 74px;
    font-size: 13px;
}

.ow-shell-studioia-hot-assist-option-history-item small {
    color: #526b8c;
    font-size: 12px;
    line-height: 1.35;
}

.ow-shell-studioia-hot-assist-option-history-item em {
    position: absolute;
    top: 9px;
    right: 10px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(25, 113, 214, 0.1);
    color: #145fd7;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-result-list {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(60, 121, 219, 0.14);
}

.ow-shell-studioia-hot-assist-result-list div {
    display: grid;
    grid-template-columns: minmax(92px, auto) 1fr;
    gap: 8px;
    align-items: baseline;
    padding: 0;
}

.ow-shell-studioia-hot-assist-result-list dt {
    margin: 0;
    color: #5a6f8e;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.ow-shell-studioia-hot-assist-result-list dd {
    margin: 0;
    color: #16325c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.ow-shell-studioia-hot-assist-question-inline {
    margin-top: 10px !important;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-composer {
    flex: 0 0 auto;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(76, 132, 224, 0.14);
    background: rgba(255, 255, 255, 0.96);
}

.ow-shell-studioia-hot-assist-window.is-priority-day-notification .ow-shell-studioia-hot-assist-composer {
    padding: 14px 18px 16px;
}

.ow-shell-studioia-hot-assist-composer-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.ow-shell-studioia-hot-assist-composer-copy.is-typing {
    margin-bottom: 0;
}

.ow-shell-studioia-hot-assist-composer-copy strong {
    color: #0b2654;
    font-size: 15px;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-composer-copy span,
.ow-shell-studioia-hot-assist-summary p,
.ow-shell-studioia-hot-assist-loading-copy {
    color: #4e6485;
    font-size: 13px;
    line-height: 1.5;
}

.ow-shell-studioia-hot-assist-inline-error {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(230, 99, 86, 0.22);
    border-radius: 14px;
    background: rgba(255, 244, 242, 0.95);
    color: #9a2d22;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.ow-shell-studioia-hot-assist-inline-hint {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(60, 121, 219, 0.16);
    border-radius: 14px;
    background: rgba(245, 249, 255, 0.96);
    color: #4e6485;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.ow-shell-studioia-hot-assist-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.ow-shell-studioia-hot-assist-form-field label {
    color: #0b4fd7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-shell-studioia-hot-assist-form-field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(60, 121, 219, 0.22);
    border-radius: 14px;
    background: #fff;
    color: #0b2654;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

.ow-shell-studioia-hot-assist-form-field input:focus {
    border-color: rgba(21, 103, 218, 0.46);
    box-shadow: 0 0 0 3px rgba(21, 103, 218, 0.12);
}

.ow-shell-studioia-hot-assist-selection-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(60, 121, 219, 0.14);
    border-radius: 16px;
    background: rgba(245, 249, 255, 0.96);
}

.ow-shell-studioia-hot-assist-selection-summary strong {
    color: #0b2654;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-shell-studioia-hot-assist-selection-summary span {
    color: #244266;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-choice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ow-shell-studioia-hot-assist-choice {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(60, 121, 219, 0.18);
    border-radius: 18px;
    background: #fff;
    text-align: left;
    box-shadow: 0 10px 24px rgba(10, 38, 84, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ow-shell-studioia-hot-assist-choice:hover,
.ow-shell-studioia-hot-assist-choice:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(21, 103, 218, 0.34);
    box-shadow: 0 14px 30px rgba(10, 38, 84, 0.1);
}

.ow-shell-studioia-hot-assist-choice > .ow-shell-studioia-hot-assist-choice-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.ow-shell-studioia-hot-assist-choice-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.ow-shell-studioia-hot-assist-choice-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(20, 104, 218, 0.08);
    color: #155ec6;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.ow-shell-studioia-hot-assist-choice-action .lucide {
    width: 14px;
    height: 14px;
    stroke-width: 1;
}

.ow-shell-studioia-hot-assist-choice strong {
    color: #0c2958;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

.ow-shell-studioia-hot-assist-choice strong span {
    color: #1768d9;
}

.ow-shell-studioia-hot-assist-choice > span {
    color: #566e91;
    font-size: 13px;
    line-height: 1.5;
}

.ow-shell-studioia-hot-assist-choice.is-compact {
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: none;
}

.ow-shell-studioia-hot-assist-choice.is-compact strong {
    font-size: 13px;
}

.ow-shell-studioia-hot-assist-choice.is-compact > span {
    font-size: 12px;
}

.ow-shell-studioia-hot-assist-suggestions {
    margin-top: 10px;
}

.ow-shell-studioia-hot-assist-suggestion-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(60, 121, 219, 0.14);
    border-radius: 16px;
    background: rgba(245, 249, 255, 0.86);
}

.ow-shell-studioia-hot-assist-suggestion-title {
    color: #5a39eb;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-shell-studioia-hot-assist-suggestion-hint {
    color: #5b718f;
    font-size: 12px;
    line-height: 1.45;
}

.ow-shell-studioia-hot-assist-suggestion-hint.is-loading {
    color: #1850b0;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-suggestion-hint.is-warning {
    color: #9a2d22;
    font-weight: 500;
}

.ow-shell-studioia-hot-assist-composer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.ow-shell-studioia-hot-assist-window.is-priority-day-notification .ow-shell-studioia-hot-assist-composer-actions {
    margin-top: 0;
}

.ow-shell-studioia-hot-assist-primary,
.ow-shell-studioia-hot-assist-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.1;
    cursor: pointer;
}

.ow-shell-studioia-hot-assist-primary {
    border: 0;
    background: linear-gradient(180deg, #1d56cf 0%, #0e6ae1 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 93, 210, 0.2);
}

.ow-shell-studioia-hot-assist-secondary {
    border: 1px solid rgba(35, 98, 205, 0.18);
    background: #fff;
    color: #1850b0;
}

.ow-shell-studioia-hot-assist-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #1850b0;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.ow-shell-studioia-hot-assist-primary:disabled,
.ow-shell-studioia-hot-assist-secondary:disabled {
    cursor: progress;
    opacity: 0.72;
}

.ow-shell-studioia-hot-assist-primary .lucide,
.ow-shell-studioia-hot-assist-secondary .lucide {
    width: 16px;
    height: 16px;
    stroke-width: 1;
}

.ow-shell-studioia-hot-assist-textarea {
    width: 100%;
    min-height: 108px;
    resize: vertical;
    padding: 14px 16px;
    border: 1px solid rgba(60, 121, 219, 0.18);
    border-radius: 18px;
    background: #fff;
    color: #0c2958;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.ow-shell-studioia-hot-assist-text-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(60, 121, 219, 0.18);
    border-radius: 16px;
    background: #fff;
    color: #0c2958;
    font-size: 14px;
    font-weight: 500;
    line-height: 44px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

@keyframes owStudioIAPrototypeCallingSparkB {
    0% {
        transform: translate3d(0, 0, 0) scale(0.88);
        opacity: 0.46;
    }

    50% {
        transform: translate3d(3px, -4px, 0) scale(1.28);
        opacity: 0.96;
    }

    100% {
        transform: translate3d(0, 0, 0) scale(0.88);
        opacity: 0.46;
    }
}

@keyframes owStudioIAPrototypeBeacon {
    0% {
        transform: scale(0.94);
        opacity: 0;
    }

    20% {
        opacity: 0.96;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 1199px) {
    body {
        --ow-shell-float-right: 18px;
    }
}

@media (max-width: 520px) {
    .ow-shell-studioia-hot-assist-header {
        gap: 8px;
        padding: 16px 16px 14px;
    }

    .ow-shell-studioia-hot-assist-brand {
        flex-basis: 150px;
    }

    .ow-shell-studioia-hot-assist-logo-frame {
        padding: 6px 8px;
        border-radius: 14px;
    }

    .ow-shell-studioia-hot-assist-logo {
        width: 150px;
    }

    .ow-shell-studioia-hot-assist-header-actions {
        gap: 6px;
    }

    .ow-shell-studioia-hot-assist-status {
        min-height: 32px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .ow-shell-studioia-hot-assist-icon-action {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .ow-shell-studioia-hot-assist-icon-action .lucide {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 420px) {
    .ow-shell-studioia-hot-assist-brand {
        flex-basis: 132px;
    }

    .ow-shell-studioia-hot-assist-logo {
        width: 132px;
    }

    .ow-shell-studioia-hot-assist-status {
        max-width: 64px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

a:focus-visible,
button:focus-visible,
.navbar-default .nav > li > a:focus-visible,
.nav.navbar-top-links a:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(11, 102, 209, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                     */
/* -------------------------------------------------------------------------- */

nav.navbar-static-side {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
    border-right: 1px solid #dde7f0;
    box-shadow: 12px 0 28px rgba(15, 23, 42, 0.06);
}

.nav-header {
    /*padding: 12px 10px 16px;*/
    background: transparent;
    border-bottom: 1px solid #e8eef5;
}

#side-menu > li.nav-header > a.ow-sidebar-logo-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

#logoOWCloud {
    background: transparent;
    border: 1px solid #e1e9f2;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    padding: 16px 12px 14px !important;
    width: 100%;
    min-height: 92px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logoOWCloud img {
    max-width: 72% !important;
    display: block;
}

#PacienteDados {
    margin-bottom: 10px;
}

#PacienteFoto {
    display: block;
    width: 100%;
    max-width: 96px !important;
    min-width: 96px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 auto;
}

#side-menu {
    padding: 0px 0px 0px;
    margin: 0px !important;
}

#side-menu > li {
    margin-bottom: 4px;
}

#ow-sidebar-tree {
    min-height: 0;
    padding-right: 4px !important;
}

.ow-sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0 10px 6px;
    padding: 0 8px 0 10px;
    border: 1px solid #d9e7f5;
    border-radius: 12px;
    background: #ffffff;
    color: #7890a8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ow-sidebar-search:focus-within {
    border-color: #91c4f4;
    background: #fbfdff;
    box-shadow: 0 0 0 3px rgba(31, 120, 190, 0.12);
}

.ow-sidebar-search .lucide {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    stroke-width: 1.7;
}

.ow-sidebar-search input {
    min-width: 0;
    flex: 1 1 auto;
    height: 34px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #27425f;
    font-size: 13px;
    font-weight: 500;
}

.ow-sidebar-search input::placeholder {
    color: #8fa4b8;
    font-weight: 400;
}

.ow-sidebar-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7890a8;
}

.ow-sidebar-search-clear:hover,
.ow-sidebar-search-clear:focus {
    background: #edf5ff;
    color: #0b66d1;
    outline: 0;
}

.ow-sidebar-search-clear .lucide {
    width: 14px;
    height: 14px;
}

.ow-sidebar-search-empty {
    margin: 8px 12px 16px;
    padding: 10px 12px;
    border: 1px dashed #cbd9e7;
    border-radius: 12px;
    color: #7890a8;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

#ow-sidebar-footer {
    flex: 0 0 auto;
    padding: 10px 8px 16px;
    border-top: 1px solid #e8eef5;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 248, 252, 0.92) 100%);
}

#ow-sidebar-footer .ow-sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #30465b;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#ow-sidebar-footer .ow-sidebar-footer-link .lucide {
    width: 18px;
    height: 18px;
    color: #597089;
    stroke-width: 1;
}

#ow-sidebar-footer .ow-sidebar-footer-link:hover,
#ow-sidebar-footer .ow-sidebar-footer-link:focus {
    background: #edf5ff;
    color: #0b66d1;
    box-shadow: inset 0 0 0 1px #d6e6f7;
    text-decoration: none;
}

#ow-sidebar-footer .ow-sidebar-footer-link:hover .lucide,
#ow-sidebar-footer .ow-sidebar-footer-link:focus .lucide {
    color: #0b66d1;
}

#ow-sidebar-tree,
#ow-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(118, 142, 168, 0.55) transparent;
}

#ow-sidebar-tree::-webkit-scrollbar,
#ow-content::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}

#ow-sidebar-tree::-webkit-scrollbar-track,
#ow-content::-webkit-scrollbar-track {
    background: transparent;
}

#ow-sidebar-tree::-webkit-scrollbar-thumb,
#ow-content::-webkit-scrollbar-thumb {
    background: rgba(118, 142, 168, 0.5);
    border-radius: 999px;
}

#ow-sidebar-tree::-webkit-scrollbar-thumb:hover,
#ow-content::-webkit-scrollbar-thumb:hover {
    background: rgba(86, 111, 138, 0.62);
}

#ow-sidebar-tree ul,
#ow-sidebar-tree li,
#ow-sidebar-tree .dx-treeview-node-container,
#ow-sidebar-tree .dx-treeview-node {
    list-style: none !important;
}

#ow-sidebar-tree .dx-checkbox,
#ow-sidebar-tree .dx-checkbox-container,
#ow-sidebar-tree .dx-treeview-item-checkbox,
#ow-sidebar-tree .dx-treeview-toggle-item-visibility {
    display: none !important;
}

#ow-sidebar-tree .dx-treeview-expander-icon-stub {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dx-scheduler-header {
    background-color: #f2f5f9;
}

.dx-button-mode-contained.dx-state-selected {
    background-color: #dde1e3;
}

    #ow-sidebar-tree .dx-treeview-item {
        margin-bottom: 2px;
        border-radius: 14px;
        overflow: hidden;
        padding: 2px 6px 2px 10px;
    }

#ow-sidebar-tree .dx-treeview-node-container {
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#ow-sidebar-tree .dx-treeview-node {
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 1px;
}

#ow-sidebar-tree > .dx-treeview-node-container > .dx-treeview-node {
    margin-bottom: 2px;
}

#ow-sidebar-tree .dx-treeview-node-container .dx-treeview-node-container {
    margin-top: 0 !important;
    padding-left: 30px !important;
}

#ow-sidebar-tree .dx-treeview-item-content {
    padding: 0 !important;
}

#ow-sidebar-tree .dx-treeview-item.dx-state-hover .dx-treeview-item-content,
#ow-sidebar-tree .dx-treeview-item.dx-state-focused .dx-treeview-item-content {
    background: #edf5fc;
}

#ow-sidebar-tree .dx-treeview-item .ow-sidebar-tree-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    padding: 9px 12px;
    color: #30465b;
    font-size: 14px;
    font-weight: 500;
    border-radius: 14px;
}

#ow-sidebar-tree .dx-treeview-node-is-leaf .ow-sidebar-tree-item {
    min-height: 24px;
    padding: 4px 8px 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
    color: #4a6178;
}

#ow-sidebar-tree .dx-treeview-item-without-checkbox > .dx-treeview-item {
    padding-left: 0 !important;
}

#ow-sidebar-tree .dx-treeview-item .ow-sidebar-tree-icon {
    width: 18px;
    height: 18px;
    font-size: 15px;
    color: #597089;
    stroke-width: 1;
}

/* Product marks: visually contained, with the same footprint as menu icons. */
#ow-sidebar-tree .dx-treeview-item .ow-sidebar-tree-suite-mark {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

#ow-sidebar-tree .dx-treeview-item .ow-sidebar-tree-suite-mark--studioia {
    flex-basis: 20px;
    width: 20px;
}

#ow-sidebar-tree .dx-treeview-node-is-leaf .ow-sidebar-tree-icon {
    display: none !important;
}

#ow-sidebar-tree .ow-sidebar-tree-item.has-financial-overdue-alert .ow-sidebar-tree-text {
    position: relative;
}

#ow-sidebar-tree .ow-sidebar-tree-item.has-financial-overdue-alert .ow-sidebar-tree-text::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 1px;
    background: #d71920;
    border-radius: 1px;
    pointer-events: none;
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-expanded,
#ow-sidebar-tree .ow-sidebar-tree-item.is-ancestor {
    background: #edf5ff;
    color: #0b66d1;
    box-shadow: inset 3px 0 0 #0b66d1, inset 0 0 0 1px #d6e6f7;
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-disabled {
    color: #7f90a3;
    opacity: 0.72;
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-disabled-leaf {
    cursor: not-allowed;
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-disabled .ow-sidebar-tree-icon,
#ow-sidebar-tree .ow-sidebar-tree-item.is-disabled .ow-sidebar-tree-disclosure {
    color: #95a6b7;
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-current {
    background: #edf5ff;
    color: #0b66d1;
    box-shadow: inset 3px 0 0 #0b66d1, inset 0 0 0 1px #d6e6f7;
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-expanded .ow-sidebar-tree-icon,
#ow-sidebar-tree .ow-sidebar-tree-item.is-ancestor .ow-sidebar-tree-icon,
#ow-sidebar-tree .ow-sidebar-tree-item.is-current .ow-sidebar-tree-icon {
    color: #0b66d1;
}

#ow-sidebar-tree .ow-sidebar-tree-item .ow-sidebar-tree-disclosure {
    position: relative;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-left: auto;
    color: #8aa0b5;
}

#ow-sidebar-tree .ow-sidebar-tree-item .ow-sidebar-tree-disclosure::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease, color 0.18s ease;
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-open .ow-sidebar-tree-disclosure::before {
    top: 0;
    transform: rotate(135deg);
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-expanded .ow-sidebar-tree-disclosure,
#ow-sidebar-tree .ow-sidebar-tree-item.is-ancestor .ow-sidebar-tree-disclosure,
#ow-sidebar-tree .ow-sidebar-tree-item.is-current .ow-sidebar-tree-disclosure {
    color: #0b66d1;
}

#ow-sidebar-tree .ow-sidebar-tree-item:hover,
#ow-sidebar-tree .ow-sidebar-tree-item:focus {
    background: #edf5ff;
    color: #0b66d1;
    box-shadow: inset 0 0 0 1px #d6e6f7;
}

#ow-sidebar-tree .ow-sidebar-tree-item.is-disabled:hover,
#ow-sidebar-tree .ow-sidebar-tree-item.is-disabled:focus {
    color: #7f90a3;
    box-shadow: none;
}

#ow-sidebar-tree .ow-sidebar-tree-item:hover .ow-sidebar-tree-icon,
#ow-sidebar-tree .ow-sidebar-tree-item:hover .ow-sidebar-tree-disclosure,
#ow-sidebar-tree .ow-sidebar-tree-item:focus .ow-sidebar-tree-icon,
#ow-sidebar-tree .ow-sidebar-tree-item:focus .ow-sidebar-tree-disclosure {
    color: #0b66d1;
}

#side-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 14px 12px 16px;
    border-radius: 14px;
    color: #30465b;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#side-menu > li > a > i.fa,
#side-menu > li > a > .lucide {
    width: 18px;
    height: 18px;
    margin-right: 0;
    text-align: center;
    color: #597089;
    font-size: 15px;
    stroke-width: 1;
}

#side-menu > li > a .nav-label {
    flex: 1 1 auto;
    min-width: 0;
}

#side-menu > li > a:hover,
#side-menu > li.active > a,
.navbar-default .nav > li > a:focus {
    background: #edf5ff;
    color: #0b66d1;
    box-shadow: inset 0 0 0 1px #d6e6f7;
}

#side-menu > li.ow-sidebar-menu-item-disabled > a.ow-sidebar-menu-link--disabled {
    color: #7f90a3;
    background: #f4f7fb;
    box-shadow: none;
}

#side-menu > li.ow-sidebar-menu-item-disabled > a.ow-sidebar-menu-link--disabled > i.fa,
#side-menu > li.ow-sidebar-menu-item-disabled > a.ow-sidebar-menu-link--disabled > .lucide {
    color: #95a6b7;
}

#side-menu > li.ow-sidebar-menu-item-disabled > a.ow-sidebar-menu-link--disabled-leaf {
    cursor: not-allowed;
}

#side-menu > li.ow-sidebar-menu-item-disabled > a.ow-sidebar-menu-link--disabled-leaf:hover,
#side-menu > li.ow-sidebar-menu-item-disabled > a.ow-sidebar-menu-link--disabled-leaf:focus {
    background: #f4f7fb;
    color: #7f90a3;
    box-shadow: none;
}

#side-menu > li > a:hover > i.fa,
#side-menu > li.active > a > i.fa,
#side-menu > li > a:hover > .lucide,
#side-menu > li.active > a > .lucide {
    color: #0b66d1;
}

.nav.nav-second-level,
.nav.nav-third-level,
.nav > li.active,
ul.nav-second-level {
    background: transparent !important;
}

.nav-second-level,
.nav-third-level {
    padding: 6px 0 8px;
}

.nav-second-level li,
.nav-third-level li {
    margin-bottom: 2px;
}

.nav-second-level li a,
.nav-third-level li a {
    margin: 0 0 0 12px;
    padding: 10px 12px 10px 42px;
    border-radius: 12px;
    color: #506579;
    font-size: 13px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-second-level li a:hover,
.nav-third-level li a:hover,
.nav.nav-second-level > li.active > a {
    background: #f4f8fc;
    color: #174d84;
}

.metismenu .arrow {
    width: 16px;
    margin-left: auto;
    color: #8aa0b5;
    text-align: center;
    line-height: 1;
}

.metismenu .active > a > .fa.arrow,
.metismenu .active > a > .glyphicon.arrow,
.metismenu .active > a > .ion.arrow {
    color: #0b66d1;
}

body.mini-navbar #side-menu {
    padding-left: 8px;
    padding-right: 8px;
}

body.mini-navbar #side-menu > li > a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.mini-navbar #side-menu > li > a > i.fa,
body.mini-navbar #side-menu > li > a > .lucide {
    width: auto;
    height: 16px;
    font-size: 16px;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar {
    flex-basis: 74px;
    width: 74px;
}

#ow-app.ow-sidebar-collapsed #ow-main {
    min-width: 0;
}

#ow-app.ow-sidebar-collapsed .nav-header {
    padding-left: 8px;
    padding-right: 8px;
}

#ow-app.ow-sidebar-collapsed #logoOWCloud {
    width: 100%;
    min-height: 52px;
    padding: 8px 6px !important;
    border-radius: 14px;
}

#ow-app.ow-sidebar-collapsed #logoOWCloud img {
    max-width: 100% !important;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar-tree {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

#ow-app.ow-sidebar-collapsed .ow-sidebar-search,
#ow-app.ow-sidebar-collapsed .ow-sidebar-search-empty {
    display: none !important;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar-tree .ow-sidebar-tree-text,
#ow-app.ow-sidebar-collapsed #ow-sidebar-tree .ow-sidebar-tree-disclosure {
    display: none !important;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar-tree .dx-treeview-node-container .dx-treeview-node-container {
    display: none !important;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar-tree .ow-sidebar-tree-item {
    justify-content: center;
    gap: 0;
    min-height: 42px;
    padding: 9px 0;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar-tree .ow-sidebar-tree-icon {
    margin: 0;
}

#ow-app.ow-sidebar-collapsed #PacienteDados .dropdown.profile-element {
    display: none;
}

#ow-app.ow-sidebar-collapsed #PacienteDados > [class*="col-"] {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#ow-app.ow-sidebar-collapsed #PacienteFoto {
    max-width: 42px !important;
    min-width: 42px !important;
    border-radius: 12px;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar-footer {
    padding-left: 4px;
    padding-right: 4px;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar-footer .ow-sidebar-footer-link {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

#ow-app.ow-sidebar-collapsed #ow-sidebar-footer .ow-sidebar-footer-text {
    display: none;
}

/* Dica visual: no rail recolhido o item tem cara de "botão" clicável ao passar o mouse */
#ow-app.ow-sidebar-collapsed #ow-sidebar-tree .ow-sidebar-tree-item {
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Flyout do rail recolhido (submenu do item sob o cursor)                     */
/* -------------------------------------------------------------------------- */

.ow-sidebar-flyout {
    position: fixed;
    z-index: 2050;
    display: none;
    min-width: 208px;
    max-width: 280px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e2ebf4;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 40, 70, 0.18), 0 2px 6px rgba(15, 40, 70, 0.08);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    pointer-events: none;
}

.ow-sidebar-flyout.ow-sidebar-flyout--visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ow-sidebar-flyout-header {
    display: block;
    padding: 8px 12px;
    color: #0b66d1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 10px;
}

.ow-sidebar-flyout-list + .ow-sidebar-flyout-header,
.ow-sidebar-flyout-header + .ow-sidebar-flyout-list {
    margin-top: 2px;
}

.ow-sidebar-flyout--leaf .ow-sidebar-flyout-header.ow-sidebar-flyout-header-link {
    color: #30465b;
    font-weight: 600;
    cursor: pointer;
}

.ow-sidebar-flyout--leaf .ow-sidebar-flyout-header-link:hover {
    background: #edf5fc;
    color: #0b66d1;
}

.ow-sidebar-flyout-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-top: 4px;
    margin-top: 4px;
    border-top: 1px solid #eef3f8;
}

.ow-sidebar-flyout-link {
    display: block;
    padding: 7px 12px;
    color: #4a6178;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
}

.ow-sidebar-flyout-link:hover,
.ow-sidebar-flyout-link:focus {
    background: #edf5fc;
    color: #0b66d1;
    outline: none;
}

.ow-sidebar-flyout-group {
    padding: 8px 12px 2px;
    color: #7f90a3;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ow-sidebar-flyout-sublist {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-left: 6px;
}

/* Some junto do rail em telas pequenas — lá o menu vira overlay completo */
@media (max-width: 768px) {
    .ow-sidebar-flyout {
        display: none !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Topbar                                                                      */
/* -------------------------------------------------------------------------- */

#ow-topbar {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

#navigationNavBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    min-height: 68px;
    margin-bottom: 0;
    padding: 0px 10px;
    border-bottom: 1px solid #dfe8f0;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

#ow-topbar.is-scrolled #navigationNavBar {
    border-bottom-color: #d8e2eb;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

#navigationNavBar .navbar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    float: none;
    flex: 1 1 auto;
    min-width: 0;
}

#navigationNavBar .navbar-right {
    float: none !important;
    margin: 0 !important;
    margin-left: auto !important;
}

#ow-sidebar-toggle.ow-shell-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 50px;
    height: 50px;
    margin: 0 12px 0 10px !important;
    border: 1px solid #d9e6f2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #1e486f !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#ow-sidebar-toggle.ow-shell-sidebar-toggle:hover,
#ow-sidebar-toggle.ow-shell-sidebar-toggle:focus {
    background: #ffffff;
    border-color: #bcd3e8;
    color: #0b66d1 !important;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#ow-sidebar-toggle.ow-shell-sidebar-toggle .lucide {
    width: 22px;
    height: 22px;
    stroke-width: 1;
}

.navbar-form-custom {
    display: flex;
    align-items: center;
    height: auto;
    margin: 0 !important;
    padding-top: 0;
    float: none;
    flex: 0 1 auto;
}

#navigationNavBar .navbar-form-custom .form-group {
    display: flex;
    align-items: center;
}

#divTermoPesquisa {
    width: 320px;
    max-width: calc(100vw - 180px);
    height: 46px !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    border: 1px solid #dbe6ef !important;
    border-radius: 14px !important;
    background: #f7fbff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04) !important;
}

#divTermoPesquisa.dx-texteditor,
#divTermoPesquisa .dx-texteditor,
#divTermoPesquisa .dx-texteditor-container {
    background: transparent !important;
    border: 0 !important;
}

#divTermoPesquisa .dx-texteditor-input {
    height: 44px;
    padding-left: 14px !important;
    padding-right: 44px !important;
    color: #243447;
    font-size: 14px;
}

#divTermoPesquisa .dx-placeholder:before {
    padding-left: 14px !important;
    padding-right: 44px !important;
    color: #8da0b2;
}

#divTermoPesquisa .dx-icon-search {
    right: 12px !important;
    padding-right: 0 !important;
    color: #8399ad;
    font-size: 16px;
}

#divTermoPesquisa.dx-state-focused,
#divTermoPesquisa.dx-texteditor.dx-state-focused,
#divTermoPesquisa:focus-within {
    border-color: #98c8fb !important;
    box-shadow: 0 0 0 4px rgba(11, 102, 209, 0.09), 0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

#navigationNavBar .navbar-top-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding-left: 10px;
}

#navigationNavBar .navbar-top-links > li {
    margin-right: 0 !important;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

#navigationNavBar .navbar-top-links > li > a,
#navigationNavBar .navbar-top-links > li > .dropdown-toggle,
#navigationNavBar .navbar-top-links > li > .pulse-button,
#navigationNavBar .navbar-top-links > li#IdNegatoscopio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid #e3ebf3;
    background: #f8fbfe !important;
    color: #395066;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#navigationNavBar .navbar-top-links > li > a:hover,
#navigationNavBar .navbar-top-links > li > .dropdown-toggle:hover,
#navigationNavBar .navbar-top-links > li > .pulse-button:hover,
#navigationNavBar .navbar-top-links > li#IdNegatoscopio:hover {
    background: #eef5fc !important;
    color: #0b66d1;
    border-color: #d7e6f6;
}

#navigationNavBar .navbar-top-links > li#IdNegatoscopio {
    font-size: 20px !important;
}

#navigationNavBar .navbar-top-links > li > a .fa,
#navigationNavBar .navbar-top-links > li > .dropdown-toggle .fa,
#navigationNavBar .navbar-top-links > li#IdNegatoscopio.fa,
#navigationNavBar .navbar-top-links > li > a .lucide,
#navigationNavBar .navbar-top-links > li > .dropdown-toggle .lucide,
#navigationNavBar .navbar-top-links > li#IdNegatoscopio .lucide,
#navigationNavBar .navbar-minimalize .lucide {
    width: 22px;
    height: 22px;
    font-size: 22px;
    stroke-width: 1;
}

#navigationNavBar .navbar-top-links > li > span.welcome-message {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 6px 0 0;
}

#navigationNavBar .count-info,
#navigationNavBar .pulse-button {
    position: relative;
}

#navigationNavBar .count-info .lucide,
#navigationNavBar .pulse-button .lucide {
    width: 20px;
    height: 20px;
    stroke-width: 1;
}

#navigationNavBar .dropdown-menu .lucide {
    width: 16px;
    height: 16px;
    stroke-width: 1;
}

#navigationNavBar .alert-icon .lucide {
    width: 18px;
    height: 18px;
    stroke-width: 1;
}

#navigationNavBar .signAlert .lucide {
    position: relative;
    z-index: 4;
    width: 20px;
    height: 20px;
    stroke-width: 1;
}

#navigationNavBar .count-info .label,
#navigationNavBar .navbar-top-links > li > a .label {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 20px;
    padding: 3px 6px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.22);
}

#bemvindoDiv {
    font-size: 13px !important;
    color: #6f8295 !important;
    font-weight: 500;
}

#navigationNavBar .dropdown-menu {
    margin-top: 10px;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Desktop Shell Viewport                                                      */
/* -------------------------------------------------------------------------- */

@media (min-width: 769px) {
    body.ow-layout-v2 {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body.ow-layout-v2 #ow-app,
    body.ow-layout-v2 #ow-sidebar,
    body.ow-layout-v2 #ow-main,
    body.ow-layout-v2 #wrapper,
    body.ow-layout-v2 #page-wrapper.gray-bg {
        min-height: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body.ow-layout-v2 #ow-sidebar {
        display: flex;
    }

    body.ow-layout-v2 #ow-sidebar-nav,
    body.ow-layout-v2 #ow-sidebar .sidebar-collapse {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        overflow: hidden;
    }

    body.ow-layout-v2 #side-menu {
        flex: 0 0 auto;
    }

    body.ow-layout-v2 #ow-sidebar-tree {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-gutter: auto;
    }

    body.ow-layout-v2 #page-wrapper.gray-bg {
        gap: 0;
    }

    body.ow-layout-v2 #ow-topbar {
        position: relative;
        z-index: 12;
        flex: 0 0 auto;
        background: transparent;
    }

    body.ow-layout-v2 #ow-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-gutter: stable both-edges;
    }

    body.ow-layout-v2 #ow-content > #contentPanel {
        flex: 1 0 auto;
        min-height: 0;
    }

    body.ow-layout-v2 #ow-footer {
        margin-top: auto;
        flex: 0 0 auto;
    }

    body.ow-layout-v2 #ow-footer .footer {
        margin-top: 6px;
        background: linear-gradient(180deg, rgba(247, 250, 253, 0.1) 0%, rgba(244, 248, 252, 0.92) 100%);
        border-top: 1px solid rgba(215, 226, 235, 0.92);
    }
}

/* -------------------------------------------------------------------------- */
/* Module views                                                                */
/* -------------------------------------------------------------------------- */

#contentPanel .s-DialogToolbar.s-Toolbar.clearfix:not(.ow-view-header-shell),
.dx-overlay-content .s-DialogToolbar.s-Toolbar.clearfix:not(.ow-view-header-shell),
#contentPanel .ow-toolbar-card:not(.ow-view-header-shell),
.dx-overlay-content .ow-toolbar-card:not(.ow-view-header-shell) {
    margin-bottom: 16px;
    background: transparent;
}

#contentPanel .s-DialogToolbar.s-Toolbar.clearfix .clear,
.dx-overlay-content .s-DialogToolbar.s-Toolbar.clearfix .clear {
    display: none;
}

    #contentPanel .s-DialogToolbar.s-Toolbar.clearfix:not(.ow-view-header),
    .dx-overlay-content .s-DialogToolbar.s-Toolbar.clearfix:not(.ow-view-header) {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 14px 16px !important;
        /* border: 1px solid #dbe5ef; */
        /* border-radius: 18px; */
        background: transparent;
        /* box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06); */
    }

#contentPanel .ow-view-header:not(.ow-view-header-shell),
.dx-overlay-content .ow-view-header:not(.ow-view-header-shell) {
    padding: 0;
}

#contentPanel .ow-toolbar-actions,
.dx-overlay-content .ow-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#contentPanel .ow-toolbar-actions-card,
.dx-overlay-content .ow-toolbar-actions-card {
    padding: 14px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

/* Shared header shell is owned by ow-views.css. Keep shell-refresh neutral there. */
#contentPanel .ow-view-header-shell .ow-toolbar-actions,
.dx-overlay-content .ow-view-header-shell .ow-toolbar-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 8px;
}

#contentPanel .ow-view-header-shell .ow-toolbar-actions-card,
.dx-overlay-content .ow-view-header-shell .ow-toolbar-actions-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.swal2-actions .lucide,
.swal2-popup .lucide {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: text-bottom;
    stroke-width: 1;
}


#contentPanel .grid-container.ow-view-content:not(#printDiv),
.dx-overlay-content .grid-container.ow-view-content,
#contentPanel .ow-view-content:not(.grid-container),
.dx-overlay-content .ow-view-content:not(.grid-container) {
    padding: 16px 18px;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

#contentPanel .ow-collapsible-toggle,
.dx-overlay-content .ow-collapsible-toggle {
    min-height: 46px;
    padding: 10px 14px;
    /*border-radius: 14px;*/
}

#contentPanel .ow-collapsible-content,
.dx-overlay-content .ow-collapsible-content {
    padding: 14px 16px 8px;
    border-radius: 0 0 14px 14px;
}

#contentPanel .ow-view-content label,
#contentPanel .ow-view-content .control-label,
#contentPanel .ow-view-content .ow-cadastro-filter-label,
.dx-overlay-content .ow-view-content label,
.dx-overlay-content .ow-view-content .control-label,
.dx-overlay-content .ow-popup-body label {
    color: #36516b;
    font-size: 13px;
    font-weight: 400;
}

#contentPanel .ow-view-content .form-group,
.dx-overlay-content .ow-view-content .form-group {
    margin-bottom: 14px;
}

#contentPanel .ow-view-content .dx-texteditor,
#contentPanel .ow-view-content .dx-selectbox,
#contentPanel .ow-view-content .dx-tagbox,
#contentPanel .ow-view-content .dx-datebox,
#contentPanel .ow-view-content .dx-numberbox,
.dx-overlay-content .ow-view-content .dx-texteditor,
.dx-overlay-content .ow-view-content .dx-selectbox,
.dx-overlay-content .ow-view-content .dx-tagbox,
.dx-overlay-content .ow-view-content .dx-datebox,
.dx-overlay-content .ow-view-content .dx-numberbox {
    border-radius: 14px;
}

#contentPanel .ow-view-content .dx-editor-outlined.dx-state-hover,
#contentPanel .ow-view-content .dx-dropdowneditor.dx-state-hover,
#contentPanel .ow-view-content .dx-textarea.dx-state-hover .dx-editor-outlined,
.dx-overlay-content .ow-view-content .dx-editor-outlined.dx-state-hover,
.dx-overlay-content .ow-view-content .dx-dropdowneditor.dx-state-hover,
.dx-overlay-content .ow-view-content .dx-textarea.dx-state-hover .dx-editor-outlined {
    border-color: #c4d4e4;
}

#contentPanel .ow-view-content .dx-editor-outlined.dx-state-focused,
#contentPanel .ow-view-content .dx-dropdowneditor.dx-state-focused,
#contentPanel .ow-view-content .dx-textarea.dx-state-focused .dx-editor-outlined,
#contentPanel .ow-view-content .dx-editor-outlined:focus-within,
#contentPanel .ow-view-content .dx-dropdowneditor:focus-within,
.dx-overlay-content .ow-view-content .dx-editor-outlined.dx-state-focused,
.dx-overlay-content .ow-view-content .dx-dropdowneditor.dx-state-focused,
.dx-overlay-content .ow-view-content .dx-textarea.dx-state-focused .dx-editor-outlined,
.dx-overlay-content .ow-view-content .dx-editor-outlined:focus-within,
.dx-overlay-content .ow-view-content .dx-dropdowneditor:focus-within {
    border-color: #98c8fb;
    box-shadow: 0 0 0 4px rgba(11, 102, 209, 0.09), 0 10px 24px rgba(15, 23, 42, 0.05);
}

#contentPanel .ow-view-content .dx-texteditor-input,
#contentPanel .ow-view-content .dx-texteditor-input-container,
#contentPanel .ow-view-content .dx-placeholder,
.dx-overlay-content .ow-view-content .dx-texteditor-input,
.dx-overlay-content .ow-view-content .dx-texteditor-input-container,
.dx-overlay-content .ow-view-content .dx-placeholder {
    color: #17324d;
    font-size: 14px;
}

#contentPanel .ow-view-content .dx-placeholder,
.dx-overlay-content .ow-view-content .dx-placeholder {
    color: #8092a5;
}

#contentPanel .ow-view-content .dx-texteditor-buttons-container,
#contentPanel .ow-view-content .dx-dropdowneditor-button,
.dx-overlay-content .ow-view-content .dx-texteditor-buttons-container,
.dx-overlay-content .ow-view-content .dx-dropdowneditor-button {
    border-radius: 12px;
}

#contentPanel .ow-view-content .dx-texteditor.dx-state-readonly,
#contentPanel .ow-view-content .dx-texteditor.dx-state-readonly .dx-texteditor-input,
.dx-overlay-content .ow-view-content .dx-texteditor.dx-state-readonly,
.dx-overlay-content .ow-view-content .dx-texteditor.dx-state-readonly .dx-texteditor-input {
    background: #f3f7fb;
    color: #28435d;
    font-weight: 400;
}

#contentPanel .category-anchor,
.dx-overlay-content .category-anchor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f4f8fc;
    color: #36516b;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
}

#contentPanel .category-anchor:hover,
#contentPanel .category-anchor:focus,
.dx-overlay-content .category-anchor:hover,
.dx-overlay-content .category-anchor:focus {
    background: #eaf2fb;
    color: #174d84;
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Generic cards / ibox                                                        */
/* -------------------------------------------------------------------------- */

.ibox {
    margin-bottom: 20px;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ibox-title,
.ibox-content {
    border-color: transparent;
}

.ibox-title {
    min-height: 52px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #edf2f7;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}

.ibox-title h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #243447;
}

.ibox-content {
    padding: 18px;
    border-radius: 0 0 16px 16px;
}

.ibox-tools {
    top: 12px;
    right: 14px;
}

.ibox-tools a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #6d8195;
}

.ibox-tools a:hover {
    background: #eef5fc;
    color: #0b66d1;
}

/* -------------------------------------------------------------------------- */
/* Summary dashboard                                                           */
/* -------------------------------------------------------------------------- */

#printDiv.grid-container {
    background: transparent !important;
}

#printDiv > .fieldset.ui-widget.ui-widget-content.ui-corner-all {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

#printDiv > .fieldset > .panel-body {
    padding: 4px 0 0 !important;
    background: transparent;
}

#infoBemVindo {
    margin-bottom: 18px;
    color: #17324d;
    font-size: 24px !important;
    font-weight: 400 !important;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

#infoAgenda,
#infoComercial {
    position: relative;
    border: 1px solid #dfe7ef;
    border-radius: 20px;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

#infoAgenda::before,
#infoComercial::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

#infoAgenda::before {
    background: linear-gradient(90deg, #30a6f8 0%, #7bd4ff 100%);
}

#infoComercial::before {
    background: linear-gradient(90deg, #e6a700 0%, #ffd36b 100%);
}

#infoAgenda {
    padding: 22px !important;
}

#infoAgenda > div:first-child {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#infoAgenda > div:first-child > div:first-child,
#infoFinanceiraContasReceber > div:first-child > span:first-child,
#infoFinanceiraContasPagar > div:first-child > span:first-child,
#infoComercial > span:first-child {
    color: #17324d;
    font-size: 16px !important;
    font-weight: 400 !important;
}

#infoAgenda > div:first-child > a,
#btnOcultarReceber,
#btnOcultarPagar,
#btnOcultarinfoComercial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    border-radius: 10px;
    background: rgba(232, 239, 246, 0.7);
    color: #73869a;
    transition: background-color 0.18s ease, color 0.18s ease;
}

#infoAgenda > div:first-child > a:hover,
#btnOcultarReceber:hover,
#btnOcultarPagar:hover,
#btnOcultarinfoComercial:hover {
    background: #edf3f8;
    color: #54708b;
    text-decoration: none;
}

#infoAgenda > div:first-child > a .fa,
#btnOcultarReceber .fa,
#btnOcultarPagar .fa,
#btnOcultarinfoComercial .fa,
#infoAgenda > div:first-child > a .lucide,
#btnOcultarReceber .lucide,
#btnOcultarPagar .lucide,
#btnOcultarinfoComercial .lucide {
    width: 14px !important;
    height: 14px !important;
    font-size: 14px !important;
    stroke-width: 1;
}

#infoAgenda > div:first-child > a img {
    width: 38px !important;
}

#infoFinanceira {
    margin-top: 18px;
    padding: 0 !important;
    background: transparent !important;
}

#infoFinanceira > .row,
#infoComercial > .row {
    margin-left: -9px;
    margin-right: -9px;
}

#infoFinanceira > .row > [class*="col-"],
#infoComercial > .row > [class*="col-"] {
    padding-left: 9px;
    padding-right: 9px;
}

#infoFinanceiraContasReceber,
#infoFinanceiraContasPagar {
    min-height: 100%;
    padding: 0 9px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
}

#infoFinanceiraContasReceber > div:first-child,
#infoFinanceiraContasPagar > div:first-child {
    position: relative;
    min-height: 100%;
    padding: 22px 22px 18px !important;
    border: 1px solid #dfe7ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

#infoFinanceiraContasReceber > div:first-child::before,
#infoFinanceiraContasPagar > div:first-child::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 4px;
    border-radius: 18px 18px 0 0;
}

#infoFinanceiraContasReceber > div:first-child::before {
    background: linear-gradient(90deg, #2cab66 0%, #85d9a4 100%);
}

#infoFinanceiraContasPagar > div:first-child::before {
    background: linear-gradient(90deg, #e05b67 0%, #f2a0a7 100%);
}

#infoComercial {
    margin-top: 18px;
    padding: 22px !important;
}

#infoAgenda .row,
#infoFinanceira .row,
#infoComercial .row {
    margin-top: 18px !important;
}

#infoAgenda .row > [class*="col-"],
#infoFinanceira .row > [class*="col-"],
#infoComercial .row > [class*="col-"] {
    margin-bottom: 14px;
}

#printDiv .ibox {
    margin-bottom: 12px;
    border-color: #e4ebf2;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#printDiv .ibox:hover {
    transform: translateY(-2px);
    border-color: #d6e4f3;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

#printDiv .ibox-title {
    min-height: 0;
    padding: 14px 16px 10px !important;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

#printDiv .ibox-title h5 {
    font-size: 13px;
    font-weight: 500;
    color: #36516b;
}

#printDiv .ibox-content {
    min-height: 112px;
    padding: 14px 16px 18px !important;
    background: #fff;
}

#printDiv .ibox-content h2.no-margins {
    font-size: 34px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: #17324d;
}

#printDiv .ibox-content > div,
#printDiv .ibox-content > small,
#printDiv .ibox-content .stat-percent {
    color: #6c8093;
    font-size: 12px;
    line-height: 1.45;
}

#printDiv .stat-percent .lucide {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: text-bottom;
    stroke-width: 1;
}

#printDiv #valorRecebidoHoje,
#printDiv #saldoTotalOWPay {
    color: #1469d4 !important;
}

#printDiv #valorReceberAtrasado,
#printDiv #valorPagarAtrasado {
    color: #d64545 !important;
}

#printDiv .masked::before {
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #243447;
    letter-spacing: 0.16em;
}

/* -------------------------------------------------------------------------- */
/* Agenda V2                                                                   */
/* -------------------------------------------------------------------------- */

#agendaV2Page .ow-agenda-v2-toolbar.ow-view-header {
    padding: 0;
}

#agendaV2Page .ow-agenda-v2-toolbar .ow-toolbar-actions-card {
    padding: 14px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

#agendaV2Page .ow-agenda-v2-toolbar .ow-toolbar-actions {
    gap: 10px;
}

#agendaV2Page .ow-agenda-v2-filter label {
    display: inline-block;
    margin-bottom: 8px;
    color: #36516b;
    font-size: 13px;
    font-weight: 500;
}

#agendaV2Page .ow-agenda-v2-filter .dx-texteditor,
#agendaV2Page .ow-agenda-v2-filter .dx-dropdowneditor,
#agendaV2Page .ow-agenda-v2-filter .dx-tagbox,
#agendaV2Page .ow-agenda-v2-filter .dx-selectbox {
    border-radius: 14px;
}

#agendaV2Page #agendaV2Scheduler.dx-scheduler {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d8e4ef;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ow-dentist-selectbox.dx-selectbox,
.ow-dentist-selectbox.dx-dropdowneditor,
.ow-dentist-selectbox.dx-texteditor {
    overflow: hidden;
    border-radius: 14px !important;
}

.ow-dentist-selectbox .dx-texteditor-container,
.ow-dentist-selectbox .dx-texteditor-input-container,
.ow-dentist-selectbox .dx-texteditor-input,
.ow-dentist-selectbox .dx-texteditor-buttons-container,
.ow-dentist-selectbox .dx-dropdowneditor-button,
.ow-dentist-selectbox .dx-placeholder {
    border-radius: inherit;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    #wrapper > #page-wrapper > #contentPanel {
        padding: 14px 14px 24px;
    }

    #divTermoPesquisa {
        width: 260px;
    }

    #bemvindoDiv,
    .welcome-message {
        display: none;
    }
}

@media (max-width: 991px) {
    #navigationNavBar {
        align-items: center;
        flex-wrap: nowrap;
    }

    #navigationNavBar .navbar-top-links > li#IdNegatoscopio {
        display: none !important;
    }

    #navigationNavBar .navbar-header {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    #navigationNavBar .navbar-right {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        margin-left: auto !important;
    }

    #navigationNavBar .navbar-top-links {
        width: auto;
        max-width: min(42vw, 260px);
        justify-content: flex-end;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 8px;
    }
}

@media (max-width: 560px) {
    #navigationNavBar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #navigationNavBar .navbar-header,
    #navigationNavBar .navbar-right {
        flex: 1 1 100%;
        width: 100%;
    }

    #navigationNavBar .navbar-right {
        margin-left: 0 !important;
    }

    #navigationNavBar .navbar-top-links {
        width: 100%;
        max-width: none;
        justify-content: flex-end;
        flex-wrap: wrap;
        overflow: visible;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    body.ow-layout-v2 {
        overflow-x: hidden;
    }

    #ow-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(244px, calc(100vw - 40px));
        max-width: calc(100vw - 40px);
        height: 100vh;
        height: 100dvh;
        transform: translateX(calc(-100% - 18px));
        transition: transform 0.24s ease, box-shadow 0.24s ease;
        z-index: 2040;
    }

    #ow-sidebar-nav,
    #ow-sidebar .sidebar-collapse {
        height: 100%;
    }

    #ow-main,
    #wrapper,
    #page-wrapper.gray-bg {
        width: 100%;
    }

    #ow-app.ow-sidebar-open #ow-sidebar {
        transform: translateX(0);
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
    }

    #wrapper > #page-wrapper > #contentPanel {
        padding: 12px 10px 20px;
    }

    #navigationNavBar {
        padding: 8px 10px;
        gap: 10px;
    }

    #ow-sidebar-toggle.ow-shell-sidebar-toggle {
        margin-right: 8px;
    }

    .navbar-form-custom {
        margin-left: 0;
    }

    #divTermoPesquisa {
        width: 210px;
        max-width: calc(100vw - 116px);
    }

    #ow-sidebar-footer {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    #printDiv > .fieldset > .panel-body {
        padding: 2px 0 0 !important;
    }

    body.body-small.mini-navbar .navbar-static-side,
    .fixed-sidebar.body-small.mini-navbar .navbar-static-side {
        width: 224px;
    }

    body.body-small.mini-navbar #side-menu {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.body-small.mini-navbar #side-menu > li > a {
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 14px;
    }

    body.body-small.mini-navbar #side-menu > li > a > i.fa {
        width: 18px;
    }

    body.body-small.mini-navbar #side-menu > li > a > .lucide {
        width: 18px;
        height: 18px;
    }

    body.body-small.mini-navbar .nav-label,
    body.body-small.mini-navbar .navbar-default .nav li a span {
        display: inline-block !important;
    }

    body.body-small.mini-navbar .metismenu .arrow {
        display: inline-block !important;
    }

    body.body-small.mini-navbar #logoOWCloud {
        padding: 14px 10px !important;
    }

    body.body-small.mini-navbar #logoOWCloud img {
        max-width: 88% !important;
    }

    #infoAgenda,
    #infoComercial,
    #infoFinanceiraContasReceber,
    #infoFinanceiraContasPagar {
        border-radius: 18px;
    }

    #printDiv .ibox-content {
        min-height: 96px;
    }

    #printDiv .ibox-content h2.no-margins {
        font-size: 30px;
    }

    #contentPanel .s-DialogToolbar.s-Toolbar.clearfix:not(.ow-view-header),
    .dx-overlay-content .s-DialogToolbar.s-Toolbar.clearfix:not(.ow-view-header),
    #contentPanel .ow-toolbar-actions-card,
    .dx-overlay-content .ow-toolbar-actions-card,
    #contentPanel .grid-container.ow-view-content:not(#printDiv),
    .dx-overlay-content .grid-container.ow-view-content {
        padding: 12px;
    }

    #agendaV2Page .ow-agenda-v2-toolbar .ow-toolbar-actions-card {
        padding: 12px;
    }

    #agendaV2Page .ow-agenda-v2-toolbar .ow-toolbar-actions {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #wrapper > #page-wrapper > #contentPanel {
        padding-left: 8px;
        padding-right: 8px;
    }

    #navigationNavBar .navbar-top-links {
        gap: 2px;
    }

    #navigationNavBar .navbar-top-links > li > a,
    #navigationNavBar .navbar-top-links > li > .dropdown-toggle,
    #navigationNavBar .navbar-top-links > li > .pulse-button,
    #navigationNavBar .navbar-top-links > li#IdNegatoscopio {
        min-width: 42px;
        height: 42px;
        padding: 0 9px;
    }

    #navigationNavBar .navbar-top-links > li > a .lucide,
    #navigationNavBar .navbar-top-links > li > .dropdown-toggle .lucide,
    #navigationNavBar .navbar-top-links > li#IdNegatoscopio .lucide,
    #navigationNavBar .navbar-minimalize .lucide {
        width: 20px;
        height: 20px;
    }

    #infoBemVindo {
        font-size: 20px !important;
    }

    #printDiv .ibox-content h2.no-margins {
        font-size: 28px;
    }

    #agendaV2Page .ow-agenda-v2-toolbar .ow-toolbar-actions {
        gap: 6px;
    }

    #agendaV2Page .ow-agenda-v2-toolbar .ow-toolbar-icon-only {
        width: 44px;
    }
}

.dx-tabpanel-tabs-position-top > .dx-tabpanel-tabs .dx-tabs-wrapper {
    border-block-start: 0px;
    border-block-end: 0px;
}
