.nav-pills {
    width: 100%;
    margin: 0 !important;
    justify-content: space-between;
    background-color: #E2EDEC;
    padding: 5px 6px;
    border-radius: 50px;
}

.nav-link i {
    color: #C6CFCF;
    font-size: 15px;
}

.nav-link.active {
    border-radius: 50px;
    background-color: #fff !important;
    color: #000 !important
}

.nav-link.active i {
    color: var(--primary, #19c4c0)
}

.nav-link img {
    margin-left: 5px;
    width: 17px;
    height: 17px;
}

.badge-info {
    font-size: 11px;
    line-height: 1.3;
}

.badge-info span {
    display: block;
}

.chart-container {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.engineering_tap_box{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    min-height: 38px;
}

/* ─────────────────────────────────────────────
   Graph tab boot: show only loader overlay
   (prevents side tools/tabs showing before graph)
────────────────────────────────────────────── */
body.graph-booting .main-content {
    visibility: hidden;
}
body.graph-booting #overlay_loader {
    display: block !important;
}
.engineering_tap_message_box{
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary, #19c4c0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}
.engineering_tap_message_box i{
    padding: 9px;
}

.engineering_tap_message_box.version-btn {
    cursor: pointer;
}
.engineering_tap_message_box.version-btn i {
    font-size: 16px;
}

.engineering_tap_box_item{
    width: 234px;
    display: flex;
    align-items: center;
}

.engineering_tap_box_item .switch-toggle {
    width: auto;
    min-width: 200px;
}

.engineering_tap_box_item .switch-toggle-labels span {
    white-space: nowrap;
    padding: 0 8px;
}

.engineering_tap_box_item ul>li>button{
    font-size: 14px;
    padding: 3.5px 12px;
    color: #292C31;
}

.line-hazop-widget-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cross-drawing-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 4px 10px 4px 6px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 25, 196, 192), 0.28), rgba(14, 104, 140, 0.48));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cross-drawing-match-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #dffefd;
    font-size: 11px;
}

.cross-drawing-match-badge-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* Shown when one stream links this line to several lines on the other drawing. */
.cross-drawing-match-badge-count {
    min-width: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #dffefd;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.line-hazop-widget-row .cross-drawing-match-badge + .cross-drawing-match-badge {
    margin-left: 6px;
}

.cross-drawing-match-badge:hover,
.cross-drawing-match-badge:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.cross-drawing-match-badge:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

#pills_lines .cross-drawing-viewer-panel {
    min-height: calc(100vh - 250px);
}

.cross-drawing-viewer-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: calc(100vh - 250px);
    background: #fff;
    border: 1px solid #d9e4e3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(33, 52, 58, 0.12);
}

.cross-drawing-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e4eceb;
    background: linear-gradient(180deg, #f7fbfb 0%, #edf5f4 100%);
}

.cross-drawing-viewer-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #4f7b7a;
    text-transform: uppercase;
}

.cross-drawing-viewer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-183638, #183638);
}

.cross-drawing-viewer-meta {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
    color: #5f7374;
    max-width: 460px;
}

.cross-drawing-viewer-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #fff;
}

.cross-drawing-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cross-drawing-viewer-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cross-drawing-viewer-nav.d-none {
    display: none !important;
}

.cross-drawing-segment-inline {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.cross-drawing-segment-inline button {
    border: 0;
    background: none;
    padding: 0 3px;
    line-height: 1;
    font-size: 10px;
    color: #4f7b7a;
    opacity: 0.75;
}

.cross-drawing-segment-inline button:hover {
    opacity: 1;
}

.cross-drawing-segment-label {
    font-size: 12px;
    color: #5f7374;
}

.cross-drawing-segment-status {
    font-weight: 700;
    color: #4f7b7a;
}

html[data-app-theme="dark"] .cross-drawing-segment-label,
html[data-app-theme="dark"] .cross-drawing-segment-inline button,
html[data-app-theme="dark"] .cross-drawing-segment-status {
    color: #a8bcbc;
}

.cross-drawing-viewer-nav .btn {
    padding: 2px 8px;
    line-height: 1.2;
}

.cross-drawing-nav-status {
    min-width: 44px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #4f7b7a;
    white-space: nowrap;
}

#cross-drawing-viewer-iframe,
#pills_lines .cross-drawing-viewer-panel iframe {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 330px);
    border: 0;
    display: block;
    background: #fff;
}

#pills_lines .cross-drawing-viewer-panel.d-none {
    display: none !important;
}

#pills_lines .symbols_main.cross-drawing-split {
    /* Source drawing + one pane per matched counterpart. Set from JS; the
       fallback of 2 keeps the original 50/50 layout if it is ever missing. */
    --split-pane-count: 2;
    --line-lounge-collapsed-width: 34px;
    --line-lounge-split-width: clamp(220px, 20vw, 300px);
    --line-lounge-gap: 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--line-lounge-gap);
    min-height: 80vh;
}

#pills_lines .symbols_main {
    --line-lounge-collapsed-width: 34px;
    --line-lounge-width: 16.666667%;
    --line-lounge-gap: 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--line-lounge-gap);
}

#pills_lines .symbols_main > #lines-action-container {
    min-width: 0;
    height: 80vh;
    flex: 0 1 calc(100% - var(--line-lounge-width) - var(--line-lounge-gap));
    width: calc(100% - var(--line-lounge-width) - var(--line-lounge-gap)) !important;
    max-width: calc(100% - var(--line-lounge-width) - var(--line-lounge-gap));
    transition: flex-basis 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

#pills_lines .symbols_main > #line-lounge-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--line-lounge-width);
    width: var(--line-lounge-width);
    max-width: var(--line-lounge-width);
    align-self: stretch;
}

#pills_lines .symbols_main > #line-lounge-panel.line-lounge-expanded {
    flex-grow: 1;
    flex-basis: var(--line-lounge-width);
    width: var(--line-lounge-width);
    max-width: none;
}

#pills_lines .symbols_main > #line-lounge-panel.line-lounge-collapsed {
    flex-basis: var(--line-lounge-collapsed-width);
    width: var(--line-lounge-collapsed-width);
    max-width: var(--line-lounge-collapsed-width);
}

/* The row holds --split-pane-count drawing columns (source + one per matched
   counterpart) plus the lounge, so it has --split-pane-count gaps between them. */
#pills_lines .symbols_main.cross-drawing-split {
    --split-gaps-total: calc(var(--split-pane-count) * var(--line-lounge-gap));
}

#pills_lines .symbols_main.cross-drawing-split > #lines-action-container {
    min-width: 0 !important;
    width: calc((100% / var(--split-pane-count)) - 8px) !important;
    flex: 0 0 calc((100% / var(--split-pane-count)) - 8px);
    max-width: calc((100% / var(--split-pane-count)) - 8px);
    min-height: 80vh !important;
    transition: none !important;
}

#pills_lines .symbols_main.cross-drawing-split > .cross-drawing-viewer-panel {
    display: block !important;
    width: calc((100% / var(--split-pane-count)) - 8px);
    flex: 0 0 calc((100% / var(--split-pane-count)) - 8px);
    max-width: calc((100% / var(--split-pane-count)) - 8px);
    min-width: 0;
    transition: none !important;
}

#pills_lines .symbols_main.cross-drawing-split.line-lounge-collapsed > #lines-action-container,
#pills_lines .symbols_main.cross-drawing-split.line-lounge-collapsed > .cross-drawing-viewer-panel {
    width: calc((100% - var(--line-lounge-collapsed-width) - var(--split-gaps-total)) / var(--split-pane-count)) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc((100% - var(--line-lounge-collapsed-width) - var(--split-gaps-total)) / var(--split-pane-count));
    max-width: calc((100% - var(--line-lounge-collapsed-width) - var(--split-gaps-total)) / var(--split-pane-count));
}

#pills_lines .symbols_main.cross-drawing-split.line-lounge-expanded > #lines-action-container,
#pills_lines .symbols_main.cross-drawing-split.line-lounge-expanded > .cross-drawing-viewer-panel {
    width: calc((100% - var(--line-lounge-split-width) - var(--split-gaps-total)) / var(--split-pane-count)) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc((100% - var(--line-lounge-split-width) - var(--split-gaps-total)) / var(--split-pane-count));
    max-width: calc((100% - var(--line-lounge-split-width) - var(--split-gaps-total)) / var(--split-pane-count));
}

#pills_lines .symbols_main.cross-drawing-split > #line-lounge-panel.line-lounge-collapsed {
    width: var(--line-lounge-collapsed-width) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--line-lounge-collapsed-width);
    max-width: var(--line-lounge-collapsed-width);
}

#pills_lines .symbols_main.cross-drawing-split > #line-lounge-panel.line-lounge-expanded {
    width: var(--line-lounge-split-width) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--line-lounge-split-width);
    max-width: var(--line-lounge-split-width);
}

#pills_lines .symbols_main.cross-drawing-split > #lines-action-container .drawing-container,
#pills_lines .symbols_main.cross-drawing-split > .cross-drawing-viewer-panel .cross-drawing-viewer-shell {
    height: 100%;
}

#symbol-cross-drawing-viewer-panel {
    min-height: calc(100vh - 250px);
}

#symbol-cross-drawing-viewer-iframe {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 330px);
    border: 0;
    display: block;
    background: #fff;
}

#pills_symbols_and_text .drawing-symbols-split-container,
#pills_symbols_and_text .symbols_main {
    padding-right: 0;
}

#pills_symbols_and_text .symbols_main {
    --symbol-lounge-collapsed-width: 34px;
    --symbol-lounge-width: 25%;
    --symbol-lounge-split-width: clamp(240px, 24vw, 340px);
    --symbol-lounge-gap: 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--symbol-lounge-gap);
}

#pills_symbols_and_text .symbols_main > #symbols-action-container {
    min-width: 0;
    flex: 0 1 calc(100% - var(--symbol-lounge-width) - var(--symbol-lounge-gap));
    width: calc(100% - var(--symbol-lounge-width) - var(--symbol-lounge-gap)) !important;
    max-width: calc(100% - var(--symbol-lounge-width) - var(--symbol-lounge-gap));
    transition: flex-basis 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

#pills_symbols_and_text .symbols_main > #engineering-board-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--symbol-lounge-width);
    width: var(--symbol-lounge-width);
    max-width: var(--symbol-lounge-width);
    align-self: stretch;
}

#pills_symbols_and_text .symbols_main > #engineering-board-panel.symbol-lounge-expanded {
    flex-basis: var(--symbol-lounge-width);
    width: var(--symbol-lounge-width);
    max-width: var(--symbol-lounge-width);
}

#pills_symbols_and_text .symbols_main > #engineering-board-panel.symbol-lounge-collapsed {
    flex-basis: var(--symbol-lounge-collapsed-width);
    width: var(--symbol-lounge-collapsed-width);
    max-width: var(--symbol-lounge-collapsed-width);
}

#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split {
    --symbol-lounge-gap: 16px;
    min-height: 80vh;
}

#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #symbols-action-container {
    min-width: 0 !important;
    width: calc(50% - 8px) !important;
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    min-height: 80vh !important;
    transition: none !important;
}

#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #symbol-cross-drawing-viewer-panel {
    display: block !important;
    width: calc(50% - 8px);
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    min-width: 0;
    transition: none !important;
}

#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split.symbol-lounge-collapsed > #symbols-action-container,
#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split.symbol-lounge-collapsed > #symbol-cross-drawing-viewer-panel {
    width: calc((100% - var(--symbol-lounge-collapsed-width) - 32px) / 2) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc((100% - var(--symbol-lounge-collapsed-width) - 32px) / 2);
    max-width: calc((100% - var(--symbol-lounge-collapsed-width) - 32px) / 2);
}

#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split.symbol-lounge-expanded > #symbols-action-container,
#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split.symbol-lounge-expanded > #symbol-cross-drawing-viewer-panel {
    width: calc((100% - var(--symbol-lounge-split-width) - 32px) / 2) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc((100% - var(--symbol-lounge-split-width) - 32px) / 2);
    max-width: calc((100% - var(--symbol-lounge-split-width) - 32px) / 2);
}

#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #engineering-board-panel.symbol-lounge-collapsed {
    width: var(--symbol-lounge-collapsed-width) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--symbol-lounge-collapsed-width);
    max-width: var(--symbol-lounge-collapsed-width);
}

#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #engineering-board-panel.symbol-lounge-expanded {
    width: var(--symbol-lounge-split-width) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--symbol-lounge-split-width);
    max-width: var(--symbol-lounge-split-width);
}

#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #symbols-action-container .drawing-container,
#pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #symbol-cross-drawing-viewer-panel .cross-drawing-viewer-shell {
    height: 100%;
}

#pills_lines .symbols_main,
#pills-texts .symbols_main {
    margin-right: 0;
    padding-right: 0;
}

