﻿@import url('./icons.css');

/* ================================================================
   Typography & shadow tokens
   (font-size/weight/line-height vars used by component CSS too)
   ================================================================ */
:root {
    --ccg-font-size-xs: 0.75rem;
    --ccg-font-size-sm: 0.875rem;
    --ccg-font-size-base: 1rem;
    --ccg-font-size-lg: 1.125rem;
    --ccg-font-size-xl: 1.25rem;
    --ccg-font-size-headline-lg: 1.5rem;
    --ccg-font-weight-base: 400;
    --ccg-font-weight-medium: 500;
    --ccg-font-weight-semibold: 600;
    --ccg-font-weight-headline: 700;
    --ccg-line-height-base: 1.5;
    --ccg-line-height-headline: 1.2;
    --ccg-letter-spacing-base: 0;
    --ccg-letter-spacing-headline-lg: -0.02em;
    --ccg-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    /*    overflow: hidden;*/
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/*===================================================================================================*/

.h-auto {
    height: auto !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.text-danger  { color: var(--ccg-danger); }
.text-warning { color: var(--ccg-warning); }
.text-muted   { color: var(--ccg-text-muted); }

.list-unstyled { list-style: none; padding-left: 0; margin: 0; }



.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--ccg-success);
}

.invalid {
    outline: 1px solid var(--ccg-danger);
}

.validation-message {
    color: var(--ccg-danger);
}

