html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #203471;
    border-color: #203471;
}
.btn-primary:hover {
    color: #fff;
    background-color: #1b388cff;
    border-color: #1b388cff;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e51680;
}

.validation-message {
    color: #e51680;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Added by Ryan */

.grid-container {
    overflow-x: auto;
    overflow-y: hidden; /* Hide vertical overflow if not needed */
    white-space: nowrap; /* Prevent wrapping of grid content */
    max-width: 100%; /* Ensure the container does not exceed the viewport width */
}
.img-loader {
    margin-right: 8px;
    background: #fafafb;
    width: 70px;
    height: 70px;
    animation: ui-pulse 1.1s infinite;
    border-radius: 50%;
    padding: 12px;
}

    .img-loader img {
        width: 100%;
    }
    
@keyframes ui-pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    }

    70% {
        -moz-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        -moz-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

img.cs-tooltip-selector {
    width: 15px !important;
    margin-right: 5px;
}

.pulsing-icon {
    animation: ui-pulse 1.1s infinite;
    border-radius: 30%;
}

/* Rich hover details for Sub-System codes rendered inside the annotation SVG canvas. */
.annotation-subsystem-popover {
    --annotation-subsystem-accent: #2563eb;
    position: fixed;
    z-index: 20000;
    width: min(350px, calc(100vw - 20px));
    overflow: hidden;
    padding: 15px;
    color: var(--kendo-color-on-app-surface, #172033);
    background: color-mix(in srgb, var(--kendo-color-surface, #fff) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--annotation-subsystem-accent) 20%, #cbd5e1);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgb(15 23 42 / 20%), 0 4px 12px rgb(15 23 42 / 10%);
    backdrop-filter: blur(14px) saturate(1.15);
    pointer-events: none;
    animation: annotation-subsystem-popover-in 130ms ease-out;
}

.annotation-subsystem-popover[hidden] { display: none !important; }
.annotation-subsystem-popover-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--annotation-subsystem-accent), color-mix(in srgb, var(--annotation-subsystem-accent) 35%, #fff));
}

.annotation-subsystem-popover-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.annotation-subsystem-popover-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--annotation-subsystem-accent);
    background: color-mix(in srgb, var(--annotation-subsystem-accent) 10%, var(--kendo-color-surface, #fff));
    border: 1px solid color-mix(in srgb, var(--annotation-subsystem-accent) 18%, transparent);
    border-radius: 11px;
}

.annotation-subsystem-popover-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.annotation-subsystem-popover-title { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.annotation-subsystem-popover-title small,
.annotation-subsystem-popover-meta small {
    color: var(--kendo-color-subtle, #64748b);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
}

.annotation-subsystem-popover-title strong {
    overflow: hidden;
    color: var(--annotation-subsystem-accent);
    font-size: 16px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.annotation-subsystem-popover-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.annotation-subsystem-popover-status i { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px rgb(34 197 94 / 14%); }
.annotation-subsystem-popover > p {
    margin: 12px 0;
    color: var(--kendo-color-on-app-surface, #334155);
    font-size: 12px;
    line-height: 1.45;
}

.annotation-subsystem-popover-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.annotation-subsystem-popover-meta > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 9px;
    background: var(--kendo-color-base-subtle, #f6f8fb);
    border: 1px solid var(--kendo-color-border-alt, #e2e8f0);
    border-radius: 8px;
}

.annotation-subsystem-popover-meta strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes annotation-subsystem-popover-in {
    from { opacity: 0; transform: translateY(4px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .annotation-subsystem-popover { animation: none; }
}

/* Click-through live status for extracted equipment tags on annotation drawings. */
.annotation-tag-marker { cursor: help; transition: opacity 100ms ease, filter 100ms ease; }
.annotation-tag-marker.annotation-tag-muted { opacity: .18; }
.annotation-tag-marker.annotation-tag-hovered { filter: drop-shadow(0 0 3px rgb(37 99 235 / 70%)); }
.annotation-tag-marker.annotation-tag-selected {
    stroke: #2563eb !important;
    stroke-width: 4 !important;
    filter: drop-shadow(0 0 5px rgb(37 99 235 / 85%));
}
.annotation-tag-marker.annotation-tag-pulse { animation: annotation-tag-pulse 1400ms ease-out; }
.annotation-tag-selected-label {
    fill: #1d4ed8;
    stroke: #fff;
    stroke-width: 4px;
    paint-order: stroke fill;
    font-size: 12px;
    font-weight: 750;
    pointer-events: none;
}

.annotation-tag-preview {
    position: fixed;
    z-index: 20020;
    width: min(290px, calc(100vw - 20px));
    padding: 10px 12px;
    color: #172033;
    background: rgb(255 255 255 / 97%);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgb(15 23 42 / 18%);
    pointer-events: none;
}
.annotation-tag-preview[hidden] { display: none !important; }
.annotation-tag-preview strong { display: block; overflow: hidden; color: #1d4ed8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.annotation-tag-preview span { display: block; margin-top: 3px; color: #475569; font-size: 9px; }
.annotation-tag-preview small { display: block; margin-top: 5px; color: #64748b; font-size: 8px; }

.annotation-tag-popover {
    position: fixed;
    z-index: 20010;
    width: min(410px, calc(100vw - 20px));
    max-height: min(620px, calc(100vh - 20px));
    overflow: auto;
    padding: 16px;
    color: var(--kendo-color-on-app-surface, #172033);
    background: color-mix(in srgb, var(--kendo-color-surface, #fff) 96%, transparent);
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    box-shadow: 0 22px 54px rgb(15 23 42 / 24%), 0 5px 14px rgb(15 23 42 / 10%);
    backdrop-filter: blur(14px) saturate(1.15);
    animation: annotation-subsystem-popover-in 140ms ease-out;
}

.annotation-tag-popover[hidden] { display: none !important; }
.annotation-tag-popover-accent { position: absolute; inset: 0 0 auto; height: 4px; background: var(--kendo-color-primary, #2563eb); }
.annotation-tag-popover-header { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 24px; align-items: center; gap: 9px; }
.annotation-tag-popover-mark { width: 40px; height: 40px; display: grid; place-items: center; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 11px; }
.annotation-tag-popover-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.annotation-tag-popover-title { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.annotation-tag-popover-title small,
.annotation-tag-popover-context small { color: #64748b; font-size: 9px; font-weight: 750; letter-spacing: .09em; }
.annotation-tag-popover-title strong { overflow: hidden; color: #1d4ed8; font-size: 16px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.annotation-tag-popover-state { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.annotation-tag-popover-state.in-system { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.annotation-tag-popover-state.not-in-system { color: #92400e; background: #fef3c7; border: 1px solid #fde68a; }
.annotation-tag-popover-close { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; color: #64748b; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 21px; line-height: 1; }
.annotation-tag-popover-close:hover { color: #172033; background: #f1f5f9; }
.annotation-tag-popover-description { margin: 12px 0 0; color: #475569; font-size: 12px; line-height: 1.45; }
.annotation-tag-popover-context { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.annotation-tag-popover-context > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 8px 9px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.annotation-tag-popover-context > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.annotation-tag-popover-context strong { overflow: hidden; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.annotation-tag-popover-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.annotation-tag-popover-actions[hidden] { display: none !important; }
.annotation-tag-popover-actions span { color: #64748b; font-size: 9px; }
.annotation-tag-popover-actions button { padding: 6px 9px; color: #fff; background: #2563eb; border: 1px solid #1d4ed8; border-radius: 7px; cursor: pointer; font-size: 9px; font-weight: 700; white-space: nowrap; }
.annotation-tag-popover-actions button:hover { background: #1d4ed8; }
.annotation-tag-popover-actions button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.annotation-tag-popover-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.annotation-tag-progress-item { padding: 9px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; box-shadow: 0 2px 5px rgb(15 23 42 / 4%); }
.annotation-tag-progress-item > span { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; }
.annotation-tag-progress-item strong { font-size: 10px; }
.annotation-tag-progress-item small { color: #64748b; font-size: 9px; white-space: nowrap; }
.annotation-tag-progress-item > div { height: 5px; margin-top: 7px; overflow: hidden; background: #e2e8f0; border-radius: 999px; }
.annotation-tag-progress-item i { display: block; height: 100%; border-radius: inherit; }
.annotation-tag-popover-imagery { margin-top: 10px; padding: 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.annotation-tag-popover-imagery > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.annotation-tag-popover-imagery > div:first-child strong { font-size: 11px; }
.annotation-tag-popover-imagery > div:first-child span { color: #475569; font-size: 9px; font-weight: 700; }
.annotation-tag-popover-imagery > small { display: block; margin-top: 7px; color: #64748b; font-size: 9px; }
.annotation-tag-popover-images { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.annotation-tag-popover-images img,
.annotation-tag-popover-more-images { width: 100%; height: 58px; object-fit: cover; border: 1px solid #dbe3ec; border-radius: 7px; background: #e2e8f0; }
.annotation-tag-popover-more-images { display: grid; place-items: center; color: #1d4ed8; background: #eff6ff; font-size: 13px; font-weight: 750; }
.annotation-tag-popover-loading { min-height: 116px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.annotation-tag-popover-loading > i { width: 25px; height: 25px; border: 3px solid #bfdbfe; border-top-color: #2563eb; border-radius: 50%; animation: annotation-tag-spin .75s linear infinite; }
.annotation-tag-popover-loading > span { display: flex; flex-direction: column; gap: 2px; }
.annotation-tag-popover-loading strong { font-size: 11px; }
.annotation-tag-popover-loading small { color: #64748b; font-size: 10px; }
.annotation-tag-popover-error { margin: 14px 0 0; padding: 10px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; font-size: 11px; }
.annotation-tag-popover-navigation { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.annotation-tag-popover-navigation[hidden] { display: none !important; }
.annotation-tag-popover-navigation span { flex: 1 1 auto; display: flex; flex-direction: column; color: #1e40af; font-size: 10px; font-weight: 700; text-align: center; }
.annotation-tag-popover-navigation small { color: #64748b; font-size: 8px; font-weight: 500; }
.annotation-tag-popover-navigation button { width: 30px; height: 28px; padding: 0; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 7px; cursor: pointer; }
.annotation-tag-popover-navigation button:disabled { opacity: .35; cursor: default; }

@keyframes annotation-tag-spin { to { transform: rotate(360deg); } }
@keyframes annotation-tag-pulse {
    0% { stroke-width: 4; filter: drop-shadow(0 0 0 rgb(37 99 235 / 0%)); }
    35% { stroke-width: 8; filter: drop-shadow(0 0 10px rgb(37 99 235 / 95%)); }
    100% { stroke-width: 4; filter: drop-shadow(0 0 5px rgb(37 99 235 / 85%)); }
}
@media (max-width: 520px) {
    .annotation-tag-popover { width: calc(100vw - 20px); }
    .annotation-tag-popover-header { grid-template-columns: 38px minmax(0, 1fr) 24px; }
    .annotation-tag-popover-state { grid-column: 2 / 3; grid-row: 2; justify-self: start; }
    .annotation-tag-popover-close { grid-column: 3; grid-row: 1; }
    .annotation-tag-popover-progress { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .annotation-tag-popover,
    .annotation-tag-popover-loading > i,
    .annotation-tag-marker.annotation-tag-pulse { animation: none; }
}

/* Annotation hover/click callouts are appended to body, outside the scoped
   DocumentAnnotation component stylesheet, so they need global dark variants. */
html[data-theme="dark"] .annotation-subsystem-popover,
html[data-theme="dark"] .annotation-tag-popover {
    color: var(--kendo-color-on-app-surface, #edf0f3);
    background: color-mix(in srgb, var(--kendo-color-surface-alt, #202328) 96%, transparent);
    border-color: var(--kendo-color-border-alt, rgba(237, 240, 243, .25));
    box-shadow: 0 22px 54px rgb(0 0 0 / 48%), 0 5px 14px rgb(0 0 0 / 30%);
    scrollbar-color: var(--aquip-scrollbar-thumb, #66707b) var(--kendo-color-app-surface, #17191c);
}

html[data-theme="dark"] .annotation-subsystem-popover-accent {
    background: linear-gradient(
        90deg,
        var(--annotation-subsystem-accent),
        color-mix(in srgb, var(--annotation-subsystem-accent) 58%, var(--kendo-color-surface-alt, #202328))
    );
}

html[data-theme="dark"] .annotation-subsystem-popover-status,
html[data-theme="dark"] .annotation-tag-popover-state.in-system {
    color: var(--kendo-color-success-on-subtle, #b9efd4);
    background: var(--kendo-color-success-subtle, #153a2b);
    border-color: var(--kendo-color-success-emphasis, #41966f);
}

html[data-theme="dark"] .annotation-subsystem-popover > p,
html[data-theme="dark"] .annotation-subsystem-popover-meta strong {
    color: var(--kendo-color-on-app-surface, #edf0f3);
}

html[data-theme="dark"] .annotation-subsystem-popover-meta > div,
html[data-theme="dark"] .annotation-tag-popover-context > div,
html[data-theme="dark"] .annotation-tag-progress-item,
html[data-theme="dark"] .annotation-tag-popover-imagery {
    color: var(--kendo-color-on-app-surface, #edf0f3);
    background: var(--kendo-color-base-subtle, #272b31);
    border-color: var(--kendo-color-border-alt, rgba(237, 240, 243, .25));
    box-shadow: none;
}

html[data-theme="dark"] .annotation-tag-preview {
    color: var(--kendo-color-on-app-surface, #edf0f3);
    background: color-mix(in srgb, var(--kendo-color-surface-alt, #202328) 97%, transparent);
    border-color: var(--kendo-color-border-alt, rgba(237, 240, 243, .25));
    box-shadow: 0 10px 28px rgb(0 0 0 / 42%);
}

html[data-theme="dark"] .annotation-tag-preview strong,
html[data-theme="dark"] .annotation-tag-popover-title strong,
html[data-theme="dark"] .annotation-tag-popover-more-images,
html[data-theme="dark"] .annotation-tag-popover-navigation span,
html[data-theme="dark"] .annotation-tag-popover-navigation button {
    color: var(--kendo-color-info-on-subtle, #c8e9ff);
}

html[data-theme="dark"] .annotation-tag-preview span,
html[data-theme="dark"] .annotation-tag-preview small,
html[data-theme="dark"] .annotation-tag-popover-title small,
html[data-theme="dark"] .annotation-tag-popover-context small,
html[data-theme="dark"] .annotation-tag-popover-description,
html[data-theme="dark"] .annotation-tag-popover-actions span,
html[data-theme="dark"] .annotation-tag-progress-item small,
html[data-theme="dark"] .annotation-tag-popover-imagery > div:first-child span,
html[data-theme="dark"] .annotation-tag-popover-imagery > small,
html[data-theme="dark"] .annotation-tag-popover-loading small,
html[data-theme="dark"] .annotation-tag-popover-navigation small {
    color: var(--kendo-color-subtle, #aab1ba);
}

html[data-theme="dark"] .annotation-tag-popover-mark,
html[data-theme="dark"] .annotation-tag-popover-more-images,
html[data-theme="dark"] .annotation-tag-popover-navigation button {
    background: var(--kendo-color-info-subtle, #17364d);
    border-color: var(--kendo-color-info-emphasis, #4d89b2);
}

html[data-theme="dark"] .annotation-tag-popover-close {
    color: var(--kendo-color-subtle, #aab1ba);
}

html[data-theme="dark"] .annotation-tag-popover-close:hover {
    color: var(--kendo-color-on-app-surface, #edf0f3);
    background: var(--kendo-color-base-subtle-hover, #31363d);
}

html[data-theme="dark"] .annotation-tag-popover-state.not-in-system {
    color: var(--kendo-color-warning-on-subtle, #ffe6b7);
    background: var(--kendo-color-warning-subtle, #493414);
    border-color: var(--kendo-color-warning-emphasis, #b68a44);
}

html[data-theme="dark"] .annotation-tag-popover-actions,
html[data-theme="dark"] .annotation-tag-popover-navigation {
    border-color: var(--kendo-color-border-alt, rgba(237, 240, 243, .25));
}

html[data-theme="dark"] .annotation-tag-progress-item > div,
html[data-theme="dark"] .annotation-tag-popover-images img,
html[data-theme="dark"] .annotation-tag-popover-more-images {
    background-color: var(--kendo-color-surface, #111315);
    border-color: var(--kendo-color-border-alt, rgba(237, 240, 243, .25));
}

html[data-theme="dark"] .annotation-tag-popover-loading > i {
    border-color: var(--kendo-color-info-emphasis, #4d89b2);
    border-top-color: var(--kendo-color-info, #67b7ef);
}

html[data-theme="dark"] .annotation-tag-popover-error {
    color: var(--kendo-color-error-on-subtle, #ffd5d8);
    background: var(--kendo-color-error-subtle, #4a2227);
    border-color: var(--kendo-color-error-emphasis, #bf6168);
}

/* The QR Processing preview window is rendered at body level, outside the
   component CSS scope. Theme only its chrome; the PDF document page remains
   intentionally untouched and therefore white like the source document. */
html[data-theme="dark"] .current-inspection-file-window .k-window-titlebar,
html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer > .k-toolbar,
html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer .k-toolbar,
html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer-toolbar {
    color: var(--kendo-color-on-app-surface, var(--aquip-text));
    background: var(--kendo-color-surface-alt, var(--aquip-surface-raised));
    border-color: var(--kendo-color-border, var(--aquip-border));
}

html[data-theme="dark"] .current-inspection-file-window .k-window-content,
html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer {
    color: var(--kendo-color-on-app-surface, var(--aquip-text));
    background: var(--kendo-color-app-surface, var(--aquip-surface));
    border-color: var(--kendo-color-border, var(--aquip-border));
}

html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer .k-toolbar .k-input,
html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer .k-toolbar .k-picker,
html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer .k-toolbar .k-dropdownlist {
    color: var(--kendo-color-on-app-surface, var(--aquip-text));
    background: var(--kendo-color-surface, var(--aquip-surface-raised));
    border-color: var(--kendo-color-border-alt, var(--aquip-border-strong));
}

html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer .k-toolbar .k-button:not(.k-selected):not(.k-active) {
    color: var(--kendo-color-on-app-surface, var(--aquip-text));
    background: transparent;
}

html[data-theme="dark"] .current-inspection-file-window .k-pdf-viewer .k-toolbar .k-button:not(.k-selected):not(.k-active):hover {
    background: var(--kendo-color-base-subtle-hover, var(--aquip-hover));
}
