﻿
:root {
    /* WAFTokens.css is loaded before this file. These aliases let existing
     * Ments code that references --jcmaPurple, --jcmaBlue, etc. continue to
     * work while automatically picking up the new palette.
     * ─────────────────────────────────────────────────────────────────────── */
    --jcmaPurple:         var(--color-primary);
    --jcmaBlue:           var(--color-accent);
    --purpleText:         var(--color-text-heading);
    --blueText:           var(--color-accent);
    --activeBackground:   var(--color-primary-tint);
    --blueBackground:     var(--color-accent-tint);
    --logo200:            "images/jcmworks_logo_200px.png";
    --veryLightGray:      var(--color-bg);
    --darkerBlue:         var(--color-accent-dark);

    /* ── Button design system ── */
    --btn-primary:           var(--color-primary);
    --btn-primary-hover:     var(--color-primary-dark);
    --btn-ghost-text:        var(--color-primary-dark);
    --btn-ghost-hover-bg:    var(--color-primary-tint);
    --btn-secondary:         var(--color-accent);
    --btn-secondary-hover:   var(--color-accent-dark);
    --btn-outline-border:    var(--color-border);

    --btn-destructive:       #991b1b;
    --btn-destructive-hover: #7f1d1d;
    --btn-radius:            8px;
    --btn-transition:        background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.MTView_window {
    /*display: flex;
    flex-direction: column;*/
    margin: 0px;
    width: 100%;
    top: 0;
    left: 0;
    height: 90vh;
    position: relative;
}


    .MTView_window .Dialog_normal {
        overflow: visible;
    }

/*.CKEdit_header {
    height: 1.6em;
    display: flex;
    flex-direction: row;
}*/

div.DIView_window {
    position: relative;
}
/*div.DIView_window {
    width: calc(100% - 20px);
    position: fixed;

}
*/
div.ql-container.ql-snow {
    overflow: auto;
    max-height: calc(100% - 200px);
    /* Match the toolbar, which fills 100% of the parent. The editor was
       hardcoded to 95%, leaving the body ~5% (~100px on a wide view)
       short of the toolbar on the right. */
    width: 100%;
}

/*
 * Editor was previously position:fixed so it stayed pinned while
 * scrolling. That overlapped sibling elements (group-context panel,
 * attribute panel) that share its vertical region. Removed
 * position:fixed and made the editor toolbar sticky instead — same
 * "always-visible controls" effect, without yanking the editor out
 * of document flow.
 */
/* The passage and rubric editors are full TestQuill editors too, so they share
   the item editor's toolbar chrome: sticky positioning + z-index so an open
   picker (e.g. the alignment options menu) stacks above the editor body and
   the panels below it, plus the white background. Deliberately a PAGE-editor
   list (not the .tq-editor-toolbar marker): dialogs host editors too, and a
   sticky toolbar inside a dialog is wrong — so every full-PAGE editor view
   must be listed here. (Icon faces / sizing live in TestQuill.css and scope
   to the marker, so a missing entry HERE only costs stickiness.) */
.StimulusEditorView_window div.ql-toolbar.ql-snow,
.RubricEditorView_window div.ql-toolbar.ql-snow,
.DIView_window div.ql-toolbar.ql-snow {
    position: sticky;
    /* Pin just below the sticky .di-toolbar so both bars stay visible. */
    top: var(--di-toolbar-h, 65px);
    z-index: 10;
    background: #fff;
    /* Trim vertical real estate: Quill's snow default is padding:8px;
       the 44px touch-target buttons already define the bar height, so
       drop top/bottom padding to 2px (keep 8px sides). */
    padding: 2px 8px;
}

/* Stimulus context sidebar — left strip showing the BodyHtml of
   every stimulus the current item references. Collapses to a thin
   toggle-only strip. Anchored to the view container (DIView_window
   is position:relative) so it sits below the page header rather
   than over it. The editor's parent is padded so its content
   doesn't slide under the sidebar. */
.tq-stimulus-context-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    background: #f7f9fb;
    border-right: 1px solid #c7c7c7;
    overflow-y: auto;
    z-index: 20;
    transition: width 0.2s ease;
    box-sizing: border-box;
}

.tq-stimulus-context-panel.tq-stimulus-context-collapsed {
    width: 32px;
}

.tq-stimulus-context-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid #d6dde4;
    background: #ebf0f5;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tq-stimulus-context-toggle {
    cursor: pointer;
    background: transparent;
    border: 1px solid #b7c0c8;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    line-height: 1;
    padding: 0;
    color: #334;
}

.tq-stimulus-context-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334;
}

.tq-stimulus-context-panel.tq-stimulus-context-collapsed .tq-stimulus-context-title,
.tq-stimulus-context-panel.tq-stimulus-context-collapsed .tq-stimulus-context-body {
    display: none;
}

.tq-stimulus-context-body {
    padding: 8px 12px;
}

.tq-stimulus-context-block + .tq-stimulus-context-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #c7c7c7;
}

.tq-stimulus-context-block-title {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    color: #334;
}

.tq-stimulus-context-block-body {
    font-size: 0.92rem;
    color: #1a1a1a;
    word-wrap: break-word;
}

/* Reserve space on the left of the editor area only when the
   stimulus panel actually has content to show. The panel JS adds
   .tq-stimulus-context-active to the DIView_window once at least
   one stimulus block has rendered, and removes it again when there
   are none — so items without stimuli get no gutter at all. The
   collapsed selector still covers the user-toggled narrow strip. */
.DIView_window {
    box-sizing: border-box;
    /* Height of the sticky .di-toolbar (44px button row + 10px*2 padding
       + 1px border). The Quill toolbar pins just below it, so both the
       di-toolbar height and the ql-toolbar's sticky offset read this. */
    --di-toolbar-h: 65px;
    /* Start content just below the app header's drop shadow (~4px reach)
       so the sticky .di-toolbar doesn't paint over it at the top. The
       offset lives on the scroll container, not the sticky bar, so the
       bar still pins flush to top:0 once scrolled. */
    padding-top: 4px;
}

.DIView_window.tq-stimulus-context-active {
    padding-left: 336px;
}

.DIView_window.tq-stimulus-context-active:has(.tq-stimulus-context-panel.tq-stimulus-context-collapsed) {
    padding-left: 48px;
}


/* =============================================================
 * COMMON TOOLBAR STANDARD — review + content-creation screens
 * (owner ruling 2026-09-01; applied across DraftItemView,
 * TrackedSuggestReviewView, PostEditorial* (inherited),
 * ReviewCommentView / ClientReviewView, StimulusEditorView,
 * RubricEditorView, MarkupCreationView, TranslationEditorView,
 * AssetDeliverView)
 *
 * Layout: one bar, two groups.
 *   .di-toolbar            the bar (flex, space-between, sticky)
 *   .di-toolbar-actions    LEFT — work actions, in order:
 *                          Save (btn--primary; the only primary in
 *                          this group), Comments next when present,
 *                          then the screen's other work tools
 *                          (New/Select, Set Up-View Scoring / Score,
 *                          Preview, Attributes, panel toggles) as
 *                          btn--outline, Help icon LAST.
 *   .di-toolbar-complete   RIGHT — workflow exits, fixed order:
 *                          Complete Activity (btn--primary — the
 *                          affirmative exit), Reject
 *                          (btn--destructive — the ONLY solid-red
 *                          button on the bar; reviews only),
 *                          Release Item (btn--outline), Step Away /
 *                          Exit (btn--outline, ALWAYS last).
 * Sizing: toolbar buttons are btn--md (btn--sm only inside compact
 * floating-panel footers). Colors come ONLY from the .btn variant
 * classes below / their --btn-* tokens — never inline styles; all
 * variants are WCAG AAA (>=7:1) against their backgrounds
 * (#5B34A8 primary 8.4:1, #991b1b destructive 8.3:1 on white text;
 * outline text #3D2080 >10:1 on white).
 * Views that cannot mount a literal .di-toolbar (MarkupCreation's
 * mc-toolbar, TranslationEditor's header, AssetDeliver's nav) still
 * use the two group classes and the same button classes/order.
 * ============================================================= */
.di-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    /* Keep the action buttons pinned to the top of a long item. The
       Quill toolbar (below) offsets its own sticky top by
       --di-toolbar-h so the two bars stack instead of overlapping. */
    position: sticky;
    top: 0;
    z-index: 11;
    background: #fff;
}

.di-toolbar-actions,
.di-toolbar-complete {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


.menu_window {
    border: none;
}

.MTView_menu.menu_window div:focus {
    border: none;
}




.MTView_menu.menu_window:focus {
    /*border: thin solid var(--blueBackground);*/
    outline: none;
}



.MTView_right, .MenuButton_window {
    height: 44px;
    width: 44px;
    padding: 0;
    margin: 0;
    border: none;
    cursor: pointer;
}

div.AccGroup_window {
    height: 100%;
    overflow: auto;
}
div.AccGroup_window span.AccBlock_title{
    display: block;
    width: 100%;
    text-align: center;
    background-color: black;
    color: white;
}

div.AccGroup_window div.AccBlock_body {
    border: 2px dotted black;
    margin: .5em 1em .5em  1em;
}


.AccGroup_title,
.AccGroup_markup,
.Nav_title,
.Nav_header,
.MainRegion_header,
.MainRegion_title {
    display: block;
    font-size: smaller;
    font-family: 'Courier New';
    height: 0px;
    width: 0px;
    overflow: hidden;
    margin-top: 0px;
    margin-bottom: 0px;
}

.Nav_menu {
    background-color: white;
    color: black;
    margin-top: 0;
}

.menu_menu {
    text-align: left;
    text-indent: 10px;
    border: solid;
    border-width: 1px;
}

    .menu_active,
    .menu_menu:hover {
        background-color: white;
        color: darkblue;
        font-style: italic;
        text-indent: 10px;
    }

.MainRegion.Window {
    z-index: 0;
}

.Delete_window {
    background-image: url(/Images/delete.svg);
    background-repeat: no-repeat;
    border: none;
}

    .Delete_window[disabled] {
        background-color: gray;
    }


    .UploadView_window .MTV_controls .MTV_attention input[type=button] {
        background-color: var(--jcmaBlue);
        /*color: white;*/
        /*border: outset;
            border-bottom:none;*/
    }

    .UploadView_window .MTV_controls input[type=button] {
        background-color: var(--blueBackground);
        border-radius: 0px;
        height: 3em;
    }

    .UploadView_window .MTV_controls input[type=button] {
        background-color: var(--blueBackground);
        border-radius: 0px;
        height: 3em;
    }

.UploadView_button button:nth-child(1) {
    background-image: url(..//Images/upload-cloud.svg);
    width: auto;
    height: 1.2em;
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
    color: black;
    text-indent: 1.5em;
}

.UploadView_button button:nth-child(2) {
    margin-left: 2em;
    background-image: url(/Images/download-cloud.svg);
    width: auto;
    height: 1.2em;
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
    color: black;
    text-indent: 1.5em;
}


.InfoDialog_window select,
.InfoDialog_window button.Dialog_window select {
    background-color: inherit;
}

.InfoDialog_window .MultiSelect_window {
    background-color: initial;
    overflow: auto;
    display: inline-flex;
    width: 100%
}

/* Dialog buttons previously rendered theme-purple text on a #151616
   (near-black) background — illegible. The defect was the dark
   background, not the text colour, so flip the background to white (the
   dialog's own colour) and add a visible border so the button reads
   against the dialog. The existing text colour (theme purple, ~10.8:1 on
   #fff = AAA) is left untouched — deliberately NOT setting `color` here
   so intentional per-button colours (.bw-btn-danger red, etc.) survive
   inside dialogs. Only background/border change, so layouts don't shift. */
/* WAF widget buttons (Button_window) inside dialogs get a clean white base. */
.Dialog_window button.Button_window:not(.Dialog_right) {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

    .Dialog_window button.Button_window:not(.Dialog_right):hover:not(:disabled),
    .Dialog_window button.Button_window:not(.Dialog_right):focus-visible {
        background-color: var(--color-hover-bg);
        border-color: var(--color-primary);
        outline: 2px solid var(--color-primary);
        outline-offset: 1px;
    }

    .InfoDialog_body button.Button_disabled,
    .Dialog_window button.Button_disabled {
        background-color: var(--color-disabled-bg);
        color: var(--color-disabled-text);
    }

.InfoDialog_normal,
.Dialog_normal {
    min-width: 300px;
}

/* Workflow-change confirm dialog: its acknowledgement checkbox carries a full
   sentence, not a short field caption. Override the generic two-column,
   nowrap-label Dialog_body layout so the warning stacks in one column and wraps
   instead of forcing horizontal scrolling. */
.ba-wf-change-dialog .Dialog_body {
    grid-template-columns: 1fr;
}
.ba-wf-change-dialog .Dialog_body > label {
    white-space: normal;
}

    /* Override image path to Ments-specific /Images/ (case-sensitive on Linux) */
    .Dialog_normal .NosisLog_right,
    .Dialog_normal .Dialog_right {
        background-image: url(/Images/close.png);
    }

    .Dialog_normal .Dialog_body {
        min-width: 265px;
    }

        .Dialog_normal .Dialog_body label {
            padding-right: 1em;
        }

        .Dialog_normal .Dialog_body .Select_window {
            margin-bottom: 15px;
            border: 1px solid var(--color-input-border);
            border-radius: var(--radius-sm);
            width: 100%;
            padding: 10px;
        }

.Dialog_body, .InfoDialog_body {
    grid-template-columns: auto 5fr;
}
select:hover, select:focus {
    cursor: pointer;
}

/* =============================================================
 * DESIGN SYSTEM
 * Token-driven UI primitives. One sub-section per component.
 * ============================================================= */

/* --- Buttons ---------------------------------------------------
 * Compose: .btn + size modifier + variant modifier
 * Sizes:    --sm  --md  --lg
 * Variants: --primary  --secondary  --ghost  --outline  --destructive
 * --------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 500;
    border-radius: var(--btn-radius);
    border: none;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: var(--btn-transition);
    text-decoration: none;
}

.btn--sm { font-size: 0.75rem;  padding: 6px 12px;  min-height: 44px; }
.btn--md { font-size: 0.875rem; padding: 8px 16px;  min-height: 44px; }
.btn--lg { font-size: 1rem;     padding: 10px 20px; min-height: 44px; }

.btn--primary {
    background-color: var(--btn-primary);
    color: #fff;
}
.btn--primary:hover:not(:disabled):not(.btn--loading),
.btn--primary:focus:not(:disabled):not(.btn--loading) {
    background-color: var(--btn-primary-hover);
}

.btn--secondary {
    background-color: var(--btn-secondary);
    color: #fff;
}
.btn--secondary:hover:not(:disabled):not(.btn--loading),
.btn--secondary:focus:not(:disabled):not(.btn--loading) {
    background-color: var(--btn-secondary-hover);
}

.btn--ghost {
    background-color: transparent;
    color: var(--btn-ghost-text);
}
.btn--ghost:hover:not(:disabled):not(.btn--loading),
.btn--ghost:focus:not(:disabled):not(.btn--loading) {
    background-color: var(--btn-ghost-hover-bg);
}

.btn--destructive {
    background-color: var(--btn-destructive);
    color: #fff;
}
.btn--destructive:hover:not(:disabled):not(.btn--loading),
.btn--destructive:focus:not(:disabled):not(.btn--loading) {
    background-color: var(--btn-destructive-hover);
}

.btn--outline {
    background-color: transparent;
    color: var(--btn-ghost-text);
    border: 1.5px solid var(--btn-outline-border);
}
.btn--outline:hover:not(:disabled):not(.btn--loading),
.btn--outline:focus:not(:disabled):not(.btn--loading) {
    background-color: var(--btn-ghost-hover-bg);
}

.btn:disabled,
.btn--loading {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:focus-visible {
    outline: 3px solid var(--btn-primary);
    outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn--loading::before {
    content: '';
    width: 0.875em;
    height: 0.875em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    flex-shrink: 0;
}

/* --- Dialogs ---------------------------------------------------
 * Generic chrome for native <dialog> elements (non-WAF modals).
 * Header and footer are optional; omit either if not needed.
 *
 *   <dialog class="app-dialog">
 *     <div class="app-dialog-header">
 *       <span class="app-dialog-title" id="my-title">Title</span>
 *       <button class="app-dialog-close" type="button" aria-label="Close">&times;</button>  <!-- optional -->
 *     </div>
 *     <div class="app-dialog-body">…content…</div>
 *     <div class="app-dialog-footer">…buttons (use .btn)…</div>  <!-- optional -->
 *   </dialog>
 * --------------------------------------------------------------- */

.app-dialog {
    border: none;
    border-radius: 10px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
    padding: 24px 26px;
    min-width: 340px;
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    font-family: inherit;
    color: var(--color-text-base);
}

.app-dialog--wide {
    max-width: 85%;
    width: 90%;
}

.app-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.app-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.app-dialog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jcmaPurple);
}

.app-dialog-close {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #475569;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 120ms ease, color 120ms ease;
}

.app-dialog-close:hover {
    background: var(--color-primary-tint);
    color: var(--jcmaPurple);
}

.app-dialog-close:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

.app-dialog-body {
    margin-bottom: 20px;
}

.app-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* --- Form Controls -------------------------------------------
 * .form-label  — block label above a control.
 * .form-select — styled <select>; always pair with .form-label.
 * --------------------------------------------------------------- */

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-base);
    margin-bottom: 6px;
}