#pills-texts .symbols_main {
    --text-lounge-width: 25%;
}

#pills-texts .symbols_main > #texts-action-container {
    min-width: 0;
    flex: 0 0 calc(100% - var(--text-lounge-width));
    width: calc(100% - var(--text-lounge-width));
    max-width: calc(100% - var(--text-lounge-width));
}

#pills-texts .symbols_main > .symbols_data_lounge {
    flex: 1 0 var(--text-lounge-width);
    width: var(--text-lounge-width);
    max-width: none;
}

@media (max-width: 1199.98px) {
    #pills_lines .symbols_main {
        flex-wrap: wrap;
    }

    #pills_lines .symbols_main.cross-drawing-split {
        flex-direction: column;
    }

    #pills_lines .symbols_main.cross-drawing-split > #lines-action-container,
    #pills_lines .symbols_main.cross-drawing-split > .cross-drawing-viewer-panel,
    #pills_lines .symbols_main.cross-drawing-split > #line-lounge-panel {
        width: 100% !important;
        max-width: 100%;
        flex-basis: auto;
    }

    #pills_symbols_and_text .symbols_main {
        flex-wrap: wrap;
    }

    #pills_symbols_and_text .symbols_main.symbol-cross-drawing-split {
        flex-direction: column;
    }

    #pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #symbols-action-container,
    #pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #symbol-cross-drawing-viewer-panel,
    #pills_symbols_and_text .symbols_main.symbol-cross-drawing-split > #engineering-board-panel {
        width: 100% !important;
        max-width: 100%;
        flex-basis: auto;
    }
}
.dashboader_banner_content_box {
    /*padding: 15px 0px;*/
    position: relative;
}

.shadow_tab {
    width: auto;
    max-width: calc(100% - 24px);
    position: absolute;
    /* bottom-anchored so the strip always sits flush on the panel below,
       whatever the tab buttons measure at the current breakpoint */
    top: auto;
    bottom: 100%;
    /*left: 12px;*/
    background-color: unset;
    justify-content: unset;
    padding: unset;

}

.shadow_tab li:first-child button{
    position: relative !important;
    z-index: 11;
}
.shadow_tab li button.active{
    font-weight: 600;
    color: #0E1116 !important;
    z-index: 20 !important;
    box-shadow: 4px -4px 14px rgba(0, 0, 0, 8%), inset 0 3px 0 0 var(--primary, #19c4c0);
}
.shadow_tab li:not(:first-child) button{
    padding: 10px 24px;
    position: relative !important;
    margin-left: 0;
    border-radius: 20px 20px 0px 0px !important;

}

.symbols_main{
    /*width: 100%;
    border: 1px solid #E5E5E5;
    border-radius:  15px;*/
    padding: 10px;
    border-top-left-radius: 0;
    gap: 20px;
}

#symbols-split-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

.drawing-symbols-split-container.document-split-container-active {
    padding-left: 0;
    padding-right: 0;
}

#redlining-split-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

#symbols-split-layout #symbols-action-container {
    flex: 0 1 calc(100% - var(--symbol-lounge-width) - 10px);
    width: calc(100% - var(--symbol-lounge-width) - 10px) !important;
    max-width: calc(100% - var(--symbol-lounge-width) - 10px);
}

#symbols-split-layout #engineering-board-panel.symbol-lounge-expanded {
    flex: 1 0 calc(var(--symbol-lounge-width) - 10px) !important;
    width: calc(var(--symbol-lounge-width) - 10px) !important;
    max-width: none !important;
}

#pills_symbols_and_text .symbols_main:has(> #symbols-action-container.d-none)::before,
#pills_lines .symbols_main:has(> #lines-action-container.d-none)::before,
#pills-texts .symbols_main:has(> #texts-action-container.d-none)::before {
    content: "";
    order: -1;
    align-self: stretch;
    min-height: 70vh;
    margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
    border-radius: 15px;
    background-color: var(--tx-surface-2, #f3f5f6);
    background-image: linear-gradient(100deg,
        rgba(var(--primary-rgb, 25, 196, 192), 0) 35%,
        rgba(var(--primary-rgb, 25, 196, 192), .07) 50%,
        rgba(var(--primary-rgb, 25, 196, 192), 0) 65%);
    background-size: 220% 100%;
    background-repeat: no-repeat;
    animation: drawing-board-boot-sheen 1.8s ease-in-out infinite;
}

#pills_symbols_and_text .symbols_main:has(> #symbols-action-container.d-none)::before {
    flex: 0 1 calc(100% - var(--symbol-lounge-width) - var(--symbol-lounge-gap));
    max-width: calc(100% - var(--symbol-lounge-width) - var(--symbol-lounge-gap));
}

#pills_lines .symbols_main:has(> #lines-action-container.d-none)::before {
    flex: 0 1 calc(100% - var(--line-lounge-width) - var(--line-lounge-gap));
    max-width: calc(100% - var(--line-lounge-width) - var(--line-lounge-gap));
}

#pills-texts .symbols_main:has(> #texts-action-container.d-none)::before {
    flex: 0 1 calc(100% - var(--text-lounge-width));
    max-width: calc(100% - var(--text-lounge-width));
}

@keyframes drawing-board-boot-sheen {
    from { background-position: 130% 0; }
    to { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
    #pills_symbols_and_text .symbols_main:has(> #symbols-action-container.d-none)::before,
    #pills_lines .symbols_main:has(> #lines-action-container.d-none)::before,
    #pills-texts .symbols_main:has(> #texts-action-container.d-none)::before {
        animation: none;
    }
}

/* The base symbols layout above reserves 75%/25% for the normal lounge.
   Override that reservation only while the matched-drawing split is active. */
#symbols-split-layout.symbol-cross-drawing-split.symbol-lounge-collapsed > #symbols-action-container,
#symbols-split-layout.symbol-cross-drawing-split.symbol-lounge-collapsed > #symbol-cross-drawing-viewer-panel {
    width: calc((100% - var(--symbol-lounge-collapsed-width) - 32px) / 2) !important;
    flex: 0 0 calc((100% - var(--symbol-lounge-collapsed-width) - 32px) / 2) !important;
    max-width: calc((100% - var(--symbol-lounge-collapsed-width) - 32px) / 2) !important;
}

#symbols-split-layout.symbol-cross-drawing-split.symbol-lounge-expanded > #symbols-action-container,
#symbols-split-layout.symbol-cross-drawing-split.symbol-lounge-expanded > #symbol-cross-drawing-viewer-panel {
    width: calc((100% - var(--symbol-lounge-split-width) - 32px) / 2) !important;
    flex: 0 0 calc((100% - var(--symbol-lounge-split-width) - 32px) / 2) !important;
    max-width: calc((100% - var(--symbol-lounge-split-width) - 32px) / 2) !important;
}

#symbols-split-layout.symbol-cross-drawing-split > #engineering-board-panel.symbol-lounge-collapsed {
    width: var(--symbol-lounge-collapsed-width) !important;
    flex: 0 0 var(--symbol-lounge-collapsed-width) !important;
    max-width: var(--symbol-lounge-collapsed-width) !important;
}

#symbols-split-layout.symbol-cross-drawing-split > #engineering-board-panel.symbol-lounge-expanded {
    width: var(--symbol-lounge-split-width) !important;
    flex: 0 0 var(--symbol-lounge-split-width) !important;
    max-width: var(--symbol-lounge-split-width) !important;
}

#redlining-split-layout #redlining-action-container {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

#symbols-document-split-panel {
    display: none;
}

#redlining-document-split-panel {
    display: none;
}

#symbols-split-layout.document-split-active {
    gap: 0;
    width: 100%;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
}

#symbols-split-layout.document-split-active #symbols-action-container {
    flex: 0 0 48% !important;
    width: 48% !important;
    max-width: 48% !important;
    display: flex !important;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
    min-width: 0;
}

#symbols-split-layout.document-split-active #engineering-board-panel {
    display: none !important;
}

#symbols-split-layout.document-split-active #symbols-document-split-panel {
    flex: 0 0 52% !important;
    width: 52% !important;
    max-width: 52% !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

#symbols-split-layout.document-split-active #symbols-action-container,
#symbols-split-layout.document-split-active #symbols-document-split-panel {
    padding-left: 0;
    padding-right: 0;
}

#symbols-split-layout.document-split-active #symbols-container {
    margin-top: 0 !important;
    min-height: 72vh;
    width: 100%;
}

#symbols-split-layout.document-split-active #symbols-document-split-panel {
    border-left: 1px solid #E5E5E5;
    padding: 0;
}

#symbols-split-layout.document-split-active #drawing-document-viewer-panel {
    display: flex !important;
    flex-direction: column;
    height: 72vh;
    width: 100%;
    padding: 0 0 12px 8px;
    box-sizing: border-box;
}

#lines-split-layout.document-split-active {
    gap: 0;
    width: 100%;
    align-items: stretch;
}

#lines-split-layout.document-split-active #lines-action-container {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    display: flex !important;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

#lines-split-layout.document-split-active #lines-container {
    margin-top: 0 !important;
    min-height: 72vh;
    width: 100%;
}

#lines-split-layout.document-split-active #line-lounge-panel {
    display: none !important;
}

#lines-split-layout.document-split-active #lines-document-split-panel {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-left: 1px solid #E5E5E5;
    padding: 0;
}

#lines-split-layout.document-split-active #lines-document-viewer-panel {
    display: flex !important;
    flex-direction: column;
    height: 72vh;
    width: 100%;
    padding: 0 15px 12px;
    box-sizing: border-box;
}

#redlining-split-layout.document-split-active {
    gap: 0;
    width: 100%;
    align-items: stretch;
}

#redlining-split-layout.document-split-active #redlining-action-container {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    display: flex !important;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

#redlining-split-layout.document-split-active #redlining-container {
    margin-top: 0 !important;
    min-height: 72vh;
    width: 100%;
}

#redlining-split-layout.document-split-active #redlining-document-split-panel {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-left: 1px solid #E5E5E5;
    padding: 0;
}

#redlining-split-layout.document-split-active #redlining-document-viewer-panel {
    display: flex !important;
    flex-direction: column;
    height: 72vh;
    width: 100%;
    padding: 0 15px 12px;
    box-sizing: border-box;
}
.symbols_img{
    width: 70%;
    border: 1px solid #E5E5E5;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.symbols_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.symbol_child_img{
    position: absolute;
    width: 154px;
    top: 16px;
    right: 15px;
}

.symbol_child_img img{
    width: 100%;
}
.symbols_data_lounge {
    /*width: 30%;*/
    border-radius: 15px;
    padding: 15px 8px;
    border: 1px solid #E5E5E5;
}
.symbols_data_lounge_header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* every lounge section heading matches the Symbols & Texts one (h3.loungeTabsTitle) */
.symbols_data_lounge_header h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #292D32;
}
#erp-board-panel .symbols_data_lounge_header > .d-flex {
    flex-wrap: nowrap;
    column-gap: 4px;
}
#erp-board-panel .symbols_data_lounge_header h3 {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 12px !important;
}
#erp-board-panel .symbols_data_lounge_header h3 .switch {
    flex: 0 0 auto;
}
#erp-board-panel .symbols_data_lounge_header .switch.btn {
    height: 24px !important;
    min-width: 0;
    min-height: 0;
}
#erp-board-panel .symbols_data_lounge_header .switch.btn,
#erp-board-panel .symbols_data_lounge_header .switch .switch-on,
#erp-board-panel .symbols_data_lounge_header .switch .switch-off {
    font-size: 12px !important;
}
#erp-board-panel .symbols_data_lounge_header .switch .switch-on,
#erp-board-panel .symbols_data_lounge_header .switch .switch-off {
    font-weight: 700;
    letter-spacing: normal;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#erp-board-panel .symbols_data_lounge_header .switch .switch-on {
    padding-left: 0.2rem;
    padding-right: 0.75rem;
}
#erp-board-panel .symbols_data_lounge_header .switch .switch-off {
    padding-left: 0.75rem;
    padding-right: 0.2rem;
}
#erp-board-panel .symbols_data_lounge_header .switch .switch-handle {
    width: 14px;
    padding-left: 0;
    padding-right: 0;
}
#erp-board-panel .symbols_data_lounge_header h3 .lounge-word {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
#erp-board-panel #edit_mask_btn_dboard {
    flex: 0 0 auto;
}
#erp-board-panel .symbols_data_lounge_header .lounge-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex: 0 0 auto;
}
.symbols_data_lounge_header p {
    font-size: 12px;
    color: #292C31;
}
.symbols_data_lounge_header p span {
    font-size: 14px;
    font-weight: 550;
    color: #292C31;
}
.symbols_data_search {
    width: 100%;
    margin: 10px 0px;
    align-items: center;
    justify-content: space-between;
}
.symbols_data_search_box {
    /*width: 304px;*/
    position: relative;
}
.symbols_data_search_box input {
    width: 100%;
    border-radius: 50px;
    padding: 7px 16px;
    border: 1px solid #E5E5F5;
    outline: unset;
}
.symbols_data_search_box img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
}
.symbols_data_search_box_icon {
    width: 38px;
    height: 38px;
    border-radius: 50px;
    background-color: var(--primary, #19c4c0);
    display: flex;
    justify-content: center;
    align-items: center;
}
.symbols_data_search_box_icon i {
    color: #fff;
}
.eng_text_main{
    width: 100%;
    border: 1px solid #E5E5E5;
    border-radius:  15px;
    padding: 20px;
    border-top-left-radius: 0;
    gap: 20px;
}

.eng_text_main_img{
    width: 70%;
    border: 1px solid #E5E5E5;
    border-radius: 15px;
    position: relative;
    height: 581px;

}
.eng_text_child_img{
    position: absolute;
    width: 154px;
    top: 16px;
    right: 15px;
}
.eng_text_main_img img{
    width: 100%;
    height: 100%;
}

.eng_text_child_img img{
    width: 100%;
}

.eng_text_lounge {
    width: 30%;
    padding: 20px;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #E5E5E5;
}
.eng_text_lounge_header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-deleted-items-btn {
    position: relative;
    color: #3b3f45 !important;
}

.toolbar-deleted-items-btn i {
    color: #3b3f45 !important;
    font-size: 16px;
}

.toolbar-deleted-items-btn .deleted-items-bin {
    display: block;
    overflow: visible;
}

.toolbar-deleted-items-btn .deleted-items-bin-lid {
    transform-box: view-box;
    transform-origin: 4.6px 7.1px;
    transform: rotate(-14deg) translateY(-0.5px);
    transition: transform 180ms cubic-bezier(0.34, 1.4, 0.5, 1);
}

.toolbar-deleted-items-btn:hover .deleted-items-bin-lid,
.toolbar-deleted-items-btn:focus-visible .deleted-items-bin-lid,
#toolbar-deleted-items.active .deleted-items-bin-lid {
    transform: rotate(-32deg) translateY(-1.4px);
}