.button-link {
    text-decoration: unset;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

    .title.title-secondary {
        padding: 0.313rem 0 0;
        color: var(--ccg-text-muted);
    }

.title-header-text {
    font-size: var(--ccg-font-size-headline-lg);
    font-weight: var(--ccg-font-weight-headline);
    letter-spacing: var(--ccg-letter-spacing-headline-lg);
    line-height: var(--ccg-line-height-headline);
}

.title-content-text {
    font-size: var(--ccg-font-size-base);
    font-weight: var(--ccg-font-weight-base);
    letter-spacing: var(--ccg-letter-spacing-base);
    line-height: var(--ccg-line-height-base);
}

.main-content {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.block-content {
    width: 100%;
}

/*.links-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--ccg-text-muted);
    flex-shrink: 0;
}*/

.custom-link {
    color: var(--ccg-accent);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

    .custom-link:hover {
        text-decoration: underline;
    }



:root {
    --dxbl-treeview-item-selection-bg: var(--ccg-accent);
}

html, body, .page {
    height: 100%;
}

.SwitchCompany {
    position: absolute;
    bottom: 0px;
    padding-right: 10px;
    background-color: var(--ccg-surface);
}

.diagram-canvas {
    width: calc(100% + 48px);
    height: calc(100vh - 64px);
    background-color: inherit;
}

.diagram-node {
    min-width: 240px;
}

.default-node {
    padding: 10px;
    background-color: var(--ccg-surface) !important;
    color: var(--ccg-text) !important;
    border: 1px solid var(--ccg-border) !important;
    width: auto;
    height: auto;
    min-height: 80px;
    flex-direction: column;
}

.start-node {
    background-color: var(--ccg-success) !important;
    color: white !important;
    border-color: var(--ccg-success) !important;
}

.end-node {
    background-color: var(--ccg-danger) !important;
    color: white !important;
    border-color: var(--ccg-danger) !important;
}

.default-node.diagram-port,
.diagram-port,
.default-node .diagram-port,
.default.diagram-group .diagram-port {
    background-color: var(--ccg-surface) !important;
    border: 1px solid var(--ccg-border) !important;
}

    .default-node.diagram-port:hover,
    .diagram-port:hover,
    .default-node .diagram-port:hover,
    .default.diagram-group .diagram-port:hover {
        background-color: var(--ccg-text) !important;
    }

.default-node.selected {
    border: 1px solid var(--ccg-border) !important;
}

.condition-label {
    position: absolute;
    left: calc(-50% + 23px);
    top: 18px;
    font-weight: 700;
    font-size: xx-small;
    color: var(--ccg-text);
}

.navigator .navigator-node {
    fill: var(--ccg-text);
}

.navigator .navigator-current-view {
    stroke: var(--ccg-text);
}

.text-wrap {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: color-mix(in oklab, var(--ccg-danger) 24%, transparent);
    color: var(--ccg-text);
    text-align: center;
    padding: 10px;
    font-weight: bold;
    z-index: 1000;
}

.scrolling-text {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 120s linear infinite;
}

    .scrolling-text span {
        padding-right: 800px;
    }

@keyframes scroll-left {
    0% {
        transform: translateX(10%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.workflow-toolbar {
    top: 5px;
    right: 5px;
    position: absolute;
    padding: 5px;
    display: flex;
    align-items: center;
    background-color: var(--ccg-surface);
    border: 1px solid var(--ccg-border);
}

.workflow-properties {
    bottom: 16px;
    right: 16px;
    border-radius: 0px;
    position: absolute;
    padding: 5px;
    display: flex;
    background-color: var(--ccg-surface);
    border: 1px solid var(--ccg-border);
    max-height: 80vh;
    min-width: 240px;
}

.workflow-toolbar-button {
    padding: 2.5px;
    border-radius: 5px;
    width: 35px;
    height: 35px;
}

    .workflow-toolbar-button a {
        width: 100%;
    }

    .workflow-toolbar-button img {
        width: 30px;
        height: 30px;
        filter: var(--icon-primary-filter-light);
    }

.step-node {
    min-width: 240px;
}

.mud-table-row-selected {
    background-color: color-mix(in oklab, var(--ccg-accent) 15%, var(--ccg-surface));
}

div.diagram-group.default {
    outline: 1px solid var(--ccg-border);
    border-radius: 5px;
}

.p-4:has(.diagram-canvas) {
    padding: 0px;
}

.site-background {
    background-image: url(api/repository/sitebackground);
    background-size: cover;
    height: 100vh;
    width: 100vw;
    margin: 0px;
    padding: 0px;
    position: fixed;
    top: 0px;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page {
    background-color: var(--ccg-surface);
    width: 36vw;
    left: 32vw;
    padding: 1rem;
    position: fixed;
    overflow-y: auto;
    border-radius: 0.5rem;
}

    .login-page button {
        background-color: var(--ccg-accent);
        width: 100%;
        color: white;
    }

    /* Error messages on the login page — red icon + text matching CCGValidationMessage */
    .login-page .ccg-input-error::before {
        content: '';
        display: inline-block;
        flex-shrink: 0;
        width: 14px;
        height: 14px;
        margin-right: 4px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='red'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* Override the ccg-btn--primary inside .login-page to use accent */
    .login-page .ccg-btn--primary {
        background: var(--ccg-accent);
        color: white;
        border-color: var(--ccg-accent);
    }

.login-small img {
    width: 25vw;
    margin-left: 4vw;
}

@media only screen and (max-width: 600px) {

    .login-small img {
        width: calc(100vw - 6rem);
        margin: 1rem;
    }

    .login-page {
        position: unset;
        width: calc(100vw - 2rem);
        height: calc(100vh - 2rem);
        margin: 1rem;
    }
}


.page-header, .page-footer {
    background-color: var(--ccg-accent) !important;
}

    .page-header button {
        background-color: var(--ccg-surface);
        color: var(--ccg-text);
    }

    .hamburger-button svg {
        fill: var(--ccg-surface);
    }

/*    .page-header .dxbl-btn-primary {
        background-color: white;
        color: var(--ccg-accent);
    }*/

/*
.dxbl-treeview-item-container.dxbl-active {
    fill: white;
    color: white;
}*/


.report-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .report-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.notes-bar {
    width: 240px;
    position: absolute;
    top: 50px;
    right: 1rem;
    height: calc(100vh - 50px);
}

/* No background — inherits from DevExpress panel */
.notes-card {
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-top: 16px;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ccg-text);
}

.notes-count {
    background-color: color-mix(in oklab, var(--ccg-surface), var(--ccg-text) 10%);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 6px;
    border-radius: 6px;
    background-color: color-mix(in oklab, var(--ccg-surface), var(--ccg-text) 4%);
    border: 1px solid color-mix(in oklab, var(--ccg-surface), var(--ccg-text) 12%);
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

    .note-item:hover {
        background-color: color-mix(in oklab, var(--ccg-surface), var(--ccg-text) 8%);
    }

.note-content {
    overflow: auto;
    max-height: calc(100vh - 370px);
}

.note-section {
    font-weight: 600;
    font-size: 13px;
    color: var(--ccg-accent);
}

.note-text {
    font-size: 13px;
    color: var(--ccg-text-muted);
    line-height: 1.4;
}

.notes-empty {
    text-align: center;
    color: var(--ccg-text-muted);
    font-size: 13px;
    padding: 20px 0;
}

.notes-bar .card-body {
    padding-right: 0.5rem;
}

.report-Toolbar {
    position: absolute;
    top: 0.5rem;
    right: -1.2rem;
    scale: 1.5;
}

.diagram-group {
    border: none;
    border-radius: 8px;
    padding: 10px;
}

.diagram-group-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.diagram-group {
    background: transparent !important;
}

.default-node .diagram-port:hover,
.default-node .diagram-port.has-links,
.default.diagram-group .diagram-port.has-links {
    border-radius: 50%;
    background-color: var(--ccg-surface) !important;
    border: solid 3px var(--ccg-border) !important;
}

.relative {
    position: relative;
}

.top-right {
    position: absolute;
    top: 0px;
    right: 0px;
}

#progress {
    padding: 0px;
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
}

    #progress ol {
        background-color: color-mix(in oklab, var(--ccg-surface), var(--ccg-text) 90%);
        position: relative;
        overflow: hidden;
        display: flex;
    }

    #progress li {
        position: relative;
        flex: 1;
        text-align: center;
        color: var(--ccg-accent);
        min-width: 100px;
        list-style-type: none;
    }

        #progress li:before {
            content: "";
            display: block;
            width: 2em;
            height: 2em;
            line-height: 2em;
            border-radius: 2em;
            position: relative;
            left: 50%;
            margin-bottom: 0.25em;
            margin-left: -1em;
            z-index: 1;
            background-color: var(--ccg-surface);
            border: 4px solid var(--ccg-text-muted);
        }

    #progress .completed:before {
        color: white;
        background-color: var(--ccg-accent);
        border: 4px solid var(--ccg-accent);
    }

    #progress .current:before {
        background-color: var(--ccg-surface);
        border: 4px solid var(--ccg-accent);
    }

    #progress li + li:after {
        content: "";
        display: block;
        width: 100%;
        background-color: var(--ccg-text-muted);
        border: 2px solid var(--ccg-text-muted);
        height: 2px;
        position: absolute;
        left: -50%;
        top: calc(1em - 4px);
        z-index: 0;
    }

    #progress .completed + li:after {
        background-color: var(--ccg-accent);
        content: "";
        display: block;
        width: 100%;
        border: 4px solid var(--ccg-accent);
        height: 4px;
        position: absolute;
        left: -50%;
        top: calc(1em - 4px);
        z-index: 0;
    }