.form-select {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--color-input-border);
    border-radius: 6px;
    font: inherit;
    font-size: 0.875rem;
    color: var(--color-text-base);
    background: #fff;
    cursor: pointer;
    transition: border-color 120ms ease;
}

.form-select:focus {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
    border-color: var(--color-primary);
}

.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--color-input-border);
    border-radius: 6px;
    font: inherit;
    font-size: 0.875rem;
    color: var(--color-text-base);
    background: #fff;
    transition: border-color 120ms ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
    border-color: var(--color-primary);
}

/* ===== END DESIGN SYSTEM ===== */

.MTView_body .LEColl_window {
    background-color: var(--activeBackground);
}


.MTView_div1 {
    width: 44px;
    height: 44px;
    background-image: url(/Images/mail.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.MTView_div2 {
    width: 44px;
    height: 44px;
    background-image: url(/Images/havemail.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.MTView_div3 {
    width: 44px;
    height: 44px;
    background-image: url(/Images/frown.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}



/* rmsource updates ********************************************************************/

/*body*/

.MTView_body {
    display: block;
    overflow: visible; /* removes inner page scroll that appears wen set to auto*/
    width: 100%;
    height: calc(100% - 52px);
    position: relative;
    /*WI-130897*/
    padding-left: 15px;
    padding-right: 15px;
}

/*header*/

h1.MTView_header {
    display: inline-block;
    flex-grow: 1;
    text-align: center;
    background-color: white;
    color: white;
    margin-top: 0px;
    font-size: 1em;
    margin-block-start: 0px;
    margin-block-end: 0px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: normal;
}

h1.MTView_header img {
    height: 40px;
    width: auto;
    display: block;
}

.MTView_title {
    /*WI-130897
    display: flex;
    align-items: stretch;
    flex-direction: row;
    left: 0px;
    top: 0px;
    width: 100%;
    padding-top: 1px;
    height: 20px;*/

    display: flex;
    align-items: center;
    flex-direction: row;
    left: 0px;
    top: 0px;
    width: 100%;
    box-sizing: border-box;
    /* 44px touch-target row (WCAG AAA 2.5.5) + 4px top/bottom = 52px total. */
    height: 52px;
    background-color: #fff;
    padding: 4px 15px;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,.19);
}

/*menu*/
.MenuButton_window {
    /*WI-130897
    background-image: url(..//Images/menu.svg);
    margin-left: 5px;
    float: left;
    */

    background-image: url(/Images/menu.svg);
    margin-right: 15px;
    width: 44px;
    height: 44px;
    background-repeat: no-repeat;
    background-size: 24px;
    background-position: center center;
    background-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
    /*WI-130897*/
    .MenuButton_window:hover {
        background-color: #efefef;
    }


.MTView_menu.menu_window {
    /*WI-130897
    z-index: 2;
    position: fixed;
    top: 0;
    float: left;
    background-color: white;
    border-style: none;
    */

    z-index: 2;
    position: fixed;
    top: 0px;
    bottom: 0;
    left: 0;
    width: 250px;
    margin: 0;
    background-color: #252525;
    color: #fff;
    border-style: none;
    border-radius: 0;
    overflow-y: auto;
}

@media screen and (min-width: 480px) {
    .MTView_menu.menu_window {
        width: 300px;
    }
}

@media screen and (min-width: 300px) {
    .MTView_menu.menu_window {
        width: 265px;
    }
}




.FileGet_window button:hover,
.FileGet_window button:focus,
.MTView_menu .menu_menu:hover {
    /*WI-130897
    background-color: #00c2f4;
    color: #fff;
    font-style: normal;
    text-indent: 10px;
    */
    background-color: #00c2f4 !important;
    color: #fff;
    font-style: normal;
    text-indent: 0px;
}

.MTView_menu .menu_menu {
    /*WI-130897  
    color: #fff;
    font-style: normal;
    text-indent: 10px;
    padding: 10px 15px;
    */

    color: #fff;
    font-style: normal;
    text-indent: 0px;
    padding: 10px 15px;
}

.MTView_menu .menu_menu {
    border-bottom: 1px solid #414141 !important;
    border-left: none;
    border-right: none;
    border-top: none;
}

.MTView_menu.menu_window li:nth-last-child() {
    border-bottom: none;
}

.MTView_right:focus,
.MenuButton_window:focus {
    outline: thin dotted;
    background-color: transparent;
}

/*settings */
.MTView_right {
    background-image: url(/Images/settings.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    background-color: transparent;
    width: 44px;
    height: 44px;
    margin-right: 5px;
    margin-left: auto;
}



    .MTView_right:hover {
        background-color: #efefef !important;
    }

/* Help & Training — the ?-in-a-circle beside the settings wheel (the screen
   left the card menu 2026-09-01; the banner is its only entry point). */
.MTView_help {
    background-image: url(/Images/help-circle.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    background-color: transparent;
    width: 44px;
    height: 44px;
    margin-right: 5px;
    margin-left: 5px;
    border: none;
    cursor: pointer;
}

    .MTView_help:hover {
        background-color: #efefef !important;
    }

    .MTView_help:focus {
        outline: thin dotted;
        background-color: transparent;
    }

.MTView_div4 {
    background-image: url(/Images/log-out.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    background-color: transparent;
    width: 44px;
    height: 44px;
    margin-right: 5px;
    margin-left: 5px;
    border: none;
    cursor: pointer;
}


.Dialog_body input.TextInput_window, .Dialog_body div.ContentEditableDiv_window {
    width: 100%;
}


.DateInput_window, .TextInput_window, .ContentEditableDiv_window {
    margin-bottom: 15px;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-sm);
    width: 100%;
    padding: 10px;
}


.InfoEdit_attention {
    display: grid;
    /*    grid-template-columns: 10% 20% 20% 20% 20% 10% !important;
*/
}

.InfoEdit_window:focus {
    outline: thin dotted;
}

.InfoEdit_div1 {
    border: none;
}

/*table delete button*/
.InfoEdit_window button.Delete_window {
    border-radius: 0;
    width: 20px;
    height: 20px;
    background-position: center;
    background-color: transparent;
}

    .InfoEdit_window button.Delete_window[disabled] {
        background-color: transparent;
        cursor: default;
        opacity: .2;
    }

/*site location - dialog button*/
.InfoDialog_button .Button_window {
    margin: 10px 10px 10px 0px;
}

.InfoDialog_body {
    text-align: left;
}

/*define new client*/
.CCV_DefineNew_window {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

.CCV_DefineNew_div1 {
    /*WI-130897
    width: 70%;
    height: 2em;
    */

    width: auto;
    height: auto;
}

/*define new client button*/
.CCV_DNC_button {
    display: flex;
    flex-direction: column;
    margin: 10px;
}

    .CCV_DNC_button button {
        margin: 0 0 15px 0;
    }

@media screen and (min-width: 767.98px) {
    .CCV_DNC_button {
        display: flex;
        flex-direction: row;
    }

        .CCV_DNC_button button {
            margin: auto;
        }
}

.TreeNode_item label input {
    width: auto;
}

.TreeNode_body, .Tree_menu {
    border: none;
    font-size: inherit;
    margin-top: 0px;
    position: relative;
    width: fit-content;
    z-index: 20;
    top: 0em;
    margin-top: 10px;
}

    .TreeNode_body ul {
        margin-left: 0px;
    }

        .TreeNode_body ul ul {
            margin: 0px 0px 0px 2em;
        }

            .TreeNode_body ul ul ul {
                margin: 0px 0px 0px 4em;
            }

                .TreeNode_body ul ul ul ul {
                    margin: 0px 0px 0px 6em;
                }

    .TreeNode_body input.TreeNode_button {
        width: auto;
    }

button.TreeNode_normal {
    background-color: transparent;
}


.TreeNode_item:hover, .Tree_active {
    /*WI-130897
    font-style: italic;
    font-size: medium;
    */
    font-style: inherit;
    font-size: inherit;
}

.SS_window button.Button_window {
    display: block;
    margin-bottom: 15px;
}

.SS_window .Tree_window.SS_body {
    position: relative;
    width: fit-content;
    z-index: 20;
    top: 0em;
    margin-top: 10px;
    border: solid #cecece 1px;
}

.Tree_title {
    background-color: #f2f2f2;
    padding: 10px;
}

/*Identify a site results*/
.UploadView_window {
    margin-top: 1.2em;
}


.UploadView_div1 {
    display: flex;
    align-items: center;
}

.UploadView_window:focus {
    outline: thin dotted;
}


.UploadView_button button {
    /*WI-130897
    width: 30px;
    height: 30px;
    background-image: url(..//Images/upload-cloud.svg);
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
    */


    width: 40px;
    height: 40px;
    background-image: url(..//Images/upload-cloud.svg);
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
    background-color: transparent;
    padding: 0px;
    margin-right: 15px;
    border-radius: 0px;
}

    .UploadView_button button:hover {
        background-color: #efefef;
    }

.UploadView_body {
    margin-top: 1em;
    background-color: transparent;
}

.UploadView_window .MTV_controls input[type=button] {
    /* Match the AAA-compliant secondary-button style — keep the
       taller height UploadView uses for stacked controls. */
    padding: 13px 22px;
    border: 1px solid #4a5568;
    border-radius: 10px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 44px;
    height: 5em;
    white-space: normal;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.UploadView_window .MTV_controls input[type=button]:hover:not(:disabled) {
    border-color: var(--jcmaPurple);
    box-shadow: 0 2px 8px rgba(94, 6, 145, 0.20);
    transform: translateY(-1px);
}

.UploadView_window .MTV_controls input[type=button]:focus-visible {
    outline: 3px solid var(--jcmaPurple);
    outline-offset: 2px;
}

.UploadView_window .MTV_controls {
    margin-right: 0px;
    margin-left: 0px;
    font-size: initial;
    display: flex;
    flex-direction: column;
}


    .UploadView_window .MTV_controls:hover {
        cursor: pointer;
    }



    .UploadView_window .MTV_controls.MTV_attention {
        border-bottom: 5px solid var(--jcmaBlue);
    }

    .UploadView_window .MTV_controls.MTV_attention {
        padding-bottom: 15px;
    }



/*identify staff table*/
.TreeTable2D_title,
.Table2D_title {
    margin-bottom: 15px;
}


.Table2D_header {
    /*WI-130897
    background-color: var(--blueBackground);
    font-style: normal;
    font-weight: normal;
    */

    background-color: #f8f9fa;
    text-align: left;
}

    .Table2D_header th {
        padding: 10px;
        border: #cecece solid 1px;
    }

.TreeTable2D_window {
    width: 100%;
    background-color: #fff;
    border: 1px solid #cecece;
    border-collapse: collapse;
}

.Table2D_window {
    /*WI-130897
    display: inline-table;
    width: 100%;
    */

    display: inline-table;
    width: 100%;
    border: 1px solid #cecece;
    border-collapse: collapse;
    background-color: #fff;
}

.Table2D_body {
    text-align: left;
}

    .TreeTable2D_body td,
    .Table2D_body td {
        border: solid 1px #cecece;
        padding: 10px;
    }

    .TreeTable2D_body tr:nth-child(even),
    .Table2D_body tr:nth-child(even) {
        /* Light-purple zebra, faded slightly from --color-primary-tint (#F3EEFF)
           toward white so the striping is subtle. */
        background-color: #f8f5ff;
    }

    .TreeTable2D_body button,
    .Table2D_body button {
        /*WI-130897
    font-size: small;
    border: none;
    background-color: var(--jcmaBlue);
    */

        border: none;
        padding: 5px 20px;
        border: none;
        background-color: #151616;
        color: #fff;
    }

        .TreeTable2D_body button:disabled,
        .Table2D_body button:disabled {
            color: gray;
            background: lightgray;
        }

        .TreeTable2D_body button:focus, .TreeTable2D_body button:hover
        .Table2D_body button:focus, .Table2D_body button:hover {
            background-color: #00c2f4;
            border: none;
        }

/*identify site upload window*/
@media screen and (min-width: 767.98px) {
    .UploadView_window .MTV_controls {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

        .UploadView_window .MTV_controls > div {
            flex-grow: 1;
            width: auto;
            /*        width: 32%;
*/
        }

    .MTV_attention + .MTV_normal {
        padding: 50px 30px;
    }
}

.MTView_title.SK_hidden {
    display: none;
}

/*global Button styles — visually match imp-btn-secondary so the
   toolbar buttons WAF.Button stamps out (.Button_window) share the
   light secondary appearance with hand-rolled buttons like the
   Associated Stimuli action.

   WCAG AAA:
     - Text: #5e0691 (--jcmaPurple) on #fff  =  10.8:1   (AAA 7:1 ✓)
     - Border: #4a5568 on #fff               =   7.8:1   (AA 1.4.11 3:1 ✓)
     - Focus outline: --jcmaPurple on #fff   =  10.8:1   (AAA 2.4.13 ✓)
     - Target size: ≥44×44 CSS px via padding + line-height (AAA 2.5.5)
     - Disabled state is exempt from contrast criteria per WCAG 1.4.3.
   Focus uses outline + offset rather than a box-shadow so the
   indicator sits adjacent to the element with no gap, satisfying
   2.4.13's "solid outline" option. :focus-visible keeps it off for
   mouse activation while preserving keyboard-user visibility. */
.Button_window {
    padding: 13px 22px;
    border: 1px solid #4a5568;
    border-radius: 10px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 44px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

    .Button_window .Button_disabled {
        background: #f2f4f6;
        color: #b0b8c0;
        border-color: #e0e4e8;
        cursor: not-allowed;
    }

.Button_disabled:hover, .Button_disabled:focus, Button_disabled {
    background: #f2f4f6 !important;
    color: #b0b8c0 !important;
    border-color: #e0e4e8 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.Button_window:hover:not(:disabled) {
    border-color: var(--jcmaPurple);
    box-shadow: 0 2px 8px rgba(94, 6, 145, 0.20);
    transform: translateY(-1px);
}

.Button_window:focus-visible {
    outline: 3px solid var(--jcmaPurple);
    outline-offset: 2px;
}


/*Global Form styles*/
.Select_window {
    border: 1px solid #cecece;
    border-radius: 0;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
}

input {
    border: 1px solid #cecece;
    border-radius: 0;
    padding: 10px;
    margin-bottom: 15px;
}
input[type=color] {
    padding: 0px;
}

.UploadView_controls .Button_window {
    margin-bottom: 5px;
    color: white;
}

    .UploadView_controls .Button_window.search {
        background-image: url(/images/search.svg);
        background-repeat: no-repeat;
        background-size: contain;
        padding-left: 3em;
    }

    .UploadView_controls .Button_window.back {
        background-image: url(/images/corner-down-left.svg);
        background-repeat: no-repeat;
        background-size: contain;
        padding-left: 3em;
    }

.AlertThen_window.consent .AlertThen_normal {
    background-image: none;
    max-height: 80%;
    overflow-y: auto;
}

.AlertThen_window.consent .AlertThen_body {
    text-align: left;
}

    .AlertThen_window.consent .AlertThen_body p {
        text-indent: 0px;
        padding-left: 10px;
    }

.AlertThen_window.consent .AlertThen_title {
    display: none;
}

.AlertThen_window.consent .AlertThen_body {
    background-image: none;
    max-height: 75%;
    overflow-y: auto;
}

.AlertThen_body table {
    margin-left: 20%;
    text-align: left;
}


.CardMenu_body {
    display: flex;
    flex-flow: row wrap;
    position: absolute;
    top: 20px;
    left: 0px;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.CardMenu_label {
    height: 3em;
    width: 100%;
    position: absolute;
    bottom: 0px;
    padding: .25em;
    color: white;
    background-color: black;
}

.CardMenu_controls {
    width: 15em;
    height: 15em;
    background-color: white;
    position: relative;
    margin: 1em;
}

    .CardMenu_controls .menu_window {
        background-color: transparent;
        position: absolute;
        top: 0px;
    }

    .CardMenu_controls .CardMenu_image {
        width: 100%;
        height: calc(100% - 3em);
        background-repeat: no-repeat;
        background-size: cover;
    }

    .MOV_title .menu_window > .menu_menu,
    .Audit_title .menu_window > .menu_menu,
    .VPV_title .menu_window > .menu_menu,
    .RLV_title .menu_window > .menu_menu,
    .LDB_title .menu_window > .menu_menu,
    .CardMenu_controls .menu_window > .menu_menu {
        background-color: white;
        border: 1px solid black;
        font-size: large;
        border-radius: 25px;
        padding-left: 10px;
        padding-right: 10px;
        color: black;
    }

        .MOV_title .menu_window > .menu_menu:hover,
        .MOV_title .menu_window > .menu_active,
        .Audit_title .menu_window > .menu_active,
        .Audit_title .menu_window > .menu_menu:hover,
        .VPV_title .menu_window > .menu_active,
        .VPV_title .menu_window > .menu_menu:hover,
        .RLV_title .menu_window > .menu_active,
        .RLV_title .menu_window > .menu_menu:hover,
        .LDB_title .menu_window > .menu_active,
        .LDB_title .menu_window > .menu_menu:hover,
        .CardMenu_controls .menu_window > .menu_active,
        .CardMenu_controls .menu_window > .menu_menu:hover {
            font-style: italic;
            text-indent: 5px;
            border-radius: 25px;
            border: 3px solid black;
        }

.menu_groupHeader {
    font-weight: bold;
}


.TDyn_window {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.TDyn_attention {
    text-align: left;
    overflow: auto;
    max-height: 10em;
    padding-left: 3em;
    background-image: none;
    text-indent: unset;
}


.InboxView_window {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: 100%;
}

.InboxView_left .RadioGroup_menu input {
    display: none;
}

.InboxView_left li.RadioGroup_menu {
    font-size: large;
    margin-top: .5em;
}

.InboxView_left .RadioGroup_menu.RadioGroup_active {
    background-color: black;
    color: white;
}

.InboxView_right .CMV_body .CKEdit_window {
    left: auto;
    width: 100%;
    position: relative;
}

.InboxView_right .CMV_body > div > div > div.ck.ck-reset.ck-editor.ck-rounded-corners {
}

.InboxView_right .RLine_window {
    border: solid 1px;
    margin-right: 0px;
}

    .InboxView_right .RLine_window .CA_window {
        border: solid 1px;
        margin-right: 0px;
        margin-left: 0px;
    }

.InboxView_controls {
    width: 100%;
    min-height: 2em;
    display: flex;
    flex-direction: row;
    flex-flow: row-reverse;
}

    .InboxView_controls span {
        margin-right: 1em;
    }

    .InboxView_controls button {
        background-size: contain;
        background-repeat: no-repeat;
        background-color: white;
        width: 2em;
        height: 2em;
        padding: 0px;
    }

        .InboxView_controls button:disabled {
            background-color: grey
        }

        .InboxView_controls button:nth-child(2) {
            background-image: url("/Images/chevron-left.svg");
        }

        .InboxView_controls button:nth-child(1) {
            background-image: url("/Images/chevron-right.svg");
        }

        .InboxView_controls button:nth-child(5) {
            background-image: url("/Images/send-green.svg");
            margin-left: 1em;
            margin-right: 1em;
            margin-top: 2px;
            margin-bottom: 2px;
        }

        .InboxView_controls button:nth-child(4) {
            background-image: url("/Images/x-circle-red.svg");
            margin-left: 1em;
            margin-right: 1em;
            margin-top: 2px;
            margin-bottom: 2px;
        }

.InboxView_right .Table2D_body td {
    padding: 0px;
}

    .InboxView_right .Table2D_body td button {
        min-width: 100%;
        min-height: 1em;
        color: black;
        background-color: inherit;
        border: none;
        padding: 0px;
        margin: 0px;
        text-align: left;
    }

.InboxView_right .Table2D_body .DeleteButton {
    width: 1.1em;
    height: 1.1em;
    margin-left: 1em;
}


.MTView_window .Table2D_body td .CCD_body .CCD_left ul li {
    text-align: left;
    list-style-type: none;
    list-style-position: inside;
    font-style: normal;
    background-color: white;
    display: flex;
    min-width: 12em;
}

    .MTView_window .Table2D_body td .CCD_body .CCD_left ul li input {
        display: none;
    }

.MTView_window .Table2D_body td .CCD_body .RadioGroup_menu.RadioGroup_active {
    background-color: black;
    color: white;
    font-size: inherit;
}

.MTView_window .Table2D_body td .CCD_body .RadioGroup_window {
    display: block;
}
.Dialog_normal .CCD_title {
    text-align: center;
}

    .Dialog_normal .CCD_title button {
        float: right;
    }



.IABH_window .RLine_window {
    border: dotted 1px black;
    height: 2em;
    display: inline;
}

    /*.CMV_window .CMV_div2 .TextInput_window {
    display: inline-block;
    width: fit-content(stretch);
    border: none;
    margin: 0px;
    padding: 0px;
    margin-left: 1em;
}
*/
    .IABH_window .RLine_window .CA_window {
        display: inline-flex;
        min-height: 1.1em;
        padding-top: 1px;
        margin-left: 1.5em;
    }

        .IABH_window .RLine_window .CA_window label {
            margin: 3px;
            font-weight: bold;
        }

        .IABH_window .RLine_window .CA_window input {
            border: none;
            min-width: 20em;
        }

        .IABH_window .RLine_window .CA_window input {
            height: auto;
            min-height: 1.1em;
            padding: 2px;
            margin-bottom: 0px;
            text-indent: 1em;
        }

    .IABH_window .RLine_window span.RLine_item {
        border: outset;
        border-radius: 10px 10px;
        width: 5em;
        margin-left: 1em;
    }

.DLTV_body input[type='checkbox'] {
    width: auto;
}

/*    .CMV_window .CMV_div3 span.CMV_item:hover,
    .CMV_window .CMV_div3 span.CMV_item:focus {
        color: blue;
    }
*/


.IABH_window .RLine_window span.RLine_item button {
    height: 1em;
    width: 1em;
    background-image: url(/images/x.svg);
    background-position-x: right;
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: .5em;
}

.Spuw_window {
    display: inline-grid;
    grid-auto-flow: column;
    grid-template-columns: 4fr 10fr 10fr 4fr 4fr;
    width: 100%;
}

    .Spuw_window button {
        background-color: transparent;
        padding: 10px 10px;
    }

        .Spuw_window button:disabled {
            background-color: lightgray;
        }

.LTUpload_window .base_controls {
    background-color: lightgray;
}

    .LTUpload_window .base_controls button {
        background-color: lightgrey;
        color: black;
    }

        .LTUpload_window .base_controls button.LTUpload_active {
            background-color: black;
            color: white;
        }


.DLTV_window .Dialog_body .RLine_window .RLine_item {
    display: block;
}

    .DLTV_window .Dialog_body .RLine_window .RLine_item Button {
        height: 1.1em;
        background-image: url("/Images/x-circle-red.svg");
        margin-left: 1em;
        margin-right: 1em;
        margin-top: 2px;
        margin-bottom: 2px;
        background-size: contain;
        background-repeat: no-repeat;
        background-color: inherit;
        background-color: transparent;
    }


.Clickable {
    color: blue;
    text-decoration: underline;
}

    .Clickable:hover {
        color: blue;
        font-style: italic;
    }


.Table2D_body button.AddButton,
.Table2D_body button.DeleteButton,
.Table2D_body button.EditButton {
    background-color: transparent;
}

.AllGood {
    background-image: url("/Images/allgood.svg");
    height: 3em;
    width: 3em;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: inherit;
}

.NotGood {
    background-image: url("/Images/notgood.svg");
    height: 3em;
    width: 3em;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: inherit;
}


.DeleteButton {
    background-image: url("/Images/x-circle-red.svg");
    margin-left: 1em;
    margin-right: 1em;
    margin-top: 2px;
    margin-bottom: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: inherit;
    height: fit-content;
    background-color: transparent;
}

.EditButton {
    background-image: url("/Images/edit-2.svg");
    margin-left: 1em;
    margin-right: 1em;
    margin-top: 2px;
    margin-bottom: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: inherit;
    height: fit-content;
    background-color: transparent;
}

.AddButton {
    background-image: url("/Images/plus.svg");
    margin-left: 1em;
    margin-right: 1em;
    margin-top: 2px;
    margin-bottom: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: inherit;
    height: fit-content;
    background-color: transparent;
}

.DeleteButton:disabled {
    background-color: lightgray;
}

.PaperClipBold,
.PaperClip {
    text-indent: 2em;
    margin-left: 1em;
    background-image: url("/Images/paperclip.svg");
    margin-top: 2px;
    margin-bottom: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: inherit;
    height: 1em;
    width: 1em;
}

.PaperClipBold {
    font-weight: bold;
}

.Bold {
    font-weight: bold;
}

/*.InboxView_right div.RLine_window span:nth-child(1) {
    width: 5em;
    margin-left: 1em;
}
.InboxView_right div.RLine_window span:nth-child(3) {
    border: none;
    min-width: 19em;
    margin-left: 1em;
}
*/

.InboxView_right .RLine_window .CA_window {
    border: none;
}

.InboxView_label {
    margin-right: 2em;
}

.AdminView_body .Dialog_body {
    grid-template-rows: min-content;
}

.AdminView_window .Dialog_body .RadioGroup_window {
    display: inline-flex;
    margin: 0px;
}

.Dialog_body {
    overflow: auto;
}


.Courier_body table {
    table-layout: fixed;
    word-break: break-word;
}

.Courier_controls {
    display: inline-flex;
    flex-direction: row;
    margin-top: 2em;
    width: 100%;
}

    .Courier_controls .Courier_div0 {
        margin-right: 1em;
        overflow: scroll;
        max-height: 15em;
        width: 50%;
    }

        .Courier_controls .Courier_div0 > button {
            display: block;
            height: fit-content;
            width: auto;
            padding: 0px;
            margin: 0px;
            background-color: inherit;
            color: black;
            margin-top: 1em;
        }

    .Courier_controls .BCR_window {
        width: 100%;
    }

        .Courier_controls .BCR_window .BCR_body {
            width: 100%;
        }

.Courier_window .Courier_div1 {
    display: inline-flex;
}

    .Courier_window .Courier_div1 .Button_window {
        padding: 3px 3px 3px 3px;
        margin-left: 2px;
    }

        .Courier_window .Courier_div1 .Button_window[disabled] {
            background-color: lightgray;
        }

.Courier_window .Dialog_body button {
    margin-top: 5px;
}

    .Courier_window .Dialog_body button:disabled {
        background-color: lightgray;
    }

.Courier_attention {
    font-size: 20px;
    background-image: none;
    text-indent: 0px;
    align-content: center
}

.Courier_window .Courier_div0 .Button_window.Courier_button_1,
.Courier_window .Courier_div0 .Button_window.Courier_button_2 {
    background-color: lightgray;
}

.Courier_window .Courier_div0 .Button_window.Courier_button_3,
.Courier_window .Courier_div0 .Button_window.Courier_button_4 {
    background-color: pink;
}

.AlertThen_body.Courier_attention1,
.AlertThen_window.Courier_attention1 .AlertThen_normal {
    margin-left: 0px;
    margin-right: 0px;
}


.BuildTestView_window .Dialog_body .MultiSelect_active,
.BuildTestView_window .Dialog_body .MultiSelect_window {
    background-color: inherit;
}
.BuildTestView_window .Dialog_body .MultiSelect_active {
    border: 1px solid black;
}




.staticScan {
    height: 2em;
    background-image: url(/Images/staticBarcode.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.courier {
    background-image: url(/Images/courier.png);
}

.indorders {
    background-image: url(/Images/individualOrder.jpg);
}

.developer {
    background-image: url(/Images/developer.jpg);
}

.projectmgt {
    background-image: url(/Images/PM.jpg);
}

.lab {
    background-image: url(/Images/lab.jpg);
}

.mydata {
    background-image: url(/Images/mydata.jpg);
}

.collectpools {
    background-image: url(/Images/collectPools.jpg);
}

.reports {
    background-image: url(/Images/reports.jpg);
}

.getsetup {
    background-image: url(/Images/GetSetup.jpg);
}

.clientsetup {
    background-image: url(/Images/ClientSetup.jpg);
}

.labadmin {
    background-image: url(/Images/LabSetup.jpg);
}
.testdevelop {
    background-image: url(/Images/GetSetup.jpg);
}

.markupcreation {
    background-image: url(/Images/AccessibilityMarkup.svg);
}

.workflowreview {
    background-image: url(/Images/Review.svg);
}

.assetstudio {
    background-image: url(/Images/AssetStudio.svg);
}

div.MTView_body > div > div.ql-toolbar.ql-snow > span:nth-child(2) > button.ql-qti-markup {
    background-color: antiquewhite;
    color: blue;
    content: "X";
}

/* ========== WORKFLOW CONFIG (.wc-) ========== */

.wc-layout {
    display: flex;
    gap: 16px;
    min-height: 400px;
}

.wc-panel {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    overflow-y: auto;
    max-height: 600px;
}

.wc-panel h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

.wc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.wc-table th,
.wc-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.wc-table th {
    font-weight: 600;
    background: #f5f5f5;
}

.wc-table tr:hover {
    background: #f0f7ff;
}

.wc-table tr.wc-selected {
    background: #d0e4f7;
}

.wc-sub-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    font-size: 0.9em;
}

.wc-sub-table th,
.wc-sub-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #eee;
}

.wc-sub-table th {
    background: #fafafa;
}

.wc-btn {
    padding: 4px 10px;
    border: 1px solid #888;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    margin: 2px;
}

.wc-btn:hover {
    background: #e8e8e8;
}

.wc-btn-sm {
    padding: 2px 6px;
    font-size: 0.85em;
}

/* Bank Workflow — shared/global workflow read-only notice + "shared" badge.
   High-contrast (dark blue on pale blue) for WCAG AAA. */
.bw-global-notice {
    margin: 8px 0;
    padding: 10px 12px;
    border: 1px solid #1a5f9e;
    border-left: 6px solid #1a5f9e;
    border-radius: 3px;
    background: #eef5fc;
    color: #0b3b66;
    font-weight: 600;
    line-height: 1.4;
}

.bw-shared-badge {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 700;
    color: #0b3b66;
    background: #dce9f7;
    border-radius: 3px;
    padding: 1px 6px;
}

.bw-readonly-list {
    margin: 10px 0 0 1.25em;
    line-height: 1.5;
}

/* ========== CREATE / EDIT ITEM BANK (.ba-) ========== */

/* Status region — matches the redesigned bank-workflow status line. */
.ba-status {
    padding: 6px 0;
    min-height: 2em;
    font-size: 0.875rem;
    color: var(--color-text-base);
}

/* Redesigned tab bar (MUI-style underline tabs), mirroring the .bw-tab-*
   tabs on the Bank Workflow page. Scoped to opted-in views: a screen using
   the shared MT.TabView widget gets this look by adding its marker class
   (.ba-view, .ma-view) to its root div; other MT.TabView consumers keep
   their default look. */
.ba-view .tq-tab-buttons,
.ma-view .tq-tab-buttons {
    gap: 0;
    border-bottom: 1px solid var(--color-input-border);
    margin-bottom: 0;
}
/* Inactive tab labels use --color-text-base (10.4:1 on bg) — they are
   essential text, so AA-only --color-text-muted is not acceptable here. */
.ba-view .tq-tab-button,
.ma-view .tq-tab-button {
    appearance: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: -1px;
    background: transparent;
    color: var(--color-text-base);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 16px;
    min-height: 44px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-bottom-color 0.15s ease;
}
/* Hover: light-purple tint + primary-dark text = 10.8:1 (AAA). */
.ba-view .tq-tab-button:hover:not(.tq-tab-button-active),
.ma-view .tq-tab-button:hover:not(.tq-tab-button-active) {
    color: var(--color-primary-dark);
    background: var(--color-primary-tint);
}
.ba-view .tq-tab-button:focus-visible,
.ma-view .tq-tab-button:focus-visible {
    outline: var(--focus-outline);
    outline-offset: -2px;
}
/* Selected tab: light-purple background, primary-dark label (10.8:1, AAA),
   reinforced by a primary underline so the active state is not colour-only. */
.ba-view .tq-tab-button-active,
.ma-view .tq-tab-button-active {
    background: var(--color-primary-tint);
    color: var(--color-primary-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: -1px;
}
.ba-view .tq-tab-content,
.ma-view .tq-tab-content {
    padding-top: 20px;
}

/* Client → Collection → Bank tree (left) + selected-bank
   panel (right). */
.ba-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Card-style panels matching .bw-panel on the Bank Workflow page. */
.ba-tree-panel,
.ba-bank-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 0;
    background: #fff;
    min-width: 0;
}
.ba-tree-panel { flex: 1 1 40%; }
.ba-bank-panel { flex: 1 1 60%; }

.ba-tree-panel > legend,
.ba-bank-panel > legend {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-heading);
    padding: 0 6px;
}

/* Context header: breadcrumb (client › collection) directly above the bank
   name. The crumb is essential orientation text, so it uses
   --color-text-base (10.4:1, AAA) — never AA-only --color-text-muted. */
.ba-crumb {
    margin: 0 0 2px 0;
    font-size: 0.8125rem;
    color: var(--color-text-base);
}
/* Each bank sub-tab (Workflows / Standards / Attributes / User access) opens
   with its own name and a help icon, since each panel does a different job.
   Uses --color-text-base (10.4:1, AAA) — it is a heading, not a hint. */
.ba-subtab-head {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--color-text-base);
}
.ba-bank-panel h3 {
    margin: 0 0 12px 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text-heading);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
}

.ba-tree,
.ba-tree-group {
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.ba-tree-group { padding-left: 18px; }
.ba-tree-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    border-radius: var(--radius-sm);
    transition: background-color 0.12s ease;
}
/* The whole row (label → kebab) is one hover/focus unit: pointing at the ⋯
   tints the row all the way back to its name, so it is always clear which
   row an action targets. focus-within also keeps the row lit while its
   kebab menu is open or the toggle has keyboard focus. */
.ba-tree-row:hover,
.ba-tree-row:focus-within {
    background: var(--color-hover-bg);
}
.ba-tree-toggle,
.ba-tree-bank-btn {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target-min);   /* 44px — WCAG 2.5.5 AAA target size */
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    padding: 4px 6px;
    color: var(--color-text-base);
    border-radius: var(--radius-sm);
    transition: background-color 0.12s ease;
}
/* The label/toggle stretches across the gap to the kebab — the whole strip
   is a single expand/collapse target (its highlight comes from the row). */
.ba-tree-toggle { flex: 1 1 auto; }
/* Bank rows have no .ba-tree-row wrapper; their full-width button is the
   row, so it keeps its own hover. */
.ba-tree-bank-btn:hover {
    background: var(--color-hover-bg);
}
.ba-tree-toggle:focus-visible,
.ba-tree-bank-btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}
.ba-tree-client > .ba-tree-row > .ba-tree-toggle { font-weight: 700; }
.ba-tree-collection > .ba-tree-row > .ba-tree-toggle { font-weight: 600; }
.ba-tree-toggle::before { content: '\25B8\00A0'; }   /* ▸ collapsed */
.ba-tree-client[aria-expanded="true"] > .ba-tree-row > .ba-tree-toggle::before,
.ba-tree-collection[aria-expanded="true"] > .ba-tree-row > .ba-tree-toggle::before {
    content: '\25BE\00A0';                            /* ▾ expanded */
}

/* Kebab (⋯) per-row menu — WAI-ARIA menu-button pattern (see
   _buildKebabMenu in BankAdminView.js). Pushed to the row's right edge. */
.ba-kebab {
    position: relative;
    margin-left: auto;
}
.ba-kebab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-base);
    font: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
}
/* The row already tints on hover (same token), so the kebab's own hover
   needs a distinct cue within the tinted row: a primary ring + darkened
   glyph (10.8:1, AAA). */
.ba-kebab-btn:hover {
    color: var(--color-primary-dark);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}
.ba-kebab-btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: -2px;
}
/* Open state: tinted + primary-dark (10.8:1, AAA) — reinforced by the popup
   itself being visible, so the state is not colour-only. */
.ba-kebab-btn[aria-expanded="true"] {
    background: var(--color-primary-tint);
    color: var(--color-primary-dark);
}
.ba-kebab-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 30;
    min-width: 210px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
/* A mouse open parks focus on the popup itself (so no item is
   pre-highlighted); the popup being visible IS the state indicator, so no
   focus ring on the container. */
.ba-kebab-menu:focus { outline: none; }
.ba-kebab-item {
    display: block;
    width: 100%;
    min-height: var(--touch-target-min);
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-base);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}
/* Items are only ever FOCUSED via keyboard (mouse opens park focus on the
   popup), so plain :focus can safely share the hover highlight — it keeps
   arrow-key movement visible in browsers where programmatic focus doesn't
   match :focus-visible. */
.ba-kebab-item:hover,
.ba-kebab-item:focus { background: var(--color-hover-bg); }
.ba-kebab-item:focus-visible {
    outline: var(--focus-outline);
    outline-offset: -2px;
}

/* Zero-collection client call-to-action row ("Add a collection"). */
.ba-tree-cta {
    list-style: none;
    padding: 4px 0 4px 18px;
}

.ba-tree-bank { padding-left: 18px; }
.ba-tree-bank-btn { width: 100%; }
.ba-tree-bank.ba-selected > .ba-tree-bank-btn {
    background: var(--color-primary-tint);
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Workflows sub-tab: one grid row per slot — label | current | actions. */
.ba-wf-grid {
    display: grid;
    grid-template-columns: max-content 1fr auto;
    gap: 10px 16px;
    align-items: center;
}
.ba-wf-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-heading);
}
.ba-wf-value {
    color: var(--color-text-base);
    min-width: 0;
    overflow-wrap: anywhere;
}
/* Unassigned slots convey essential state, so base (AAA) not muted (AA). */
.ba-wf-none {
    color: var(--color-text-base);
    font-style: italic;
}
/* Dangling assignment (workflow_def row gone). Same AAA red-on-pale-red
   family as .wc-global-warning (#7a0000 on #fff0f0 > 10:1); the border and
   the ⚠ glyph keep the state from being colour-only. */
.ba-wf-missing {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #a30000;
    border-radius: var(--radius-sm);
    background: #fff0f0;
    color: #7a0000;
    font-size: 0.8125rem;
    font-weight: 600;
}
.ba-wf-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Placeholder/empty-state text conveys essential state/guidance, so it uses
   --color-text-base (10.4:1, AAA) rather than AA-only --color-text-muted. */
.ba-bank-placeholder {
    color: var(--color-text-base);
    font-style: italic;
}
.ba-empty {
    color: var(--color-text-base);
    font-size: 0.9375rem;
    padding: 4px 0;
    margin: 0;
}

/* Manifest dialog file field. */
.ba-file-field {
    display: block;
    margin: 8px 0 12px 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-base);
}
.ba-file-field input[type="file"] {
    display: block;
    margin-top: 6px;
    font: inherit;
}

/* User Access tab — assigned-user list. */
.ba-user-list {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
}
.ba-user-list li {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    color: var(--color-text-base);
}

/* Dialog central-div content inset is now GLOBAL (WAFBaseCSS.css,
   .Dialog_normal > .Dialog_body ~ *) — only this page's extra:
   right-align trailing action buttons. */
.ba-view .Dialog_normal > .Dialog_body ~ .btn {
    align-self: flex-end;
    margin-bottom: 20px;
}

/* EXTREME warning banner for global (cross-client) changes — outcome editing on
   the developer Workflow Config screen. High-contrast (>10:1, WCAG AAA) red on
   pale red with a heavy left rule so it cannot be missed; paired with role="alert"
   in markup so it is announced to screen readers. */
.wc-global-warning {
    margin: 8px 0;
    padding: 10px 12px;
    border: 1px solid #a30000;
    border-left: 6px solid #a30000;
    border-radius: 3px;
    background: #fff0f0;
    color: #7a0000;
    font-weight: 700;
    line-height: 1.4;
}

.wc-status {
    padding: 6px 0;
    min-height: 1.5em;
}

.wc-node-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.wc-node-list li {
    padding: 4px 8px;
    border: 1px solid #ddd;
    margin-bottom: 2px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-node-list li:hover {
    background: #f0f7ff;
}

.wc-node-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0;
    margin-top: 8px;
    border-top: 1px solid #ddd;
    min-height: 32px;
}

.wc-badge {
    display: inline-block;
    font-size: 0.8em;
    color: #666;
    margin-left: 6px;
    font-style: italic;
}

.wc-allowed-values {
    display: inline-block;
    font-size: 0.85em;
    color: #555;
    margin-left: 4px;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
}

.wc-attr-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    flex-wrap: wrap;
}

/* ========== MANAGE ATTRIBUTES (.ma-) ========== */
/* Light-touch cleanup of the manageattributes state. All colors come from
   the WAFBaseCSS token palette; contrast ratios are documented per rule.
   .ma-view is also the opt-in marker for the shared tq-tab-* tab styling
   (see the CREATE / EDIT ITEM BANK section above). */

/* Status region — mirrors .ba-status; announced via role="status".
   --color-text-base on --color-bg = 10.4:1 (AAA). */
.ma-status {
    padding: 6px 0;
    min-height: 2em;
    font-size: 0.875rem;
    color: var(--color-text-base);
    transition: opacity 0.3s ease;
}

.ma-status--fading {
    opacity: 0;
}

/* Poll-failure / error state: #991b1b (= --btn-destructive) on --color-bg
   = 7.9:1 (AAA). The message text itself states the failure, so the
   state is never conveyed by color alone. */
.ma-status--alert {
    color: #991b1b;
    font-weight: 600;
}

/* Toolbar row above the definitions tree / value-set table. */
.ma-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

/* Search input — pairs with .form-input (which supplies the
   --color-input-border 5.9:1 border, ≥3:1 UI-component minimum,
   and the focus ring). */
.ma-search {
    flex: 1 1 220px;
    width: auto;
    min-width: 200px;
    max-width: 480px;
    min-height: var(--touch-target-min);
    /* The site-wide bare `input` rule adds margin-bottom: 15px; inside the
       center-aligned action row that phantom margin lifts the input ~7px
       above the buttons, so zero it here. */
    margin: 0;
}

/* Placeholder is visible text: keep it at 10.4:1 and distinguish it
   from typed text by italics, not by a lighter (failing) gray. */
.ma-search::placeholder {
    color: var(--color-text-base);
    font-style: italic;
    opacity: 1;
}

/* Outline buttons on this page: the shared .btn--outline border token is
   the decorative --color-border (~1.5:1 — under the 3:1 UI-component
   minimum), so strengthen it to --color-primary (7.2:1 on --color-bg). */
.ma-view .btn--outline {
    border-color: var(--color-primary);
}

/* Definition count — own line under the search row.
   --color-text-base on --color-bg = 10.4:1 (AAA). The action row above
   already carries 12px bottom margin, so only pad below. */
.ma-count {
    font-size: 0.875rem;
    color: var(--color-text-base);
    margin: -4px 0 8px;
}

/* Card chrome around the definitions list (decorative border only). */
.ma-defs-host {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 12px;
    margin-top: 4px;
}

/* Collapsible attribute group. The toggle is a real button carrying the
   disclosure state on aria-expanded; the ▸/▾ marker (not color) shows
   open/closed. Heading text 17.1:1, ≥44px target; focus ring comes from
   the global :focus-visible rule. */
.ma-group + .ma-group {
    margin-top: 8px;
}

.ma-group-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-heading);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 8px 6px;
    min-height: var(--touch-target-min);
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.ma-group-toggle:hover {
    background: var(--color-hover-bg);
}

.ma-group-toggle::before {
    content: '\25BE\00A0';                  /* ▾ expanded */
}

.ma-group-toggle[aria-expanded="false"]::before {
    content: '\25B8\00A0';                  /* ▸ collapsed */
}

.ma-group-body {
    padding: 2px 0 6px 6px;
}

/* One definition per row; the whole row is the click target (like the
   Bank Admin tree rows). Text --color-text-base 10.4:1 (AAA); 44px
   target; hover tint (plus cursor) marks interactivity, the "(Global)"
   suffix — not styling — marks read-only rows. */
.ma-def-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-base);
    font: inherit;
    font-size: 0.875rem;
    padding: 6px 8px;
    min-height: var(--touch-target-min);
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.ma-def-row:hover {
    background: var(--color-hover-bg);
}