@media (prefers-reduced-motion: reduce) {
    .toolbar-deleted-items-btn .deleted-items-bin-lid { transition: none; }
}

#toolbar-deleted-items.active .toolbar-deleted-items-btn,
#toolbar-deleted-items.active .toolbar-deleted-items-btn i,
#toolbar-deleted-items .toolbar-deleted-items-btn:hover,
#toolbar-deleted-items .toolbar-deleted-items-btn:hover i,
#toolbar-deleted-items .toolbar-deleted-items-btn:focus,
#toolbar-deleted-items .toolbar-deleted-items-btn:focus i {
    color: #3b3f45 !important;
}

.toolbar-deleted-items-count {
    position: absolute;
    top: -3px;
    right: -7px;
    min-width: 15px;
    height: 15px;
    border-radius: 999px;
    background: #ff5c5c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    padding: 0 4px;
    text-align: center;
    border: 1px solid var(--tx-surface, #fff);
}
.eng_text_lounge_header a{
    color: var(--brand-049996, #049996);
    font-weight: 500;
    font-size: 14px;
    text-decoration: underline;
}
.ungrouped_box{
    border: 1px solid #E5E5E5;
    border-radius: 15px;
}
.ungrouped_box .my_collapsed:not(.collapsed)::after{
    color: var(--brand-049996, #049996)
}
.ungrouped_box .my-accordion-body{
    padding-top: 0;
}
/* .accordion-item {
    border-radius: 15px !important;
} */
.ungrouped_box_div{
    background-color: #F5F5F5;
    padding:0px 12px;
    border-radius: 15px;
    overflow: auto;
    height: 366px;
}
.ungrouped_child_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ungrouped_text h3 {
    font-size: 14px;
}
.ungrouped_search {
    width: 119px;
}
.ungrouped_search input {
    width: 100%;
    border-radius: 50px;
    border: 1px solid #E5E5E5;
    outline: unset;
    padding: 11px;
}
.ungrouped_icon i {
    color: #636E74;
}
.ungrouped_child_box {
    border-bottom: 1px solid #E5E5E5;
    padding: 15px 0px;
}
.drowing_icon {
    font-size: 22px;
}
.dashboard_heading_box {
    display: flex;
    gap: 19px;
}

.dashboard_heading_box h3 {
    display: flex;
    align-items: center;
}

#main .drawing-board-project-title {
    margin: 0 25px 0 auto;
    text-align: right;
    white-space: nowrap;
}

#main .drawing-board-project-title strong {
    font-weight: 700;
}

@media (max-width: 991px) {
    #main .drawing-board-project-title {
        margin-right: 44px;
        font-size: 16px;
    }
}
.verify-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--brand-53c4ce, #53c4ce);
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}

.verify-button:hover {
    background-color: var(--brand-23baba, #23baba);
}

.edit-input {
    font-size: 16px;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 180px;
    outline: none;
}

#drawing-board-switch:checked + .switch-toggle-slider {
  left: 0;
  background-color: var(--primary, #19c4c0);
  box-shadow: inset 0 0 0 1px var(--primary, #19c4c0);
}

#drawing-board-switch:not(:checked) + .switch-toggle-slider {
  left: 50%;
  background-color: var(--primary, #19c4c0);
  box-shadow: inset 0 0 0 1px var(--primary, #19c4c0);
}

#drawing-board-switch:checked ~ .switch-toggle-labels span:first-child,
#drawing-board-switch:not(:checked) ~ .switch-toggle-labels span:last-child {
  color: #ffffff;
  font-weight: 600;
}

#drawing-board-switch:checked ~ .switch-toggle-labels span:last-child,
#drawing-board-switch:not(:checked) ~ .switch-toggle-labels span:first-child {
  color: #666666;
  font-weight: 400;
}

#openChatbot{
    cursor: pointer;
}

#openSystemNameModal{
    cursor: pointer;
}

.fs-mini-table-header th{
  font-size: 15px;
  font-weight: 900 !important;
}