.drag-drop-zone {
    width: 100%;
    border: 3px dashed var(--ccg-accent);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in oklab, var(--ccg-surface), var(--ccg-text) 6%);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: var(--ccg-text);
    cursor: pointer;
    position: relative;
}

    .drag-drop-zone:hover {
        background-color: color-mix(in oklab, var(--ccg-surface), var(--ccg-text) 3%);
    }

    .drag-drop-zone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }
/**************************************************************************************************/
/*                                Document management Start                                       */

.document-manager {
    border: 1px solid white;
    background-color: grey;
    display: flex;
    gap: 20px;
    padding: 20px;
    width:750px;
    height:500px;
}

.file-tree {
    flex: 0 0 250px;
    border: 1px solid #ccc;
    background: gray;
    overflow: auto;
}

.file-viewer {
    flex: 1 400px;
    border: 1px solid #ccc;
    background: gray;
}

.preview-container {
    max-height: 80vh;
    overflow: auto;
    border: 1px solid #ddd;
    width: 450px;
    height: 357px;
}

.preview-pdf {
    width: 100%;
    height: 350px; /* of 600px, of 80vh */
    border: none;
}

.context-menu {
    position: fixed;
    min-width: 200px;
    /* DARK GRAY BACKGROUND */
    background: #3a3a3a;
    /* ROUNDED CORNERS */
    border-radius: 10px;
    /* CONTRAST BORDER + SHADOW */
    border: 1px solid rgba(0,0,0,0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    padding: 6px 0;
    z-index: 9999;
    /* ANIMATION */
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    animation: fadeInMenu 120ms ease-out forwards;
}

@keyframes fadeInMenu {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* HEADER — BOLD + CONTRAST */
.menu-header {
    padding: 10px 14px;
    font-weight: 700; /* BOLD */
    font-size: 0.9rem;
    color: black; /* BLACK TEXT */
    background: #dcdcdc; /* LIGHT CONTRAST */
    border-bottom: 1px solid rgba(0,0,0,0.2);
    border-radius: 10px 10px 0 0;
}

/* MENU ITEMS */
.menu-item {
    padding: 10px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    /* WHITE TEXT */
    color: white;
    transition: background 0.15s ease;
}

    .menu-item:hover {
        background: rgba(255,255,255,0.15);
    }

    /* DELETE ITEM — RED TEXT */
    .menu-item.delete {
        color: #ff4a4a;
        font-weight: 600;
    }

.context-menu-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px; /* space between buttons and document pane */
}

    .context-menu-buttons .btn {
        min-width: 100px;
        border-radius: 6px;
    }

.document-pane {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #f9f9f9;
}

/*                                 Document management End                                        */
/**************************************************************************************************/
    }