.ma-def-key {
    font-weight: 600;
    white-space: nowrap;
}

.ma-def-desc {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* [type · validation] summary, inline right after the name/description so
   it visually belongs to its row even on wide screens. */
.ma-def-meta {
    white-space: nowrap;
    font-size: 0.8125rem;
}

/* Empty states — 10.4:1 (AAA); NOT .imp-empty's light gray (2.1:1). */
.ma-empty,
.ma-view .queue-empty {
    padding: 12px 0;
    font-style: italic;
    color: var(--color-text-base);
}

/* Import-queue host: reserves a line so the tab does not collapse
   while the first poll is in flight. */
.ma-queue {
    min-height: 1.5rem;
}

/* Dialog central-div content inset is now GLOBAL (WAFBaseCSS.css,
   .Dialog_normal > .Dialog_body ~ * — including the :last-child 20px
   bottom) — only this page's extras remain. */
/* .form-input is width:100% of the unpadded box — let flex stretch size
   it inside the side margins instead of overflowing past them. */
.ma-view .Dialog_normal > .Dialog_body ~ .form-input {
    width: auto;
}
/* Keep a field label snug against the field it labels (matches
   .form-label's own 6px, which the global ~ * rule would otherwise
   override). */
.ma-view .Dialog_normal > .Dialog_body ~ label {
    margin-bottom: 6px;
}

/* Action row at the bottom of WAF dialogs (Save / Delete / Close). */
.ma-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* Value-set members textarea — pairs with .form-input. */
.ma-members-input {
    min-height: 8em;
    resize: vertical;
    font-family: inherit;
}

/* Per-row action button rendered inside Table2D Button cells (value-set
   "Edit"). Single composed class: TblHeader.classList.add() accepts one
   token. Text --color-primary-dark on white = 12.1:1 (AAA); border
   #4a5568 = 7.8:1 (≥3:1 UI minimum); 44px target (2.5.5); the focus
   ring comes from the global :focus-visible rule in WAFBaseCSS. */
.ma-cell-btn {
    background: #fff;
    color: var(--color-primary-dark);
    border: 1px solid #4a5568;
    border-radius: var(--radius-md);
    padding: 8px 14px;
    min-height: var(--touch-target-min);
    cursor: pointer;
    font-weight: 600;
}

.ma-cell-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-tint);
}