.smart-attributes-container{
  max-height: 350px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.smart-attributes-container .smart-attribute-label-paths {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-attributes-container .select2-selection__rendered {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.smart-attributes-container .select2-container .select2-selection__rendered {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.smart-attributes-container .select2-selection--single .select2-selection__rendered {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.smart-attributes-container .select2-container--default .select2-selection--single .select2-selection__rendered {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.smart-attributes-container .smart-attribute-tables {
  table-layout: fixed;
  width: 100%;
}

.smart-attributes-container .smart-attribute-tables th {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-attributes-container .smart-attribute-tables td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-attributes-container .smart-attribute-tables thead th,
.smart-attributes-container .redlining-smart-attribute-tables thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--primary);
}

.smart-attributes-container .smart-attribute-tables tbody .select2-container,
.smart-attributes-container .redlining-smart-attribute-tables tbody .select2-container {
  z-index: 1 !important;
}

.close-icon {
    cursor: pointer;
    margin-left: 2px;
}

#verified_stamp, .verified_stamp{
  width: 150px;
  position: absolute;
  bottom: 1%;
  right: 1%;
  z-index: 10;
}

.symbol_detection {
  background: #ff6347;
}

.text_detection {
  background: #ffd700;
  color: black !important;
}

.line_detection, .line_type_detection {
  background: #4169e1;
}

.threshold-range input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: background 0.15s ease-in-out;
}

/* Style the slider thumb */
.threshold-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.threshold-range input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.a9s-annotation.hide_legend rect {
  fill: white !important;
  stroke: white !important;
  opacity: 0.4 !important;
}

.gradient-icon{
  background: linear-gradient(45deg, #4285f4, #9b72cb, #d96570);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-background{
  background: linear-gradient(45deg, #4285f4, #9b72cb, #d96570) !important;
}

.symbol-subscripts{
  margin-top: 5px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.detected-symbol-images{
  text-align: center;
}

.detected-symbol-images img.right-panel-symbols{
  width: 100%;
  height: 76px;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
}

.detected-symbol-images .symbol-subscripts{
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 2px;
}

.datalounge-table th, .serial-numbered tbody td{
  padding: 8px 4px !important
}

.serial-numbered{
  table-layout: fixed;
  width: 100%;
}

.serial-numbered td, .serial-numbered th{
  overflow: hidden;
}

.serial-numbered > thead > tr > th,
.serial-numbered > tbody > tr,
.serial-numbered > tbody > tr > td{
  border: 0;
}

.serial-numbered{
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.serial-numbered td .form-select{
  width: 100%;
  max-width: 100%;
  padding-left: 6px;
  padding-right: 20px;
  background-position: right 4px center;
  text-overflow: ellipsis;
}

.serial-numbered td .text-tags{
  overflow-wrap: anywhere;
}

.serial-numbered tbody td .btn{
  padding: 4px 6px;
  line-height: 1;
}

.datalounge-table th .d-flex{
  flex-wrap: wrap;
  row-gap: 4px;
}

.datalounge-table th .datalounge-action-btn{
  width: 22px;
  height: 22px;
  font-size: inherit !important;
}

.datalounge-table{
  background-color: #256D58 !important;
}

.datalounge-action-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1;
}

.datalounge-action-btn img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.datalounge-action-btn > i{
  font-size: 1.15em;
  flex: none;
}

.datalounge-action-btn .datalounge-action-icon{
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: block;
}

.symbolGroupAccordian .accordion-header{
  border-left: 2px solid #135441;
}

/* Serial numbers for the symbol data lounge tables.
   Uses CSS counters so numbering stays correct as rows are
   added, deleted or hidden by the threshold filter without extra JS. */
.serial-numbered tbody{
  counter-reset: symbol-serial;
}
.serial-numbered tbody tr.annotated_rows{
  counter-increment: symbol-serial;
}
.serial-numbered tbody tr.annotated_rows[style*="display: none"]{
  counter-increment: none;
}
.serial-numbered td.serial-cell::before{
  content: counter(symbol-serial);
}

/* "Last seen" marker - shown on the symbol row last interacted with. */
.last-seen-marker{
  background-color: #f0ad4e;
  color: #3a2c00;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 8px;
  white-space: nowrap;
}

#toggle_hidden_symbols[data-hidden="true"] .fa-eye{
  display: none;
}

#toggle_hidden_symbols[data-hidden="false"] .fa-eye-slash{
  display: none;
}

#toggle_hidden_symbols[data-hidden="true"] #hidden_text{
  text-decoration: auto;
}

#toggle_hidden_symbols[data-hidden="false"] #hidden_text{
  text-decoration: line-through;
}

.tooltipster-sidetip.my-info-theme .tooltipster-content{
  padding: 1.5rem;
}
/* Custom Tooltipster theme
.tooltipster-sidetip.my-info-theme .tooltipster-box {
  background: #cfe2ff;
  border: 1px solid #b6d4fe;
  border-radius: 0.25rem;
  padding: 8px 12px;
}

.tooltipster-sidetip.my-info-theme .tooltipster-arrow {
  display: none !important;
}


.tooltipster-sidetip.my-info-theme .tooltipster-content{
  color: #084298 !important;
}*/

#data-lounge-metrics{
  display:flex;
  justify-content: space-between;
}

/* Symbol Name Select2 dropdown ellipsis truncation in annotation boxes */
.select-widget .select2-container--default .select2-selection--single .select2-selection__rendered,
.r6o-editor .select2-container--default .select2-selection--single .select2-selection__rendered,
.editorBody .select2-container--default .select2-selection--single .select2-selection__rendered,
.drawing-board-widget .select2-container--default .select2-selection--single .select2-selection__rendered {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.select-widget .select2-container .select2-selection__rendered,
.r6o-editor .select2-container .select2-selection__rendered,
.editorBody .select2-container .select2-selection__rendered,
.drawing-board-widget .select2-container .select2-selection__rendered {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.select2-selection__clear {
    float: right !important;
    margin-right: 4px !important;
}

.select2-selection__clear {
    color: red !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

.select2-selection__clear:hover {
    color: darkred !important;
    cursor: pointer;
}

.redlining-widget .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

.redlining-widget .editorBody,
.redlining-widget #symbol-form,
.redlining-widget #floatingRedliningSymbol {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.redlining-symbol-dropdown.select2-dropdown {
  width: 100% !important;
}

.redlining-symbol-dropdown .select2-results__option,
.redlining-symbol-dropdown .select2-search--dropdown,
.redlining-symbol-dropdown .select2-search__field {
  max-width: 100%;
  box-sizing: border-box;
}

.redlining-symbol-dropdown .select2-results__option > span.d-flex {
  display: flex !important;
  align-items: flex-start !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.redlining-symbol-dropdown .select2-results__option > span.d-flex > img {
  flex: 0 0 auto;
}

.redlining-symbol-dropdown .select2-results__option > span.d-flex > span {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.redlining-symbol-dropdown .select2-results__option {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.graph-error {
    width: 100%;
    height: 100%;
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-error-box {
    max-width: 520px;
    padding: 18px 22px;

    border-radius: 14px;
    background: #fff5f5;
    border: 1px solid #f3b4b4;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.graph-error-title {
    font-size: 15px;
    font-weight: 800;
    color: #b42318;
    margin-bottom: 6px;
}

.graph-error-msg {
    font-size: 13px;
    color: #7a1f1f;
    word-break: break-word;
}

.data-lounge-filter-icon.active {
    background-color: #dc3545; /* bootstrap danger red */
    color: #fff;
}

.data-lounge-filter-icon.active i {
    color: #fff;
}

.back-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#f1f3f5;
    color:#333;
    text-decoration:none;
    transition:all .25s ease;
    margin-right:10px;
    font-size:16px;
}

.back-btn:hover{
    background: var(--primary);
    color:#fff;
    transform:translateX(-3px);
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
}

.drawing-title{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

.drawing-text{
    font-weight:600;
}

/* Mobile */
@media (max-width:768px){
    .drawing-title{
        font-size:18px;
    }
    .back-btn{
        width:34px;
        height:34px;
        font-size:14px;
    }
}

.disabled-toggle {
    cursor: not-allowed;
}

.disabled-toggle * {
    cursor: not-allowed !important;
}

.deleted-symbols-modal .modal-body {
    padding-top: 1rem;
}

.deleted-symbols-message {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #eef9f8;
    color: var(--brand-205b58, #205b58);
    font-size: 0.95rem;
    line-height: 1.5;
}

.deleted-symbols-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.deleted-symbol-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dbe7e7;
    border-radius: 14px;
    background: #fff;
}

.deleted-symbol-preview {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: #f5f7f7;
    border: 1px solid #e2ecec;
    flex-shrink: 0;
}

.deleted-symbol-details {
    flex: 1;
    min-width: 0;
}

.deleted-symbol-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1d2b2b;
    word-break: break-word;
}

.deleted-symbol-tags {
    margin-top: 0.3rem;
    color: #617676;
    font-size: 0.84rem;
    word-break: break-word;
}

.deleted-symbol-empty {
    padding: 1rem;
    border: 1px dashed #c9d8d8;
    border-radius: 14px;
    text-align: center;
    color: #647979;
    background: #fbfdfd;
}

.deleted-line-preview {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f5f7f7;
    border: 1px solid #e2ecec;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.deleted-line-stroke {
    display: block;
    width: 100%;
    height: 0;
    border-top: 4px solid var(--primary, #19c4c0);
    border-radius: 999px;
}

@media (max-width: 767px) {
    .deleted-symbol-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .deleted-symbol-preview {
        width: 100%;
        height: 120px;
    }

    .deleted-line-preview {
        width: 100%;
        height: 72px;
    }
}

/* =============== Data / DEXPI Lounge Tabs =============== */
.lounge-tabs {
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}
.lounge-tabs .nav-item {
    flex: 1 1 0;
}
.lounge-tabs .nav-link {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.lounge-tabs .nav-link:hover {
    color: var(--primary, #19c4c0);
}
.lounge-tabs .nav-link.active {
    color: var(--primary, #19c4c0);
    background: transparent;
    border-bottom-color: var(--primary, #19c4c0);
}
.lounge-tab-content {
    width: 100%;
}

.drawing-document-viewer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 5px 12px 0px 12px;
}

.drawing-document-viewer-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.drawing-document-viewer-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6B7280;
}

.drawing-document-viewer-title {
    font-size: 18px;
    color: #292D32;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.drawing-document-viewer-frame-wrap {
    width: 100%;
    min-height: 68vh;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    flex: 1 1 auto;
}

#drawing-document-viewer-iframe {
    width: 100%;
    height: 100%;
    min-height: 68vh;
    border: 0;
    background: #fff;
    display: block;
}

#redlining-document-viewer-iframe,
#lines-document-viewer-iframe {
    width: 100%;
    height: 100%;
    min-height: 68vh;
    border: 0;
    background: #fff;
    display: block;
}

@media (max-width: 991.98px) {
    #symbols-split-layout,
    #redlining-split-layout {
        flex-wrap: wrap;
        gap: 20px;
    }

    #symbols-split-layout #symbols-action-container,
    #symbols-split-layout #engineering-board-panel,
    #symbols-split-layout.document-split-active #symbols-action-container,
    #symbols-split-layout.document-split-active #symbols-document-split-panel,
    #redlining-split-layout #redlining-action-container,
    #redlining-split-layout.document-split-active #redlining-action-container,
    #redlining-split-layout.document-split-active #redlining-document-split-panel {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #symbols-split-layout.document-split-active #engineering-board-panel {
        display: none !important;
    }

    .drawing-document-viewer-frame-wrap,
    #drawing-document-viewer-iframe,
    #redlining-document-viewer-iframe,
    #lines-document-viewer-iframe {
        min-height: 55vh;
    }
}

/* =============== DEXPI Lounge =============== */
.dexpi-lounge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 8px;
}
.dexpi-lounge-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #292D32;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.dexpi-lounge-search {
    margin-bottom: 8px;
}
.dexpi-lounge-search .symbols_data_search_box {
    width: 100%;
}
.dexpi-lounge-body {
    min-height: 55vh;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 2px;
}

#pills_lines .symbols_main > #line-lounge-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 80vh;
}
#line-lounge-panel .line-lounge-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
#lineLoungeBody.dexpi-lounge-body {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
}
.dexpi-lounge-placeholder {
    font-size: 12px;
}
.dexpi-accordion .accordion-item {
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    margin-bottom: 6px;
    overflow: hidden;
    background: #fff;
}
.dexpi-accordion .accordion-button {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #292D32;
    background: #F7FAFA;
    box-shadow: none;
}
.dexpi-accordion .accordion-button:not(.collapsed) {
    color: #ffffff;
    background: var(--primary, #19c4c0);
}
.dexpi-accordion .accordion-button:focus {
    box-shadow: none;
}
/* Replace Bootstrap chevron with +/- sign */
.dexpi-accordion .accordion-button::after,
.dexpi-object-button::after {
    background-image: none !important;
    content: "+";
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transform: none !important;
    transition: transform 0.15s ease;
}
.dexpi-accordion .accordion-button:not(.collapsed)::after,
.dexpi-object-button:not(.collapsed)::after {
    background-image: none !important;
    content: "−";
    transform: none !important;
}
.dexpi-group-name {
    flex: 1 1 auto;
}
.dexpi-group-count {
    background: rgba(var(--primary-rgb, 25, 196, 192), 0.15);
    color: var(--brand-0f7f7c, #0f7f7c);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: auto;
    margin-right: 8px;
}
.dexpi-accordion .accordion-button:not(.collapsed) .dexpi-group-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.dexpi-accordion .accordion-body,
.dexpi-accordion .dexpi-group-body {
    padding: 6px;
    background: #FAFBFC;
}

/* Inner (object-level) accordion */
.dexpi-inner-accordion .accordion-item,
.dexpi-sub-accordion .accordion-item {
    border: 1px solid #EEF1F2;
    border-radius: 6px;
    margin-bottom: 6px;
    overflow: hidden;
    background: #ffffff;
}
.dexpi-inner-accordion .accordion-item:last-child,
.dexpi-sub-accordion .accordion-item:last-child {
    margin-bottom: 0;
}
.dexpi-object-button {
    padding: 6px 10px !important;
    font-size: 12.5px !important;
    background: #ffffff !important;
    color: #292D32 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    box-shadow: none !important;
}
.dexpi-object-button:not(.collapsed) {
    background: #F3FAFA !important;
    color: var(--brand-0f7f7c, #0f7f7c) !important;
}
.dexpi-object-button::after {
    margin-left: 6px;
    width: 0.9rem;
    height: 0.9rem;
    background-size: 0.9rem;
}
.dexpi-object-title {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
}
.dexpi-object-primary {
    font-size: 12.5px;
    font-weight: 600;
    color: inherit;
    word-break: break-word;
    line-height: 1.2;
}
.dexpi-object-secondary {
    font-size: 10.5px;
    color: #6B7280;
    word-break: break-word;
    line-height: 1.2;
}
.dexpi-object-type {
    background: #EEF9F9;
    color: var(--brand-0f7f7c, #0f7f7c);
    border: 1px solid #D4EFEE;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}
.dexpi-object-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px !important;
    background: #FAFBFC;
}
.dexpi-kv {
    display: flex;
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.35;
    align-items: flex-start;
}
.dexpi-kv .dexpi-k {
    color: #6B7280;
    flex: 0 0 40%;
    word-break: break-word;
}
.dexpi-kv .dexpi-v {
    color: #292D32;
    flex: 1 1 auto;
    word-break: break-word;
    font-weight: 500;
}
.dexpi-kv .dexpi-refs {
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 11px;
}
.dexpi-sub {
    margin-top: 8px;
    border-left: 2px solid #E7F5F4;
    padding-left: 8px;
}
.dexpi-sub-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-0f7f7c, #0f7f7c);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dexpi-sub-title .dexpi-count {
    background: #EEF9F9;
    color: var(--brand-0f7f7c, #0f7f7c);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 600;
}
.dexpi-sub-accordion .accordion-button {
    font-size: 12px !important;
    padding: 5px 8px !important;
}
.dexpi-sub-accordion .dexpi-object-type {
    font-size: 9.5px;
}

.loungeTabsTitle {
    font-size: 18px;
}

/* ---- Line Lounge ---- */
#line-lounge-panel {
    min-width: 34px;
    position: relative;
    overflow: visible;
    will-change: flex-basis, width, max-width;
    transition: flex-basis 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

#line-lounge-panel .dexpi-lounge-header,
#line-lounge-panel .line-lounge-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease 0.08s, visibility 0.18s ease 0.08s;
}

#line-lounge-panel.line-lounge-collapsed {
    min-width: var(--line-lounge-collapsed-width);
    width: var(--line-lounge-collapsed-width) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--line-lounge-collapsed-width);
    max-width: var(--line-lounge-collapsed-width);
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

#line-lounge-panel.line-lounge-collapsed .line-lounge-content,
#line-lounge-panel.line-lounge-collapsed #line-lounge-refresh,
#line-lounge-panel.line-lounge-collapsed #line-lounge-inspection-toggle,
#line-lounge-panel.line-lounge-collapsed .dexpi-lounge-title span {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#line-lounge-panel.line-lounge-collapsed .dexpi-lounge-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#line-lounge-panel.line-lounge-collapsed .line-lounge-actions {
    justify-content: center;
}

.line-lounge-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.line-lounge-edge-toggle {
    position: absolute;
    top: 50%;
    left: 2px;
    z-index: 20;
    width: 20px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #14533f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.15s ease,
        left 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.15s ease;
}

.line-lounge-edge-toggle:hover,
.line-lounge-edge-toggle:focus {
    color: #fff;
    background: #0f6a4e;
    outline: none;
}

.line-lounge-edge-toggle .line-lounge-expand-icon {
    display: none;
}

#line-lounge-panel.line-lounge-collapsed .line-lounge-edge-toggle {
    left: 7px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

#line-lounge-panel.line-lounge-collapsed .line-lounge-collapse-icon {
    display: none;
}

#line-lounge-panel.line-lounge-collapsed .line-lounge-expand-icon {
    display: inline-block;
}

#pills_lines .symbols_main.line-lounge-collapsed:not(.cross-drawing-split) > #lines-action-container {
    width: calc(100% - var(--line-lounge-collapsed-width) - var(--line-lounge-gap)) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(100% - var(--line-lounge-collapsed-width) - var(--line-lounge-gap));
    max-width: calc(100% - var(--line-lounge-collapsed-width) - var(--line-lounge-gap));
}

#engineering-board-panel {
    min-width: 34px;
    min-height: 80vh;
    position: relative;
    overflow: visible;
    will-change: flex-basis, width, max-width;
    transition: flex-basis 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

#engineering-board-panel .symbol-lounge-shell {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease 0.08s, visibility 0.18s ease 0.08s;
}

#engineering-board-panel.symbol-lounge-collapsed {
    min-width: var(--symbol-lounge-collapsed-width);
    width: var(--symbol-lounge-collapsed-width) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--symbol-lounge-collapsed-width);
    max-width: var(--symbol-lounge-collapsed-width);
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

#engineering-board-panel.symbol-lounge-collapsed .symbol-lounge-shell {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.symbol-lounge-edge-toggle {
    position: absolute;
    top: 50%;
    left: 2px;
    z-index: 20;
}

