﻿﻿.ow-audit-meta {
    margin: 0;
    padding: 8px 0;
    text-align: left;
    width: 100%;
}

.ow-audit-meta-text {
    font-size: 12px;
    color: #777;
    line-height: 1.3;
}

.ow-popup-audit-meta {
    color: #777;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    flex: 1 1 auto;
    margin-right: 8px;
}

.ow-popup-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.ow-popup-footer-actions-start {
    justify-content: flex-start;
}

.ow-popup-layout {
    padding: 10px 12px 0;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.ow-popup-host-content {
    position: relative;
    min-height: 220px;
}

.ow-popup-host-is-busy .ow-popup-body,
.ow-popup-host-is-busy .ow-popup-footer {
    pointer-events: none;
}

.ow-popup-host-busy-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
}

.ow-popup-host-busy-surface {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 18px;
    border: 1px solid #d8e3ee;
    border-radius: 14px;
    background: #ffffff;
    color: #4a617d;
    box-shadow: 0 16px 32px rgba(31, 120, 190, 0.08);
}

.ow-popup-host-busy-spinner {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 3px solid #d8e3ee;
    border-radius: 50%;
    border-top-color: #1f78be;
    animation: ow-popup-host-spin 0.9s linear infinite;
}

.ow-popup-host-busy-copy {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

body.ow-popup-modal-open [class*="dxpcDropDown"],
body.ow-popup-modal-open [class*="dxeDropDownWindow"],
body.ow-popup-modal-open [id*="_DDD_"] {
    z-index: 200000 !important;
}

@keyframes ow-popup-host-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ow-popup-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.ow-photo-viewer-popup.odontograma-v2-photo-viewer-popup .dx-overlay-content,
.ow-photo-viewer-popup.patient-specialties-v2-implant-photo-viewer-popup .dx-overlay-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(26, 55, 83, 0.22);
}

.ow-photo-viewer-popup.odontograma-v2-photo-viewer-popup .dx-popup-content,
.ow-photo-viewer-popup.patient-specialties-v2-implant-photo-viewer-popup .dx-popup-content {
    padding: 0;
    background: #f6f9fc;
}

.ow-photo-viewer-layout.odontograma-v2-photo-viewer {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 620px;
    padding: 0;
    background: #f6f9fc;
}

.ow-photo-viewer-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #d9e6f2;
    background: #ffffff;
}

.ow-photo-viewer-title-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.ow-photo-viewer-title {
    color: #1f3347;
    font-size: 18px;
    font-weight: 470;
    line-height: 1.25;
}

.ow-photo-viewer-subtitle {
    margin-top: 2px;
    color: #71879d;
    font-size: 12px;
    line-height: 1.35;
}

.ow-photo-viewer-commandbar {
    display: block;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 14px;
    border-bottom: 1px solid #d9e6f2;
    background: #fbfdff;
    scrollbar-width: thin;
}

.ow-photo-viewer-commandbar::-webkit-scrollbar {
    height: 6px;
}

.ow-photo-viewer-commandbar::-webkit-scrollbar-thumb {
    background: #c2d5e6;
    border-radius: 999px;
}

.ow-photo-viewer-toolgroups {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    min-width: 0;
    width: max-content;
}

.ow-photo-viewer-action-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ow-photo-viewer-action-btn.ow-toolbar-btn {
    min-height: 31px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 470;
    white-space: nowrap;
}

.ow-photo-viewer-action-btn.ow-toolbar-icon-only {
    width: 31px;
    min-width: 31px;
    padding: 6px;
}

.ow-photo-viewer-action-btn i[data-lucide],
.ow-photo-viewer-action-btn .lucide {
    width: 15px;
    height: 15px;
}

.ow-photo-viewer-action-btn.is-active {
    border-color: #1f78be;
    background: #e8f4fe;
    color: #174f7d;
    box-shadow: inset 0 0 0 1px rgba(31, 120, 190, 0.16);
}

.ow-photo-viewer-status.odontograma-v2-photo-viewer-status {
    min-width: 0;
    color: #48627b;
    font-size: 12px;
    line-height: 1.45;
    padding: 7px 10px;
    border: 1px solid #d7e5f1;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #f8fbfe;
    text-align: left;
}