@media (prefers-reduced-motion: reduce) {
    .ma-status {
        transition: none;
    }
}

/* ========== BANK WORKFLOW (.bw-) ========== */

.bw-layout {
    display: flex;
    gap: 16px;
    min-height: 400px;
    align-items: flex-start;
}

.bw-panel {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-y: auto;
    max-height: 640px;
    background: #fff;
    min-width: 0;
}

.bw-panel-wide {
    flex: 2;
}

.bw-panel h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-heading);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
}

.bw-status {
    padding: 6px 0;
    min-height: 2em;
    font-size: 0.875rem;
    color: var(--color-text-base);
}

.bw-btn-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.bw-collection {
    margin-bottom: 12px;
}

.bw-collection h4 {
    margin: 0 0 6px 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bw-bank-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    margin-bottom: 4px;
    font: inherit;
    color: var(--color-text-base);
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.bw-bank-btn:hover {
    background: #f2f2f2;
    border-color: var(--color-primary);
}

.bw-bank-btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

.bw-bank-btn.bw-selected {
    background: var(--color-primary-tint);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    font-weight: 500;
}

.bw-assigned {
    margin-bottom: 8px;
}

.bw-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-base);
}

.bw-table th,
.bw-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
}

.bw-table thead th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-heading);
    background: #f5f5f5;
    border-bottom: 2px solid var(--color-border);
}