#engineering-board-panel.symbol-lounge-collapsed .symbol-lounge-edge-toggle {
    left: 7px;
}

#engineering-board-panel.symbol-lounge-collapsed .line-lounge-collapse-icon {
    display: none;
}

#engineering-board-panel.symbol-lounge-collapsed .line-lounge-expand-icon {
    display: inline-block;
}

#engineering-board-panel .line-lounge-expand-icon {
    display: none;
}

#pills_symbols_and_text .symbols_main.symbol-lounge-collapsed:not(.symbol-cross-drawing-split) > #symbols-action-container {
    width: calc(100% - var(--symbol-lounge-collapsed-width) - var(--symbol-lounge-gap)) !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(100% - var(--symbol-lounge-collapsed-width) - var(--symbol-lounge-gap));
    max-width: calc(100% - var(--symbol-lounge-collapsed-width) - var(--symbol-lounge-gap));
}

#accordionLineLounge .accordion-item.line-lounge-item {
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    margin-bottom: 6px;
    overflow: hidden;
    background: #fff;
}
.line-lounge-line-btn {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #292D32;
    display: flex;
    align-items: center;
}
.line-lounge-line-btn .line-lounge-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.line-lounge-line-btn:not(.collapsed) {
    background: #f3f0ff;
    color: #292D32;
}
.line-lounge-symbols .line-lounge-symbol {
    cursor: pointer;
    padding: 6px 14px;
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
}
.line-lounge-symbols .line-lounge-symbol:hover {
    background: #f3f0ff;
}
.line-lounge-overlay-rect {
    pointer-events: none;
}
#line-lounge-search {
    padding-right: 38px;
}
.line-lounge-empty {
    font-size: 12px;
    color: #8a8a8a;
    text-align: center;
    padding: 14px 4px;
}

.smart-review-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin-right: 4px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 550;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, var(--brand-22dad5, #22dad5) 0%, var(--primary, #19c4c0) 40%, var(--brand-0e8f9c, #0e8f9c) 78%, #2C7BA6 100%);
    box-shadow:
        0 2px 4px rgba(14, 143, 156, 0.20),
        0 6px 16px rgba(14, 143, 156, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 180ms ease,
                filter 180ms ease;
    will-change: transform;
}

.smart-review-btn > i {
    font-size: 14px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.smart-review-label {
    letter-spacing: -0.01em;
}

.smart-review-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow:
        0 4px 8px rgba(14, 143, 156, 0.24),
        0 10px 24px rgba(14, 143, 156, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.smart-review-btn:hover > i {
    transform: rotate(-12deg) scale(1.08);
}

.smart-review-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow:
        0 1px 3px rgba(14, 143, 156, 0.26),
        inset 0 2px 5px rgba(0, 0, 0, 0.16);
}

.smart-review-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(var(--primary-rgb, 25, 196, 192), 0.35),
        0 6px 16px rgba(14, 143, 156, 0.24);
}

.smart-review-btn.is-running {
    cursor: progress;
}

.smart-review-btn.is-running::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid rgba(var(--primary-rgb, 25, 196, 192), 0.55);
    animation: smart-review-halo 1.6s ease-out infinite;
}

.smart-review-btn.is-running > i {
    animation: smart-review-wand 1.6s ease-in-out infinite;
}

@keyframes smart-review-halo {
    0%   { transform: scale(0.96); opacity: 0.85; }
    70%  { transform: scale(1.10); opacity: 0; }
    100% { transform: scale(1.10); opacity: 0; }
}

@keyframes smart-review-wand {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50%      { transform: rotate(-14deg) scale(1.12); }
}

.smart-review-btn .reviewer-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #FF4D5E;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 77, 94, 0.45);
    animation: smart-review-badge-in 260ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes smart-review-badge-in {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

@media (max-width: 1400px) {
    .smart-review-btn .smart-review-by-ai { display: none; }
}

@media (max-width: 1200px) {
    .smart-review-btn { padding: 0 12px; gap: 6px; }
    .smart-review-btn .smart-review-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .smart-review-btn,
    .smart-review-btn > i,
    .smart-review-btn.is-running::after,
    .smart-review-btn.is-running > i,
    .smart-review-btn .reviewer-badge {
        transition: none;
        animation: none;
    }
}

/* Group text mass-update choice dialog */
.jconfirm.text-mass-update-dialog .jconfirm-bg {
    background: var(--brand-163b3b, #163b3b);
    opacity: 0.38;
}

.jconfirm.text-mass-update-dialog .jconfirm-box {
    max-width: calc(100vw - 32px);
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce8e8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(24, 54, 56, 0.2);
}

.jconfirm.text-mass-update-dialog .jconfirm-box div.jconfirm-closeIcon {
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #617676;
    font-size: 22px !important;
    line-height: 25px !important;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.jconfirm.text-mass-update-dialog .jconfirm-box div.jconfirm-closeIcon:hover {
    color: var(--brand-183638, #183638);
    background: #edf5f5;
}

.jconfirm.text-mass-update-dialog .jconfirm-box div.jconfirm-title-c {
    padding: 16px 52px 14px 20px;
    border-bottom: 1px solid #e5eeee;
    color: var(--brand-183638, #183638);
    font-size: 17px;
    line-height: 24px;
}

.text-mass-update-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.text-mass-update-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e5f7f6;
    color: var(--brand-168f8c, #168f8c);
    font-size: 14px;
}

.jconfirm.text-mass-update-dialog .jconfirm-box div.jconfirm-content-pane {
    margin: 0;
}

.jconfirm.text-mass-update-dialog .jconfirm-box div.jconfirm-content-pane .jconfirm-content {
    overflow: visible;
}

.text-mass-update-options {
    padding: 16px 18px;
}

.text-mass-update-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    transition: color 0.15s ease, background-color 0.15s ease,
                border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-mass-update-action-outline {
    border-color: var(--brand-9fdad8, #9fdad8);
    background: #fff;
    color: var(--brand-176c69, #176c69);
}

.text-mass-update-action-outline:hover {
    border-color: var(--primary);
    background: #f0fbfa;
    color: var(--brand-125957, #125957);
}

.text-mass-update-action-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 14px rgba(var(--primary-rgb, 25, 196, 192), 0.2);
}

.text-mass-update-action-primary:hover {
    border-color: var(--brand-16aaa7, #16aaa7);
    background: var(--brand-16aaa7, #16aaa7);
    color: #fff;
}

.text-mass-update-action:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 25, 196, 192), 0.24);
}

.text-mass-update-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 11px 0;
    color: #819292;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jconfirm.text-mass-update-dialog .jconfirm-box .jconfirm-buttons:empty {
    display: none;
    padding: 0;
}

.text-mass-update-divider::before,
.text-mass-update-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1eaea;
}

@media (max-width: 480px) {
    .jconfirm.text-mass-update-dialog .jconfirm-box div.jconfirm-title-c {
        padding-left: 18px;
    }
}

.jconfirm.bulk-category-dialog .jconfirm-box {
    overflow: visible;
}

.jconfirm.bulk-category-dialog .jconfirm-box div.jconfirm-content-pane {
    overflow: visible !important;
    height: auto !important;
}

.jconfirm.bulk-category-dialog .jconfirm-box div.jconfirm-content-pane .jconfirm-content {
    overflow: visible !important;
}

.jconfirm.bulk-category-dialog #bulk-category-select.form-select,
.jconfirm.bulk-category-dialog .select2-container--default .select2-selection--single {
    height: 38px;
}

.jconfirm.bulk-category-dialog .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
}

.jconfirm.bulk-category-dialog .select2-dropdown {
    max-width: 400px !important;
}

.jconfirm.bulk-category-dialog .select2-results > .select2-results__options {
    max-height: 260px;
    overflow-y: auto;
}

.jconfirm.bulk-category-dialog .select2-results__option {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.cross-drawing-viewer-actions .inspection-report-launcher {
    padding: 2px 10px;
    line-height: 1.5;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.inspection-report-modal {
    pointer-events: none;
    overflow: hidden;
}

body.inspection-report-panel-open .r6o-editor,
body.inspection-report-panel-open #annotation-editor-connector {
    z-index: 1040 !important;
}

body.modal-open .r6o-editor,
body.modal-open #annotation-editor-connector {
    z-index: 1039 !important;
}

.inspection-report-modal .modal-dialog {
    pointer-events: auto;
    position: fixed;
    margin: 0;
    width: min(860px, calc(100vw - 48px));
    max-width: none;
    height: auto;
    max-height: calc(100vh - 140px);
    transition: none;
}

.inspection-report-modal .modal-content {
    max-height: calc(100vh - 140px);
}

.inspection-report-modal.is-dragging .modal-dialog {
    cursor: move;
}

.inspection-report-modal .modal-content {
    box-shadow: 0 18px 48px rgba(20, 40, 45, 0.28);
}

.inspection-report-drag-handle {
    cursor: move;
    user-select: none;
}

.inspection-report-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.inspection-report-project {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inspection-report-iso-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 230px;
    gap: 5px;
    min-height: 32px;
    padding: 3px 6px;
    border: 1px solid #d7e3e3;
    border-radius: 8px;
    background: #fff;
    cursor: text;
}

.inspection-report-iso-cell.is-active {
    border-color: #19c4c0;
    box-shadow: 0 0 0 3px rgba(25, 196, 192, 0.18);
}

.inspection-report-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 2px 4px 2px 0;
    padding: 2px 6px 2px 8px;
    border-radius: 6px;
    background: #e4f4f2;
    color: #16706c;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.inspection-report-tag.is-locatable,
.inspection-report-locate {
    cursor: pointer;
}

.inspection-report-locate {
    border-bottom: 1px dashed #9ab5b4;
}

.inspection-report-locate:hover {
    color: #16706c;
    border-bottom-color: #19c4c0;
}

.inspection-component-marker {
    pointer-events: none;
    border-radius: 3px;
}

.inspection-component-marker.is-tag {
    border: 3px solid #ff8c1a;
    box-shadow: 0 0 0 3px rgba(255, 140, 26, 0.28);
}

.inspection-component-marker.is-component {
    border: 2px dashed rgba(25, 196, 192, 0.9);
}

.inspection-report-tag.is-locatable:hover {
    background: #cfeae6;
}

.a9s-annotation.cross-drawing-text-focus .a9s-inner {
    stroke: #ff8c1a !important;
    stroke-width: 4px !important;
    fill: rgba(255, 140, 26, 0.28) !important;
}

@keyframes inspection-locate-pulse {
    0%   { stroke-width: 4px;  stroke-opacity: 1; }
    50%  { stroke-width: 14px; stroke-opacity: 0.3; }
    100% { stroke-width: 4px;  stroke-opacity: 1; }
}

.a9s-annotation.inspection-locate-pulse .a9s-inner,
.a9s-annotation.inspection-locate-pulse .a9s-outer {
    stroke: #ff8c1a !important;
    animation: inspection-locate-pulse 0.7s ease-in-out 3;
}

.inspection-report-base-input,
.inspection-report-iso-input {
    font-size: 13px;
}

.inspection-report-base-input {
    width: 100%;
    max-width: 150px;
    padding: 3px 8px;
    border: 1px solid #d7e3e3;
    border-radius: 8px;
    background: #fff;
    outline: none;
}

.inspection-report-base-input.is-active {
    border-color: #19c4c0;
    box-shadow: 0 0 0 3px rgba(25, 196, 192, 0.18);
}

.inspection-report-conflict-actions {
    display: inline-flex;
    gap: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

#inspection-report-body tr[data-conflict-id] {
    cursor: pointer;
}

.inspection-report-conflict-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #d7e3e3;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    color: #4f7b7a;
    line-height: 1;
}

.inspection-report-tag-remove {
    border: 0;
    background: none;
    padding: 0 2px;
    line-height: 1;
    font-size: 14px;
    color: #16706c;
    opacity: 0.7;
}

.inspection-report-tag-remove:hover {
    opacity: 1;
}

.inspection-report-iso-input {
    flex: 1 1 70px;
    min-width: 70px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13px;
    padding: 2px 0;
}

.inspection-report-table tr.is-active-row td:first-child {
    box-shadow: inset 3px 0 0 #19c4c0;
}

.inspection-report-note {
    margin: 12px 20px 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #e8f6f2;
    border: 1px solid #bfe4d9;
    color: #1c7a63;
    font-size: 12.5px;
}

.inspection-report-modal .modal-header {
    padding: 14px 20px;
}

.inspection-report-modal .modal-title {
    font-size: 17px;
    font-weight: 700;
}

.inspection-report-summary {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
    background: #f7fbfb;
    border-bottom: 1px solid #e4eceb;
}

.inspection-report-line-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e4eceb;
    border-radius: 10px;
}

.inspection-report-line-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #35706e;
}