.ow-photo-viewer-ai.odontograma-v2-photo-viewer-ai {
    display: none;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #d8e6f2;
    border-radius: 8px;
    background: #ffffff;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-shell {
    display: grid;
    gap: 8px;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-row {
    display: grid;
    gap: 3px;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-label {
    color: #5d7f9e;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-value {
    color: #2f465d;
    font-size: 12px;
    line-height: 1.45;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-compare {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-chip {
    padding: 7px 10px;
    border: 1px solid #d8e6f2;
    border-radius: 8px;
    background: #f8fbfe;
    color: #38526b;
    font-size: 12px;
    line-height: 1.45;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-chip strong {
    color: #173552;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #7890a6;
    font-size: 11px;
    line-height: 1.4;
}

.ow-photo-viewer-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 16px;
    overflow: hidden;
}

.ow-photo-viewer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.ow-photo-viewer-layout.has-ai-panel .ow-photo-viewer-main {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.ow-photo-viewer-stage-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ow-photo-viewer-stage.odontograma-v2-photo-viewer-stage {
    position: relative;
    min-height: 460px;
    flex: 1 1 auto;
    overflow: hidden;
    border: 1px solid #d7e5f1;
    border-radius: 8px 8px 0 0;
    background: #061522;
    user-select: none;
}

.ow-photo-viewer-canvas.odontograma-v2-photo-viewer-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.ow-photo-viewer-overlay.odontograma-v2-photo-viewer-overlay {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.ow-photo-viewer-meta.odontograma-v2-photo-viewer-meta {
    flex: 1 1 auto;
    min-width: 0;
    color: #607790;
    font-size: 12px;
    line-height: 1.45;
}

.ow-photo-viewer-footer {
    margin-top: 0;
}

.ow-photo-viewer-footer-actions {
    flex: 0 0 auto;
}

.ow-photo-viewer-layout.is-dirty .ow-photo-viewer-meta::after {
    content: "Alteracoes nao gravadas.";
    display: inline-block;
    margin-left: 8px;
    color: #9a6400;
    font-weight: 470;
}

.ow-photo-viewer-layout.is-saving {
    cursor: wait;
}

.ow-photo-viewer-layout.is-saving .ow-photo-viewer-body {
    pointer-events: none;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation-svg {
    height: 100%;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation.is-selected .odontograma-v2-photo-viewer-annotation-svg {
    filter: drop-shadow(0 0 8px rgba(95, 224, 255, 0.22));
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation-path {
    fill: none;
    filter: drop-shadow(0 6px 14px rgba(7, 19, 31, 0.28));
    stroke: var(--implant-viewer-line-color, #5fe0ff);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1;
    transition: opacity 0.16s ease, stroke-width 0.16s ease;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation:hover .odontograma-v2-photo-viewer-annotation-path,
.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation.is-selected .odontograma-v2-photo-viewer-annotation-path {
    stroke-width: 1;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation-hit {
    cursor: grab;
    pointer-events: stroke;
    stroke-width: 22;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation-hit:active {
    cursor: grabbing;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation-guide {
    opacity: 0;
    pointer-events: none;
    stroke: var(--implant-viewer-line-color, #5fe0ff);
    stroke-dasharray: 6 4;
    stroke-linecap: round;
    stroke-width: 1;
    transition: opacity 0.16s ease;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation:hover .odontograma-v2-photo-viewer-annotation-guide,
.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation.is-selected .odontograma-v2-photo-viewer-annotation-guide {
    opacity: 0.52;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-label {
    align-items: center;
    background: rgba(7, 19, 31, 0.88);
    border: 2px solid var(--implant-viewer-line-color, #5fe0ff);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(7, 19, 31, 0.28);
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    height: 28px;
    justify-content: center;
    left: 50%;
    max-width: 240px;
    min-width: 28px;
    padding: 0 10px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 3;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-handle {
    background: #ffffff;
    border: 2px solid var(--implant-viewer-line-color, #5fe0ff);
    border-radius: 999px;
    box-shadow: 0 6px 12px rgba(7, 19, 31, 0.24);
    cursor: grab;
    display: block;
    height: 16px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
    width: 16px;
    z-index: 4;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-handle.is-curve {
    background: rgba(255, 255, 255, 0.98);
    border-style: dashed;
    height: 20px;
    width: 20px;
    z-index: 5;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-handle.is-curve::after {
    background: var(--implant-viewer-line-color, #5fe0ff);
    border-radius: 999px;
    content: "";
    height: 6px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation:hover .odontograma-v2-photo-viewer-handle,
.ow-photo-viewer-layout .odontograma-v2-photo-viewer-annotation.is-selected .odontograma-v2-photo-viewer-handle {
    opacity: 1;
    pointer-events: auto;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-handle:hover,
.ow-photo-viewer-layout .odontograma-v2-photo-viewer-handle:focus {
    box-shadow: 0 0 0 4px rgba(95, 224, 255, 0.18), 0 10px 18px rgba(7, 19, 31, 0.28);
    outline: 0;
}

.ow-photo-viewer-layout .odontograma-v2-photo-viewer-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.06);
}

@media (max-width: 767px) {
    .ow-photo-viewer-layout.odontograma-v2-photo-viewer {
        min-height: 100%;
    }

    .ow-photo-viewer-titlebar {
        padding: 10px;
    }

    .ow-photo-viewer-commandbar {
        padding: 8px 10px;
    }

    .ow-photo-viewer-toolgroups {
        width: max-content;
    }

    .ow-photo-viewer-action-btn.ow-toolbar-btn {
        justify-content: center;
    }

    .ow-photo-viewer-body {
        padding: 10px;
    }

    .ow-photo-viewer-stage.odontograma-v2-photo-viewer-stage {
        min-height: 320px;
    }

    .ow-photo-viewer-layout.has-ai-panel .ow-photo-viewer-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .ow-photo-viewer-ai.odontograma-v2-photo-viewer-ai {
        max-height: 220px;
    }

    .ow-photo-viewer-layout .odontograma-v2-photo-viewer-ai-compare {
        grid-template-columns: minmax(0, 1fr);
    }

    .ow-photo-viewer-layout .odontograma-v2-photo-viewer-label {
        font-size: 11px;
        max-width: 200px;
        padding: 0 8px;
    }
}

body.ow-popup-modal-open .dx-overlay-wrapper {
    z-index: 100050 !important;
}

body.ow-popup-modal-open .dx-overlay-wrapper .dx-overlay-content {
    z-index: 100051 !important;
}

body.ow-popup-modal-open .dx-dropdowneditor-overlay,
body.ow-popup-modal-open .dx-dropdownmenu-popup-wrapper,
body.ow-popup-modal-open .dx-selectbox-popup-wrapper,
body.ow-popup-modal-open .dx-tagbox-popup-wrapper,
body.ow-popup-modal-open .dx-datebox-wrapper {
    z-index: 100060 !important;
}

body.ow-popup-modal-open #ow-sidebar,
body.ow-popup-modal-open #ow-sidebar-nav,
body.ow-popup-modal-open #side-menu,
body.ow-popup-modal-open #ow-sidebar-tree,
body.ow-popup-modal-open #ow-sidebar-footer {
    pointer-events: none !important;
    user-select: none;
}

.ow-relatorio-preview-popup-wrapper:not(.is-fullscreen) {
    inset: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.ow-relatorio-preview-popup-wrapper:not(.is-fullscreen) .dx-overlay-content {
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    .ow-relatorio-preview-popup-wrapper:not(.is-fullscreen) {
        padding: 0;
    }
}

#owRelatorioPreviewPopup .ow-popup-body #documentViewer,
#owRelatorioPreviewPopup .ow-popup-body #documentViewer > table,
#owRelatorioPreviewPopup .ow-popup-body #documentViewer [id*='_Splitter_'],
#owRelatorioPreviewPopup .ow-popup-body #documentViewer [class*='dxsplControl_'],
#owRelatorioPreviewPopup .ow-popup-body #documentViewer [class*='dxsplPane_'] {
    height: 100% !important;
    max-height: 100% !important;
}

#owRelatorioPreviewPopup .ow-popup-body #documentViewer .dxsplLCC,
#owRelatorioPreviewPopup .ow-popup-body #documentViewer .dxsplCC,
#owRelatorioPreviewPopup .ow-popup-body #documentViewer div[id*='_Splitter_'][id$='_CC'] {
    height: 100% !important;
    max-height: 100% !important;
    overflow: auto !important;
}

.convenio-v2-print-preview-layout {
    padding-top: 0;
}

.convenio-v2-print-preview-body {
    overflow: hidden;
    padding: 0;
}

.ow-pdf-preview {
    --ow-pdf-toolbar: #ffffff;
    --ow-pdf-stage: #e9eef0;
    --ow-pdf-ink: #24333d;
    --ow-pdf-muted: #687782;
    --ow-pdf-line: #d9e2e7;
    --ow-pdf-blue: #1d78b5;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 72vh;
    color: var(--ow-pdf-ink);
    background: var(--ow-pdf-stage);
}

.ow-pdf-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 52px;
    padding: 7px 10px;
    background: var(--ow-pdf-toolbar);
    border-bottom: 1px solid var(--ow-pdf-line);
}

.ow-pdf-preview-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ow-pdf-muted);
    cursor: pointer;
}

.ow-pdf-preview-tool:hover,
.ow-pdf-preview-tool:focus-visible {
    outline: 2px solid rgba(29, 120, 181, 0.35);
    outline-offset: 1px;
    background: #eef7fd;
    color: var(--ow-pdf-blue);
}

.ow-pdf-preview-tool-primary {
    background: #eef7fd;
    color: var(--ow-pdf-blue);
}

.ow-pdf-preview-tool:disabled {
    cursor: default;
    opacity: 0.42;
}

.ow-pdf-preview-divider {
    width: 1px;
    height: 25px;
    margin: 0 5px;
    background: var(--ow-pdf-line);
}

.ow-pdf-preview-page-input {
    width: 48px;
    height: 30px;
    padding: 4px 6px;
    border: 1px solid var(--ow-pdf-line);
    border-radius: 6px;
    color: var(--ow-pdf-ink);
    background: #ffffff;
    font-size: 12px;
    text-align: center;
}

.ow-pdf-preview-page-count,
.ow-pdf-preview-zoom-label {
    min-width: 42px;
    color: var(--ow-pdf-muted);
    font-size: 12px;
    text-align: center;
}

.ow-pdf-preview-zoom-label {
    min-width: 50px;
    color: var(--ow-pdf-ink);
    font-weight: 500;
}

.ow-pdf-preview-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 28px 22px 38px;
    overflow: auto;
    background: var(--ow-pdf-stage);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.ow-pdf-preview-page {
    position: relative;
    width: fit-content;
    margin: 0 auto 24px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(36, 51, 61, 0.22);
}

.ow-pdf-preview-page canvas {
    display: block;
    max-width: none;
}

.ow-pdf-preview-loading,
.ow-pdf-preview-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 24px;
    color: var(--ow-pdf-muted);
    text-align: center;
}

.ow-pdf-preview-loading svg {
    animation: ow-pdf-preview-spin 1s linear infinite;
}

.ow-pdf-preview-error {
    flex-direction: column;
    color: #7b3b3b;
}

.ow-pdf-preview-error a {
    color: var(--ow-pdf-blue);
    text-decoration: underline;
}

.ow-pdf-preview-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 12px;
    min-height: 38px;
    padding: 8px 14px;
    border-top: 1px solid var(--ow-pdf-line);
    background: var(--ow-pdf-toolbar);
    color: var(--ow-pdf-muted);
    font-size: 11px;
}

.ow-pdf-preview-status-ready {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ow-pdf-preview-status-ready::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #77b852;
    content: "";
}

.ow-pdf-preview.is-fullscreen {
    position: fixed;
    z-index: 5000;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ow-pdf-stage);
}

@keyframes ow-pdf-preview-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .ow-pdf-preview-toolbar {
        justify-content: flex-start;
        padding: 6px 8px;
    }

    .ow-pdf-preview-stage {
        padding: 20px 12px 28px;
    }

    .ow-pdf-preview-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ow-pdf-preview-loading svg {
        animation: none;
    }
}

.ow-popup-footer {
    margin: 0 -12px;
    border-top: 1px solid #e2e6ea;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100% + 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: #fff;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.ow-popup-footer-sticky {
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.ow-popup-footer-audit-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.ow-popup-footer-audit-wrap .ow-audit-meta {
    padding: 0;
}

.ow-popup-footer-audit-wrap .ow-audit-meta-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ow-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ow-popup-surface-soft {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ow-popup-content-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ow-popup-context-grid,
.ow-popup-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ow-popup-field-switch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    gap: 14px;
    align-items: end;
}

.ow-popup-field-switch-grid > * {
    min-width: 0;
}

.ow-popup-field-aside-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    gap: 14px;
    align-items: end;
}

.ow-popup-context-card {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #dce6ef;
    background: #fff;
}

.ow-popup-context-card-title {
    margin: 0 0 8px;
    color: #6b7c8d;
    font-size: 12px;
    font-weight: 470;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ow-popup-context-card .dx-texteditor,
.ow-popup-field-switch-grid .dx-texteditor,
.ow-popup-field-switch-grid .dx-dropdowneditor,
.ow-popup-field-switch-grid .dx-numberbox,
.ow-popup-field-aside-grid .dx-texteditor,
.ow-popup-field-aside-grid .dx-dropdowneditor,
.ow-popup-field-aside-grid .dx-numberbox,
.ow-popup-form-grid-2 .dx-texteditor,
.ow-popup-inline-builder .dx-texteditor,
.ow-popup-inline-builder .dx-dropdowneditor {
    width: 100% !important;
}

.ow-popup-context-card .dx-textarea textarea {
    resize: none;
}

.ow-popup-form-grid-2 {
    margin-top: 16px;
}

.ow-popup-form-grid-emphasis-aside {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
    align-items: stretch;
}

.ow-popup-form-grid-emphasis-aside > * {
    min-width: 0;
}

.ow-popup-context-card-emphasis,
.ow-popup-context-card-aside {
    height: 100%;
}

.ow-popup-context-card-aside {
    justify-self: stretch;
}

.ow-popup-inline-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
    width: 100%;
}

.ow-popup-inline-builder > div {
    min-width: 0;
}

.ow-popup-switch-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 220px;
}

.ow-popup-switch-field .dx-switch {
    flex: 0 0 auto;
}

.ow-popup-switch-field .ow-popup-form-label {
    flex: 0 1 auto;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ow-popup-inline-switch-card {
    align-self: end;
    width: 100%;
    min-height: 58px;
}

.ow-popup-field-compact {
    max-width: 220px;
}

.ow-popup-field-compact .dx-texteditor,
.ow-popup-field-compact .dx-dropdowneditor,
.ow-popup-field-compact .dx-numberbox {
    width: 100% !important;
}

.ow-popup-grid-shell {
    border-radius: 14px;
    border: 1px solid #dce6ef;
    background: #fff;
    padding: 12px;
}

.ow-popup-empty-box {
    padding: 12px 14px;
    border: 1px dashed #dce6ef;
    border-radius: 14px;
    background: #fbfdff;
    color: #6c7a89;
    font-size: 13px;
    line-height: 1.5;
}

.ow-popup-section {
    margin-top: 2px;
    padding: 5px;
}

.ow-integration-popup-layout {
    padding-top: 0;
}

.ow-integration-popup-section {
    margin-top: 0;
}

.ow-integration-popup-card {
    padding: 16px 18px 6px;
    border: 1px solid #d7e4ef;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ow-integration-popup-copy {
    margin: 0 0 14px;
    color: #5f7288;
    font-size: 12px;
    line-height: 1.6;
}

.ow-integration-popup-layout .form-group {
    margin-bottom: 14px;
}

.ow-integration-popup-layout .ow-popup-section-content > .row:last-child .form-group {
    margin-bottom: 6px;
}

.ow-integration-popup-layout .dx-texteditor,
.ow-integration-popup-layout .dx-dropdowneditor {
    width: 100% !important;
}

.ow-integration-popup-layout .ow-popup-footer {
    margin-top: 6px;
}

.ow-popup-footer-actions-wrap {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ow-popup-history {
    background: #f8fafc;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 8px 10px;
}

.ow-popup-history .timeline-item .content {
    min-height: 60px;
}

.ow-popup-history-row {
    display: flex;
}

.ow-popup-empty-text {
    margin: 0;
}

.ow-popup-body .dx-texteditor,
.ow-popup-body .dx-dropdowneditor,
.ow-popup-body .dx-tagbox,
.ow-popup-body .dx-datebox,
.ow-popup-body .dx-numberbox,
.ow-popup-body .dx-textarea {
    border-radius: 14px;
}

.ow-popup-body .dx-texteditor.dx-editor-outlined,
.ow-popup-body .dx-dropdowneditor.dx-editor-outlined,
.ow-popup-body .dx-datebox.dx-editor-outlined,
.ow-popup-body .dx-numberbox.dx-editor-outlined,
.ow-popup-body .dx-textarea.dx-editor-outlined,
.ow-popup-body .dx-textarea .dx-editor-outlined {
    border: 1px solid #d8e4ef !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ow-popup-body .dx-editor-outlined.dx-state-hover,
.ow-popup-body .dx-dropdowneditor.dx-state-hover,
.ow-popup-body .dx-textarea.dx-state-hover .dx-editor-outlined {
    border-color: #c4d4e4;
}

.ow-popup-body .dx-editor-outlined.dx-state-focused,
.ow-popup-body .dx-dropdowneditor.dx-state-focused,
.ow-popup-body .dx-textarea.dx-state-focused .dx-editor-outlined,
.ow-popup-body .dx-editor-outlined:focus-within,
.ow-popup-body .dx-dropdowneditor: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;
}

.ow-popup-body .dx-texteditor-input,
.ow-popup-body .dx-texteditor-input-container,
.ow-popup-body .dx-placeholder {
    color: #17324d;
    font-size: 14px;
}

.ow-popup-body .dx-placeholder {
    color: #8092a5;
}

.ow-popup-body .dx-texteditor-buttons-container,
.ow-popup-body .dx-dropdowneditor-button {
    border-radius: 12px;
}

.ow-popup-required-editor.dx-texteditor,
.ow-popup-required-editor.dx-dropdowneditor,
.ow-popup-required-editor.dx-textarea,
.ow-popup-required-editor .dx-texteditor,
.ow-popup-required-editor .dx-dropdowneditor,
.ow-popup-required-editor .dx-textarea,
.ow-popup-required-editor.dx-state-disabled,
.ow-popup-required-editor.dx-state-disabled.dx-texteditor,
.ow-popup-required-editor.dx-state-disabled.dx-dropdowneditor,
.ow-popup-required-editor.dx-state-disabled .dx-texteditor,
.ow-popup-required-editor.dx-state-disabled .dx-dropdowneditor,
.ow-popup-required-editor .dx-texteditor.dx-state-disabled,
.ow-popup-required-editor .dx-dropdowneditor.dx-state-disabled {
    border: 1px solid #d8e4ef !important;
    border-radius: 14px !important;
    box-shadow: inset 0 -1px 0 rgba(255, 125, 106, 0.65);
}

.ow-popup-editor-error.dx-texteditor,
.ow-popup-editor-error.dx-dropdowneditor,
.ow-popup-editor-error.dx-textarea,
.ow-popup-editor-error.dx-checkbox,
.ow-popup-editor-error .dx-texteditor,
.ow-popup-editor-error .dx-dropdowneditor,
.ow-popup-editor-error .dx-textarea,
.ow-popup-editor-error .dx-checkbox {
    border-color: #d9534f !important;
}

.ow-popup-field-error {
    margin-top: 4px;
    font-size: 11px;
    color: #d9534f;
    font-weight: 400;
}

@media (max-width: 991px) {
    .ow-popup-context-grid,
    .ow-popup-form-grid-2,
    .ow-popup-form-grid-emphasis-aside,
    .ow-popup-field-switch-grid,
    .ow-popup-field-aside-grid,
    .ow-popup-inline-builder {
        grid-template-columns: 1fr;
    }

    .ow-popup-field-compact {
        max-width: none;
    }
}

.ss {
    margin-top: 10px;
    border-top: 1px solid #e2e6ea;
    padding-top: 10px;
}

.sst {
    font-weight: 470;
    font-size: 13px;
    margin: 0 0 8px;
    color: #223043;
}

.svc-calc .dx-radiobutton {
    margin-right: 16px;
}

.svc-faces {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.svc-mark-premium {
    border: 1px solid #d6e3ef;
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5fc 100%);
    box-shadow: 0 8px 20px rgba(26, 53, 84, 0.08);
}

.svc-mark-section-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-mark-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.svc-mark-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f3550;
}

.svc-mark-sub {
    margin-top: 3px;
    font-size: 12px;
    color: #56708b;
    line-height: 1.35;
}

.svc-mark-field label {
    font-size: 12px;
    color: #2f4963;
}

.svc-mark-helper {
    font-size: 11px;
    color: #637f99;
    margin-top: 3px;
}

.svc-mark-field {
    margin-bottom: 0;
}

.svc-calc-premium .dx-radiogroup {
    width: 100%;
}

.svc-calc-premium .dx-radiobutton {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-right: 0;
}

.svc-calc-premium .dx-radiobutton-text {
    display: block;
    width: 100%;
}

.svc-calc-premium .dx-radiobutton-icon-container {
    margin-top: 6px;
}

.svc-calc-premium .dx-radiobutton-icon {
    border-color: #90aac4;
    margin-top: 6px;
}

.svc-calc-premium .dx-radiobutton-checked .dx-radiobutton-icon-dot {
    background: #2d6594;
}

.svc-calc-premium .dx-collection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: stretch;
}

.svc-calc-premium .dx-item {
    margin: 0;
    flex: 1 1 calc(50% - 10px);
    min-width: 230px;
    display: flex;
}

.svc-mark-mode-card {
    border: 1px solid #cad9e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 9px 12px;
    min-width: 0;
    width: 100%;
}

.svc-mark-mode-title {
    font-size: 13px;
    font-weight: 500;
    color: #244763;
    line-height: 1.2;
}

.svc-mark-mode-desc {
    margin-top: 3px;
    font-size: 11px;
    color: #5d7890;
    line-height: 1.35;
}

.svc-calc-premium .dx-radiobutton-checked .svc-mark-mode-card {
    border-color: #72a2cc;
    background: linear-gradient(180deg, #fff 0%, #eff7ff 100%);
    box-shadow: 0 8px 16px rgba(41, 91, 137, 0.14);
}

@media (min-width: 1280px) {
    .svc-calc-premium .dx-collection {
        flex-wrap: nowrap;
    }

    .svc-calc-premium .dx-item {
        flex: 1 1 0;
        min-width: 0;
    }
}

.svc-mark-premium-body {
    border: 1px solid #d6e3ef;
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.svc-face-card {
    border: 1px solid #d3dfeb;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: 0.2s box-shadow, 0.2s border-color, 0.2s transform;
}

.svc-face-card:hover {
    border-color: #8fb4d6;
    box-shadow: 0 6px 14px rgba(39, 83, 125, 0.12);
    transform: translateY(-1px);
}

.svc-face-check {
    width: 100%;
}

.svc-face-check .dx-checkbox {
    display: flex;
    align-items: center;
    width: 100%;
}

.svc-face-check .dx-checkbox-text {
    font-size: 12px;
    color: #2f4963;
    font-weight: 400;
    line-height: 1.3;
}

.svc-canvas-wrap {
    width: 58px;
    margin: 0 auto;
    text-align: center;
}

#canvas-dente {
    width: 45px;
    height: 75px;
    border: 1px solid #98a6b5;
    border-radius: 4px;
    background: #fff;
}

.svc-reset-image {
    margin-top: 10px;
}

.svc-opt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 10px;
}

.svc-opt-card {
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #fdfefe 0%, #f4f8fc 100%);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 74px;
}

.svc-opt-main {
    flex: 1 1 auto;
    min-width: 0;
}

.svc-opt-title {
    font-weight: 470;
    font-size: 12px;
    color: #253648;
    line-height: 1.3;
}

.svc-opt-desc {
    margin-top: 3px;
    font-size: 11px;
    color: #637589;
    line-height: 1.35;
}

.svc-opt-ctrl {
    flex: 0 0 auto;
    padding-top: 2px;
}

.svc-opt-full {
    grid-column: 1 / -1;
}

.svc-opt-full .svc-opt-ctrl {
    flex: 1 1 auto;
    width: 100%;
}

.svc-taxa-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 36px;
}

.svc-taxa-text {
    font-size: 12px;
    font-weight: 470;
    color: #325a7d;
    min-width: 52px;
}

.svc-taxa-card {
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #fdfefe 0%, #f4f8fc 100%);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 74px;
}

.svc-taxa-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.svc-taxa-card-title {
    font-weight: 470;
    font-size: 12px;
    color: #253648;
    line-height: 1.3;
}

.svc-taxa-card-desc {
    margin-top: 3px;
    font-size: 11px;
    color: #637589;
    line-height: 1.35;
}

.svc-taxa-card-control {
    flex: 0 0 auto;
    padding-top: 2px;
}

.uf-align-end {
    display: flex;
    align-items: flex-end;
}

.sec {
    margin-top: 10px;
    border-top: 1px solid #e2e6ea;
    padding-top: 10px;
}

.st {
    font-weight: 470;
    font-size: 13px;
    margin: 0 0 8px;
    color: #223043;
}

.gt {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gg {
    min-height: 200px;
}

.rgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 10px;
}

.rcard {
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #fdfefe 0%, #f4f8fc 100%);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 74px;
}

.rcard-main {
    flex: 1 1 auto;
    min-width: 0;
}

.rcard-title {
    font-weight: 470;
    font-size: 12px;
    color: #253648;
    line-height: 1.3;
}

.rcard-desc {
    margin-top: 3px;
    font-size: 11px;
    color: #637589;
    line-height: 1.35;
}

.rcard-control {
    flex: 0 0 auto;
    padding-top: 2px;
}

.rcard-number .rcard-control {
    min-width: 128px;
}

.u-groups-popup-grid {
    height: calc(100% - 52px);
    min-height: 0;
}

.u-groups-popup-actions {
    border-top: 1px solid #e2e6ea;
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ow-popup-content-wrap {
    height: 100%;
    min-height: 0;
}

.ow-popup-content-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.ow-cadastro-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ow-cadastro-toolbar .btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ow-cadastro-filter-panel {
    background: #f7f9fb;
    border: 1px solid #d9e1ea;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.ow-cadastro-filter-panel .form-group {
    margin-bottom: 0;
}

.ow-cadastro-filter-label,
.ow-popup-form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
    font-size: 12px;
    color: #3f4a58;
}

.ow-title-person-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ow-title-person-picker-field {
    flex: 1 1 auto;
    min-width: 0;
}

.ow-title-add-person-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
}

.ow-title-plan-close-wrap {
    margin: 6px;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
}

.ow-title-chart-host {
    min-height: 280px;
    width: 100%;
}

.ow-title-grid-host {
    min-height: 380px;
}

.ow-title-summary-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px 0;
}

.ow-title-summary-card {
    flex: 1 1 220px;
    min-height: 64px;
    border: 1px solid #d9e1ea;
    border-radius: 6px;
    padding: 8px 12px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ow-title-summary-label {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    color: #5f6e82;
    letter-spacing: 0.02em;
}

.ow-title-summary-value {
    font-size: 18px;
    font-weight: 470;
    color: #1f2d3d;
    line-height: 1.2;
}

.ow-cadastro-status-pill {
    display: inline-block;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 470;
    padding: 2px 10px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ow-cadastro-status-active {
    background: #d1e7dd;
    border-color: #a3cfbb;
    color: #0f5132;
    border-radius: 8px;
    padding: 3px;
}

.ow-cadastro-status-obsolete {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #842029;
    border-radius: 8px;
    padding: 3px;
}

.cfg-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 10px;
}

.cfg-switch-grid-3 {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.cfg-switch-card {
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #fdfefe 0%, #f4f8fc 100%);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 74px;
}

.cfg-switch-main {
    flex: 1 1 auto;
    min-width: 0;
}

.cfg-switch-title {
    font-weight: 470;
    font-size: 12px;
    color: #253648;
    line-height: 1.3;
}

.cfg-switch-desc {
    margin-top: 3px;
    font-size: 11px;
    color: #637589;
    line-height: 1.35;
}

.cfg-switch-control {
    flex: 0 0 auto;
    padding-top: 2px;
}

.cfg-row {
    margin-top: 10px;
}

.cfg-audit-footer {
    margin: 0;
    border-top: 1px solid #e2e6ea;
    padding: 10px 0 calc(8px + env(safe-area-inset-bottom, 0px)) 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.cfg-audit-meta {
    color: #777;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    flex: 1 1 auto;
}

.cfg-color-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-width: 142px;
    min-height: 28px;
    padding: 6px 12px;
    border: 1px solid #d7dde5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.cfg-agenda-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.cfg-agenda-section {
    margin: 0;
    min-width: 0;
}

.cfg-agenda-fields-row {
    margin-bottom: 12px;
}

.cfg-agenda-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.cfg-agenda-colors-section,
.cfg-agenda-alerts-section {
    min-width: 0;
}

.cfg-agenda-switch-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.cfg-agenda-shell .cfg-agenda-alert-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.cfg-agenda-shell .cfg-switch-card {
    min-height: 54px;
    align-items: center;
    padding: 10px 12px;
}

.cfg-agenda-shell .cfg-switch-main {
    display: flex;
    align-items: center;
}

.cfg-agenda-shell .cfg-switch-title {
    font-size: 12px;
    line-height: 1.25;
}

.cfg-agenda-shell .cfg-switch-control {
    display: flex;
    align-items: center;
    padding-top: 0;
}

.cfg-color-list {
    display: grid;
    gap: 8px;
    width: 100%;
}

.cfg-color-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid #d7e3f0;
    border-radius: 8px;
    background: #fff;
}

.cfg-color-preview-wrap {
    min-width: 0;
}

.cfg-color-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.cfg-color-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cfg-color-control > span {
    color: #5f738b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.cfg-color-picker,
.cfg-color-picker .dx-colorbox {
    width: 54px !important;
    min-width: 54px;
}

.cfg-color-picker .dx-texteditor-input {
    color: transparent !important;
    caret-color: transparent;
    font-size: 0;
    text-shadow: none;
}

.cfg-color-picker .dx-placeholder {
    display: none;
}

.cfg-color-picker .dx-texteditor-input-container {
    min-width: 0;
    overflow: hidden;
}

.cfg-color-picker .dx-dropdowneditor-button {
    width: 22px;
    min-width: 22px;
}

@media (max-width: 1199px) {
    .cfg-agenda-main-grid {
        grid-template-columns: 1fr;
    }

    .cfg-agenda-switch-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 767px) {
    .cfg-color-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .cfg-color-preview {
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        border-radius: 8px;
        text-align: left;
    }

    .cfg-color-actions {
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }

    .cfg-color-control {
        justify-content: space-between;
        flex: 1 1 130px;
        min-width: 0;
        padding: 6px 8px;
        border: 1px solid #d9e6f4;
        border-radius: 999px;
        background: #f8fbff;
    }
}

.cfg-hidden-initial {
    display: none;
}

.cfg-anchor-visible {
    opacity: 1;
}

.cfg-finance-description-link {
    color: #337ab7;
}

.ow-grid-audit-card {
    padding: 10px 14px;
    background: #f9fbfd;
    border-left: 3px solid #dbe6f4;
}

.ow-grid-audit-title {
    font-size: 12px;
    font-weight: 470;
    color: #4b5b70;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ow-grid-audit-line {
    font-size: 12px;
    color: #5e6a78;
    line-height: 1.4;
}

.svc-taxa-tag {
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 400;
    font-size: 12px;
}

.svc-taxa-include {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.svc-taxa-exclude {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}

.ow-supplier-switch-field {
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #fdfefe 0%, #f4f8fc 100%);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ow-supplier-switch-label {
    font-weight: 470;
    font-size: 12px;
    color: #253648;
    margin: 0;
}

.ow-supplier-phone-grid .dx-datagrid {
    border-radius: 8px;
    overflow: hidden;
}

.ow-supplier-phone-grid .dx-header-row > td {
    font-weight: 470;
}

.ow-supplier-phone-grid .dx-datagrid-rowsview .dx-row > td {
    vertical-align: middle;
}

.ow-supplier-phone-grid {
    overflow-x: auto;
}

.ow-supplier-phone-grid .dx-datagrid-content .dx-datagrid-table {
    min-width: 100%;
}

.ow-popup-section-content > .row:last-child .form-group {
    margin-bottom: 0;
}

.ow-title-events-popup {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ow-title-events-popup .ow-popup-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 0;
    overscroll-behavior: contain;
}

.ow-title-events-popup-section {
    margin-bottom: 0;
}

.ow-title-events-popup-summary {
    flex: 0 0 auto;
}

.ow-title-events-popup-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(29, 52, 88, 0.05);
    padding: 10px 12px;
}

.ow-title-events-popup-section-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ow-title-events-popup-kicker {
    color: #5f7187;
    font-size: 11px;
    font-weight: 470;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-title-events-popup-title {
    color: #17324d;
    font-size: 19px;
    font-weight: 470;
    line-height: 1.2;
    margin-top: 4px;
}

.ow-title-events-popup-date-pill,
.ow-title-events-popup-events-badge {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #d5e3f7;
    border-radius: 999px;
    color: #33557c;
    display: inline-flex;
    gap: 7px;
    padding: 7px 11px;
    white-space: nowrap;
}

.ow-title-events-popup-date-pill {
    font-size: 12px;
    font-weight: 470;
}

.ow-title-events-popup-events-badge {
    font-size: 12px;
    font-weight: 470;
    margin-top: 2px;
}

.ow-title-events-popup-date-pill i,
.ow-title-events-popup-events-badge i {
    width: 15px;
    height: 15px;
}

.ow-title-events-popup-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.ow-title-events-popup-summary-grid--selection {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ow-title-events-popup-summary-item {
    background: #ffffff;
    border: 1px solid #e2eaf4;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 8px 10px;
}

.ow-title-events-popup-summary-item-wide {
    grid-column: auto;
}

.ow-title-events-popup-summary-label {
    color: #6d7c8f;
    font-size: 11px;
    font-weight: 470;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ow-title-events-popup-summary-value {
    color: #20364d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    word-break: break-word;
}

.ow-title-events-popup-summary-value--compact {
    line-height: 1.35;
    word-break: break-word;
}

.ow-title-events-popup-summary-ellipsis {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}

.ow-title-events-popup-summary-note {
    margin-top: 8px;
    color: #6a8096;
    font-size: 11px;
    line-height: 1.4;
}

.ow-title-events-popup-events {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
    min-height: 220px;
    overflow: hidden;
}

.ow-title-events-popup-events-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}

.ow-title-events-popup-events-head {
    margin-bottom: 10px;
}

.ow-title-events-popup-caption {
    color: #23384f;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 4px;
}

.ow-title-events-popup-events .ow-popup-section-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: none;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.ow-title-events-popup-grid {
    flex: 1 1 auto;
    min-height: 200px;
    margin-top: 0;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.ow-title-events-popup-grid > .dx-datagrid {
    height: 100%;
}

.ow-title-event-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    min-width: 76px;
    white-space: nowrap;
}

.ow-title-event-action {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e3ee;
    padding: 0;
    border-radius: 10px;
    color: #4a617d;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.ow-title-event-action:hover,
.ow-title-event-action:focus {
    background: #f5f9ff;
    border-color: #b8cde7;
    color: #1f78be;
    outline: none;
}

.ow-title-event-action.is-danger {
    background: #fff5f4;
    border-color: #f1b6ae;
    color: #e1443d;
}

.ow-title-event-action.is-danger:hover,
.ow-title-event-action.is-danger:focus {
    background: #ffebe9;
    border-color: #e8968c;
    color: #c8342e;
}

.ow-title-event-action i {
    width: 16px;
    height: 16px;
}

.ow-title-event-grid-text,
.ow-title-event-grid-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ow-title-event-grid-value {
    color: #20364d;
    font-variant-numeric: tabular-nums;
}

.ow-title-event-reconciliation {
    align-items: center;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    min-width: 40px;
}

.ow-title-event-reconciliation-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.ow-title-event-reconciliation-button.is-reconciled {
    background: #eaf8ee;
    color: #1d7a35;
}

.ow-title-event-reconciliation-button.is-pending {
    background: #fff0ef;
    color: #c63f37;
}

.ow-title-event-reconciliation-button:hover,
.ow-title-event-reconciliation-button:focus,
.ow-title-event-reconciliation-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 120, 190, 0.16);
    outline: none;
}

.ow-title-event-reconciliation-button i {
    height: 17px;
    width: 17px;
}

.ow-title-event-reconciliation-detail {
    color: #52677d;
    font-size: 10px;
    line-height: 1.1;
    max-width: 60px;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

.ow-title-event-reconciliation.is-compact {
    min-width: 28px;
}

.ow-title-event-compact-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ow-title-event-compact-header {
    align-items: center;
    display: flex;
    gap: 6px;
}

.ow-title-event-compact-date {
    color: #38556f;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.ow-title-event-compact-value {
    color: #20364d;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
    white-space: nowrap;
}

.ow-title-event-compact-payment {
    color: #20364d;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ow-title-event-compact-meta {
    color: #6a7d91;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ow-title-event-detail {
    padding: 10px 12px;
    background: linear-gradient(180deg, #f9fbfd 0%, #f4f8fc 100%);
    border-top: 1px solid #e2eaf2;
}

.ow-title-event-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px 14px;
}

.ow-title-event-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ow-title-event-detail-label {
    font-size: 11px;
    font-weight: 470;
    color: #6a7b8d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ow-title-event-detail-value {
    font-size: 13px;
    font-weight: 400;
    color: #21364b;
    line-height: 1.45;
    word-break: break-word;
}

.ow-title-event-detail-empty {
    font-size: 13px;
    color: #637589;
}

.ow-title-event-detail-audit {
    border-top: 1px solid #dfe7ef;
    color: #718397;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 10px;
    padding-top: 8px;
}

.ow-title-electronic-transaction-popup {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ow-title-electronic-transaction-popup .ow-popup-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    min-height: 0;
    padding-bottom: 0;
}

.ow-title-electronic-transaction-section {
    margin-bottom: 0;
}

.ow-title-electronic-transaction-summary {
    flex: 0 0 auto;
}

.ow-title-electronic-transaction-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(29, 52, 88, 0.06);
    padding: 14px 16px 16px;
}

.ow-title-electronic-transaction-section-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ow-title-electronic-transaction-kicker {
    color: #5f7187;
    font-size: 11px;
    font-weight: 470;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-title-electronic-transaction-title {
    color: #17324d;
    font-size: 19px;
    font-weight: 470;
    line-height: 1.2;
    margin-top: 4px;
}

.ow-title-electronic-transaction-date-pill,
.ow-title-electronic-transaction-badge {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #d5e3f7;
    border-radius: 999px;
    color: #33557c;
    display: inline-flex;
    gap: 7px;
    padding: 7px 11px;
    white-space: nowrap;
}

.ow-title-electronic-transaction-date-pill {
    font-size: 12px;
    font-weight: 470;
}

.ow-title-electronic-transaction-badge {
    font-size: 12px;
    font-weight: 470;
    margin-top: 2px;
}

.ow-title-electronic-transaction-date-pill i,
.ow-title-electronic-transaction-badge i {
    width: 15px;
    height: 15px;
}

.ow-title-electronic-transaction-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.ow-title-electronic-transaction-summary-item,
.ow-title-electronic-transaction-entry-grid > .ow-title-electronic-transaction-summary-item {
    background: #ffffff;
    border: 1px solid #e2eaf4;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
}

.ow-title-electronic-transaction-summary-item-wide {
    grid-column: auto;
}

.ow-title-electronic-transaction-summary-label {
    color: #6d7c8f;
    font-size: 11px;
    font-weight: 470;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ow-title-electronic-transaction-summary-value {
    color: #20364d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    word-break: break-word;
}

.ow-title-electronic-transaction-content {
    flex: 1 1 auto;
    min-height: 0;
}

.ow-title-electronic-transaction-content-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ow-title-electronic-transaction-content-head {
    margin-bottom: 10px;
}

.ow-title-electronic-transaction-caption {
    color: #23384f;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 4px;
}

.ow-title-electronic-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ow-title-electronic-transaction-entry {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 12px 14px;
}

.ow-title-electronic-transaction-entry-caption {
    color: #31506f;
    font-size: 11px;
    font-weight: 470;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ow-title-electronic-transaction-entry-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ow-title-electronic-transaction-empty {
    color: #637589;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
}

.ow-title-electronic-transaction-popup .ow-popup-footer-audit-wrap {
    display: none;
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions .ow-toolbar-btn {
    box-shadow: 0 3px 8px rgba(19, 40, 68, 0.06);
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions .ow-toolbar-btn i {
    width: 16px;
    height: 16px;
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions .ow-toolbar-btn-default {
    background: #ffffff;
    border-color: #d5dfeb;
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions .ow-toolbar-btn-default:hover {
    background: #f7fbff;
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions .ow-toolbar-btn-default:focus {
    outline: 0;
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions .ow-toolbar-btn-default:focus-visible {
    box-shadow: 0 0 0 3px rgba(49, 80, 111, 0.15);
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions-mobile-text .ow-toolbar-btn {
    padding-left: 12px;
    padding-right: 12px;
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions-mobile-text .ow-toolbar-btn > span:not([class*="fa"]) {
    display: inline;
}

.ow-title-electronic-transaction-popup .ow-popup-footer-actions-mobile-text .ow-toolbar-btn i {
    margin-right: 6px;
}

.ow-title-events-popup .dx-datagrid-headers {
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
}

.ow-title-events-popup .dx-datagrid-headers .dx-header-row > td {
    color: #31506f;
    font-size: 12px;
    font-weight: 470;
    border-bottom-color: #dce5f0;
    padding: 8px 6px;
}

.ow-title-events-popup .dx-datagrid-headers .dx-datagrid-text-content {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ow-title-events-popup .dx-datagrid-rowsview .dx-row > td {
    font-size: 12px;
    padding: 7px 6px;
    vertical-align: middle;
}

.ow-title-events-popup .dx-datagrid-rowsview .dx-row.dx-data-row:hover > td {
    background-color: #f7fbff;
}

.ow-title-events-popup .dx-datagrid-rowsview .dx-master-detail-row td {
    background: #fbfdff;
}

.ow-title-events-popup .dx-datagrid-content .dx-datagrid-table .dx-row > td:last-child {
    padding-left: 4px;
    padding-right: 4px;
}

.ow-title-events-popup .dx-datagrid-rowsview .dx-data-row > td:last-child {
    padding-right: 16px;
}

@media (max-height: 700px) and (min-width: 768px) {
    .ow-title-events-popup .ow-popup-body {
        gap: 8px;
    }

    .ow-title-events-popup-card {
        padding: 8px 10px;
    }

    .ow-title-events-popup-summary-item {
        padding: 6px 9px;
    }

    .ow-title-events-popup-events {
        flex-basis: 190px;
        min-height: 190px;
    }

    .ow-title-events-popup-grid {
        min-height: 170px;
    }

    .ow-title-events-popup .ow-popup-footer {
        padding-bottom: 8px;
        padding-top: 8px;
    }
}

.planning-section {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7eaec;
}

.planning-section-title {
    font-size: 15px;
    font-weight: 400;
    color: #2f4050;
    margin: 0 0 10px 0;
}

.stage-linked-services {
    margin-top: 10px;
}

.stage-linked-services h5 {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 400;
    color: #3f4a58;
}

@media (max-width: 991px) {
    .cfg-switch-grid,
    .cfg-switch-grid-3,
    .svc-opt-grid,
    .rgrid {
        grid-template-columns: 1fr;
    }

    .svc-faces {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .svc-calc-premium .dx-item {
        flex: 1 1 100%;
        min-width: 0;
    }

    .ow-title-electronic-transaction-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ow-title-electronic-transaction-summary-item-wide {
        grid-column: auto;
    }

    .ow-title-events-popup-summary-grid--selection {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {
    .ow-cadastro-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .ow-cadastro-toolbar .ow-secondary-action-label,
    .ow-cadastro-toolbar .btn > span:not([class*="fa"]),
    .ow-popup-footer-actions .btn > span:not([class*="fa"]) {
        display: none;
    }

    .ow-cadastro-toolbar .btn,
    .ow-popup-footer-actions .btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .ow-popup-footer-actions {
        gap: 6px;
    }

    .ow-popup-footer-actions-mobile-text .btn > span:not([class*="fa"]) {
        display: inline;
    }

    .ow-popup-footer-actions-mobile-text .btn {
        width: auto;
        min-width: 0;
        padding: 0 10px;
    }

    .ow-popup-footer-actions.ow-popup-footer-actions-mobile-text {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
    }

    .ow-popup-footer-actions-mobile-text .btn.ow-toolbar-btn {
        min-height: 44px;
        height: auto;
        padding: 8px 12px;
        gap: 6px;
        line-height: 1.2;
        white-space: normal;
    }

    #procedimentoNovoPopupRoot .ow-popup-footer-actions-mobile-text .ow-toolbar-btn {
        min-height: 44px;
        height: auto;
        padding: 8px 12px;
        gap: 6px;
        line-height: 1.2;
        white-space: normal;
    }

    #procedimentoNovoPopupRoot #procedimentoNovoForm {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    #procedimentoNovoPopupRoot .ow-popup-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 16px;
        -webkit-overflow-scrolling: touch;
    }

    #procedimentoNovoPopupRoot .ow-popup-content-stack {
        min-height: 0;
    }

    #procedimentoNovoPopupRoot .ow-popup-field-aside-grid {
        align-items: stretch;
    }

    .ow-integration-popup-card {
        padding: 14px 14px 4px;
    }

    .ow-title-events-popup-card {
        padding: 8px;
        border-radius: 12px;
    }

    .ow-title-events-popup-section-head {
        flex-direction: column;
    }

    .ow-title-events-popup-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ow-title-events-popup-summary-item-wide {
        grid-column: 1 / -1;
    }

    .ow-title-events-popup-date-pill,
    .ow-title-events-popup-events-badge {
        width: fit-content;
    }

    .ow-title-events-popup .dx-datagrid-rowsview .dx-row > td {
        padding: 7px 4px;
    }

    .ow-title-events-popup-events {
        flex-basis: 200px;
        min-height: 200px;
    }

    .ow-title-events-popup-grid {
        min-height: 180px;
    }

    .ow-title-electronic-transaction-card {
        padding: 12px;
        border-radius: 14px;
    }

    .ow-title-electronic-transaction-section-head {
        flex-direction: column;
    }

    .ow-title-electronic-transaction-summary-grid,
    .ow-title-electronic-transaction-entry-grid {
        grid-template-columns: 1fr;
    }

    .ow-title-electronic-transaction-summary-item-wide {
        grid-column: auto;
    }

    .ow-title-electronic-transaction-date-pill,
    .ow-title-electronic-transaction-badge {
        width: fit-content;
    }

    .svc-faces {
        grid-template-columns: 1fr;
    }

    .gt {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .ow-supplier-phone-grid .dx-header-row > td {
        font-size: 11px;
        padding: 6px 6px;
    }

    .ow-supplier-phone-grid .dx-datagrid-rowsview .dx-row > td {
        padding: 6px 6px;
    }

    .ow-supplier-phone-grid .dx-texteditor-input {
        font-size: 12px;
    }

}

@media (max-width: 480px) {
    .ow-popup-footer-actions.ow-popup-footer-actions-mobile-text {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ow-popup-footer-actions-mobile-text .btn.ow-toolbar-btn,
    #procedimentoNovoPopupRoot .ow-popup-footer-actions-mobile-text .ow-toolbar-btn {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
    }
}

@media (max-width: 360px) {
    .ow-popup-footer-actions.ow-popup-footer-actions-mobile-text {
        grid-template-columns: 1fr;
    }
}

body.ow-transferencia-popup-open {
    overflow: hidden;
}

.dx-popup-content {
    padding:0px; 
}

/*
 * As variaveis do tema do kanban ficam em :root (e nao em #clinicalViewV2Page)
 * porque o dxSortable move o clone do card arrastado para fora da pagina
 * (ex.: #wrapper / body). Custom properties sao herdadas pela arvore DOM, entao
 * fora de #clinicalViewV2Page elas deixariam de resolver e o card perderia o
 * formato durante o arrasto. Declarando em :root, o clone sempre as herda.
 */
:root {
    --clinical-kanban-surface: #ffffff;
    --clinical-kanban-border: #d8e1ec;
    --clinical-kanban-border-strong: #c6d2e1;
    --clinical-kanban-text: #18344f;
    --clinical-kanban-text-muted: #66788f;
    --clinical-kanban-accent: #254b70;
    --clinical-kanban-accent-soft: #e7eef6;
    --clinical-kanban-shadow: 0 18px 40px rgba(15, 33, 58, 0.08);
    --clinical-kanban-card-shadow: 0 14px 28px rgba(15, 33, 58, 0.08);
}

#clinicalViewV2Page.clinical-view-v2-theme {
    color: var(--clinical-kanban-text);
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-popup-section {
    margin-top: 0;
}

#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Dentist .dx-texteditor,
#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Date .dx-texteditor,
#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Search .dx-texteditor {
    width: 100% !important;
}

#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Dentist .dx-texteditor-input,
#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Dentist .dx-placeholder {
    font-size: 15px;
}

#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Date .dx-texteditor-input,
#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Date .dx-placeholder {
    font-size: 12px;
}

#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Search .dx-texteditor-input,
#clinicalViewV2Page.clinical-view-v2-theme #clinicalViewV2Search .dx-placeholder {
    font-size: 16px;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-kanban-board-shell {
    box-shadow: var(--clinical-kanban-shadow);
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-board-content {
    position: relative;
    padding: 5px;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-board-summary {
    display: flex;
    justify-content: flex-end;
    margin: 0 6px 10px;
    color: var(--clinical-kanban-text-muted);
    font-size: 13px;
    font-weight: 400;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: auto;
    margin: 12px 5px 0px;
    box-sizing: border-box;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metrics-loading,
#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-card {
    min-height: 74px;
    border: 1px solid #dbe5ef;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 33, 58, 0.05);
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metrics-loading {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: #66788f;
    font-size: 13px;
    font-weight: 470;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef5ff;
    color: #245f96;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 1;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-label,
#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-label {
    color: #65758a;
    font-size: 11px;
    font-weight: 470;
    line-height: 1.2;
    text-transform: uppercase;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-value {
    color: #18344f;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.08;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-meta {
    color: #6f7f91;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-card.is-teal .ow-clinical-view-v2-metric-icon {
    background: #e7f6f2;
    color: #147967;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-card.is-amber .ow-clinical-view-v2-metric-icon {
    background: #fff5df;
    color: #a45f00;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-card.is-indigo .ow-clinical-view-v2-metric-icon {
    background: #eef0ff;
    color: #3b4a95;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-card.is-green .ow-clinical-view-v2-metric-icon {
    background: #e8f6ed;
    color: #1b7a45;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metric-card.is-rose .ow-clinical-view-v2-metric-icon {
    background: #fff0f2;
    color: #b9334f;
}

@media (max-width: 1199px) {
    #clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-metrics {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-board-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-board-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

#clinicalViewV2Board {
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    min-height: 640px;
}

#clinicalViewV2Board .ow-clinical-view-v2-column {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    white-space: normal;
    width: 320px;
    max-width: 320px;
    height: 640px;
    margin: 6px;
    background: #edf2f7;
    border: 1px solid #d5dfeb;
    border-radius: 20px;
    box-shadow: 0 14px 26px rgba(15, 33, 58, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 8px;
    background: #fbfdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#clinicalViewV2Board .ow-clinical-view-v2-column-title {
    min-width: 0;
    flex: 1;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-title strong {
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 470;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #58708b;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-empty,
#clinicalViewV2Board .ow-clinical-view-v2-empty-cards {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    min-height: 440px;
    padding: 0 2px 22px;
    border-radius: 14px;
    pointer-events: none;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-empty:empty,
#clinicalViewV2Board .ow-clinical-view-v2-empty-cards:empty {
    min-height: 440px;
    border: 1px dashed var(--clinical-kanban-border-strong);
}

#clinicalViewV2Board .ow-clinical-view-v2-column-empty:not(:empty),
#clinicalViewV2Board .ow-clinical-view-v2-empty-cards:not(:empty) {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d6e0ea;
    border-radius: 10px;
    background: #ffffff;
    color: #5a718a;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-refresh:hover,
#clinicalViewV2Board .ow-clinical-view-v2-column-refresh:focus {
    background: #f1f6fb;
    border-color: #c8d6e4;
    transform: translateY(-1px);
    outline: 0;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-count-shell {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 0 18px 18px;
    background: #fbfdff;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-count {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #dde7f0;
    background: #f2f6fa;
    color: #5f7287;
    font-size: 11px;
    font-weight: 470;
    letter-spacing: 0.08em;
    text-transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#clinicalViewV2Board .ow-clinical-view-v2-column-body {
    flex: 1 1 auto;
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 10px 10px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-color: #9fb1c3 #e8eef5;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-body.dx-scrollview {
    overflow: hidden;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-body::-webkit-scrollbar {
    width: 10px;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-body::-webkit-scrollbar-track {
    background: #e8eef5;
    border-radius: 999px;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-body::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2px solid #e8eef5;
    border-radius: 999px;
    background: #9fb1c3;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-body::-webkit-scrollbar-thumb:hover {
    background: #8198ad;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-body .dx-scrollable-scrollbar.dx-scrollbar-vertical {
    width: 12px;
    border-radius: 999px;
    background-color: #e8eef5;
    opacity: 1;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-body .dx-scrollable-scrollbar.dx-scrollbar-vertical .dx-scrollable-scroll {
    width: 12px;
    min-height: 44px;
    border: 2px solid #e8eef5;
    border-radius: 999px;
    background-color: #9fb1c3;
}

#clinicalViewV2Board .ow-clinical-view-v2-cards-container {
    position: relative;
    z-index: 1;
    min-height: 440px;
    border-radius: 14px;
}

#clinicalViewV2Board .ow-clinical-view-v2-column-loader {
    color: #315f86;
    font-size: 12px;
    font-weight: 470;
    text-align: center;
    padding: 2px 0 10px;
}

#clinicalViewV2Board .ow-clinical-view-v2-card,
.dx-sortable-dragging.ow-clinical-view-v2-card,
.dx-sortable-dragging .ow-clinical-view-v2-card,
.dx-sortable-dragged.ow-clinical-view-v2-card,
.dx-sortable-dragged .ow-clinical-view-v2-card,
.dx-sortable-source.ow-clinical-view-v2-card,
.dx-sortable-source .ow-clinical-view-v2-card,
.dx-state-invisible.ow-clinical-view-v2-card,
.dx-state-invisible .ow-clinical-view-v2-card,
.dx-sortable-placeholder.ow-clinical-view-v2-card,
.dx-sortable-placeholder .ow-clinical-view-v2-card {
    position: relative;
    width: auto;
    min-height: 148px;
    margin: 0 2px 2px;
    padding: 16px 18px 54px 22px;
    background: var(--clinical-kanban-surface);
    border: 1px solid rgba(198, 210, 225, 0.85);
    border-radius: 16px;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: var(--clinical-kanban-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    max-width: none;
}

#clinicalViewV2Board .ow-clinical-view-v2-card:hover,
.dx-sortable-dragging.ow-clinical-view-v2-card,
.dx-sortable-dragging .ow-clinical-view-v2-card {
    transform: translateY(-1px);
    border-color: var(--clinical-kanban-border-strong);
    box-shadow: 0 18px 28px rgba(15, 33, 58, 0.1);
}

#clinicalViewV2Board .ow-clinical-view-v2-card::before,
.dx-sortable-dragging.ow-clinical-view-v2-card::before,
.dx-sortable-dragging .ow-clinical-view-v2-card::before,
.dx-sortable-dragged.ow-clinical-view-v2-card::before,
.dx-sortable-dragged .ow-clinical-view-v2-card::before,
.dx-sortable-source.ow-clinical-view-v2-card::before,
.dx-sortable-source .ow-clinical-view-v2-card::before,
.dx-state-invisible.ow-clinical-view-v2-card::before,
.dx-state-invisible .ow-clinical-view-v2-card::before,
.dx-sortable-placeholder.ow-clinical-view-v2-card::before,
.dx-sortable-placeholder .ow-clinical-view-v2-card::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 6px;
    border-radius: 0 6px 6px 0;
    background: var(--clinical-card-accent, #9db2c7);
}

#clinicalViewV2Board .dx-sortable-dragging.ow-clinical-view-v2-card,
#clinicalViewV2Board .dx-sortable-dragged.ow-clinical-view-v2-card,
#clinicalViewV2Board .dx-sortable-source.ow-clinical-view-v2-card,
#clinicalViewV2Board .dx-state-invisible.ow-clinical-view-v2-card,
#clinicalViewV2Board .dx-sortable-placeholder.ow-clinical-view-v2-card,
.dx-sortable-dragging.ow-clinical-view-v2-card,
.dx-sortable-dragging .ow-clinical-view-v2-card,
.dx-sortable-dragged.ow-clinical-view-v2-card,
.dx-sortable-dragged .ow-clinical-view-v2-card,
.dx-sortable-source.ow-clinical-view-v2-card,
.dx-sortable-source .ow-clinical-view-v2-card,
.dx-state-invisible.ow-clinical-view-v2-card,
.dx-state-invisible .ow-clinical-view-v2-card,
.dx-sortable-placeholder.ow-clinical-view-v2-card,
.dx-sortable-placeholder .ow-clinical-view-v2-card {
    width: var(--clinical-view-v2-drag-card-width, 296px);
    max-width: var(--clinical-view-v2-drag-card-width, 296px);
    height: var(--clinical-view-v2-drag-card-height, auto);
    min-height: var(--clinical-view-v2-drag-card-height, 148px);
    margin: 0;
    background: var(--clinical-kanban-surface) !important;
    box-shadow: 0 18px 28px rgba(15, 33, 58, 0.12) !important;
    transform: none;
    opacity: 1;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-header,
.dx-sortable-dragging .ow-clinical-view-v2-card-header,
.dx-sortable-dragged .ow-clinical-view-v2-card-header,
.dx-sortable-source .ow-clinical-view-v2-card-header,
.dx-state-invisible .ow-clinical-view-v2-card-header,
.dx-sortable-placeholder .ow-clinical-view-v2-card-header {
    display: block;
    padding-right: 44px;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-subject,
.dx-sortable-dragging .ow-clinical-view-v2-card-subject,
.dx-sortable-dragged .ow-clinical-view-v2-card-subject,
.dx-sortable-source .ow-clinical-view-v2-card-subject,
.dx-state-invisible .ow-clinical-view-v2-card-subject,
.dx-sortable-placeholder .ow-clinical-view-v2-card-subject {
    max-width: none;
    padding: 0 8px 12px 0;
    overflow: hidden;
    line-height: 1.45em;
    max-height: 2.9em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 15px;
    font-weight: 470;
    color: var(--clinical-kanban-text);
    word-break: break-word;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-subject-no-patient,
.dx-sortable-dragging .ow-clinical-view-v2-card-subject-no-patient,
.dx-sortable-dragged .ow-clinical-view-v2-card-subject-no-patient,
.dx-sortable-source .ow-clinical-view-v2-card-subject-no-patient,
.dx-sortable-placeholder .ow-clinical-view-v2-card-subject-no-patient {
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

#clinicalViewV2Board .ow-clinical-view-v2-no-patient-icon,
.dx-sortable-dragging .ow-clinical-view-v2-no-patient-icon,
.dx-sortable-dragged .ow-clinical-view-v2-no-patient-icon,
.dx-sortable-source .ow-clinical-view-v2-no-patient-icon,
.dx-sortable-placeholder .ow-clinical-view-v2-no-patient-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#clinicalViewV2Board .ow-clinical-view-v2-no-patient-icon svg,
#clinicalViewV2Board .ow-clinical-view-v2-no-patient-icon i[data-lucide],
.dx-sortable-dragging .ow-clinical-view-v2-no-patient-icon svg,
.dx-sortable-dragging .ow-clinical-view-v2-no-patient-icon i[data-lucide],
.dx-sortable-dragged .ow-clinical-view-v2-no-patient-icon svg,
.dx-sortable-dragged .ow-clinical-view-v2-no-patient-icon i[data-lucide],
.dx-sortable-source .ow-clinical-view-v2-no-patient-icon svg,
.dx-sortable-source .ow-clinical-view-v2-no-patient-icon i[data-lucide],
.dx-sortable-placeholder .ow-clinical-view-v2-no-patient-icon svg,
.dx-sortable-placeholder .ow-clinical-view-v2-no-patient-icon i[data-lucide] {
    width: 16px;
    height: 16px;
    stroke-width: 1;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-subject-text,
.dx-sortable-dragging .ow-clinical-view-v2-card-subject-text,
.dx-sortable-dragged .ow-clinical-view-v2-card-subject-text,
.dx-sortable-source .ow-clinical-view-v2-card-subject-text,
.dx-sortable-placeholder .ow-clinical-view-v2-card-subject-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-badge,
.dx-sortable-dragging .ow-clinical-view-v2-card-badge,
.dx-sortable-dragged .ow-clinical-view-v2-card-badge,
.dx-sortable-source .ow-clinical-view-v2-card-badge,
.dx-state-invisible .ow-clinical-view-v2-card-badge,
.dx-sortable-placeholder .ow-clinical-view-v2-card-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--clinical-kanban-border);
    border-radius: 50%;
    background: var(--clinical-kanban-accent-soft);
    color: var(--clinical-kanban-accent);
    font-size: 12px;
    font-weight: 470;
    box-shadow: none;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-meta,
.dx-sortable-dragging .ow-clinical-view-v2-card-meta,
.dx-sortable-dragged .ow-clinical-view-v2-card-meta,
.dx-sortable-source .ow-clinical-view-v2-card-meta,
.dx-state-invisible .ow-clinical-view-v2-card-meta,
.dx-sortable-placeholder .ow-clinical-view-v2-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    padding-right: 44px;
}

#clinicalViewV2Board .ow-clinical-view-v2-meta-chip,
.dx-sortable-dragging .ow-clinical-view-v2-meta-chip,
.dx-sortable-dragged .ow-clinical-view-v2-meta-chip,
.dx-sortable-source .ow-clinical-view-v2-meta-chip,
.dx-state-invisible .ow-clinical-view-v2-meta-chip,
.dx-sortable-placeholder .ow-clinical-view-v2-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4f7fb;
    color: #48617d;
    font-size: 12px;
    font-weight: 400;
    max-width: 100%;
}

#clinicalViewV2Board .ow-clinical-view-v2-meta-chip-status,
.dx-sortable-dragging .ow-clinical-view-v2-meta-chip-status,
.dx-sortable-dragged .ow-clinical-view-v2-meta-chip-status,
.dx-sortable-source .ow-clinical-view-v2-meta-chip-status,
.dx-state-invisible .ow-clinical-view-v2-meta-chip-status,
.dx-sortable-placeholder .ow-clinical-view-v2-meta-chip-status {
    background: #eef5ff;
    color: #0f4c81;
}

#clinicalViewV2Board .ow-clinical-view-v2-meta-chip-activity,
.dx-sortable-dragging .ow-clinical-view-v2-meta-chip-activity,
.dx-sortable-dragged .ow-clinical-view-v2-meta-chip-activity,
.dx-sortable-source .ow-clinical-view-v2-meta-chip-activity,
.dx-state-invisible .ow-clinical-view-v2-meta-chip-activity,
.dx-sortable-placeholder .ow-clinical-view-v2-meta-chip-activity {
    color: #ffffff;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-time,
.dx-sortable-dragging .ow-clinical-view-v2-card-time,
.dx-sortable-dragged .ow-clinical-view-v2-card-time,
.dx-sortable-source .ow-clinical-view-v2-card-time,
.dx-state-invisible .ow-clinical-view-v2-card-time,
.dx-sortable-placeholder .ow-clinical-view-v2-card-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    padding-right: 44px;
    color: #59708a;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: normal;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-time-primary,
.dx-sortable-dragging .ow-clinical-view-v2-card-time-primary,
.dx-sortable-dragged .ow-clinical-view-v2-card-time-primary,
.dx-sortable-source .ow-clinical-view-v2-card-time-primary,
.dx-state-invisible .ow-clinical-view-v2-card-time-primary,
.dx-sortable-placeholder .ow-clinical-view-v2-card-time-primary {
    display: block;
    color: var(--clinical-kanban-accent);
    font-size: 12px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-time-secondary,
.dx-sortable-dragging .ow-clinical-view-v2-card-time-secondary,
.dx-sortable-dragged .ow-clinical-view-v2-card-time-secondary,
.dx-sortable-source .ow-clinical-view-v2-card-time-secondary,
.dx-state-invisible .ow-clinical-view-v2-card-time-secondary,
.dx-sortable-placeholder .ow-clinical-view-v2-card-time-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5f7287;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    flex-wrap: wrap;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-time-secondary i,
.dx-sortable-dragging .ow-clinical-view-v2-card-time-secondary i,
.dx-sortable-dragged .ow-clinical-view-v2-card-time-secondary i,
.dx-sortable-source .ow-clinical-view-v2-card-time-secondary i,
.dx-state-invisible .ow-clinical-view-v2-card-time-secondary i,
.dx-sortable-placeholder .ow-clinical-view-v2-card-time-secondary i {
    font-size: 14px;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-actions,
.dx-sortable-dragging .ow-clinical-view-v2-card-actions,
.dx-sortable-dragged .ow-clinical-view-v2-card-actions,
.dx-sortable-source .ow-clinical-view-v2-card-actions,
.dx-state-invisible .ow-clinical-view-v2-card-actions,
.dx-sortable-placeholder .ow-clinical-view-v2-card-actions {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    max-width: 72%;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-action,
.dx-sortable-dragging .ow-clinical-view-v2-card-action,
.dx-sortable-dragged .ow-clinical-view-v2-card-action,
.dx-sortable-source .ow-clinical-view-v2-card-action,
.dx-state-invisible .ow-clinical-view-v2-card-action,
.dx-sortable-placeholder .ow-clinical-view-v2-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #d6e0ea;
    border-radius: 10px;
    background: #f4f7fb;
    color: var(--clinical-kanban-accent);
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-action:hover,
#clinicalViewV2Board .ow-clinical-view-v2-card-action:focus,
.dx-sortable-dragging .ow-clinical-view-v2-card-action:hover,
.dx-sortable-dragging .ow-clinical-view-v2-card-action:focus,
.dx-sortable-dragged .ow-clinical-view-v2-card-action:hover,
.dx-sortable-dragged .ow-clinical-view-v2-card-action:focus,
.dx-sortable-source .ow-clinical-view-v2-card-action:hover,
.dx-sortable-source .ow-clinical-view-v2-card-action:focus,
.dx-state-invisible .ow-clinical-view-v2-card-action:hover,
.dx-state-invisible .ow-clinical-view-v2-card-action:focus,
.dx-sortable-placeholder .ow-clinical-view-v2-card-action:hover,
.dx-sortable-placeholder .ow-clinical-view-v2-card-action:focus {
    background: #edf3f9;
    border-color: #c6d2e1;
    transform: translateY(-1px);
    outline: 0;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-action-finance.overdue,
.dx-sortable-dragging .ow-clinical-view-v2-card-action-finance.overdue,
.dx-sortable-dragged .ow-clinical-view-v2-card-action-finance.overdue,
.dx-sortable-source .ow-clinical-view-v2-card-action-finance.overdue,
.dx-state-invisible .ow-clinical-view-v2-card-action-finance.overdue,
.dx-sortable-placeholder .ow-clinical-view-v2-card-action-finance.overdue {
    color: #d14343;
}

#clinicalViewV2Board .ow-clinical-view-v2-card-action-finance.current,
.dx-sortable-dragging .ow-clinical-view-v2-card-action-finance.current,
.dx-sortable-dragged .ow-clinical-view-v2-card-action-finance.current,
.dx-sortable-source .ow-clinical-view-v2-card-action-finance.current,
.dx-state-invisible .ow-clinical-view-v2-card-action-finance.current,
.dx-sortable-placeholder .ow-clinical-view-v2-card-action-finance.current {
    color: #1c8f58;
}

#clinicalViewV2Board .dx-sortable-source.ow-clinical-view-v2-card,
#clinicalViewV2Board .dx-state-invisible.ow-clinical-view-v2-card,
#clinicalViewV2Board .dx-sortable-placeholder.ow-clinical-view-v2-card,
.dx-sortable-source.ow-clinical-view-v2-card,
.dx-state-invisible.ow-clinical-view-v2-card,
.dx-sortable-placeholder.ow-clinical-view-v2-card {
    border-style: dashed !important;
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
    opacity: 0.28 !important;
    transform: none !important;
}

#clinicalViewV2Board .dx-sortable-source.ow-clinical-view-v2-card::before,
#clinicalViewV2Board .dx-state-invisible.ow-clinical-view-v2-card::before,
#clinicalViewV2Board .dx-sortable-placeholder.ow-clinical-view-v2-card::before,
.dx-sortable-source.ow-clinical-view-v2-card::before,
.dx-state-invisible.ow-clinical-view-v2-card::before,
.dx-sortable-placeholder.ow-clinical-view-v2-card::before {
    opacity: 0.35;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-loading {
    position: absolute;
    inset: 46px 5px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(244, 247, 251, 0.92);
    color: #22415f;
    font-size: 14px;
    font-weight: 470;
    z-index: 2;
}

.ow-clinical-view-v2-annotation-popup .dx-overlay-content {
    border-radius: 18px;
    overflow: hidden;
}

.ow-clinical-view-v2-annotation-popup .dx-popup-content {
    padding: 18px;
    background: #f7f9fc;
}

.ow-clinical-view-v2-annotation-popup .dx-popup-title {
    padding: 16px 20px;
    border-bottom: 1px solid #d8e0ea;
    color: #10233d;
    font-weight: 470;
}

#clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-blink {
    animation: clinicalViewV2Blink 1s linear infinite;
}

#tarefas #myCustomList .dx-list .dx-list-item.dx-state-focused,
#tarefas #myCustomList .dx-list .dx-list-item.dx-state-active,
#tarefas #myCustomList .dx-list .dx-list-item.dx-list-item-selected,
#tarefas #listaTarefasConcluidas .dx-list .dx-list-item.dx-state-focused,
#tarefas #listaTarefasConcluidas .dx-list .dx-list-item.dx-state-active,
#tarefas #listaTarefasConcluidas .dx-list .dx-list-item.dx-list-item-selected {
    background-color: transparent !important;
    color: inherit !important;
}

#tarefas .todo-list-container {
    background-color: #f5f6f8;
    padding: 0;
}

#tarefas .todo-row {
    display: flex;
    width: 100%;
    background: #fff;
}

#tarefas .todo-bar {
    width: 6px;
    flex: 0 0 6px;
    border-radius: 6px;
    margin: 8px 0 8px 8px;
}

#tarefas .todo-item {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    min-width: 0;
    width: 100%;
}

#tarefas .todo-check {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

#tarefas .todo-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

#tarefas .todo-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

#tarefas .todo-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}

#tarefas .todo-rec {
    font-size: 18px;
    opacity: 0.8;
}

#tarefas .todo-desc {
    font-size: 80%;
    opacity: 0.85;
}

#tarefas .todo-date,
#tarefas .vencimento {
    font-size: 13px;
}

#tarefas .todo-comment {
    flex: 0 0 auto;
    font-size: 20px;
    cursor: pointer;
    margin-top: 2px;
}

#tarefas .icone {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
}

#tarefas .icone.prioridade-baixa {
    color: gray;
}

#tarefas .icone.prioridade-media {
    color: gold;
}

#tarefas .icone.prioridade-alta {
    color: red;
}

#tarefas .todo-item.concluida {
    text-decoration: line-through;
    opacity: 0.5;
    font-style: italic;
}

#tarefas .ow-task-readonly-row {
    pointer-events: none;
}

#tarefas .ow-task-title-completed {
    text-decoration: line-through;
}

#tarefas .ow-task-completed-toggle {
    margin: 10px 0;
}

#tarefas .ow-task-completed-list {
    margin-top: 8px;
}

#popupComentarioTarefa .ow-task-comment-popup {
    padding: 10px;
}

#popupComentarioTarefa .ow-task-comment-add-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#popupComentarioTarefa .ow-task-comment-add-input {
    flex-grow: 1;
}

#popupTarefa .ow-task-popup-form-wrap {
    padding: 6px 4px;
}

#popupTarefa .ow-task-popup-block {
    padding: 5px;
}

#popupTarefa .ow-task-popup-block-header {
    cursor: pointer;
}

@keyframes clinicalViewV2Blink {
    50% {
        opacity: 0.4;
    }
}

@media (max-width: 991px) {
    #clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-board-scroll {
        cursor: default;
    }

    #clinicalViewV2Board .ow-clinical-view-v2-column {
        width: 320px;
        max-width: 320px;
        height: 600px;
    }

    #clinicalViewV2Board .ow-clinical-view-v2-column-body {
        padding-right: 24px;
        scrollbar-width: auto;
    }

    #clinicalViewV2Board .ow-clinical-view-v2-column-body::-webkit-scrollbar {
        width: 24px;
    }

    #clinicalViewV2Board .ow-clinical-view-v2-column-body .dx-scrollable-scrollbar.dx-scrollbar-vertical,
    #clinicalViewV2Board .ow-clinical-view-v2-column-body .dx-scrollable-scrollbar.dx-scrollbar-vertical .dx-scrollable-scroll {
        width: 24px;
        min-width: 24px;
    }

    #clinicalViewV2Board .ow-clinical-view-v2-column-empty,
    #clinicalViewV2Board .ow-clinical-view-v2-empty-cards,
    #clinicalViewV2Board .ow-clinical-view-v2-cards-container {
        min-height: 360px;
    }
}

@media (pointer: coarse) {
    #clinicalViewV2Page.clinical-view-v2-theme .ow-clinical-view-v2-board-scroll {
        cursor: default;
    }

    #clinicalViewV2Board .ow-clinical-view-v2-column-body {
        padding-right: 24px;
        scrollbar-width: auto;
    }

    #clinicalViewV2Board .ow-clinical-view-v2-column-body::-webkit-scrollbar {
        width: 24px;
    }

    #clinicalViewV2Board .ow-clinical-view-v2-column-body .dx-scrollable-scrollbar.dx-scrollbar-vertical,
    #clinicalViewV2Board .ow-clinical-view-v2-column-body .dx-scrollable-scrollbar.dx-scrollbar-vertical .dx-scrollable-scroll {
        width: 24px;
        min-width: 24px;
		right: -10px;
    }
}

@media (max-width: 767px) {
    .ow-clinical-view-v2-annotation-popup .dx-popup-content {
        padding: 12px;
    }
}

.ab-detail-alert {
    border: 1px solid #f5d79a;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf1 0%, #fff5de 100%);
    color: #8c5a00;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 14px;
}

.ab-detail-helper-text {
    color: #6f7f8f;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 8px;
}

.ab-detail-row-top-space {
    margin-top: 14px;
}

.ab-detail-section-title {
    color: #21456a;
    font-size: 17px;
    font-weight: 470;
    margin: 0 0 12px;
}

.ab-detail-time-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.ab-detail-time-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ab-detail-time-row {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d8e4ef;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.ab-detail-time-editor-wrap {
    min-width: 0;
}

.ab-detail-time-inline .dx-texteditor {
    margin-bottom: 0;
}

.ab-detail-time-remove {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    color: #4a617d;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.ab-detail-time-remove:hover,
.ab-detail-time-remove:focus {
    border-color: #bfd4eb;
    color: #1f78be;
    text-decoration: none;
}

.ab-detail-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ab-detail-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    min-height: 108px;
    padding: 14px 16px;
}

.ab-detail-summary-label {
    color: #61738b;
    display: block;
    font-size: 12px;
    font-weight: 470;
    letter-spacing: .04em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ab-detail-summary-value {
    color: #173255;
    display: block;
    font-size: 28px;
    font-weight: 470;
    line-height: 1;
    margin-bottom: 8px;
}

.ab-detail-summary-meta {
    color: #6c7d93;
    font-size: 13px;
    line-height: 1.5;
}

.ab-detail-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.ab-detail-summary-item {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe7f1;
    border-radius: 12px;
    color: #36506f;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
}

.ab-detail-summary-empty {
    color: #6f7f8f;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
}

.ab-detail-summary-tail {
    color: #6f7f8f;
    font-size: 12px;
    font-weight: 400;
    padding-top: 2px;
}

@media (max-width: 991px) {
    .ab-detail-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ab-detail-time-row {
        grid-template-columns: 1fr;
    }

    .ab-detail-time-toolbar {
        justify-content: stretch;
    }

    .ab-detail-time-toolbar .ow-toolbar-btn {
        width: 100%;
    }
}