.bw-table tbody tr {
    height: 44px;
    transition: background-color 0.12s ease;
}

.bw-table tbody tr:hover {
    background: #f5f5f5;
}

.bw-table tbody tr:focus-visible {
    outline: var(--focus-outline);
    outline-offset: -2px;
}

.bw-table tr.bw-selected {
    background: var(--color-primary-tint);
}

.bw-table-row-clickable {
    cursor: pointer;
}

.bw-sub-table {
    font-size: 0.9em;
}

.bw-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

/* MUI-style tab bar — flush at the top of the graph panel */
.bw-graph-panel {
    padding-top: 8px;
}

.bw-graph-placeholder {
    padding: 16px 0;
    color: var(--color-text-muted);
    margin: 0;
}

.bw-tab-bar {
    display: flex;
    border-bottom: 1px solid var(--color-border);
}

.bw-tab-btn {
    appearance: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 16px;
    cursor: pointer;
    min-height: 44px;
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.bw-tab-btn:hover:not([aria-selected="true"]) {
    color: var(--color-primary);
    background: #f5f5f5;
}

.bw-tab-btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: -2px;
}

.bw-tab-btn[aria-selected="true"] {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom-color: var(--color-primary);
}

.bw-tab-panel {
    padding-top: 20px;
}

.bw-tab-panel:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

.bw-tab-empty {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    padding: 4px 0;
    margin: 0;
}

/* Work-queue dialog (WorkQueueRenderer): the rows are clickable AND
   keyboard-navigable (tabindex=0 + arrow keys), so make the row under
   the cursor or with focus show a clear border so the user knows which
   item the click/Enter will select. outline-offset:-2px keeps the
   border inside the row so it doesn't shift the table layout. */

.wq-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    min-height: 0;
}

.wq-dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
}

.wq-table-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.wq-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.9375rem;
    color: var(--color-text-base);
}

.wq-table th,
.wq-table td {
    padding: 10px 16px;
    text-align: left;
    white-space: nowrap;
}

.wq-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-base);
    border-bottom: 2px solid var(--color-border);
}

.wq-table tbody tr {
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.12s ease;
    height: 44px;
}

.wq-table tbody tr:last-child {
    border-bottom: none;
}

/* Force-unlock confirmation modal — pops over the WorkQueueRenderer's
   WAF.Dialog when the operator picks an item that another user holds.
   z-index 10000 is well above the work-queue dialog (which uses default
   stacking on its parent view); position:fixed centers over the viewport
   regardless of the queue dialog's own positioning. */
.wf-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

/* The lock-lost / save-rejected dialog (MT.LockWatch) shares the
   force-unlock dialog's card styling — same overlay, same shell. */
.wf-force-unlock-dialog,
.wf-save-rejected-dialog {
    background: #fff;
    border-radius: 10px;
    box-shadow:
        0 24px 48px -12px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.08);
    max-width: 520px;
    width: 100%;
    padding: 24px 26px;
    box-sizing: border-box;
    font-family: inherit;
    color: #1f2937;
}

.wf-save-rejected-dialog h2 {
    margin: 0 0 16px 0;
    color: var(--jcmaPurple);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 2px solid var(--jcmaPurple);
    padding-bottom: 8px;
}

.wf-lock-lost-who,
.wf-lock-lost-reason {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: #0f172a;
    word-break: break-word;
}

.wf-save-rejected-dialog .wf-hint {
    display: block;
    margin: 12px 0 0 0;
    font-size: 0.9rem;
    color: #475569;
}

.wf-force-unlock-title {
    margin: 0 0 16px 0;
    color: var(--jcmaPurple);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 2px solid var(--jcmaPurple);
    padding-bottom: 8px;
}

.wf-force-unlock-summary {
    background: var(--activeBackground);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: grid;
    row-gap: 4px;
}

.wf-force-unlock-summary-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.95rem;
}

.wf-force-unlock-summary-label {
    color: #475569;
    font-weight: 600;
    flex-shrink: 0;
}

.wf-force-unlock-summary-value {
    color: #0f172a;
    word-break: break-word;
}

.wf-force-unlock-reason-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1f2937;
}

.wf-force-unlock-reason {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 72px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.wf-force-unlock-reason:focus {
    border-color: var(--jcmaPurple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 6, 145, 0.18);
}

.wf-force-unlock-reason[aria-invalid="true"] {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18);
}

.wf-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.wf-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.wf-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wf-btn-secondary {
    background: #fff;
    color: #334155;
    border-color: #cbd5e1;
}

.wf-btn-secondary:hover:not(:disabled),
.wf-btn-secondary:focus-visible {
    background: #f1f5f9;
    border-color: #94a3b8;
    outline: none;
}

.wf-btn-warning {
    background: var(--jcmaPurple);
    color: #fff;
    border-color: var(--jcmaPurple);
}

.wf-btn-warning:hover:not(:disabled),
.wf-btn-warning:focus-visible {
    background: #4a0573;
    border-color: #4a0573;
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 6, 145, 0.25);
}

/* Primary action on the lock-lost dialog (Re-acquire) — same brand
   treatment as wf-btn-warning; the two exist so the force-unlock and
   lock-lost dialogs can diverge later without a rename. */
.wf-btn-primary {
    background: var(--jcmaPurple);
    color: #fff;
    border-color: var(--jcmaPurple);
}

.wf-btn-primary:hover:not(:disabled),
.wf-btn-primary:focus-visible {
    background: #4a0573;
    border-color: #4a0573;
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 6, 145, 0.25);
}

/* #991b1b keeps white text at >= 7:1 (WCAG AAA). */
.wf-btn-danger {
    background: #991b1b;
    color: #fff;
    border-color: #991b1b;
}

.wf-btn-danger:hover:not(:disabled),
.wf-btn-danger:focus-visible {
    background: #7f1d1d;
    border-color: #7f1d1d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.25);
}

    .wq-table tbody tr:hover,
    .wq-table tbody tr:focus {
        background-color: var(--color-primary-tint);
        outline: none;
    }

    .wq-table tbody tr:focus-visible {
        background-color: var(--color-primary-tint);
        outline: var(--focus-outline);
        outline-offset: -3px;
    }

    .wq-table tbody tr:hover td,
    .wq-table tbody tr:focus td,
    .wq-table tbody tr:focus-visible td {
        background-color: transparent;
    }

.bw-subsection {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 16px;
    background: #fff;
}

.bw-subsection legend {
    font-weight: 600;
    color: var(--color-text-heading);
    padding: 0 6px;
    font-size: 0.875rem;
}

.bw-override-group {
    margin: 8px 0;
}

.bw-overridden {
    color: var(--color-accent);
    font-weight: 600;
}

/* Suppressed rows: text muted at 5.9:1 (supplementary — the status
   column already labels the state at full contrast for screen readers). */