.inspection-report-line-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-183638, #183638);
    overflow-wrap: anywhere;
}

.inspection-report-line-file {
    font-size: 11.5px;
    color: #566b6c;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.inspection-report-line-link {
    display: flex;
    align-items: center;
    color: #9ab5b4;
    font-size: 13px;
}

.inspection-report-content {
    padding: 4px 8px 12px;
}

.inspection-report-table thead th {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tx-thead-ink, #fff);
    background: transparent;
    border-bottom: 0;
    padding: 10px 12px;
}

.inspection-report-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--tx-thead, #135441);
}

.inspection-report-table td {
    font-size: 13px;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f5f5;
    vertical-align: middle;
}

.inspection-report-table tbody tr:last-child td {
    border-bottom: 0;
}

.inspection-report-conflict {
    color: #d9483b;
    margin-right: 6px;
    cursor: pointer;
    vertical-align: middle;
}

.inspection-report-conflict.is-ignored {
    color: #9aa9a9;
}

.inspection-report-table tr.is-conflict-focus td {
    background: #fff7ed;
}

.inspection-report-component {
    font-weight: 600;
    color: var(--brand-183638, #183638);
}

.inspection-report-base-tag {
    font-family: inherit;
    color: #40575a;
}

.inspection-report-table tr.inspection-report-match td:first-child {
    box-shadow: inset 3px 0 0 #2fa88b;
}

.inspection-report-table tr.inspection-report-mismatch td:first-child {
    box-shadow: inset 3px 0 0 #e2725b;
}

.inspection-report-table tr.inspection-report-missing_iso td:first-child,
.inspection-report-table tr.inspection-report-missing_base td:first-child {
    box-shadow: inset 3px 0 0 #e0b154;
}




.inspection-report-table tr.inspection-report-mismatch .inspection-report-iso-cell {
    border-color: #e2a99e;
}

.inspection-report-line-scope {
    font-size: 11px;
    font-weight: 600;
    color: #35706e;
}

.inspection-report-source {
    font-size: 11.5px;
    color: #566b6c;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inspection-report-plain {
    color: #7d8f90;
}

.inspection-report-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.inspection-report-chip-ok {
    background: #e8f6f2;
    color: #1c7a63;
}

.inspection-report-chip-warn {
    background: #fdeceb;
    color: #b8452f;
}

.inspection-report-chip-muted {
    background: #f5f0e4;
    color: #8a6b22;
}

.inspection-report-empty {
    padding: 34px 20px;
    text-align: center;
    color: #7d8f90;
    font-size: 13px;
}

.inspection-report-empty i {
    display: block;
    font-size: 22px;
    color: #b9cbcb;
}

.inspection-report-status {
    font-size: 12px;
    color: #7d8f90;
}

html[data-app-theme="dark"] .inspection-report-summary {
    background: #1d2a31;
    border-bottom-color: #33454e;
}

html[data-app-theme="dark"] .inspection-report-line-card {
    background: #223038;
    border-color: #33454e;
}

html[data-app-theme="dark"] .inspection-report-line-label {
    color: #9fbdbd;
}

html[data-app-theme="dark"] .inspection-report-line-value,
html[data-app-theme="dark"] .inspection-report-component {
    color: #e6f1f1;
}

html[data-app-theme="dark"] .inspection-report-line-file,
html[data-app-theme="dark"] .inspection-report-plain,
html[data-app-theme="dark"] .inspection-report-status,
html[data-app-theme="dark"] .inspection-report-empty {
    color: #c2d4d4;
}

html[data-app-theme="dark"] .inspection-report-source,
html[data-app-theme="dark"] .inspection-report-line-scope {
    color: #a8bcbc;
}

html[data-app-theme="dark"] .inspection-report-base-tag {
    color: #cfdedd;
}

html[data-app-theme="dark"] .inspection-report-table td {
    border-bottom-color: #2a3a42;
}

html[data-app-theme="dark"] .inspection-report-iso-cell {
    background: #1c2830;
    border-color: #33454e;
}

html[data-app-theme="dark"] .inspection-report-tag {
    background: #1e3d36;
    color: #8fdcc3;
}

html[data-app-theme="dark"] .inspection-report-tag-remove {
    color: #8fdcc3;
}

html[data-app-theme="dark"] .inspection-report-iso-input,
html[data-app-theme="dark"] .inspection-report-base-input {
    color: #e6f1f1;
    background: #1c2830;
}

html[data-app-theme="dark"] .inspection-report-conflict-btn {
    background: #223038;
    border-color: #33454e;
    color: #a8bcbc;
}

html[data-app-theme="dark"] .inspection-report-note {
    background: #1e3d36;
    border-color: #2b5d51;
    color: #8fdcc3;
}


html[data-app-theme="dark"] .inspection-report-chip-ok {
    background: #1e3d36;
    color: #7fd3b8;
}

html[data-app-theme="dark"] .inspection-report-chip-warn {
    background: #45291f;
    color: #f0a08c;
}

html[data-app-theme="dark"] .inspection-report-chip-muted {
    background: #3d3524;
    color: #e2c780;
}

.inspection-report-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspection-report-collapse {
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
}

.inspection-report-rowcount {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
}

.inspection-report-modal.is-collapsed .modal-dialog {
    display: none;
}

.cross-drawing-viewer-actions .inspection-report-launcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.inspection-report-launcher-label {
    cursor: pointer;
}

#pills_lines .cross-drawing-viewer-panel .inspection-report-launcher {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1053;
    background: #fff;
    border-color: #19c4c0;
    color: #16706c;
    box-shadow: 0 4px 14px rgba(20, 40, 45, 0.18);
}

#pills_lines .cross-drawing-viewer-panel .inspection-report-launcher:hover {
    background: #e4f4f2;
    border-color: #19c4c0;
    color: #16706c;
}

.inspection-report-tags {
    vertical-align: middle;
}

#inspection-report-body tr[data-active="1"][data-pinned="1"] td {
    background: #e8f7f6;
    box-shadow: inset 0 -1px 0 #bde5e3;
}

#inspection-report-body tr[data-active="1"][data-pinned="1"] td:first-child {
    box-shadow: inset 4px 0 0 #19c4c0, inset 0 -1px 0 #bde5e3;
}

html[data-app-theme="dark"] #inspection-report-body tr[data-active="1"][data-pinned="1"] td {
    background: #17343a;
}

#inspection-report-body tr[data-active="1"] td {
    background: #f2fbfa;
}

#inspection-report-body tr[data-active="1"] td:first-child {
    box-shadow: inset 3px 0 0 #19c4c0;
}

.inspection-report-row-remove {
    border: 0;
    background: none;
    color: #b8452f;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.7;
}

.inspection-report-row-remove:hover {
    opacity: 1;
}

.inspection-report-row-tools {
    white-space: nowrap;
}

.inspection-report-row-info {
    border: 0;
    background: none;
    color: #19c4c0;
    font-size: 15px;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.85;
}

.inspection-report-row-info:hover,
.inspection-report-row-info.is-active {
    opacity: 1;
    color: #0e8f8c;
}

.inspection-report-photo-row td {
    padding: 0 !important;
    background: #f4fbfa;
}

.inspection-report-photos {
    padding: 8px 12px 10px;
    border-left: 3px solid #19c4c0;
}

.inspection-report-photos-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #1f3b3a;
    margin-bottom: 6px;
}

.inspection-report-photos-close {
    border: 0;
    background: none;
    font-size: 16px;
    line-height: 1;
    color: #6b7c7b;
}

.inspection-report-photos-empty {
    font-size: 12.5px;
    color: #5b6b6a;
    padding: 4px 0;
}

.inspection-report-inspection + .inspection-report-inspection {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #cfe3e1;
}

.inspection-report-inspection-meta {
    font-size: 11.5px;
    color: #4f6362;
    margin-bottom: 6px;
}

.inspection-report-photo-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
}

.inspection-report-photo-card + .inspection-report-photo-card {
    border-top: 1px solid #e3efee;
}

.inspection-report-photo-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    background: #e6f2f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8aa3a1;
}

.inspection-report-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inspection-report-photo-thumb.is-same {
    background: transparent;
    border: 1px dashed #cfe3e1;
}

.inspection-report-photo-body {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
}

.inspection-report-photo-title {
    font-weight: 600;
    color: #1f3b3a;
}

.inspection-report-photo-basis {
    margin-left: 6px;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0e8f8c;
    background: #dff3f2;
    border-radius: 3px;
    padding: 1px 5px;
}

.inspection-report-photo-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 3px 0;
}

.inspection-report-photo-fact em {
    font-style: normal;
    color: #6b7c7b;
    margin-right: 4px;
}

.inspection-report-photo-comment {
    color: #31494a;
}

html[data-app-theme="dark"] .inspection-report-photo-row td {
    background: #16282c;
}

html[data-app-theme="dark"] .inspection-report-photos-head,
html[data-app-theme="dark"] .inspection-report-photo-title,
html[data-app-theme="dark"] .inspection-report-photo-comment {
    color: #d8e6e5;
}

.inspection-component-target {
    fill: rgba(25, 196, 192, 0.18);
    stroke: #19c4c0;
    stroke-width: 4;
    cursor: pointer;
    pointer-events: all;
}

.inspection-component-target:hover {
    fill: rgba(255, 140, 26, 0.3);
    stroke: #ff8c1a;
}

.a9s-annotation .a9s-inner.inspection-tag-text {
    fill: aqua !important;
}

#lines-container .a9s-annotation.inspection-tag-anno[data-hidden-text],
#lines-container .a9s-annotation.inspection-tag-anno {
    opacity: 1 !important;
}

#lines-container .a9s-annotation.inspection-tag-anno[data-hidden-text] rect.inspection-tag-text,
#lines-container .a9s-annotation.inspection-tag-anno rect.inspection-tag-text {
    opacity: 0.25 !important;
}

.a9s-annotation .a9s-inner.inspection-tag-text.inspection-tag-mapped {
    fill: #f59e0b !important;
}

#lines-container .a9s-annotation.inspection-tag-anno[data-hidden-text] rect.inspection-tag-text.inspection-tag-mapped,
#lines-container .a9s-annotation.inspection-tag-anno rect.inspection-tag-text.inspection-tag-mapped {
    opacity: 0.35 !important;
}

html[data-app-theme="dark"] #inspection-report-body tr[data-active="1"] td {
    background: #1e3038;
}

.inspection-report-flag {
    white-space: nowrap;
    width: 52px;
}

.inspection-report-flag .inspection-report-conflict {
    cursor: default;
    margin-right: 0;
}

.inspection-report-row-actions {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

.inspection-report-row-actions .inspection-report-conflict-btn {
    width: 22px;
    height: 20px;
    padding: 0;
    border-radius: 5px;
    border: 1px solid #c7d5d5;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    color: #5f7374;
    line-height: 1;
}

.inspection-report-row-actions .inspection-report-conflict-btn.is-resolve {
    border-color: #19c4c0;
    color: #19c4c0;
}

.inspection-report-row-actions .inspection-report-conflict-btn.is-ignore {
    border-color: #e0a83a;
    color: #e0a83a;
}

.inspection-report-row-actions .inspection-report-conflict-btn.is-resolve:hover {
    background: rgba(25, 196, 192, 0.12);
}

.inspection-report-row-actions .inspection-report-conflict-btn.is-ignore:hover {
    background: rgba(224, 168, 58, 0.14);
}

.inspection-report-row-actions .inspection-report-conflict-btn.is-resolve.is-active {
    background: #19c4c0;
    border-color: #19c4c0;
    color: #fff;
}

.inspection-report-row-actions .inspection-report-conflict-btn.is-ignore.is-active {
    background: #e0a83a;
    border-color: #e0a83a;
    color: #fff;
}

#inspection-report-body tr[data-ignored="1"] td {
    opacity: 0.72;
}

html[data-app-theme="dark"] .inspection-report-row-actions .inspection-report-conflict-btn {
    background: #223038;
    border-color: #33454e;
    color: #a8bcbc;
}

.inspection-report-pick-target {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 2px 8px;
    border: 1px dashed #19c4c0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(25, 196, 192, 0.18);
    color: #16706c;
    font-size: 12px;
    font-style: italic;
    white-space: nowrap;
}

html[data-app-theme="dark"] .inspection-report-pick-target {
    background: #14262b;
    color: #7fd8d4;
}

.inspection-report-expand {
    border: 0;
    background: none;
    color: var(--tx-thead-ink, #fff);
    opacity: 0.85;
    padding: 0;
    font-size: 12px;
    line-height: 1;
}

.inspection-report-expand:hover {
    opacity: 1;
}

.inspection-report-header-actions {
    display: flex;
    align-items: center;
}

.inspection-report-expand-cell {
    width: 34px;
}

#inspection-report-body tr.inspection-report-line-row td {
    background: #eef4f7;
    border-bottom: 1px solid #d6e3ea;
    font-weight: 600;
    color: #2b4a55;
    cursor: pointer;
}