.wizard-progress {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
}

.wizard-button-progress,
.import-preview-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.import-preview-summary {
    width: 100%;
    justify-content: space-between;
    color: var(--ccg-text-muted);
}

.import-confirm-preview {
    width: 100%;
    max-width: 100%;
    max-height: 55vh;
    overflow-x: auto;
    overflow-y: auto;
    padding-bottom: 0.5rem;
/*    border: 1px solid var(--ccg-border);*/
}

.import-confirm-table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
}

    .import-confirm-table th,
    .import-confirm-table td {
        max-width: 14rem;
        vertical-align: top;
        white-space: normal;
        word-break: break-word;
    }

    .import-confirm-table th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: var(--ccg-surface);
        text-align: left;
    }

.import-validation-table {
    width: 100%;
}

    .import-validation-table table {
        table-layout: fixed;
        width: 100%;
    }

    .import-validation-table .dxbl-grid {
        width: 100%;
    }

    .import-validation-table th,
    .import-validation-table td {
        vertical-align: middle;
    }

    .import-validation-table th:nth-child(1),
    .import-validation-table td:nth-child(1),
    .import-validation-table th:nth-child(2),
    .import-validation-table td:nth-child(2),
    .import-validation-table th:nth-child(4),
    .import-validation-table td:nth-child(4) {
        width: 20%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .import-validation-table th:nth-child(3),
    .import-validation-table td:nth-child(3),
    .import-validation-table th:nth-child(5),
    .import-validation-table td:nth-child(5) {
        width: 12%;
        text-align: center;
    }

    .import-validation-table th:nth-child(6),
    .import-validation-table td:nth-child(6) {
        width: 16%;
        text-align: center;
    }

.import-validation-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    border-radius: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.import-validation-status-info {
    background-color: color-mix(in oklab, var(--ccg-success) 16%, transparent);
}

.import-validation-status-warning {
    background-color: color-mix(in oklab, var(--ccg-warning) 28%, transparent);
}

.import-validation-status-error {
    background-color: color-mix(in oklab, var(--ccg-danger) 18%, transparent);
}

/* ── Import checks summary ──────────────────────────────────────────────── */

.import-checks-summary {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.import-checks-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 9rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.import-checks-stat--pass {
    background-color: color-mix(in oklab, var(--ccg-success) 12%, transparent);
    border-color: color-mix(in oklab, var(--ccg-success) 30%, transparent);
}

.import-checks-stat--warn {
    background-color: color-mix(in oklab, var(--ccg-warning) 16%, transparent);
    border-color: color-mix(in oklab, var(--ccg-warning) 40%, transparent);
}

.import-checks-stat--block {
    background-color: color-mix(in oklab, var(--ccg-danger) 12%, transparent);
    border-color: color-mix(in oklab, var(--ccg-danger) 28%, transparent);
}

.import-checks-stat__count {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.import-checks-stat__label {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.75;
    text-align: center;
}

/* ── PBI / Wizard overlays (restored) ───────────────────────────────────── */

.pbi-loading-overlay {
    position: absolute;
    inset: 0;
    background: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

.pbi-logo-spin {
    height: 50px;
    animation: pbi-pulse 1.5s ease-in-out infinite;
}

@keyframes pbi-pulse {
    0%   { opacity: 1; transform: scale(1);    }
    50%  { opacity: 0.5; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1);    }
}

.wizard-busy-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
}

.wizard-busy-card {
    width: 300px;
    background: var(--ccg-surface);
    border-radius: var(--ccg-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--ccg-shadow);
}

/* ── Quarantine page ─────────────────────────────────────────────────────── */

.qr-filter-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.qr-filter-tab {
    padding: 0.4rem 1rem;
    border: 1px solid var(--ccg-border);
    border-radius: var(--ccg-radius);
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s, border-color 0.15s;
}

.qr-filter-tab:hover {
    background: color-mix(in oklab, var(--ccg-accent) 8%, transparent);
}

.qr-filter-tab--active {
    background: var(--ccg-accent);
    border-color: var(--ccg-accent);
    color: white;
    font-weight: 600;
}

.qr-filter-tab-badge {
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
    padding: 0 0.45rem;
    font-size: 0.75rem;
    line-height: 1.4;
    min-width: 1.4rem;
    text-align: center;
}

.qr-filter-tab--active .qr-filter-tab-badge {
    background: rgba(255,255,255,0.3);
}

/* Bulk action bar */
.qr-bulk-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    margin-bottom: 0.75rem;
    background: color-mix(in oklab, var(--ccg-accent) 8%, transparent);
    border: 1px solid color-mix(in oklab, var(--ccg-accent) 20%, transparent);
    border-radius: var(--ccg-radius);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.qr-bulk-clear {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.6;
    text-decoration: underline;
    color: inherit;
}

/* Main table */
.qr-grid-wrapper {
    overflow-x: auto;
}

.qr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.qr-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--ccg-border);
    font-weight: 600;
    white-space: nowrap;
}