.bw-suppressed td:not(:last-child) {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* Override-added rows: accent tint background to distinguish from global rules. */
.bw-override-add {
    background: var(--color-accent-tint);
}

/* Activity picker tree: a disabled leaf is an activity whose prerequisite
   step is not yet in the workflow (e.g. a review before its content step).
   It stays visible but greyed and renders no selection control. */
.bw-tree-disabled {
    color: var(--color-text-muted);
    font-style: italic;
}

/* Disabled language label inside the config dialog — same muted treatment. */
.bw-label-disabled {
    color: var(--color-text-muted);
}

.bw-activity-tree {
    min-width: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Workflow graph editor: equal-width columns for the activity list and picker tree. */
.bw-graph-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.bw-activity-list {
    min-width: 0;
}

.bw-routing-line {
    padding: 4px 0;
    font-size: 0.9375rem;
    color: var(--color-text-base);
}

.bw-resolution-wrapper {
    margin-top: 12px;
}

.bw-resolution-container {
    margin-top: 8px;
}

.bw-attr-container {
    margin-top: 8px;
}

.bw-attr-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    flex-wrap: wrap;
}

/* Contains floated WAF widget children (TextInput_window / Select_window use float:left) */
.bw-field {
    display: flow-root;
    margin-bottom: 12px;
}

.bw-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.bw-checkbox-row label {
    cursor: pointer;
    user-select: none;
}


/* ========== WORKFLOW ADMIN (.wa-) ========== */

/* --- Sections accordion ---------------------------------------------
   The four sections (Items / Stimuli / Recent bulk moves / Cleanup) are
   a WAF.AccordionGroup. These rules are SCOPED to .WorkflowAdminView_window
   so they override only this view's accordion — the plain global styling
   (black title bar + dotted body in the WAF base CSS) is replaced here
   with card-style panels in the purple/cyan brand. Collapse is left to
   the global .AccBlock_hidden / .AccBlock_show display rules, so these
   never set `display` on the body. */

/* Flow with the page rather than the group's default full-height inner
   scroll — height:auto !important neutralises the inline height the
   AccordionGroup sets so the heading above isn't double-scrolled. */
.WorkflowAdminView_window div.AccGroup_window {
    height: auto !important;
    overflow: visible;
    padding: 4px 2px 18px;
    outline: none;
}

.WorkflowAdminView_window div.AccGroup_window div.AccBlock_window {
    margin: 0 0 12px;
    border: 1px solid #e7dcf2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(94, 6, 145, 0.08);
}

/* Header bar (collapsed): purple label on white, cyan chevron. */
.WorkflowAdminView_window div.AccGroup_window span.AccBlock_title {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 14px 18px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, color .15s ease;
}

.WorkflowAdminView_window div.AccGroup_window span.AccBlock_title::before {
    content: '\203A';            /* › — rotates to ⌄ when the panel opens */
    flex: 0 0 auto;
    width: 0.8em;
    font-size: 1.35em;
    line-height: 1;
    text-align: center;
    color: var(--jcmaBlue);
    transform: rotate(0deg);
    transition: transform .18s ease, color .15s ease;
}

.WorkflowAdminView_window div.AccGroup_window span.AccBlock_title:hover {
    background: #faf6fe;
}

.WorkflowAdminView_window div.AccGroup_window span.AccBlock_title:focus-visible {
    outline: 3px solid var(--jcmaPurple);
    outline-offset: -3px;
}

/* Header bar (open): brand gradient, white label, rotated chevron. */
.WorkflowAdminView_window div.AccGroup_window span.AccBlock_title.AccBlock_active {
    background: linear-gradient(135deg, var(--jcmaPurple) 0%, #7a1bb5 100%);
    color: #fff;
}

.WorkflowAdminView_window div.AccGroup_window span.AccBlock_title.AccBlock_active::before {
    transform: rotate(90deg);
    color: #fff;
}

/* Panel body: white, padded, hairline separator under the header. */
.WorkflowAdminView_window div.AccGroup_window div.AccBlock_body {
    border: none;
    margin: 0;
    padding: 18px;
    background: #fff;
    border-top: 1px solid #efe7f7;
}

.wa-status {
    padding: 6px 0;
    min-height: 1.5em;
}

.wa-fieldset {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
}

.wa-fieldset legend {
    font-weight: 600;
    padding: 0 6px;
}

.wa-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* Lifecycle-stage filter (live / archived / rejected) above the admin tables. */
.wa-lifecycle-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}
.wa-lifecycle-filter-label {
    font-weight: 600;
    color: var(--color-text-heading, #16132a);
}
/* Lay the WAF.RadioGroup options out in a horizontal row. */
.wa-lifecycle-filter ul[role="radiogroup"] {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wa-lifecycle-filter ul[role="radiogroup"] > li {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* Content search — sits beside/below the lifecycle filter, above the
   accordion. A successful search checks the matching rows in the item
   and stimulus tables. */
.wa-content-search-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 4px 0;
}

.wa-content-search-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.wa-content-search-caption {
    font-weight: 600;
    color: var(--color-text-heading, #16132a);
}

.wa-content-search-input {
    flex: 0 0 320px;
    padding: 6px 10px;
    border: 1px solid #c7c7c7;
    border-radius: 6px;
    font-size: 0.95rem;
}

.wa-content-search-input:focus {
    outline: none;
    border-color: #0d3a78;
    box-shadow: 0 0 0 2px rgba(13, 58, 120, 0.2);
}

/* Persistent pending / not-searchable / truncation counts. AAA
   contrast (#3f4a54 on white ≈ 9:1). */
.wa-content-search-notice {
    color: #3f4a54;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
}

.wa-btn {
    padding: 8px 16px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s, background 0.15s;
}

.wa-btn:hover {
    border-color: var(--jcmaBlue);
    background: #f7fbfe;
    box-shadow: 0 2px 8px rgba(0, 194, 244, 0.15);
    transform: translateY(-1px);
}

/* Item Operations — shared item picker + state pill + action row */

.wa-item-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wa-item-picker label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wa-item-picker input[type="text"],
.wa-item-combo input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 300px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wa-item-picker input[type="text"]:focus,
.wa-item-combo input[type="text"]:focus {
    outline: none;
    border-color: var(--jcmaBlue);
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

.wa-item-combo .CA_window,
.wa-item-combo > div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wa-item-combo .CA_window label {
    display: none;
}

.wa-item-state {
    padding: 10px 14px;
    background: #f7fbfe;
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.wa-item-state strong {
    color: #667788;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin-right: 6px;
}

.wa-actions {
    margin-top: 4px;
}

/* Per-row action buttons (cells 6-9): keep them compact so the
   four-button strip doesn't blow out the row width. */
.wa-items-table td:nth-child(n+7) button {
    padding: 1px 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Conversion column (cell 6): the cell is always rendered as a
   <div> by the Table2D String renderer. Two clickable variants:
   the red errors button on needs_review / incomplete rows
   (conversion blocked persistence and must be addressed) and the
   unobtrusive notice button on complete rows that recorded
   info-severity entries (the body persisted but there is a
   coverage or classification signal worth seeing). */
.wa-conv-issues-btn-error,
.wa-conv-issues-btn-notice {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.wa-conv-issues-btn-error {
    border: 1px solid #c1322a;
    background: #fde7e6;
    color: #7a1a14;
    font-weight: 600;
}

.wa-conv-issues-btn-error:hover,
.wa-conv-issues-btn-error:focus {
    background: #f9d2cf;
    border-color: #a52720;
}

.wa-conv-issues-btn-notice {
    border: 1px solid #c7c7c7;
    background: #f4f4f4;
    color: #555;
    font-weight: normal;
}

.wa-conv-issues-btn-notice:hover,
.wa-conv-issues-btn-notice:focus {
    background: #e8e8e8;
    border-color: #a8a8a8;
}

.wa-bulk-toolbar {
    margin: 8px 0;
}

/* Search bar above the items table — input + prev/next buttons +
   match counter on one line. */
.wa-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.wa-search-input {
    flex: 0 0 280px;
    padding: 4px 8px;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    font-size: 0.95rem;
}

.wa-search-input:focus {
    outline: none;
    border-color: #0d3a78;
    box-shadow: 0 0 0 2px rgba(13, 58, 120, 0.2);
}

.wa-search-btn {
    padding: 3px 10px;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}

.wa-search-btn:hover,
.wa-search-btn:focus {
    background: #f0f0f0;
    border-color: #888;
}

.wa-search-count {
    color: #667788;
    font-size: 0.9rem;
    margin-left: 4px;
}

/* Items-table search match highlights. wa-row-match colours every
   match faintly; wa-row-current-match (the one the user is on) gets
   a stronger highlight + a left-edge marker. */
.wa-items-table tbody tr.wa-row-match td {
    background: #fff8d0;
}

.wa-items-table tbody tr.wa-row-current-match td {
    background: #fce97f;
}

.wa-items-table tbody tr.wa-row-current-match td:first-child {
    box-shadow: inset 3px 0 0 #d4a000;
}

.wa-bulk-queue {
    margin-top: 16px;
}

.wa-bulk-queue h3 {
    margin: 8px 0 4px 0;
}

.wa-bulk-error {
    color: #a00;
    font-style: italic;
}

/* Highlight the row whose item matches _currentItemId. Toggled by
   _highlightSelectedRow whenever an item is loaded. */
.wa-items-table tr.wa-row-selected td {
    font-weight: 700;
    font-size: 1.05rem;
    background: #eef5fc;
}

/* Keep legacy .wa-lifecycle-* selectors for backward compatibility */

.wa-lifecycle-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wa-lifecycle-picker label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wa-lifecycle-picker input[type="text"],
.wa-lifecycle-combo input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 300px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wa-lifecycle-picker input[type="text"]:focus,
.wa-lifecycle-combo input[type="text"]:focus {
    outline: none;
    border-color: var(--jcmaBlue);
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

/* ComboActive inline wrapper inside the picker row */
.wa-lifecycle-combo .CA_window,
.wa-lifecycle-combo > div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wa-lifecycle-combo .CA_window label {
    display: none; /* label supplied by the picker row itself */
}

.wa-lifecycle-panel {
    margin-top: 8px;
}

.wa-lifecycle-panel:empty {
    display: none;
}

.wa-lifecycle-state {
    padding: 10px 14px;
    background: #f7fbfe;
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.wa-lifecycle-state strong {
    color: #667788;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin-right: 6px;
}

/* Color-coded state pill */
.wa-lifecycle-state span[class^="wa-lifecycle-state-"] {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.wa-lifecycle-state-in_development {
    background: #fff4cc;
    color: #8a6100;
}

.wa-lifecycle-state-listo {
    background: #d6f7dc;
    color: #1f6b33;
}

.wa-lifecycle-state-archived {
    background: #e0e4e8;
    color: #556677;
}

.wa-lifecycle-state-rejected {
    background: #fad5d5;
    color: #8a1f1f;
}

.wa-lifecycle-state-unknown {
    background: #eef2f5;
    color: #99aabb;
}

.wa-lifecycle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.wa-lifecycle-sendback {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wa-lifecycle-sendback select {
    padding: 8px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    color: #223344;
    cursor: pointer;
}

.wa-lifecycle-sendback select:focus {
    outline: none;
    border-color: var(--jcmaBlue);
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

.wa-lifecycle-history-btn {
    margin-top: 4px;
}

/* Send-back dialog — activity picker list, reverse-sequence */

.wa-sendback-intro {
    margin: 0 0 14px 0;
    color: #556677;
    font-size: 0.9rem;
}

.wa-sendback-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
    min-width: 320px;
}

.wa-sendback-list li {
    margin: 0;
}

/* Higher-specificity selectors override `.Dialog_window button { background:#151616 }`
   and the global `button:hover { background:transparent }`. */
.Dialog_window button.wa-sendback-item,
.wa-sendback-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #d0d8e0;
    border-radius: 10px;
    background-color: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.Dialog_window button.wa-sendback-item:hover,
.Dialog_window button.wa-sendback-item:focus,
.wa-sendback-item:hover,
.wa-sendback-item:focus {
    background-color: #fff;
    color: var(--jcmaPurple);
    border-color: var(--jcmaBlue);
    outline: none;
}

.wa-audit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.wa-audit-table th,
.wa-audit-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.wa-audit-table th {
    font-weight: 600;
    background: #f5f5f5;
}

.wa-pager {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

/* ========== BATCH MANAGE (.bm-) ========== */

.bm-status {
    padding: 6px 0;
    min-height: 1.5em;
}

.bm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.bm-table th,
.bm-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.bm-table th {
    font-weight: 600;
    background: #f5f5f5;
}

.bm-btn {
    padding: 6px 14px;
    border: 1px solid #888;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    margin: 2px;
}

.bm-btn:hover {
    background: #e8e8e8;
}

.bm-btn-sm {
    padding: 2px 6px;
    font-size: 0.85em;
}

.bm-details {
    margin: 8px 0;
}

.bm-details dt {
    font-weight: 600;
    margin-top: 8px;
}

.bm-details dd {
    margin-left: 16px;
}

/* ========== BATCH PROGRESS PANEL (.bp-) ========== */

.bp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.bp-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.bp-header-title {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}

.bp-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
    padding: 4px 8px;
    line-height: 1;
}

.bp-close-btn:hover {
    background: #e0e0e0;
    border-radius: 4px;
}

.bp-summary {
    display: flex;
    gap: 24px;
    padding: 8px 16px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

.bp-summary-item {
    display: flex;
    gap: 6px;
    align-items: center;
}

.bp-summary-value {
    font-weight: 600;
}

.bp-container {
    display: flex;
    flex: 1;
    gap: 0;
    overflow: hidden;
}

.bp-left-panel {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    overflow: hidden;
}

.bp-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.bp-panel-header {
    padding: 8px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.bp-panel-content {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.bp-empty {
    padding: 24px;
    text-align: center;
    color: #888;
}

.bp-loading {
    padding: 24px;
    text-align: center;
    color: #666;
}

/* ========== ITEM HISTORY (.ih-) ========== */

.ih-status {
    padding: 6px 0;
    min-height: 1.5em;
}

.ih-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 8px 0;
}

.ih-heading {
    margin: 0;
    flex: 1;
}

.ih-container {
    display: flex;
    gap: 8px;
    height: calc(100vh - 140px);
}

.ih-item-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.ih-item-panel.ih-expanded {
    flex: 3;
}

.ih-display-div {
    flex: 1;
    overflow: auto;
    padding: 8px;
}

.ih-version-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 0.9em;
}

.ih-return-btn {
    margin-left: auto;
}

.ih-history-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    max-width: 50%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: flex 0.2s, min-width 0.2s, max-width 0.2s;
}

.ih-history-panel.ih-collapsed {
    flex: 0 0 36px;
    min-width: 36px;
    max-width: 36px;
    overflow: hidden;
}

.ih-panel-header {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.ih-panel-title {
    flex: 1;
    font-weight: 600;
}

.ih-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    padding: 2px 6px;
}

.ih-collapsed .ih-panel-title,
.ih-collapsed .ih-timeline,
.ih-collapsed .ih-element-history {
    display: none;
}

.ih-timeline {
    flex: 1;
    overflow: auto;
    padding: 4px;
}

.ih-element-history {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 8px;
}

.ih-version-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 0;
}

.ih-version-label {
    font-weight: 600;
    font-size: 0.95em;
    min-width: 100px;
    text-align: center;
}

.ih-nav-arrow {
    background: #fff;
    border: 1px solid #888;
    border-radius: 3px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1em;
}

.ih-nav-arrow:hover:not(:disabled) {
    background: #e8e8e8;
}

.ih-nav-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.ih-nav-meta {
    text-align: center;
    font-size: 0.85em;
    color: #555;
    padding: 4px 0;
}

.ih-history-display {
    flex: 1;
    min-height: 200px;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 8px;
    padding: 8px;
}

.ih-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    font-size: 0.9em;
}

.ih-table th,
.ih-table td {
    text-align: left;
    padding: 5px 6px;
    border-bottom: 1px solid #eee;
}

.ih-table th {
    font-weight: 600;
    background: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ih-btn {
    padding: 6px 14px;
    border: 1px solid #888;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85em;
}

.ih-btn:hover {
    background: #e8e8e8;
}

.ih-back-btn {
    margin-bottom: 8px;
}

.ih-status-indicator {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

.ih-status-pending {
    background: #fff3cd;
    color: #8a6100;
}

.ih-status-in-progress {
    background: #d0e4f7;
    color: #1a5276;
}

.ih-status-complete {
    background: #d4edda;
    color: #155724;
}

.ih-status-skipped {
    background: #e2e3e5;
    color: #6c757d;
}

.ih-status-invalidated {
    background: #f8d7da;
    color: #721c24;
}

.ih-comment-draft {
    opacity: 0.6;
    font-style: italic;
}

.ih-empty {
    padding: 12px;
    color: #666;
    font-style: italic;
}

.ih-element-title {
    margin: 4px 0 8px 0;
    font-size: 0.95em;
}

.ih-birth-death {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ih-version-entry {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
}

.ih-version-meta {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 4px;
}

.ih-version-content {
    padding: 4px;
    background: #fafafa;
    border-radius: 3px;
    font-size: 0.9em;
    max-height: 120px;
    overflow: auto;
}

.ih-diff {
    margin-top: 6px;
    padding: 4px;
    background: #f8f8f8;
    border-radius: 3px;
    font-size: 0.85em;
}

.ih-diff-add {
    background: #d4edda;
    color: #155724;
}

.ih-diff-remove {
    background: #f8d7da;
    color: #721c24;
    text-decoration: line-through;
}

.ih-historical-content {
    padding: 8px;
}

.ih-save-row {
    color: #2e5a88;
}

/* ========== CONTENT REVIEW OUTCOMES (.cr-) ========== */

.cr-outcome-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    margin-top: 8px;
}

.cr-outcome-btn {
    padding: 8px 18px;
    border: 1px solid #888;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 0.95em;
}

.cr-outcome-btn:hover {
    background: #e8e8e8;
}

.cr-outcome-rework {
    border-color: #e0a800;
    background: #fff3cd;
    color: #856404;
}

.cr-outcome-rework:hover {
    background: #ffe69c;
}

.cr-outcome-skip {
    border-color: #6c757d;
    background: #e2e3e5;
    color: #383d41;
}

.cr-outcome-skip:hover {
    background: #d6d8db;
}

.cr-lock-status {
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f8f9fa;
}

.cr-item-info {
    padding: 8px 0;
}

/* ========== EDITORIAL REVIEW (.er-) ========== */

.er-editor-container {
    border: 1px solid #ccc;
    border-radius: 3px;
    min-height: 300px;
    padding: 8px;
    margin: 8px 0;
    background: #fff;
}

.er-save-bar {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.er-save-btn {
    padding: 8px 18px;
    border: 1px solid var(--darkerBlue);
    border-radius: 3px;
    background: var(--darkerBlue);
    color: #fff;
    cursor: pointer;
    font-size: 0.95em;
}

.er-save-btn:hover {
    background: #0069d9;
}

/* ========== ADD USER (.au-) ========== */

.au-status {
    padding: 6px 0;
    min-height: 1.5em;
}

.au-section {
    margin-bottom: 16px;
}

.au-fieldset {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
}

.au-fieldset legend {
    font-weight: 600;
    padding: 0 6px;
}

.au-btn {
    padding: 6px 14px;
    border: 1px solid #888;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    margin: 2px;
}

.au-btn:hover {
    background: #e8e8e8;
}

.au-btn-sm {
    padding: 2px 6px;
    font-size: 0.85em;
}

.au-btn-danger {
    border-color: #dc3545;
    background: #fff;
    color: #dc3545;
}

.au-btn-danger:hover {
    background: #dc3545;
    color: #fff;
}

.au-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.au-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.au-scope-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.au-scope-table th,
.au-scope-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.au-scope-table th {
    font-weight: 600;
    background: #f5f5f5;
}

.au-profile {
    padding: 8px 0;
}

.au-profile dt {
    font-weight: 600;
    margin-top: 8px;
}

.au-profile dd {
    margin-left: 16px;
}

/* ---- User management redesign (search/create cards, identity, drift) ---- */

.au-search-card,
.au-create-card {
    background: #fafafa;
}

.au-profile-section {
    margin-top: 16px;
}

.au-label {
    display: block;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 2px;
}

.au-readonly {
    padding: 6px 0;
    color: #444;
}

.au-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.au-table th,
.au-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.au-table th {
    font-weight: 600;
    background: #f5f5f5;
}

.au-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
}

.au-save-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.au-dirty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0a800;
    display: inline-block;
}

.au-drift-banner {
    border: 1px solid #e0a800;
    background: #fff8e1;
    color: #7a5c00;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 8px 0 12px;
}

.au-empty-state {
    font-style: italic;
    color: #777;
    padding: 6px 0;
}

/* Language overlay note + dialog (Add User). Colors hold >= 7:1 on their
   backgrounds (WCAG AAA): #0a4d7f on #fff, #6b3400 on #fff8e1. */
.au-languages-note {
    margin: 10px 0 4px;
}

.au-languages-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: #0a4d7f;
    text-decoration: underline;
    font-size: inherit;
    text-align: left;
}

.au-languages-btn.au-languages-warning {
    color: #6b3400;
    background: #fff8e1;
    border: 1px solid #e0a800;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.au-lang-intro {
    max-width: 40em;
    margin: 4px 0 10px;
}

.au-lang-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2px 16px;
    margin: 6px 0;
}

.au-lang-save,
.au-lang-cancel {
    margin: 10px 8px 0 0;
}

/* ========== CREATE CLIENT (.cc-) ==========
   Same card / table / button vocabulary as Add User (.au-) so the two
   client-setup screens read as one. Colors hold >= 7:1 on white
   (WCAG AAA): #444 text, #595959 muted, #b3261e danger. */

.cc-status {
    padding: 6px 0;
    min-height: 1.5em;
}

.cc-fieldset {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
}

.cc-fieldset legend {
    font-weight: 600;
    padding: 0 6px;
}

/* The clients grid scrolls in place: about twenty rows, never more than the
   viewport holds, header row pinned. */
.cc-scroll {
    max-height: min(calc(100vh - 300px), 44em);
    overflow-y: auto;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
}

.cc-scroll .cc-table {
    margin: 0;
}

.cc-scroll .cc-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.cc-table tr.cc-selected td {
    background: #eef5fb;
}

/* The organizations-and-sites dialog: wider than a form dialog, its table
   scrolling inside so the add / close bar stays put. */
.Dialog_normal.cc-orgsites-dialog {
    max-width: 960px;
}

.cc-orgsites-scroll {
    max-height: 50vh;
    margin: 0 20px;
}

.cc-btn {
    padding: 6px 14px;
    border: 1px solid #888;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    margin: 2px;
}

.cc-btn:hover {
    background: #e8e8e8;
}

.cc-btn:focus-visible {
    outline: 2px solid #0a4d7f;
    outline-offset: 2px;
}

.cc-btn-sm {
    padding: 2px 6px;
    font-size: 0.85em;
}

.cc-btn-danger {
    border-color: #b3261e;
    color: #b3261e;
}

.cc-btn-danger:hover {
    background: #b3261e;
    color: #fff;
}

.cc-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cc-label {
    display: block;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 2px;
}

.cc-readonly {
    padding: 6px 0;
    color: #444;
}

.cc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.cc-table th,
.cc-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.cc-table th {
    font-weight: 600;
    background: #f5f5f5;
}

.cc-table .cc-actions {
    white-space: nowrap;
}

.cc-table tr.cc-inactive td {
    color: #595959;
    font-style: italic;
}

.cc-table tr.cc-org-row td {
    border-top: 2px solid #ddd;
}

.cc-table tr.cc-org-row .cc-org-name {
    font-weight: 600;
}

.cc-table tr.cc-site-row td:nth-child(2) {
    padding-left: 20px;
}

.cc-empty-state {
    font-style: italic;
    color: #595959;
    padding: 6px 0;
}

/* ========== ITEM ATTRIBUTE PANEL (shared side panel) ========== */

.ib-attr-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 75%;
    height: 100vh;
    background: #fff;
    border-left: 1px solid #d0d8e0;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
    overflow-y: auto;
    padding: 0 16px 16px 16px;
}

.ib-attr-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf0;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    background: #fff;
}

.ib-attr-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.ib-attr-panel-close {
    border: none;
    background: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
}

.ib-attr-panel-close:hover {
    color: #333;
}

.ib-attr-panel-section {
    margin-bottom: 16px;
}

.ib-attr-panel-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667788;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

/* Attribute rows: name | value, two columns; each value auto-saves
   on blur/change. Striping is scoped to the rows container so the
   section h4 doesn't offset the nth-child cadence. */
.ib-attr-rows {
    border: 1px solid #e8ecf0;
    border-radius: 6px;
    overflow: hidden;
}

.ib-attr-row {
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    align-items: start;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f2f5;
}

.ib-attr-row:last-child {
    border-bottom: none;
}

.ib-attr-rows > .ib-attr-row:nth-child(even) {
    background: #fafbfc;
}

.ib-attr-name {
    font-weight: 600;
    font-size: 0.85em;
    color: #334;
    align-self: center;
    overflow-wrap: anywhere;
}

.ib-attr-value {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font: inherit;
    line-height: 1.3;
    /* rows=1 in markup gives a single-line default; vertical-only
       resize lets authors grow the field for long values without
       disturbing the column layout. */
    resize: vertical;
    min-height: calc(1.3em + 10px);
    overflow: auto;
}

.ib-attr-value:disabled {
    background: #f6f7f9;
    color: #555;
    cursor: not-allowed;
}

/* Alignment two-column scroll layout */
.ib-align-scroll {
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
}

/* Stacked alignments (owner direction 2026-08-13): each target (whole item /
   assertion) is a BLACK header row with white text; its aligned standards
   follow as black-on-white rows indented 5em for visual distinction. */
.ib-align-target-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    color: #ffffff;
    padding: 7px 12px;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.4;
}

.ib-align-target-text {
    flex: 1;
    min-width: 0;
}

.ib-align-target-row .ib-align-add-btn {
    margin-top: 0;
    flex-shrink: 0;
}

.ib-align-assertion-inf {
    color: #ccd;
    font-style: italic;
    margin-top: 2px;
}

.ib-align-standards-stack {
    margin-left: 5em;
    padding: 6px 12px 8px 0;
    font-size: 0.85em;
    color: #1a1a1a;
    background: #ffffff;
}

/* The assertion dialog's aligned-standards section (AssertionPanel) still
   uses this class for its list body. */
.ib-align-standards {
    padding: 8px 12px;
    font-size: 0.85em;
}

.ib-align-std-row {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 1px 0;
}

.ib-align-std-fw {
    color: #889;
    min-width: 60px;
}

/* Standards text: the FULL statement stays in the DOM, clamped to one line;
   hovering (or keyboard-focusing) the row reveals the whole text IN PLACE.
   Native title tooltips were too slow/unreliable for long CASE statements. */
.ib-align-std-code {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ib-align-std-row:hover .ib-align-std-code,
.ib-align-std-row:focus-within .ib-align-std-code,
.ib-align-std-row:focus .ib-align-std-code {
    white-space: normal;
    overflow: visible;
}

/* Blocked notice when the bank targets no framework (no "+" buttons rendered). */
.ib-align-blocked {
    margin: 0 0 8px 0;
    padding: 8px 10px;
    font-size: 0.82em;
    line-height: 1.4;
    color: #6b3d00;
    background: #fff6e6;
    border: 1px solid #f0d59a;
    border-radius: 6px;
}

/* "+" add-alignment affordance at the end of each target's standards cell. */
.ib-align-add-btn {
    margin-top: 6px;
    width: 26px;
    height: 26px;
    line-height: 1;
    font-size: 1.05em;
    font-weight: 700;
    color: #fff;
    background: var(--jcmaBlue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.ib-align-add-btn:hover {
    filter: brightness(1.08);
}

.ib-align-add-btn:focus-visible {
    outline: 3px solid #1d3a6b;
    outline-offset: 2px;
}

/* ---------- Add-alignment dialog (search + browsable tree) ---------- */
.ib-align-dlg {
    min-width: 420px;
    max-width: 560px;
}

.ib-align-dlg-search {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.ib-align-dlg-search input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    font-size: 0.9em;
}

.ib-align-dlg-search input:focus-visible {
    outline: 3px solid var(--jcmaBlue);
    outline-offset: 1px;
}

.ib-align-dlg-results {
    max-height: 26vh;
    overflow-y: auto;
}

.ib-align-dlg-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #556;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 10px 0 6px;
}

.ib-align-dlg-divider::before,
.ib-align-dlg-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #dfe4ea;
}

.ib-align-dlg-divider span {
    padding: 0 10px;
}

.ib-align-dlg-tree {
    max-height: 34vh;
    overflow-y: auto;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
    padding: 4px 6px;
}

/* A selectable standard row (checkbox + code + description) — used by results and tree. */
.ib-align-dlg-std {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 4px;
    font-size: 0.86em;
    line-height: 1.35;
    cursor: pointer;
    border-radius: 4px;
}

.ib-align-dlg-std:hover {
    background: #eef4fb;
}

.ib-align-dlg-std input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    align-self: center;
    cursor: pointer;
}

/* Same one-line clamp + in-place hover/focus reveal for the add-alignment
   dialog's search results, tree standards, and tree headings. */
.ib-align-dlg-std-info {
    flex: 1;
    min-width: 0;
    color: #223;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ib-align-dlg-std:hover .ib-align-dlg-std-info,
.ib-align-dlg-std:focus-within .ib-align-dlg-std-info,
.ib-align-tree-row:hover .ib-align-dlg-std-info,
.ib-align-tree-row:focus-within .ib-align-dlg-std-info {
    white-space: normal;
    overflow: visible;
}

.ib-align-dlg-std-desc {
    color: #445;
}

.ib-align-dlg-hint {
    color: #556;
    font-size: 0.82em;
    padding: 6px 2px;
}

/* Tree scaffolding inside the dialog. */
.ib-align-tree {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.ib-align-tree .ib-align-tree {
    padding-left: 1.3em;
}

.ib-align-tree-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ib-align-tree-toggle {
    flex: 0 0 auto;
    width: 1.4em;
    border: none;
    background: none;
    color: #445;
    cursor: pointer;
    font-size: 0.9em;
}

.ib-align-tree-toggle:focus-visible {
    outline: 2px solid var(--jcmaBlue);
    outline-offset: 1px;
    border-radius: 3px;
}

.ib-align-tree-spacer {
    display: inline-block;
    width: 1.4em;
    flex: 0 0 auto;
}

.ib-align-tree-heading {
    font-size: 0.86em;
    color: #334;
}

.ib-align-dlg-count {
    flex: 1;
    color: #445;
    font-size: 0.85em;
}

/* ========== ITEM HISTORY TOGGLE ========== */

.ih-toggle-btn {
    padding: 6px 14px;
    border: 1px solid #d0d8e0;
    border-radius: 6px;
    background: #fff;
    color: #445566;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.ih-toggle-btn.ih-toggle-active {
    background: var(--jcmaBlue);
    color: #fff;
    border-color: var(--jcmaBlue);
}

.ih-attr-history {
    width: 100%;
}

.ih-attr-history h4 {
    margin: 12px 0 8px 0;
}

/* ========== ITEM BANK DASHBOARD ========== */

/* --- Dashboard root & grid layout (§10.3) --- */
.ib-dash-root {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 24px;
    padding: 32px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.ib-dash-root > h2 {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--purpleText);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.ib-dash-full-width {
    grid-column: 1 / -1;
}

/* --- Filter side panel (collapsible accordion) --- */
.ib-dash-shell {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.ib-dash-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ib-dash-side {
    /* width AND min-width: a flex item's min-width:auto floors it at its
       content's natural width, so flex-basis alone cannot narrow the
       panel below the widest accordion head. */
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
    min-width: 0;
    position: sticky;
    top: 0;
    align-self: stretch;
    background: #fff;
    border-right: 1px solid #e8ecf0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ib-dash-side-collapsed {
    flex: 0 0 42px;
    width: 42px;
    max-width: 42px;
}

/* User-resize grip beside a docked panel (MT.PanelResizer: drag, or
   arrow keys when focused; double-click resets). A flex SIBLING of the
   panel, never a child — a panel that scrolls its own content would
   clip an edge-hugging child. Shared by every sizable side panel. */
.mt-panel-resize {
    flex: 0 0 6px;
    align-self: stretch;
    min-height: 40px;
    cursor: col-resize;
    border-radius: 3px;
    background: #e8ecf0;
}

.mt-panel-resize:hover,
.mt-panel-resize:focus-visible {
    background: var(--jcmaBlue);
    outline: none;
}

.mt-panel-resize-hidden {
    display: none;
}

/* The pointer outruns the 6px grip mid-drag; keep the resize cursor
   page-wide and suppress text selection until the drag ends. */
.mt-panel-resizing,
.mt-panel-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

.ib-dash-side-collapsed .ib-dash-side-head h3,
.ib-dash-side-collapsed .ib-side-apply,
.ib-dash-side-collapsed .ib-dash-side-body {
    display: none;
}

.ib-dash-side-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #e8ecf0;
}

.ib-dash-side-head h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #52606e; /* 7.3:1 on white */
    margin: 0;
    white-space: nowrap;
    flex: 1 1 auto;
}

.ib-side-toggle {
    border: 1px solid #d0d8e0;
    border-radius: 6px;
    background: #fff;
    color: #3a4652;
    font-size: 1rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}

.ib-side-apply {
    flex: 1 1 auto;
    padding: 7px 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--jcmaBlue), #00a0d4);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.ib-dash-side-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px;
}

/* Accordion block heads: name over description, both truncated with the
   full text on the title tooltip; status area (warning triangle / badge)
   pinned right. */
.ib-facc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.ib-facc-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ib-facc-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ib-facc-desc {
    font-size: 0.75rem;
    color: #52606e; /* 7.3:1 on white */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ib-facc-status {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ib-facc-warn {
    width: 24px;
    height: 22px;
}

/* Closed-with-filter state: #1c3f5f on #fff badge text is 10.6:1 and the
   white head text on #1c3f5f is the same pair reversed — WCAG AAA. The
   badge count doubles as the non-color cue. */
.ib-facc-head.ib-facc-active {
    background: #1c3f5f;
}

.ib-facc-head.ib-facc-active .ib-facc-name,
.ib-facc-head.ib-facc-active .ib-facc-desc {
    color: #ffffff;
}

.ib-facc-badge {
    background: #ffffff;
    color: #1c3f5f;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    padding: 1px 6px;
}

.ib-facc-head.ib-facc-disabled,
.waf-acc-disabled .ib-facc-head {
    cursor: default;
    opacity: 0.55;
}

.ib-facc-body {
    padding: 6px 10px 12px 10px;
}

.ib-facc-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ib-facc-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 3px 2px;
    cursor: pointer;
}

.ib-facc-range {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ib-facc-bound {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #52606e;
}

.ib-facc-bound input,
.ib-facc-textinput {
    padding: 6px 10px;
    border: 1px solid #d0d8e0;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.ib-facc-bound input:focus,
.ib-facc-textinput:focus {
    outline: none;
    border-color: var(--jcmaBlue);
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

/* --- Dashboard panel (shared card style) --- */
.ib-dash-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 24px;
    animation: ibPanelFadeIn 0.3s ease-out both;
    position: relative;
    overflow: hidden;
}

.ib-dash-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--jcmaBlue), var(--jcmaPurple));
    border-radius: 14px 14px 0 0;
}

.ib-dash-panel h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8899aa;
    margin: 0 0 16px 0;
}

/* --- Summary cards (inventory panel) --- */
.ib-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ib-card {
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.ib-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ib-card-count {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.ib-card-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Card color variants */
.ib-card-ready {
    background: linear-gradient(135deg, #e8faf0, #d0f5e0);
    border: 1px solid #b8ead0;
}
.ib-card-ready .ib-card-count { color: #0d8050; }
.ib-card-ready .ib-card-label { color: #3a7d5c; }

.ib-card-inprogress {
    background: linear-gradient(135deg, #e6f4ff, #d0eaff);
    border: 1px solid #b0d8f5;
}
.ib-card-inprogress .ib-card-count { color: #0060b0; }
.ib-card-inprogress .ib-card-label { color: #3a6d90; }

.ib-card-archived {
    background: linear-gradient(135deg, #f5f5f8, #eaeaf0);
    border: 1px solid #d8d8e0;
}
.ib-card-archived .ib-card-count { color: #555568; }
.ib-card-archived .ib-card-label { color: #77778a; }

.ib-card-rejected {
    background: linear-gradient(135deg, #fff0ee, #ffe0da);
    border: 1px solid #f0c8c0;
}
.ib-card-rejected .ib-card-count { color: #c02020; }
.ib-card-rejected .ib-card-label { color: #904040; }

/* --- Chart containers --- */
.ib-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 260px;
}

.ib-chart-wrap canvas {
    max-width: 100%;
}

/* --- Coverage heatmap grid --- */
.ib-heatmap {
    display: grid;
    gap: 3px;
    margin-top: 12px;
}

.ib-heatmap-cell {
    border-radius: 4px;
    min-width: 40px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ib-heatmap-cell:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.ib-heatmap-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #667788;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Heatmap intensity scale (0–5+) */
.ib-heat-0 { background: #f0f2f5; color: #aab4c0; }
.ib-heat-1 { background: #b8d4f0; color: #1a4d7a; }
.ib-heat-2 { background: #7ab8e0; color: #fff; }
.ib-heat-3 { background: #3d9dd0; color: #fff; }
.ib-heat-4 { background: #1a80b8; color: #fff; }
.ib-heat-5 { background: #0060a0; color: #fff; }

/* --- Ready-items panel: bounded scrollable table --- */
.ib-ready-scroll {
    width: 100%;
    max-height: 28rem;
    overflow-y: auto;
    overflow-x: hidden;
}
.ib-ready-scroll table {
    width: 100%;
    table-layout: fixed;
}
.ib-ready-scroll th,
.ib-ready-scroll td {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* --- Lazy-load buttons --- */
.ib-dash-panel button.ib-load-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    background: #fff;
    color: #445566;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ib-dash-panel button.ib-load-btn:hover {
    background: var(--blueBackground);
    border-color: var(--jcmaBlue);
    color: #003355;
}

/* --- DeleteBankView --- */
.db-root {
    padding: 24px;
    max-width: 720px;
}
.db-root h2 {
    color: #882222;
    margin-top: 0;
}
.db-intro {
    color: #555;
    margin-bottom: 16px;
}
.db-panel {
    border: 2px solid #cc3344;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fff8f8;
}
.db-row {
    margin: 12px 0;
}
.db-warn {
    background: #fff3f3;
    color: #882222;
    border-left: 4px solid #cc3344;
    padding: 8px 12px;
    margin: 12px 0;
}
.db-picker {
    padding: 4px 8px;
    min-width: 280px;
}
.db-input {
    margin-left: 8px;
    padding: 4px 8px;
    min-width: 240px;
}
.db-danger-btn {
    background: #cc3344;
    color: #fff;
    border: 1px solid #aa2233;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
}
.db-danger-btn:hover:not(:disabled) {
    background: #aa2233;
    border-color: #882222;
}
.db-danger-btn:disabled {
    background: #cc8888;
    border-color: #aa6666;
    cursor: not-allowed;
}
.db-status {
    margin-top: 16px;
    padding: 8px;
    color: #444;
}
.db-status-line {
    margin: 4px 0;
}

/* --- Search section --- */
.ib-dash-search {
    grid-column: 1 / -1;
}

.ib-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.ib-search-bar input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d0d8e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ib-search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--jcmaBlue);
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

.ib-search-bar button {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--jcmaPurple), #7a20b0);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
}

.ib-search-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(94, 6, 145, 0.3);
}

/* --- Empty state --- */
.ib-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #99aabb;
    font-size: 0.95rem;
    font-style: italic;
}

/* --- Stat metric row --- */
.ib-stat-metrics {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ib-stat-metric {
    background: var(--blueBackground);
    border-radius: 10px;
    padding: 14px 20px;
    min-width: 160px;
    flex: 1;
}

.ib-stat-metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--purpleText);
    display: block;
}

.ib-stat-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6688aa;
    display: block;
    margin-top: 2px;
}

/* --- Animations --- */
@keyframes ibPanelFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ibCountUp {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

.ib-card-count {
    animation: ibCountUp 0.4s ease-out both;
}

.ib-dash-panel:nth-child(2) { animation-delay: 0.05s; }
.ib-dash-panel:nth-child(3) { animation-delay: 0.1s; }
.ib-dash-panel:nth-child(4) { animation-delay: 0.15s; }
.ib-dash-panel:nth-child(5) { animation-delay: 0.2s; }
.ib-dash-panel:nth-child(6) { animation-delay: 0.25s; }
.ib-dash-panel:nth-child(7) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .ib-dash-panel,
    .ib-card-count,
    .ib-heatmap-cell,
    .ib-card {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive: stack to single column on narrow viewports */
@media (max-width: 900px) {
    .ib-dash-root {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    .ib-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================== IMPORT VIEW ===================== */

.imp-status {
    min-height: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: var(--purpleText);
}

.imp-content {
    padding: 0 8px 24px 8px;
}

.imp-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    max-width: 720px;
}

.imp-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jcmaPurple);
}

.imp-card h4 {
    margin: 16px 0 8px 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #556677;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.imp-target-fieldset {
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    background: #fff;
}

.imp-target-fieldset legend {
    font-size: 0.8rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 6px;
}

.imp-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #223344;
}

.imp-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--jcmaBlue);
}

.imp-file-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.imp-file-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.imp-input,
.imp-select {
    padding: 10px 14px;
    border: 1px solid #d0d8e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    color: #223344;
    margin-bottom: 12px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.imp-input:focus,
.imp-select:focus {
    outline: none;
    border-color: var(--jcmaBlue);
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

/* Selectors include the `button` tag so specificity beats the
   global `.Dialog_window button { background-color: #151616 }` rule
   at line 207 — otherwise dialog context inverts the palette and the
   purple text lands on near-black. Hover and focus use border-color
   and a soft shadow (not background) so the button surface stays
   white and the focus indicator is visible to keyboard users. */
/* Primary action button. AAA-compliant — same guarantees as
   .Button_window: text 10.8:1, border 7.8:1 on white, focus
   outline uses --jcmaPurple (10.8:1) with 3px thickness and
   offset for 2.4.13 Focus Appearance. Taller (min-height 44px)
   and heavier type-weight to read as the primary call-to-action. */
button.imp-btn-primary {
    padding: 13px 28px;
    border: 2px solid #4a5568;
    border-radius: 10px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 700;
    font-size: 0.95rem;
    min-height: 44px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    letter-spacing: 0.02em;
    box-shadow: 0 3px 10px rgba(94, 6, 145, 0.15);
}

button.imp-btn-primary:hover:not(:disabled) {
    border-color: var(--jcmaPurple);
    box-shadow: 0 6px 16px rgba(94, 6, 145, 0.25);
    transform: translateY(-1px);
}

button.imp-btn-primary:focus-visible {
    outline: 3px solid var(--jcmaPurple);
    outline-offset: 2px;
}

button.imp-btn-primary:disabled {
    background: #f2f4f6;
    color: #b0b8c0;
    border-color: #e0e4e8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Secondary button. Shares the AAA guarantees above but in a
   lighter visual weight for inline actions (like the Associated
   Stimuli "Add" button on item-editor toolbars). */
button.imp-btn-secondary {
    padding: 13px 22px;
    border: 1px solid #4a5568;
    border-radius: 10px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 44px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    margin-bottom: 12px;
}

button.imp-btn-secondary:hover:not(:disabled) {
    border-color: var(--jcmaPurple);
    box-shadow: 0 2px 8px rgba(94, 6, 145, 0.20);
    transform: translateY(-1px);
}

button.imp-btn-secondary:focus-visible {
    outline: 3px solid var(--jcmaPurple);
    outline-offset: 2px;
}

/* Mirrors imp-btn-primary:disabled so an initially-disabled secondary
   (e.g. QueueTable's "Delete selected") visibly reads as disabled.
   Disabled controls are exempt from contrast minimums (1.4.3/1.4.6). */
button.imp-btn-secondary:disabled {
    background: #f2f4f6;
    color: #b0b8c0;
    border-color: #e0e4e8;
    cursor: not-allowed;
    box-shadow: none;
}

.imp-import-btn {
    margin-top: 16px;
    display: block;
}

.imp-sidecar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.imp-sidecar-list li {
    padding: 6px 12px;
    background: #d6f7dc;
    color: #1f6b33;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.imp-unknown-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.imp-unknown-list li {
    padding: 6px 12px;
    background: #fff4cc;
    color: #8a6100;
    border-radius: 8px;
    margin-bottom: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

.imp-dlg-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e8ecf0;
}

.imp-new-bank-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf0;
}

.imp-new-bank-section label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

.imp-attr-list {
    max-height: 240px;
    overflow: auto;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 8px;
    background: #f7fbfe;
}

/* Selection groups on the preview dialog — one section for items,
   one for stimuli. Each renders a header, a select-all/deselect-all
   toolbar, and a checkbox table the user uses to opt in or out per
   identifier. */
.imp-selection-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf0;
}

.imp-selection-group {
    margin-bottom: 12px;
}

.imp-selection-group h4 {
    margin: 0 0 6px 0;
}

.imp-selection-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.imp-selection-table {
    width: 100%;
    border-collapse: collapse;
    max-height: 240px;
    display: block;
    overflow: auto;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    background: #f7fbfe;
}

.imp-selection-table th,
.imp-selection-table td {
    padding: 4px 8px;
    text-align: left;
    font-size: 0.9rem;
    color: #334455;
    border-bottom: 1px solid #eef2f5;
}

.imp-selection-table th {
    font-weight: 600;
    background: #eef4f9;
    position: sticky;
    top: 0;
}

.imp-selection-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--jcmaBlue);
}

.imp-attr-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    text-transform: none !important;
    font-size: 0.9rem !important;
    color: #334455 !important;
    cursor: pointer;
}

.imp-attr-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--jcmaBlue);
}

.imp-detected-attrs-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf0;
}

.imp-detected-attrs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.imp-detected-attrs-toolbar h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #334455;
}

.imp-detected-attrs-toolbar-btns {
    display: flex;
    gap: 8px;
}

.imp-detected-attrs-scroll {
    max-height: 18em;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #d6dde4;
    border-radius: 10px;
    background: #fbfdff;
}

.imp-detected-attrs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.imp-detected-attr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.9rem;
    color: #334455;
}

.imp-detected-attr-item:last-child {
    border-bottom: none;
}

.imp-detected-attr-item:nth-child(even) {
    background: #f4f8fb;
}

.imp-detected-attr-name {
    flex: 1;
    word-break: break-word;
}

.imp-detected-attr-name em {
    color: #889;
    font-style: normal;
    font-size: 0.82rem;
    margin-left: 6px;
}

.imp-attr-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e6f4ea;
    color: #2a7a3a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.imp-attr-badge-on {
    background: #e6f4ea;
    color: #2a7a3a;
}

.imp-result {
    border-left: 4px solid var(--jcmaBlue);
}

.imp-error-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.imp-error-list li {
    padding: 6px 12px;
    background: #fad5d5;
    color: #8a1f1f;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

/* Queue display */

.imp-queue-heading {
    margin: 24px 0 12px 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--jcmaPurple);
}

.imp-queue {
    padding: 0 8px;
}

.imp-queue-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.imp-queue-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: #f7fbfe;
    color: var(--jcmaPurple);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e1e8ef;
}

.imp-queue-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f5;
    color: #334455;
    font-size: 0.9rem;
    vertical-align: middle;
    height: 44px;
}

.imp-queue-table tbody tr:hover td {
    background: #f7fbfe;
}

.imp-empty {
    text-align: center;
    padding: 24px 16px;
    color: #99aabb;
    font-style: italic;
    font-size: 0.95rem;
}

.imp-error-msg {
    color: #8a1f1f;
    font-size: 0.85rem;
    font-style: italic;
}

.imp-unknown-banner {
    padding: 10px 14px;
    background: #fff4cc;
    color: #8a6100;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 0.9rem;
}

/* ========== SIMULATION LABEL EDITORS ========== */

/* ===================== PUBLICATION VIEW ===================== */

.pub-status {
    min-height: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: var(--purpleText);
}

.pub-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e8ecf0;
    margin: 12px 0 20px 0;
    padding: 0 4px;
}

.pub-tabs [role="tab"] {
    padding: 10px 22px;
    border: none;
    background: transparent;
    color: #556677;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    border-radius: 8px 8px 0 0;
}

.pub-tabs [role="tab"]:hover {
    color: var(--jcmaPurple);
    background: rgba(94, 6, 145, 0.04);
}

.pub-tabs [role="tab"][aria-selected="true"] {
    color: var(--jcmaPurple);
    border-bottom-color: var(--jcmaBlue);
    background: transparent;
}

.pub-content {
    padding: 0 8px 24px 8px;
}

/* --- Summary header + selected-items card --- */

.pub-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 8px 0 12px 0;
}

.pub-summary h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jcmaPurple);
    letter-spacing: 0.01em;
}

.pub-selected-container {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
    max-height: 340px;
    overflow: auto;
}

.pub-empty {
    text-align: center;
    padding: 18px;
    color: #99aabb;
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
}

/* --- Action buttons row (Add from list / batches / spreadsheet / clear) --- */

.pub-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pub-action-buttons button {
    padding: 9px 18px;
    border: 1px solid #d0d8e0;
    border-radius: 10px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.pub-action-buttons button:hover:not(:disabled) {
    border-color: var(--jcmaBlue);
    box-shadow: 0 3px 10px rgba(0, 194, 244, 0.15);
    transform: translateY(-1px);
    background: #fff;
}

.pub-action-buttons button:active:not(:disabled) {
    transform: translateY(0);
}

.pub-action-buttons button:disabled {
    color: #bbc4cd;
    border-color: #e8ecf0;
    cursor: not-allowed;
}

/* --- Publish form --- */

.pub-publish-form {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfe 100%);
    border: 1px solid #e1e8ef;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    max-width: 640px;
}

.pub-publish-form h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--jcmaPurple);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pub-name-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.pub-name-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pub-name-row input[type="text"] {
    padding: 10px 14px;
    border: 1px solid #d0d8e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    color: #223344;
}

.pub-name-row input[type="text"]:focus {
    outline: none;
    border-color: var(--jcmaBlue);
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

.pub-type-row {
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    background: #fff;
}

.pub-type-row legend {
    font-size: 0.8rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 6px;
}

.pub-type-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    font-size: 0.95rem;
    color: #223344;
    cursor: pointer;
}

.pub-type-row input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--jcmaBlue);
    cursor: pointer;
}