#inspection-report-body tr.inspection-report-line-row td:first-child {
    box-shadow: inset 4px 0 0 #4a7d95;
}

#inspection-report-body tr.inspection-report-line-row[data-line-active="1"] td {
    background: #e0eef4;
}

#inspection-report-body tr.inspection-report-line-row[data-line-active="1"] td:first-child {
    box-shadow: inset 4px 0 0 #19c4c0;
}

.inspection-report-line-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: #4a7d95;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

html[data-app-theme="dark"] #inspection-report-body tr.inspection-report-line-row td {
    background: #1b2f38;
    border-bottom-color: #2a3a42;
    color: #cfe3ea;
}

.inspection-report-rowlabel {
    white-space: nowrap;
}

.inspection-report-modal.is-compact .inspection-report-rowlabel {
    width: 104px;
    text-align: left !important;
    padding-left: 14px !important;
}

.inspection-report-rowlabel-text {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--tx-thead-ink, #fff);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
}


.inspection-report-modal.is-compact .modal-header,
.inspection-report-modal.is-compact .inspection-report-summary,
.inspection-report-modal.is-compact .inspection-report-note,
.inspection-report-modal.is-compact .modal-footer {
    display: none !important;
}

.inspection-report-modal.is-compact .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.inspection-report-modal.is-compact .inspection-report-table thead {
    cursor: move;
    user-select: none;
}

.inspection-report-modal.is-compact .inspection-report-table thead .inspection-report-expand {
    cursor: pointer;
}

.inspection-report-expand-cell {
    white-space: nowrap;
}

.inspection-report-compact-save {
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 4px;
    padding: 2px 7px;
    margin-right: 6px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}

.inspection-report-compact-save:hover {
    background: rgba(255, 255, 255, 0.28);
}

.inspection-report-compact-save:disabled {
    opacity: 0.5;
    cursor: default;
}


.inspection-report-na {
    font-size: 12px;
    font-weight: 600;
    color: #8a6b22;
}

.r6o-editor.inspection-wide:has(#document-panel:not([style*="display: none"])) {
    width: 760px !important;
}

.symbol-inspection-panel {
    color: #e8f1f0;
    font-size: 12.5px;
    max-height: 72vh;
    overflow-y: auto;
    padding-right: 4px;
}

.symbol-inspection-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-bottom: 8px;
}

.symbol-inspection-tag {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #0e8f8c;
    border-radius: 4px;
    padding: 1px 8px;
}

.symbol-inspection-meta,
.symbol-inspection-block-meta {
    color: #a9c2c0;
    font-size: 11.5px;
}

.symbol-inspection-empty {
    color: #d8e6e5;
    padding: 8px 0;
    margin: 0;
}

.symbol-inspection-block {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 6px;
    margin-top: 6px;
}

.symbol-inspection-photo {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
}

.symbol-inspection-photo + .symbol-inspection-photo {
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.symbol-inspection-thumb {
    flex: 0 0 120px;
    width: 120px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8aa3a1;
    font-size: 11px;
}

.symbol-inspection-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.symbol-inspection-thumb.is-same {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.symbol-inspection-body {
    flex: 1 1 auto;
    min-width: 0;
}

.symbol-inspection-title {
    font-weight: 600;
    color: #fff;
}

.symbol-inspection-basis {
    margin-left: 6px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #19c4c0;
    border: 1px solid rgba(25, 196, 192, 0.5);
    border-radius: 3px;
    padding: 0 5px;
}

.symbol-inspection-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 12px;
    margin: 3px 0;
}

.symbol-inspection-facts em {
    font-style: normal;
    color: #a9c2c0;
    margin-right: 4px;
}

.symbol-inspection-comment {
    color: #d8e6e5;
}

.inspection-photo-popup {
    text-align: center;
    overflow: auto;
    max-height: 78vh;
}

.inspection-photo-popup img {
    max-width: 100%;
    max-height: 76vh;
    height: auto;
    display: inline-block;
}

.symbol-inspection-divider {
    border-color: rgba(255, 255, 255, 0.25);
    margin: 10px 0;
}

#lines-container .r6o-editor.inspection-wide:has(#document-panel:not([style*="display: none"])) {
    width: 760px !important;
}

.line-inspection-choice {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.line-inspection-choice-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    margin-right: 10px;
    flex: 0 0 36px;
}

.insp-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.insp-tag {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #0e8f8c;
    border-radius: 5px;
    padding: 3px 10px;
    white-space: nowrap;
}

.insp-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    align-items: baseline;
    font-size: 12px;
    color: #a9c2c0;
    min-width: 0;
}

.insp-head-meta strong {
    color: #fff;
    font-size: 13px;
}

.insp-empty {
    color: #d8e6e5;
    padding: 8px 0;
    margin: 0;
}

.insp-block + .insp-block {
    margin-top: 10px;
}

.insp-block-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    align-items: baseline;
    font-size: 11.5px;
    color: #a9c2c0;
    margin-bottom: 6px;
}

.insp-block-date {
    color: #fff;
    font-weight: 600;
}

.insp-block-doc {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insp-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
}

.symbol-inspection-panel table.insp-table,
html[data-app-theme="dark"] .symbol-inspection-panel table.insp-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    font-size: 12px;
    color: #e8f1f0 !important;
}

.symbol-inspection-panel .insp-table thead,
html[data-app-theme="dark"] .symbol-inspection-panel .insp-table thead {
    position: static;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #a9c2c0 !important;
    border-radius: 0;
}

.symbol-inspection-panel .insp-table th,
html[data-app-theme="dark"] .symbol-inspection-panel .insp-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: #a9c2c0 !important;
    background: transparent !important;
    padding: 6px 6px !important;
    border: 0 !important;
    white-space: normal;
    vertical-align: bottom;
}

.symbol-inspection-panel .insp-table td,
html[data-app-theme="dark"] .symbol-inspection-panel .insp-table td {
    padding: 6px 8px !important;
    vertical-align: middle;
    font-size: 12px;
    color: #e8f1f0 !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
}

.symbol-inspection-panel .insp-table tbody tr,
.symbol-inspection-panel .insp-table tbody tr:nth-child(even),
html[data-app-theme="dark"] .symbol-inspection-panel .insp-table tbody tr,
html[data-app-theme="dark"] .symbol-inspection-panel .insp-table tbody tr:nth-child(even) {
    background: transparent !important;
    border-bottom: 0 !important;
}

.symbol-inspection-panel .insp-table tbody tr:hover,
html[data-app-theme="dark"] .symbol-inspection-panel .insp-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.insp-th-photo, .insp-td-photo { width: 66px; }
.insp-th-no, .insp-td-no { width: 46px; }
.insp-th-component, .insp-td-component { width: 96px; }
.insp-th-class, .insp-td-class { width: 64px; text-align: center; }
.insp-th-thickness, .insp-td-thickness { width: 172px; }
.insp-td-comment { line-height: 1.35; overflow-wrap: anywhere; }
.insp-muted { color: #8aa3a1; }

.symbol-inspection-panel .insp-td-thickness .insp-readings {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.symbol-inspection-panel .insp-reading {
    display: inline-block;
    font-size: 12px;
    line-height: 1.5;
    color: #ffffff !important;
    background: #0e8f8c !important;
    border-radius: 3px;
    padding: 0 6px;
    white-space: nowrap;
}

.symbol-inspection-panel .insp-reading em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78) !important;
    margin-right: 4px;
}

.symbol-inspection-panel .insp-table td {
    overflow-wrap: anywhere;
}

.insp-readings {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.insp-reading {
    font-size: 11px;
    color: #ffffff;
    border-radius: 3px;
    padding: 1px 7px;
    white-space: nowrap;
}

.insp-reading em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
    margin-right: 4px;
}

.insp-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    color: #8aa3a1;
}

.insp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.insp-thumb.is-same {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
}

.insp-class {
    display: inline-block;
    min-width: 22px;
    text-align: center;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
    color: #1f2d2c;
    background: #ffd166;
}

.insp-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insp-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid rgba(25, 196, 192, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #e8f1f0;
    transition: background 0.15s, border-color 0.15s;
}

.insp-choice:hover {
    background: rgba(25, 196, 192, 0.14);
    border-color: #19c4c0;
}

.insp-choice-tile {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.insp-choice-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.insp-choice-tile.is-icon {
    background: rgba(25, 196, 192, 0.18);
    color: #19c4c0;
    font-size: 20px;
}

.insp-choice-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.insp-choice-title {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
}

.insp-choice-detail {
    font-size: 12px;
    color: #a9c2c0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insp-choice-arrow {
    color: #19c4c0;
    font-size: 12px;
}

.ir-icon {
    --ir-bg: #ffffff;
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-style: normal;
    vertical-align: -0.15em;
}

.ir-icon::before,
.ir-icon::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    line-height: 1;
}

.ir-icon::before {
    content: "\f15c";
    left: 0.12em;
    top: 0;
    font-size: 1em;
}

.ir-icon::after {
    content: "\f002";
    left: -0.1em;
    bottom: 0.16em;
    font-size: 0.66em;
    text-shadow:
        0.08em 0 0 var(--ir-bg), -0.08em 0 0 var(--ir-bg),
        0 0.08em 0 var(--ir-bg), 0 -0.08em 0 var(--ir-bg),
        0.06em 0.06em 0 var(--ir-bg), -0.06em -0.06em 0 var(--ir-bg),
        0.06em -0.06em 0 var(--ir-bg), -0.06em 0.06em 0 var(--ir-bg);
}

.r6o-editor .ir-icon,
#document-panel .ir-icon,
.symbol-doc-panel .ir-icon,
html[data-app-theme="dark"] .ir-icon {
    --ir-bg: #111111;
}

.btn-primary .ir-icon,
.bg-primary .ir-icon {
    --ir-bg: #0e8f8c;
}