.qr-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--ccg-border);
    vertical-align: middle;
}

.qr-table tr:hover td {
    background: color-mix(in oklab, var(--ccg-accent) 4%, transparent);
}

.qr-row--dim td {
    opacity: 0.65;
}

.qr-col-check { width: 2.5rem; }
.qr-col-center { text-align: center; }
.qr-col-date { white-space: nowrap; }
.qr-col-actions { white-space: nowrap; }

.qr-col-preview {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--ccg-text-muted, #666);
}

/* Status badges */
.qr-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.qr-status-badge--pending {
    background: color-mix(in oklab, var(--ccg-warning) 20%, transparent);
    color: color-mix(in oklab, var(--ccg-warning) 80%, #000);
}

.qr-status-badge--released {
    background: color-mix(in oklab, var(--ccg-success) 18%, transparent);
    color: color-mix(in oklab, var(--ccg-success) 70%, #000);
}

.qr-status-badge--rejected {
    background: color-mix(in oklab, var(--ccg-danger) 15%, transparent);
    color: color-mix(in oklab, var(--ccg-danger) 70%, #000);
}

.qr-loading {
    padding: 2rem;
    text-align: center;
    opacity: 0.6;
}

/* ── Quarantine detail dialog ────────────────────────────────────────────── */

.qr-status-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.qr-meta {
    font-size: 0.85rem;
    opacity: 0.7;
}

.qr-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.55;
    margin-bottom: 0.5rem;
}

.qr-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.qr-checks-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.qr-check-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: color-mix(in oklab, var(--ccg-danger) 8%, transparent);
    border-left: 3px solid var(--ccg-danger);
    border-radius: 0 var(--ccg-radius) var(--ccg-radius) 0;
    font-size: 0.875rem;
}

.qr-check-name {
    font-weight: 600;
    white-space: nowrap;
    min-width: 10rem;
}

.qr-check-msg {
    opacity: 0.8;
}

/* Payload table */
.qr-payload-table {
    overflow-x: auto;
}

.qr-payload-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.qr-payload-table th {
    text-align: left;
    padding: 0.4rem 0.75rem;
    border-bottom: 2px solid var(--ccg-border);
    font-weight: 600;
}

.qr-payload-table td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--ccg-border);
    vertical-align: top;
}

.qr-payload-key {
    font-weight: 600;
    white-space: nowrap;
    width: 30%;
}

.qr-payload-val {
    font-family: monospace;
    word-break: break-all;
}

.qr-empty {
    opacity: 0.5;
    font-style: italic;
}

.qr-action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qr-review-summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    background: color-mix(in oklab, var(--ccg-surface) 50%, transparent);
    border-radius: var(--ccg-radius);
    border: 1px solid var(--ccg-border);
}

/* ── Data Checks UI ──────────────────────────────────────────────────────── */

.dc-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dc-config-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ccg-border);
    border-radius: var(--ccg-radius);
    background: color-mix(in oklab, var(--ccg-surface) 60%, transparent);
}

.dc-config-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
}

.dc-config-hint {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.45;
}

.dc-config-hint code {
    font-family: monospace;
    background: color-mix(in oklab, var(--ccg-primary) 10%, transparent);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Field checklist for DuplicateRecord */
.dc-field-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.dc-field-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: var(--ccg-radius);
    transition: background 0.15s;
    font-size: 0.9rem;
}

.dc-field-check-item:hover {
    background: color-mix(in oklab, var(--ccg-primary) 8%, transparent);
}

.dc-field-check-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--ccg-primary);
}

.dc-field-type {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.5;
    font-family: monospace;
}

.ccg-btn--danger {
    background: #9da4a8 !important;
    color: white;
    border-color: #9da4a8 !important;
}

/*.login-page {
    background-color: #0a234d;
    color: white;
}

.login-page .ccg-label,
.login-page .ccg-check-text {
    color: white;
}*/