/* Publish primary button — bold gradient, stands out */
.pub-publish-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--jcmaBlue), var(--jcmaPurple));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
    letter-spacing: 0.02em;
    box-shadow: 0 3px 10px rgba(94, 6, 145, 0.2);
}

.pub-publish-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(94, 6, 145, 0.3);
}

.pub-publish-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pub-publish-btn:disabled {
    background: #c4ccd4;
    color: #eef2f5;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Dialog interior (all three pub dialogs) --- */

.pub-dlg-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.pub-dlg-search input[type="text"] {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #d0d8e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pub-dlg-search input[type="text"]:focus {
    outline: none;
    border-color: var(--jcmaBlue);
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

.pub-dlg-search button,
.pub-dlg-selall button {
    padding: 8px 16px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.pub-dlg-search button:hover,
.pub-dlg-selall button:hover {
    border-color: var(--jcmaBlue);
    box-shadow: 0 2px 6px rgba(0, 194, 244, 0.15);
    transform: translateY(-1px);
}

.pub-dlg-selall {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pub-dlg-tbl {
    max-height: 420px;
    overflow: auto;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

.pub-dlg-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e8ecf0;
}

.pub-dlg-actions button {
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
    border: 1px solid transparent;
}

/* First button in actions row = primary (Add Selected) */
.pub-dlg-actions button:first-child {
    background: linear-gradient(135deg, var(--jcmaBlue), #00a0d4);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 194, 244, 0.25);
}

.pub-dlg-actions button:first-child:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 194, 244, 0.35);
}

/* Second button = cancel (secondary) */
.pub-dlg-actions button:nth-child(2) {
    background: #fff;
    color: #667788;
    border-color: #d0d8e0;
}

.pub-dlg-actions button:nth-child(2):hover {
    border-color: #99aabb;
    color: #334455;
}

/* Spreadsheet dialog preview */

.pub-dlg-spreadsheet-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f7fbfe;
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #334455;
}

.pub-dlg-spreadsheet-ids {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #556677;
    word-break: break-all;
    max-height: 160px;
    overflow: auto;
    margin: 6px 0 0 0;
}

/* File input a bit nicer */
.pub-dlg-spreadsheet-preview + input[type="file"],
.pub-content input[type="file"] {
    font-size: 0.9rem;
    padding: 6px;
}

/* --- History tab --- */

.pub-hist-toggle {
    margin: 8px 0 16px 0;
}

.pub-hist-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #334455;
    cursor: pointer;
}

.pub-hist-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--jcmaBlue);
    cursor: pointer;
}