.process-rules-modal{
  --pr-teal: var(--brand-2bbbb5, #2bbbb5);
  --pr-teal-dark: var(--brand-1f9f9a, #1f9f9a);
  --pr-teal-deep: var(--brand-0e7470, #0e7470);
  --pr-teal-soft: #e9f8f7;
  --pr-teal-soft-2: #d5f1ef;
  --pr-border: #dfeceb;
  --pr-ink: var(--brand-183433, #183433);
  --pr-muted: #6d8482;
  --pr-bg: #f4f8f8;
}
#modalProcessRules .modal-dialog{
  max-width: calc(100vw - 48px);
  width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  margin: 24px auto;
}
#modalProcessRules .modal-content{ height: 100%; }
.process-rules-modal .process-rules-modal-body{ display: flex; flex-direction: column; min-height: 0; }
.process-rules-modal{
  border: 1px solid var(--pr-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(31, 56, 54, .18);
  color: var(--pr-ink);
}
.process-rules-modal .process-rules-head{
  align-items: flex-start;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--pr-border);
  border-top: 4px solid var(--pr-teal);
  background: linear-gradient(180deg, #fff 0%, var(--pr-bg) 100%);
}
.process-rules-modal .process-rules-eyebrow{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7f9896;
  margin-bottom: 4px;
}
.process-rules-modal .modal-title{
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pr-ink);
}
.process-rules-modal .process-rules-meta{
  margin-top: 3px;
  font-size: 12px;
  color: #9aabaa;
}
.process-rules-modal .btn-close{ margin: 0; opacity: .6; }
.process-rules-modal .process-rules-modal-body{ padding: 16px 22px 18px; background: #fff; }
.process-rules-modal .process-rules-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.process-rules-modal .process-rules-search-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  max-width: 480px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--pr-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.process-rules-modal .process-rules-search-wrap:focus-within{
  border-color: var(--pr-teal);
  box-shadow: 0 0 0 3px rgba(43, 187, 181, .18);
}
.process-rules-modal .process-rules-search-wrap i{ font-size: 13px; color: var(--pr-muted); }
.process-rules-modal .process-rules-search{
  width: 100%; border: none; outline: none; background: transparent;
  font-size: 13.5px; color: var(--pr-ink);
}
.process-rules-modal .process-rules-search::placeholder{ color: #9aabaa; opacity: 1; }
.process-rules-modal .process-rules-fl{
  height: 40px;
  min-width: 200px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--pr-border);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%239aabaa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1 5,5 9,1'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  color: var(--pr-ink);
  cursor: pointer;
}
.process-rules-modal .process-rules-fl:focus{ outline: none; border-color: var(--pr-teal); box-shadow: 0 0 0 3px rgba(43, 187, 181, .18); }
.process-rules-modal .process-rules-loc{
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: 7px; background: #eef1ff; border: 1px solid #d5dbfa; color: #2e4ad6;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.process-rules-modal .process-rules-count{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pr-teal-deep);
  background: var(--pr-teal-soft);
  border: 1px solid var(--pr-teal-soft-2);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}
.process-rules-modal .process-rules-download{
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px; border: none; border-radius: 12px;
  font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--pr-teal), var(--pr-teal-dark));
  box-shadow: 0 4px 14px rgba(43, 187, 181, .24);
  transition: transform .15s ease, box-shadow .15s ease;
}
.process-rules-modal .process-rules-download:hover{ transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43, 187, 181, .32); }
.process-rules-modal .process-rules-download:disabled{ opacity: .55; cursor: not-allowed; transform: none; }
.process-rules-modal .process-rules-empty{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px dashed var(--pr-border);
  border-radius: 12px;
  background: var(--pr-teal-soft);
  color: var(--pr-ink);
  font-size: 13px;
  font-weight: 600;
}
.process-rules-modal .process-rules-empty i{ font-size: 18px; color: var(--pr-teal-deep); }
.process-rules-modal .process-rules-empty span{ font-weight: 500; color: var(--pr-muted); }
.process-rules-modal .process-rules-table-wrap{
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border: 1px solid var(--pr-border);
  border-radius: 12px;
  background: #fff;
}
.process-rules-modal .process-rules-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  color: var(--pr-ink);
}
.process-rules-modal .process-rules-table th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--pr-teal-soft);
  color: var(--pr-teal-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--pr-border);
  padding: 12px 14px;
  white-space: nowrap;
  text-align: left;
}
.process-rules-modal .process-rules-table td{
  padding: 11px 14px;
  border-bottom: 1px solid #edf4f3;
  vertical-align: middle;
  line-height: 1.4;
}
.process-rules-modal .process-rules-table tbody tr:last-child td{ border-bottom: none; }
.process-rules-modal .process-rules-table tbody tr.is-alt td{ background: #fafcfc; }
.process-rules-modal .process-rules-table tbody tr.process-rules-row:hover td{ background: #f4fbfa; }
.process-rules-modal .process-rules-col-idx{ width: 44px; }
.process-rules-modal .process-rules-col-short{ min-width: 240px; }
.process-rules-modal .process-rules-col-long{ min-width: 340px; }
.process-rules-modal .process-rules-col-fldesc{ min-width: 180px; }
.process-rules-modal .process-rules-col-flattr{ width: 120px; }
.process-rules-modal .process-rules-col-mask{ width: 110px; }
.process-rules-modal .process-rules-mask{
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 7px; border: 1px solid; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.process-rules-modal .process-rules-mask.is-match{ background: #e9f7ef; border-color: #bfe6cf; color: #1d7a45; }
.process-rules-modal .process-rules-mask.is-mismatch{ background: #fff4e0; border-color: #f5d49a; color: #a3610b; }
.process-rules-modal .process-rules-mask-name{
  margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.75; white-space: nowrap;
}
.process-rules-modal .process-rules-col-freeform{ min-width: 220px; }
.process-rules-modal .process-rules-col-subeq{ min-width: 190px; }
.process-rules-modal .process-rules-fldesc{ color: #405755; }
.process-rules-modal .process-rules-freeform{ color: #405755; }
.process-rules-modal .process-rules-attr-none{ color: #9aabaa; }
.process-rules-modal .process-rules-attr-btn{
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--pr-teal-soft-2); background: var(--pr-teal-soft);
  font-size: 11.5px; font-weight: 700; color: var(--pr-teal-deep);
  transition: background .15s ease, color .15s ease;
}
.process-rules-modal .process-rules-attr-btn:hover{ background: var(--pr-teal-soft-2); }
.jconfirm.process-rules-attr-dialog .jconfirm-title{
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.process-rules-modal .process-rules-idx{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 6px;
  border-radius: 7px; border: 1px solid var(--pr-border); background: var(--pr-bg);
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700; color: var(--pr-muted);
}
.process-rules-modal .process-rules-tag{
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--pr-ink);
}
.process-rules-modal .process-rules-fn{
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--pr-border); background: var(--pr-bg);
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--pr-muted);
}
.process-rules-modal .process-rules-fn.is-aliased{
  color: var(--pr-teal-deep); background: var(--pr-teal-soft); border-color: var(--pr-teal-soft-2);
}
.process-rules-modal .process-rules-relation{ color: var(--pr-muted); font-style: italic; }
.process-rules-modal .process-rules-short{ font-weight: 600; }
.process-rules-modal .process-rules-short.is-too-long{ color: #d92d20; cursor: help; }
.process-rules-modal .process-rules-long{ color: #405755; }
.process-rules-modal .process-rules-loading{ padding: 32px; text-align: center; color: #9aabaa; font-size: 13px; }
.process-rules-modal .process-rules-foot{ padding: 12px 22px 16px; border-top: 1px solid var(--pr-border); background: #fff; }
.process-rules-modal .process-rules-close{
  border: none; border-radius: 10px; padding: 9px 18px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--pr-teal), var(--pr-teal-dark));
  box-shadow: 0 4px 14px rgba(43, 187, 181, .24);
}

.line-lounge-tagmesh {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: #0e8f8c;
    font-size: 15px;
    line-height: 1;
}

.line-lounge-symbol .line-lounge-iso-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 3px;
    background: #0e8f8c;
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 16px;
    vertical-align: middle;
    white-space: nowrap;
}

html[data-app-theme="dark"] .line-lounge-tagmesh { color: #19c4c0; }

/* Lines the TagMesh-only toggle hides on the drawing */
#lines-container .a9s-annotation.inspection-hidden-by-toggle {
    display: none !important;
}

.line-lounge-inspection-toggle {
    height: 24px;
    min-width: 28px;
    line-height: 1;
}
.line-lounge-inspection-toggle .ir-icon {
    font-size: 15px;
    --ir-bg: #fff;
}
.line-lounge-inspection-toggle.is-active {
    background: #0e8f8c;
    border-color: #0e8f8c;
    color: #fff;
}
.line-lounge-inspection-toggle.is-active .ir-icon {
    --ir-bg: #0e8f8c;
}
html[data-app-theme="dark"] .line-lounge-inspection-toggle .ir-icon { --ir-bg: #1f2937; }
html[data-app-theme="dark"] .line-lounge-inspection-toggle.is-active .ir-icon { --ir-bg: #0e8f8c; }

.line-lounge-filter {
    width: auto;
    height: 24px;
    font-size: 11px;
    padding: 1px 22px 1px 6px;
    line-height: 1.2;
}

.line-lounge-item.is-current > .accordion-header .accordion-button {
    box-shadow: inset 3px 0 0 #19c4c0;
}

#lines-container .a9s-annotation.line-sibling-selected line.a9s-inner,
#lines-container .a9s-annotation.line-sibling-selected polyline.a9s-inner {
    opacity: 0.5 !important;
}

.insp-component { font-weight: 600; color: #fff; }
.insp-caption { font-size: 11px; color: #a9c2c0; }

.insp-acc {
    border: 1px solid rgba(25, 196, 192, 0.35);
    border-radius: 8px;
    overflow: hidden;
    margin: 4px 0;
}

.insp-acc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: rgba(25, 196, 192, 0.12);
    color: #e8f1f0;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
}

.insp-acc-head:hover { background: rgba(25, 196, 192, 0.2); }

.insp-acc-type {
    font-weight: 700;
    color: #fff;
    background: #0e8f8c;
    border-radius: 4px;
    padding: 2px 9px;
    font-size: 13px;
}

.insp-acc-tags {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    color: #fff;
}

.insp-acc-count {
    font-size: 11.5px;
    color: #a9c2c0;
    white-space: nowrap;
}

.insp-acc-chevron {
    color: #19c4c0;
    transition: transform 0.15s;
}

.insp-acc.is-open .insp-acc-chevron { transform: rotate(180deg); }

.insp-acc-body {
    display: none;
    padding: 8px 10px 4px;
}

.insp-acc.is-open .insp-acc-body { display: block; }

.symbol-tagmesh-hover {
    position: fixed;
    z-index: 10050;
    max-width: calc(100vw - 16px);
    padding: 8px 10px 6px;
    border-radius: 8px;
    background: #1f2937;
    color: #f3f4f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-size: 12px;
}
.symbol-tagmesh-hover-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 600;
}
.symbol-tagmesh-hover-head .ir-icon {
    --ir-bg: #1f2937;
    font-size: 16px;
    color: #5eead4;
}
.symbol-tagmesh-hover-tag {
    padding: 1px 8px;
    border-radius: 10px;
    background: #0e8f8c;
    color: #fff;
}
.symbol-tagmesh-hover-line {
    color: #9ca3af;
    font-weight: 400;
}
.symbol-tagmesh-hover-photos {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.symbol-tagmesh-hover-photos figure {
    margin: 0;
    width: 130px;
    text-align: center;
    cursor: zoom-in;
}
.symbol-tagmesh-hover-photos img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background: #111827;
    display: block;
}
.symbol-tagmesh-hover-photos figure.is-zoomed {
    width: 360px;
}
.symbol-tagmesh-hover-photos figure.is-zoomed img {
    height: 270px;
    object-fit: contain;
}
.symbol-tagmesh-hover-photos figcaption {
    margin-top: 3px;
    font-size: 11px;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.symbol-tagmesh-hover-more {
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
}


.inspection-report-table {
    table-layout: fixed;
    width: 100%;
}

.inspection-report-table col.ir-col-flag   { width: 54px; }
.inspection-report-table col.ir-col-symbol { width: 17%; }
.inspection-report-table col.ir-col-tag    { width: 13%; }
.inspection-report-table col.ir-col-tools  { width: 62px; }

.inspection-report-table td,
.inspection-report-table thead th {
    overflow-wrap: anywhere;
}

.inspection-report-table thead th {
    padding: 9px 10px;
    line-height: 1.3;
}

.inspection-report-table td {
    vertical-align: top;
    padding-top: 9px;
}

.inspection-report-table td.text-center,
.inspection-report-table td.inspection-report-row-tools {
    vertical-align: middle;
}

.inspection-report-table td.inspection-report-flag {
    vertical-align: top;
    padding-top: 7px;
}

.inspection-report-table tbody tr:hover td {
    background: #f5fbfa;
}

html[data-app-theme="dark"] .inspection-report-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.inspection-report-taglist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.inspection-report-taglist .inspection-report-tag {
    margin: 0;
    max-width: 100%;
    padding: 2px 4px 2px 7px;
    font-size: 11.5px;
}

.inspection-report-tag-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inspection-report-taglist .inspection-report-tag-remove {
    opacity: 0.35;
    font-size: 13px;
}

.inspection-report-taglist .inspection-report-tag:hover .inspection-report-tag-remove,
.inspection-report-taglist .inspection-report-tag-remove:focus-visible {
    opacity: 1;
}

.inspection-report-tag-more {
    border: 1px dashed #b7d4d2;
    background: transparent;
    border-radius: 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    color: #16706c;
    white-space: nowrap;
}

.inspection-report-tag-more:hover {
    background: #e4f4f2;
    border-style: solid;
}

html[data-app-theme="dark"] .inspection-report-tag-more {
    border-color: rgba(255, 255, 255, 0.22);
    color: #7fd8d4;
}

html[data-app-theme="dark"] .inspection-report-tag-more:hover {
    background: rgba(25, 196, 192, 0.16);
}

.inspection-report-spread {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px dashed #dfeaea;
}

.inspection-report-spread-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8aa0a0;
    margin-bottom: 1px;
}

.inspection-report-spread-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f4f8f8;
    font-size: 11px;
    color: #4f6b6c;
    cursor: default;
}

.inspection-report-spread-item::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c2d2d2;
}

.inspection-report-spread-item.is-current {
    background: #e4f4f2;
    color: #16706c;
    font-weight: 600;
}

.inspection-report-spread-item.is-current::before {
    background: #19c4c0;
}

.inspection-report-spread-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inspection-report-spread-count {
    flex: none;
    min-width: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfeaea;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    color: #5d7b7c;
}

.inspection-report-spread-item.is-current .inspection-report-spread-count {
    border-color: #9fdedb;
    color: #16706c;
}

html[data-app-theme="dark"] .inspection-report-spread {
    border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-app-theme="dark"] .inspection-report-spread-item {
    background: rgba(255, 255, 255, 0.05);
    color: #c2d6d6;
}

html[data-app-theme="dark"] .inspection-report-spread-item.is-current {
    background: rgba(25, 196, 192, 0.16);
    color: #7fd8d4;
}

html[data-app-theme="dark"] .inspection-report-spread-count {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: #c2d6d6;
}

html[data-app-theme="dark"] .inspection-report-spread-item.is-current .inspection-report-spread-count {
    border-color: rgba(127, 216, 212, 0.5);
    color: #7fd8d4;
}