.pub-hist-table {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

/* Buttons inside the pub-* Table2D rows (Remove, Download etc.) */

.pub-selected-container .Table2D_body button,
.pub-hist-table .Table2D_body button {
    padding: 6px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 7px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.pub-selected-container .Table2D_body button:hover,
.pub-hist-table .Table2D_body button:hover {
    border-color: var(--jcmaBlue);
    color: var(--jcmaBlue);
    background: #f7fbfe;
    box-shadow: 0 2px 6px rgba(0, 194, 244, 0.15);
}

/* Reclassify select in history table */

.pub-hist-table .Table2D_body select {
    padding: 6px 8px;
    border: 1px solid #d0d8e0;
    border-radius: 7px;
    background: #fff;
    font-size: 0.85rem;
    color: var(--jcmaPurple);
    cursor: pointer;
}

.pub-hist-table .Table2D_body select:hover,
.pub-hist-table .Table2D_body select:focus {
    border-color: var(--jcmaBlue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 194, 244, 0.15);
}

/* ItemHistory publication-panel table (read-only) */

.ih-pub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ih-pub-table thead th {
    text-align: left;
    padding: 8px 12px;
    background: #f7fbfe;
    color: var(--jcmaPurple);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e1e8ef;
}

.ih-pub-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #eef2f5;
    color: #334455;
}

.ih-pub-table tbody tr:hover td {
    background: #f7fbfe;
}

/* Upgrade the existing .ih-btn to match the modern aesthetic */
.ih-btn {
    padding: 8px 16px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    background: #fff;
    color: var(--jcmaPurple);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s, background 0.15s;
}

.ih-btn:hover {
    border-color: var(--jcmaBlue);
    background: #f7fbfe;
    box-shadow: 0 2px 8px rgba(0, 194, 244, 0.15);
    transform: translateY(-1px);
}

/* ── Interaction Picker Panel ──────────────────────────────────────── */
.ip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 199;
    transition: background 0.25s ease;
}

.ip-overlay.ip-overlay--open {
    background: rgba(0, 0, 0, 0.4);
}

.ip-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 460px;
    background: #fff;
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.ip-panel.ip-panel--open {
    transform: translateX(0);
}

.ip-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    flex-shrink: 0;
}

.ip-panel-title {
    font-weight: 600;
    font-size: 1.23rem;
    color: var(--color-text-heading, var(--purpleText));
}

.ip-panel-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-text-base);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.ip-panel-close:hover {
    background: var(--color-surface);
}

.ip-panel-close:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

.ip-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.ip-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--touch-target-min);
    padding: 4px 8px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
    user-select: none;
}

.ip-category-title:hover {
    background: var(--color-hover-bg);
}

.ip-category-title:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

.ip-category-label {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-heading);
    transition: color 0.12s ease;
}

.ip-category-chevron {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-text-muted);
    margin-right: 8px;
}

.ip-category-chevron svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.ip-category-title--open .ip-category-chevron svg {
    transform: rotate(90deg);
}

.ip-category-items {
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.ip-type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: var(--touch-target-min);
    padding: 4px 8px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

.ip-type-card:hover {
    background: var(--color-hover-bg);
}

.ip-type-card:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

.ip-type-thumb {
    width: 36px;
    height: 28px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ip-type-info {
    flex: 1;
    min-width: 0;
}

.ip-type-name {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-base);
    line-height: 1.3;
}

.ip-type-desc {
    font-size: 1rem;
    color: var(--color-text-base);
    line-height: 1.3;
    margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ip-panel,
    .ip-overlay,
    .ip-category-chevron svg,
    .ip-category-title,
    .ip-category-label,
    .ip-type-card {
        transition: none;
    }
}



/* Workflow-config dialog intro. "Must be followed by" is the INVERSE of a
   prerequisite, and the two buttons sit side by side on the same row, so the
   explanation has to be readable, not a footnote. AAA contrast. */
.wc-dlg-intro {
    margin: 0 0 12px 0;
    max-width: 60ch;
    line-height: 1.5;
    color: #1a1a1a;
}

/* ---- Bank admin: role-grouped user-access roster (BankUserRosterPanel) ---- */

.ba-roster-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ba-roster-branch {
    border: 1px solid #C4BFD8;
    border-radius: 6px;
    margin-bottom: 6px;
    background-color: #fff;
}

.ba-roster-role {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: none;
    background-color: transparent;
    font-weight: bold;
    cursor: pointer;
}

.ba-roster-role:hover {
    background-color: #F3EEFF;
}

.ba-roster-arrow {
    width: 1em;
}

.ba-roster-users {
    list-style: none;
    margin: 0;
    padding: 2px 10px 8px 30px;
    max-height: 16em;
    overflow-y: auto;
}

.ba-roster-user > label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 2px;
    cursor: pointer;
}

.ba-roster-user input[disabled] + span {
    color: #8D899E;
}

.ba-roster-wide {
    color: #534E6B;
    font-size: 0.85em;
    font-style: italic;
    margin-left: 6px;
}
