﻿/* ===== Design Tokens ===== */
:root {
    /* Breakpoints (reference only — CSS can't use vars in @media) */
    /* --bp-phone:  480px  */
    /* --bp-tablet: 768px  */
    /* --bp-desktop: 1024px */

    /* Spacing scale */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Colors — extracted from existing hard-coded values */
    --color-bg:          #f2f2f2;
    --color-surface:     #ffffff;
    --color-header-bg:   #333333;
    --color-header-text: #ffffff;
    --color-border:      #000000;
    --color-accent:      #33bbee;
    --color-error:       #ff5858;
    --color-divider:     lightgray;
    --color-muted:       grey;

    /* Typography */
    --font-family: Helvetica, 'Segoe UI', sans-serif;
    --font-size-base: 12px;
    --font-size-sm:   11px;
    --font-size-lg:   16px;

    /* Layout */
    --header-height:  50px;
    --toolbar-height: 22px;
    --sidebar-width: 275px;
    --touch-target-min: 44px;  /* Apple HIG / WCAG minimum */
}

* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100vh;
    max-width: 100vw;
    overflow: hidden;
    background-color: #f2f2f2
}

body {
    position: relative;
    width: 100%;
    /*min-width:1024px; */
    height: 100%;
    /*min-height:600px;*/
    padding: 0px;
    margin: auto auto;
    font-family: Helvetica, Segoe UI;
    font-size: 12px;
    /*-webkit-user-select: none;*/ /* disable cut copy paste */
    -webkit-touch-callout: none; /* disable callout, image save panel */
    -webkit-tap-highlight-color: transparent; /* "turn off" link highlight */
    overflow: hidden;
}

/* Buttons don't inherit -webkit-tap-highlight-color from body.
   Suppress the default blue tap flash and focus ring globally so
   they don't interfere with our own selection colors (.selected4). */
button {
    -webkit-tap-highlight-color: transparent;
}
/* Remove persistent blue focus ring/color after tapping a button.
   :focus-visible still fires for keyboard navigation (accessibility).
   Only reset outline/box-shadow — do NOT reset background/border/color
   because inherit would override class-based colors (.selected4 etc). */
button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}
.rowNumber::before {
    counter-increment: table;
    content: counter(table);
    padding-left: 5px;
}

.grid {
    display: grid;
}

.gridJustityCenter {
    justify-content: center;
}

.relativeContainer {
    position: relative;
}

.absoluteScroll {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    overflow-y: auto;
}

.absoluteScroll2 {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    overflow-y: scroll;
}

.headerButton, headerButtonSelected {
    padding: 0px;
    height: 33px;
    margin-left: 4px;
}

.headerButtonSelected {
    color: white;
    background-color: grey;
    font-weight: bold;
}

.headerTitle {
    font-weight: 100;
    font-size: x-large;
}

.toolbarButton {
    padding: 0px;
    height: 25px;
    margin-right: 4px;
}

.divider {
    background-color: black;
}

.buttonActivated {
    color: green;
}

.ui-dialog-titlebar {
    display: none;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-12px, 6px);
    transform: translate(0px, 10px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-12px, -6px);
    transform: translate(0px, -8px) rotate(45deg);
}

.SystemVMHeader {
    background-color: #333333;
    color: white;
}

.SystemVMHeaderDev {
    background-color: goldenrod;
    color: white;
    font-weight: bold;
}

/* ==========================================================================
   ORDER LIST — base (desktop-first) defaults
   ========================================================================== */
.orderListHeader,
.orderListFilters,
.orderListRow {
    grid-template-columns: 100px 80px 80px 80px 60px 60px 100px 100px 100px 120px 120px 1fr;
}
.olc-card-body {
    display: none;
}

/* ==========================================================================
   ORDER LAYOUT — content wrapper & detail panel sizing
   ========================================================================== */

/* The wrapper fills the ManagerVMContent area */
.orderContentWrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* Order list pane: fills remaining space, scrolls internally */
.orderListPane {
    flex: 1 1 0%;
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* --- Side-by-side layout (always active on desktop) --- */
.order-layout-side-by-side .orderDetailPanel {
    position: relative;
    flex: 0 0 600px;
    width: 600px;
    height: 100%;
}
.order-layout-side-by-side .orderDetailPanel.orderDetailPanel--collapsed {
    flex: 0 0 33px;
    width: 33px;
}

#renewalTabulator,
#subscriptionTabulator {
    font-size: 13px !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   See also: optikam.mobile.css  (max-width 1023px)
             optikam.webapp.css  (standalone/homescreen overrides)
             optikam.tablet.css  (max-width 768px)
             optikam.phone.css   (max-width 480px)
   ========================================================================== */

/* --- Desktop (≥ 1024px) --- */
@media all and (min-width: 1024px) {

    body {
        min-width: 1024px;
        min-height: 600px;
    }

    #MainManagerVMMenu {
        display: block;
    }

    /* Order list 12-column layout — only on desktop */
    .orderListHeader,
    .orderListFilters,
    .orderListRow {
        grid-template-columns: 100px 80px 80px 80px 60px 60px 100px 100px 100px 120px 120px 1fr;
    }

    /* Hide the mobile card body on desktop */
    .olc-card-body {
        display: none !important;
    }

    /* Desktop: icons hidden, text labels shown.
       !important needed because fontawesome.min.css loads AFTER
       optikam.css and sets display:inline-block on .fal/.fas etc. */
    .headerBtnIcon {
        display: none !important;
    }
    .headerBtnLabel {
        display: inline !important;
    }

    /* Desktop: show toggle chevrons, hide back button */
    .orderDetailBackBtn {
        display: none !important;
    }
    .orderDetailToggle {
        /* No !important — let Knockout's visible binding control display:none
           on the inactive toggle. The inline style="display:grid" or the
           class="grid" ensures the visible one renders as grid. */
    }
}

/* ── Slide-in animations for mobile overlay panels ── */
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* Backdrop base — hidden by default, activated via JS class toggle */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    width: 100vw;
    bottom: 56px;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

/* Mobile bottom toolbar — hidden by default, shown on mobile via media query */
#MobileBottomToolbar {
    display: none;
}

.ui-dialog {
    z-index: 1051 !important;
}

.ui-dialog .ui-dialog-buttonpane button {
    font-size: 16px;
}

/* DialogVM Ok / Cancel buttons */
#DialogVM #okButton,
#DialogVM #cancelButton {
    font-size: 16px;
}

/* Ensure jQuery UI modal overlay covers everything including other dialogs */
.ui-widget-overlay {
    z-index: 1050 !important;
}

/* Base defaults: back button hidden, toggles visible (overridden in mobile) */
.orderDetailBackBtn {
    display: none;
}

.pac-container {
    z-index: 1100 !important;
}

/* Google Places Autocomplete — 2-line items (desktop) */
.pac-container .pac-item {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    padding: 8px 10px !important;
    line-height: 1.4 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}
.pac-container .pac-item .pac-item-query {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    flex: 1 !important;
    min-width: 0 !important;
}
.pac-container .pac-item .pac-icon {
    margin-top: 3px !important;
    flex-shrink: 0 !important;
}
.pac-container .pac-item > span:last-child {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    width: 100% !important;
    padding-left: 24px !important;
    font-size: 13px !important;
    color: #666 !important;
}

/* Account config settings view */
#AccountConfigManagerVM {
    --config-blue: #1187b8;
    --config-blue-strong: #0b6f98;
    --config-blue-soft: #d9eef7;
    --config-blue-surface: #edf6fa;
    --config-blue-border: #8fc3d6;
    --config-blue-muted: #294451;
    --config-blue-text: #14242c;
    --config-blue-accent-text: #102028;
    --config-shadow: 0 12px 30px rgba(13, 103, 132, 0.12);
    --config-shadow-soft: 0 6px 18px rgba(13, 103, 132, 0.1);
}

#AccountConfigManagerVM .config-info-button {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--config-blue-strong);
    border-radius: 10px;
    background: var(--config-blue);
    color: #ffffff;
    box-shadow: var(--config-shadow-soft);
    line-height: 1;
}

#AccountConfigManagerVM .config-info-button i {
    font-size: 16px;
    line-height: 1;
}

#AccountConfigManagerVM .config-info-button-sm {
    width: 28px;
    height: 28px;
}

#AccountConfigManagerVM .config-info-button-md {
    width: 34px;
    height: 34px;
}

#AccountConfigManagerVM .config-section-card {
    border: 1px solid var(--config-blue-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--config-shadow);
    overflow: hidden;
}

#AccountConfigManagerVM .config-section-header {
    background: var(--config-blue);
    border-bottom: 1px solid rgba(8, 61, 84, 0.24);
}

#AccountConfigManagerVM .config-subsection-header {
    background: var(--config-blue-soft);
    border: 1px solid var(--config-blue-border);
    box-shadow: var(--config-shadow-soft);
}

#AccountConfigManagerVM .config-filter-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid black;
    background: var(--config-blue-soft);
    color: #000000;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(17, 135, 184, 0.24);
}

#AccountConfigManagerVM .config-filter-chip-active {
    background: var(--config-blue-strong);
    border-color: black;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(11, 111, 152, 0.34);
}

#AccountConfigManagerVM .config-filter-chip-disabled,
#AccountConfigManagerVM .config-filter-chip:disabled {
    background: #d7e4ea;
    border-color: #b8cad3;
    color: #5f737d;
    box-shadow: none;
    cursor: not-allowed;
}
#AccountConfigManagerVM .config-utility-button {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #cfdbe1;
    background: #ffffff;
    color: var(--config-blue-text);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(20, 36, 44, 0.08);
}

#AccountConfigManagerVM .config-summary-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 10px;
    border-bottom: 1px solid var(--config-blue-border);
    background: var(--config-blue-surface);
    position: relative;
    z-index: 6;
    flex: 0 0 auto;
}

#AccountConfigManagerVM .config-summary-title {
    font-size: 17px;
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-summary-subtitle {
    font-size: 12px;
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-summary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

#AccountConfigManagerVM .config-toggle-pill {
    padding: 6px 12px;
    border: 1px solid var(--config-blue-border);
    background: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

#AccountConfigManagerVM .ManagerVMContent {
    display: flex;
    flex-direction: column;
}

#AccountConfigManagerVM .config-manager-body {
    position: relative;
    flex: 1;
    min-height: 0;
}

#AccountConfigManagerVM .config-manager-scroll {
    top: 0;
}

#AccountConfigManagerVM .config-manager-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding-top: 50px;
    background-color: white;
}

#AccountConfigManagerVM .config-manager-overlay-icon {
    margin-right: 10px;
}

#AccountConfigManagerVM .config-manager-overlay-note {
    font-size: 14px;
    font-weight: normal;
}

#AccountConfigManagerVM .config-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-friendly-layout {
    display: grid;
    row-gap: 12px;
    padding: 10px 10px 16px;
    background: var(--config-blue-surface);
}

#AccountConfigManagerVM .config-expert-layout {
    display: grid;
    row-gap: 8px;
    padding: 8px;
}

#AccountConfigManagerVM .config-expert-quick-settings {
    margin-top: 2px;
}

#AccountConfigManagerVM .config-expert-active-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 4px 2px;
}

#AccountConfigManagerVM .config-expert-active-label {
    font-size: 12px;
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-expert-active-chip {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef3ff;
    color: #234;
}

#AccountConfigManagerVM .config-expert-active-chip-drifted {
    background: #fff3cd;
    color: #8a5a00;
}

#AccountConfigManagerVM .config-expert-header-row,
#AccountConfigManagerVM .config-expert-row {
    display: grid;
    grid-template-columns: 72px 72px 150px 220px minmax(360px, 1fr) 170px 44px;
    grid-column-gap: 8px;
}

#AccountConfigManagerVM .config-expert-header-row {
    align-items: center;
    min-height: 25px;
    padding: 0 0 4px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 72px;
    background: #fff;
    z-index: 2;
}

#AccountConfigManagerVM .config-expert-header-center,
#AccountConfigManagerVM .config-expert-center {
    text-align: center;
}

#AccountConfigManagerVM .config-expert-row {
    align-items: start;
    min-height: 58px;
    padding: 6px 0;
}

#AccountConfigManagerVM .config-expert-control-cell {
    min-height: 32px;
    display: grid;
    align-items: start;
}

#AccountConfigManagerVM .config-expert-parent-state {
    width: 100%;
    min-height: 32px;
    padding: 0 4px;
    border: 1px solid #c2c2c2;
    border-radius: 10px;
    text-align: center;
    background-color: lightgrey;
    display: grid;
    align-items: center;
    justify-items: center;
    color: #2a2a2a;
    cursor: default;
    font-size: 11px;
}

#AccountConfigManagerVM .config-expert-parent-state-override {
    color: red;
}

#AccountConfigManagerVM .config-expert-parent-state-clickable {
    cursor: pointer;
}

#AccountConfigManagerVM button.config-expert-parent-state:disabled {
    opacity: 1;
}

#AccountConfigManagerVM .config-expert-cell-top {
    padding-top: 4px;
}

#AccountConfigManagerVM .config-expert-name-cell {
    word-break: break-word;
}

#AccountConfigManagerVM .config-expert-description-cell {
    min-width: 0;
    overflow: hidden;
    padding-top: 2px;
    line-height: 1.25;
}

#AccountConfigManagerVM .config-expert-description-text {
    white-space: normal;
    overflow-wrap: anywhere;
}

#AccountConfigManagerVM .config-expert-tip {
    font-size: 11px;
    color: var(--config-blue-muted);
    margin-top: 3px;
    white-space: normal;
    overflow-wrap: anywhere;
}

#AccountConfigManagerVM .config-expert-value-cell {
    padding-top: 2px;
}

#AccountConfigManagerVM .config-expert-value-cell-boolean {
    padding-top: 4px;
}

#AccountConfigManagerVM .config-expert-value-input {
    padding: 4px 8px;
    width: 100%;
    min-height: 32px;
    box-sizing: border-box;
}

#AccountConfigManagerVM .config-expert-value-select {
    padding: 4px 36px 4px 8px;
    min-height: 32px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
}

#AccountConfigManagerVM .config-expert-info-cell {
    display: grid;
    justify-items: end;
    padding-top: 2px;
}

#AccountConfigManagerVM .config-preset-area {
    display: grid;
    row-gap: 10px;
}

#AccountConfigManagerVM .config-preset-area-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#AccountConfigManagerVM .config-preset-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--config-blue);
}

#AccountConfigManagerVM .config-preset-meta {
    font-size: 12px;
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-preset-list {
    display: grid;
    row-gap: 10px;
}

#AccountConfigManagerVM .config-preset-subcategory-group {
    display: grid;
    row-gap: 10px;
}

#AccountConfigManagerVM .config-preset-subcategory-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
}

#AccountConfigManagerVM .config-preset-subcategory-title {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-subcategory-meta {
    font-size: 11px;
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-preset-subcategory-list {
    display: grid;
    row-gap: 10px;
}

#AccountConfigManagerVM .config-preset-empty {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed var(--config-blue-border);
    background: #ffffff;
    color: var(--config-blue-muted);
    font-size: 13px;
    line-height: 1.45;
}

#AccountConfigManagerVM .config-preset-group-card {
    display: grid;
    row-gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--config-blue-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--config-shadow);
}

#AccountConfigManagerVM .config-preset-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#AccountConfigManagerVM .config-preset-group-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#AccountConfigManagerVM .config-preset-group-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-group-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--config-blue-soft);
    color: var(--config-blue-text);
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#AccountConfigManagerVM .config-preset-group-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-preset-group-clear,
#AccountConfigManagerVM .config-preset-group-action {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--config-blue-border);
    background: #fff;
    color: var(--config-blue-text);
    font-size: 12px;
}

#AccountConfigManagerVM .config-preset-group-options {
    display: grid;
    row-gap: 10px;
}

#AccountConfigManagerVM .config-preset-group-option {
    display: grid;
    row-gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--config-blue-border);
    background: var(--config-blue-surface);
}

#AccountConfigManagerVM .config-preset-group-option-active {
    background: #ffffff;
    border-color: var(--config-blue);
    box-shadow: var(--config-shadow-soft);
}

#AccountConfigManagerVM .config-preset-group-option-match {
    border-color: #9bbac9;
}

#AccountConfigManagerVM .config-preset-group-option-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

#AccountConfigManagerVM .config-preset-group-radio {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--config-blue-border);
    background: #ffffff;
    color: var(--config-blue-strong);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#AccountConfigManagerVM .config-preset-group-radio-disabled {
    color: #90a4ae;
    border-color: #c5d3da;
    background: #edf3f6;
}

#AccountConfigManagerVM .config-preset-group-option-body {
    display: grid;
    row-gap: 6px;
    min-width: 0;
}

#AccountConfigManagerVM .config-preset-group-option-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

#AccountConfigManagerVM .config-preset-group-option-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-group-badge,
#AccountConfigManagerVM .config-preset-group-mode,
#AccountConfigManagerVM .config-preset-detail-badge,
.config-preset-detail-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#AccountConfigManagerVM .config-preset-group-badge {
    background: var(--config-blue-soft);
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-group-mode {
    background: #ffffff;
    color: var(--config-blue-muted);
    border: 1px solid var(--config-blue-border);
}

#AccountConfigManagerVM .config-preset-group-option-description {
    font-size: 13px;
    color: var(--config-blue-text);
    line-height: 1.45;
}

#AccountConfigManagerVM .config-preset-group-option-summary {
    font-size: 12px;
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-preset-group-option-summary-blocking {
    color: #8f2f26;
}

#AccountConfigManagerVM .config-preset-group-option-summary-warning {
    color: #8a5a00;
}

#AccountConfigManagerVM .config-preset-card {
    display: grid;
    row-gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--config-blue-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--config-shadow);
}

#AccountConfigManagerVM .config-preset-card-header,
#AccountConfigManagerVM .config-preset-card-identity,
#AccountConfigManagerVM .config-preset-card-title-row,
#AccountConfigManagerVM .config-preset-card-actions {
    display: flex;
}

#AccountConfigManagerVM .config-preset-card-header {
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

#AccountConfigManagerVM .config-preset-card-identity {
    gap: 12px;
    min-width: 0;
}

#AccountConfigManagerVM .config-preset-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--config-blue-soft);
    color: var(--config-blue);
}

#AccountConfigManagerVM .config-preset-card-body {
    min-width: 0;
}

#AccountConfigManagerVM .config-preset-card-title-row {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

#AccountConfigManagerVM .config-preset-card-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-card-code {
    font-size: 12px;
    color: var(--config-blue-muted);
    font-family: monospace;
}

#AccountConfigManagerVM .config-preset-card-actions {
    gap: 6px;
    align-items: center;
}

#AccountConfigManagerVM .config-preset-card-action {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--config-blue-border);
    background: #fff;
    color: var(--config-blue-text);
    font-size: 12px;
}

#AccountConfigManagerVM .config-preset-card-toggle {
    padding: 5px 10px;
}

#AccountConfigManagerVM .config-preset-card-description {
    font-size: 13px;
    color: var(--config-blue-text);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

#AccountConfigManagerVM .config-preset-card-meta {
    font-size: 12px;
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-preset-card-meta-blocking {
    font-size: 11px;
    color: #8f2f26;
}

#AccountConfigManagerVM .config-preset-card-meta-warning {
    font-size: 11px;
    color: #8a5a00;
}

#AccountConfigManagerVM .config-preset-card-details {
    display: grid;
    row-gap: 6px;
    padding-top: 4px;
}

#AccountConfigManagerVM .config-preset-group-details {
    display: grid;
    row-gap: 6px;
    padding-top: 2px;
}

#AccountConfigManagerVM .config-preset-detail-header-row,
#AccountConfigManagerVM .config-preset-detail-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) 96px;
    gap: 10px;
    align-items: center;
}

#AccountConfigManagerVM .config-preset-detail-header-row {
    padding: 0 10px;
    font-size: 11px;
    font-weight: bold;
    color: var(--config-blue-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#AccountConfigManagerVM .config-preset-detail-row {
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--config-blue-surface);
    font-size: 12px;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-detail-row-surface {
    background: #ffffff;
    border: 1px solid var(--config-blue-border);
}

#AccountConfigManagerVM .config-preset-detail-header-row > div,
#AccountConfigManagerVM .config-preset-detail-row > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

#AccountConfigManagerVM .config-preset-detail-row > div:last-child {
    display: flex;
    justify-content: flex-start;
}

@media all and (max-width: 1100px) {
    #AccountConfigManagerVM .config-preset-detail-header-row,
    #AccountConfigManagerVM .config-preset-detail-row {
        grid-template-columns: minmax(160px, 1.5fr) repeat(3, minmax(80px, 1fr));
    }
}

@media all and (max-width: 760px) {
    #AccountConfigManagerVM .config-preset-detail-header-row {
        display: none;
    }

    #AccountConfigManagerVM .config-preset-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

#AccountConfigManagerVM .config-preset-apply-dialog,
.config-preset-apply-dialog {
    display: grid;
    row-gap: 14px;
    padding: 16px 18px;
}

#AccountConfigManagerVM .config-preset-apply-intro,
#AccountConfigManagerVM .config-preset-apply-section,
#AccountConfigManagerVM .config-preset-apply-question-card,
.config-preset-apply-intro,
.config-preset-apply-section,
.config-preset-apply-question-card {
    display: grid;
    row-gap: 8px;
}

#AccountConfigManagerVM .config-preset-apply-title,
.config-preset-apply-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-apply-description,
.config-preset-apply-description {
    font-size: 14px;
    color: var(--config-blue-text);
    line-height: 1.45;
}

#AccountConfigManagerVM .config-preset-apply-section,
.config-preset-apply-section {
    padding: 12px;
    border-radius: 14px;
    background: var(--config-blue-surface);
}

#AccountConfigManagerVM .config-preset-apply-section-soft,
.config-preset-apply-section-soft {
    background: var(--config-blue-soft);
}

#AccountConfigManagerVM .config-preset-apply-section-title,
.config-preset-apply-section-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--config-blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#AccountConfigManagerVM .config-preset-apply-question-list,
.config-preset-apply-question-list {
    display: grid;
    row-gap: 10px;
}

#AccountConfigManagerVM .config-preset-apply-question,
.config-preset-apply-question {
    font-size: 13px;
    color: var(--config-blue-text);
    font-weight: 600;
}

#AccountConfigManagerVM .config-preset-apply-select,
.config-preset-apply-select,
#AccountConfigManagerVM .config-preset-prompt-select,
.config-preset-prompt-select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--config-blue-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-apply-help,
.config-preset-apply-help {
    font-size: 12px;
    color: var(--config-blue-muted);
    line-height: 1.4;
}

#AccountConfigManagerVM .config-preset-apply-change-row,
.config-preset-apply-change-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 120px 120px 90px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: #ffffff;
    font-size: 12px;
}

#AccountConfigManagerVM .config-preset-prompt-dialog,
.config-preset-prompt-dialog {
    padding: 12px 16px;
    display: grid;
    row-gap: 12px;
}

#AccountConfigManagerVM .config-preset-prompt-question,
#AccountConfigManagerVM .config-preset-prompt-option-label,
.config-preset-prompt-question,
.config-preset-prompt-option-label {
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-preset-prompt-option,
.config-preset-prompt-option {
    font-size: 12px;
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-info-dialog,
.config-info-dialog {
    padding: 16px 18px;
    display: grid;
    row-gap: 14px;
}

#AccountConfigManagerVM .config-info-dialog-header,
#AccountConfigManagerVM .config-info-dialog-list,
.config-info-dialog-header,
.config-info-dialog-list {
    display: grid;
}

#AccountConfigManagerVM .config-info-dialog-header,
.config-info-dialog-header {
    row-gap: 4px;
}

#AccountConfigManagerVM .config-info-dialog-title,
.config-info-dialog-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-info-dialog-code,
.config-info-dialog-code {
    font-size: 12px;
    color: var(--config-blue-muted);
    font-family: monospace;
}

#AccountConfigManagerVM .config-info-dialog-description,
.config-info-dialog-description {
    padding: 12px;
    border-radius: 14px;
    background: var(--config-blue-surface);
    color: var(--config-blue-text);
    line-height: 1.5;
    border: 1px solid var(--config-blue-border);
}

#AccountConfigManagerVM .config-info-dialog-grid,
.config-info-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#AccountConfigManagerVM .config-info-dialog-panel,
.config-info-dialog-panel {
    padding: 12px;
    border-radius: 14px;
    background: var(--config-blue-soft);
}

#AccountConfigManagerVM .config-info-dialog-panel-title,
.config-info-dialog-panel-title {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--config-blue);
}

#AccountConfigManagerVM .config-info-dialog-panel-body,
#AccountConfigManagerVM .config-info-dialog-list-item,
.config-info-dialog-panel-body,
.config-info-dialog-list-item {
    font-size: 13px;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-info-dialog-panel-body,
.config-info-dialog-panel-body {
    margin-top: 6px;
}

#AccountConfigManagerVM .config-info-dialog-panel-help,
.config-info-dialog-panel-help {
    font-size: 12px;
    color: var(--config-blue-muted);
    margin-top: 4px;
}

#AccountConfigManagerVM .config-info-dialog-list,
.config-info-dialog-list {
    row-gap: 6px;
    margin-top: 8px;
}

#AccountConfigManagerVM .config-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--config-blue-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--config-shadow-soft);
}

#AccountConfigManagerVM .config-filter-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 4;
}

#AccountConfigManagerVM .config-filter-bar-sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: -6px;
    background: var(--config-blue-surface);
    z-index: -1;
}

#AccountConfigManagerVM .config-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1 1 680px;
}

#AccountConfigManagerVM .config-filter-select-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 8px;
    flex: 1 1 520px;
    min-width: min(100%, 520px);
}

#AccountConfigManagerVM .config-filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1 1 320px;
}

#AccountConfigManagerVM .config-filter-select {
    min-height: 38px;
    padding: 8px 36px 8px 12px;
    border: 1px solid var(--config-blue-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--config-blue-text);
    box-sizing: border-box;
    line-height: 1.35;
}

#AccountConfigManagerVM .config-filter-actions {
    display: flex;
    gap: 6px;
}

#AccountConfigManagerVM .config-section-body {
    display: grid;
    row-gap: 10px;
    padding: 12px 12px 14px;
}

#AccountConfigManagerVM .config-section-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    text-align: left;
    color: #ffffff !important;
    text-shadow: none;
}

#AccountConfigManagerVM .config-section-leading {
    display: flex;
    align-items: center;
    gap: 10px;
}

#AccountConfigManagerVM .config-section-chevron {
    font-size: 16px;
    color: #ffffff !important;
}

#AccountConfigManagerVM .config-section-name {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff !important;
    text-shadow: none;
}

#AccountConfigManagerVM .config-section-caption {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82) !important;
    text-shadow: none;
}

#AccountConfigManagerVM .config-section-count {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-shadow: none;
}

#AccountConfigManagerVM .config-subsection-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-align: left;
    color: var(--config-blue-text) !important;
    text-shadow: none;
}

#AccountConfigManagerVM .config-subsection-leading {
    display: flex;
    align-items: center;
    gap: 8px;
}

#AccountConfigManagerVM .config-subsection-chevron {
    font-size: 14px;
    color: var(--config-blue-strong) !important;
}

#AccountConfigManagerVM .config-subsection-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--config-blue-text) !important;
    text-shadow: none;
}

#AccountConfigManagerVM .config-subsection-count {
    font-size: 11px;
    color: var(--config-blue-muted) !important;
    text-shadow: none;
}

#AccountConfigManagerVM .config-subsection-body {
    display: grid;
    row-gap: 8px;
    padding: 10px 2px 0;
}

#AccountConfigManagerVM .config-friendly-card {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(280px, 1fr) minmax(200px, 260px) 42px;
    gap: 12px;
    align-items: start;
    padding: 14px 14px 12px;
    border: 1px solid var(--config-blue-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--config-shadow-soft);
}

#AccountConfigManagerVM .config-friendly-column {
    display: grid;
    gap: 8px;
}

#AccountConfigManagerVM .config-friendly-meta {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--config-blue);
}

#AccountConfigManagerVM .config-friendly-owner {
    font-size: 11px;
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-friendly-pill-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#AccountConfigManagerVM .config-friendly-pill-button {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--config-blue-border);
    background: #fff;
    font-size: 12px;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-friendly-pill-button-strong {
    font-weight: 600;
}

#AccountConfigManagerVM .config-friendly-pill-button-active-soft {
    background: var(--config-blue-soft);
}

#AccountConfigManagerVM .config-friendly-pill-button-active {
    background: var(--config-blue);
    color: white;
}

#AccountConfigManagerVM .config-friendly-pill-button-active-strong {
    background: var(--config-blue-strong);
    color: white;
}

#AccountConfigManagerVM .config-friendly-details {
    display: grid;
    gap: 8px;
    min-width: 0;
}

#AccountConfigManagerVM .config-friendly-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

#AccountConfigManagerVM .config-friendly-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
}

#AccountConfigManagerVM .config-friendly-badge-changed {
    background: var(--config-blue-soft);
    color: var(--config-blue-muted);
}

#AccountConfigManagerVM .config-friendly-badge-deprecated {
    background: #fbe0dd;
    color: #8f2f26;
}

#AccountConfigManagerVM .config-friendly-badge-preset {
    background: var(--config-blue-soft);
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-friendly-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--config-blue-text);
}

#AccountConfigManagerVM .config-friendly-code {
    font-size: 12px;
    color: var(--config-blue-muted);
    font-family: monospace;
}

#AccountConfigManagerVM .config-friendly-description {
    font-size: 13px;
    color: var(--config-blue-text);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

#AccountConfigManagerVM .config-friendly-tip {
    font-size: 11px;
    color: var(--config-blue-muted);
    line-height: 1.35;
}

#AccountConfigManagerVM .config-friendly-deprecated-message {
    font-size: 11px;
    color: #8f2f26;
}

#AccountConfigManagerVM .config-friendly-value {
    display: grid;
    gap: 8px;
    min-width: 0;
}

#AccountConfigManagerVM .config-value-box {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--config-blue-surface);
    color: var(--config-blue-text);
    border: 1px solid var(--config-blue-border);
}

#AccountConfigManagerVM .config-value-box-override {
    color: red;
    border-color: red;
    background: #fff0f0;
}

#AccountConfigManagerVM .config-value-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--config-blue-surface);
    color: var(--config-blue-text);
    border: 1px solid var(--config-blue-border);
}

#AccountConfigManagerVM .config-value-input,
#AccountConfigManagerVM .config-value-select {
    padding: 10px 12px;
    width: 100%;
    border: 1px solid var(--config-blue-border);
    border-radius: 12px;
    box-sizing: border-box;
    line-height: 1.35;
    min-height: 44px;
}

#AccountConfigManagerVM .config-value-select {
    background: #ffffff;
    color: var(--config-blue-text);
    padding-right: 40px;
}

#AccountConfigManagerVM .config-preset-apply-select,
.config-preset-apply-select,
#AccountConfigManagerVM .config-preset-prompt-select,
.config-preset-prompt-select {
    box-sizing: border-box;
    line-height: 1.35;
    padding-right: 40px;
}

#AccountConfigManagerVM .config-info-cell {
    display: grid;
    justify-items: end;
}

/* Address search clear button — hidden on desktop, shown via optikam.mobile.css */
.search-clear-btn {
    display: none;
}
.search-input-wrapper {
    position: relative;
}

/* Tree more-button — hidden on desktop, shown via mobile CSS */
.tree-more-btn {
    display: none;
}

#busyDialog {
    z-index: 1200 !important;
}

/* ManagerVM */

.ManagerVM {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: 'header' 'menu' 'toolbar' 'utilToolbar' 'content';
    width: 100%;
    height: 100%;
    min-height: 0;     /* Prevent grid blowout from child content */
}

.ManagerVMHeader {
    display: grid;
    grid-area: header;
    grid-template-columns: 1fr auto auto auto auto auto;
    align-items: center;
    background-color: white;
    color: black;
    border-bottom: 4px solid black;
    height: 44px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.ManagerVMMenu {
    grid-area: menu;
    align-items: center;
    height: 22px;
    margin-bottom: 4px;
    min-width: 0;          /* allow grid item to shrink below content width */
    overflow-x: auto;      /* scroll when items exceed available width      */
    overflow-y: hidden;
    /* Hide the scrollbar while keeping scroll functionality */
    scrollbar-width: none;         /* Firefox        */
    -ms-overflow-style: none;      /* IE / Edge      */
}
.ManagerVMMenu::-webkit-scrollbar {
    display: none;                 /* Chrome, Safari */
}

.ManagerVMMenuContainer {
    display: inline-grid;
    grid-auto-columns: auto;
    grid-auto-flow: column;
    align-items: center;
    width: max-content;    /* prevent item compression — scroll parent instead */
    min-width: max-content;
}

.ManagerVMToolbar {
    grid-area: toolbar;
    align-items: center;
    height: 28px;
    margin-bottom: 4px;
    min-width: 0;          /* allow grid item to shrink below content width */
    overflow-x: auto;      /* scroll when buttons exceed available width     */
    overflow-y: hidden;
    /* Hide the scrollbar while keeping scroll functionality */
    scrollbar-width: none;         /* Firefox        */
    -ms-overflow-style: none;      /* IE / Edge      */
}
.ManagerVMToolbar::-webkit-scrollbar {
    display: none;                 /* Chrome, Safari */
}

.ManagerVMUtilToolbar {
    grid-area: utilToolbar;
    align-items: center;
    height: 22px;
    margin-bottom: 4px
}

.ManagerVMToolbarContainer {
    display: inline-grid;
    grid-auto-columns: auto;
    grid-auto-flow: column;
    align-items: center;
    width: max-content;    /* prevent button compression — scroll parent instead */
    min-width: max-content;
}

.ManagerVMContent {
    grid-area: content;
    position: relative;
    width: 100%;
    height: 100%;      /* Changed from max-height */
    min-height: 0;     /* CRITICAL: Prevents grid item from expanding beyond viewport */
    min-width: 0;      /* CRITICAL: Prevents grid item from blowing out width */
    overflow: hidden;  /* Ensure the absolute child handles the scrolling */
}

#AccountUserManagerVMContent {
    overflow-y: auto;
}

/* Credential detail tab toggle */
.tab-button:hover {
    color: #333 !important;
}
.tab-active {
    color: #333 !important;
    border-bottom-color: #33bbee !important;
}

/* Desktop: hide mobile-only dashboard filter elements */
#dashFilterOverlay,
#dashFilterPopupHeader {
    display: none;
}

/* SystemVM */

#SystemVM {
    display: grid;
    grid-template-rows: 50px 1fr auto;
    grid-gap: 4px 4px;
    width: 100%;
    height: 100%;
    max-height: 100vh;
}

    #SystemVM.fullscreen {
        grid-template-rows: 1fr;
    }

#SystemVMHeader {
    display: grid;
    grid-template-columns: 300px 30px 1fr auto;
    align-items: center;
    height: 50px;
    grid-column-gap: 4px;
}

#SystemVMHeaderAccountPath {
    display: flex;
    align-items: center;
}

.pathPartContainer:first-child > .pathPartSlash {
    display: none
}

#SystemVMHeader.fullscreen {
    display: none;
}

#SystemVMHeaderSearch {
    display: grid;
    grid-template-columns: auto;
    grid-gap: 4px;
    align-items: center;
    padding-right: 30px
}

#SystemVMFooter {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    height: 25px;
    background-color: #333333;
}

    #SystemVMFooter.fullscreen {
        display: none;
    }

/* SessionManagerVM */

#SessionManagerVM {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-areas: 'list content';
}

#SessionManagerVMTree {
    display: grid;
    grid-gap: 4px;
    grid-template-rows: 44px 22px 22px 1fr auto;
    grid-template-areas: 'header' 'search' 'search_toolbox' 'list' 'button';
    grid-area: list;
    padding-right: 4px;
}

#SessionManagerVMContent {
    height: 100%;
    grid-area: content;
}

#SessionVM {
    display: grid;
    grid-template-rows: auto 1fr;
}

#SessionVMHeader {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto auto auto auto auto auto;
    grid-template-areas: 'A B C D E F G H I K J';
    margin-bottom: 0px;
    border-bottom: 4px solid black;
    height: 44px;
    align-items: center;
}

.feedbackPanel {
    position: absolute;
    top: 44px;
    right: 0;
    width: 360px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

.headerButton-active {
    background-color: #4a90d9 !important;
    color: white !important;
}

#SessionVMContent {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
}

/* SubscriptionManagerVM */

#SubscriptionManagerVMContent {
    display: grid;
    grid-template-rows: 2fr auto auto 1fr;
}



.table {
    position: relative;
    display: table;
}

.row {
    position: relative;
    display: table-row;
}

.cell {
    position: relative;
    display: table-cell;
}

.fullWidth {
    width: 100%;
}

.fullHeight {
    height: 100%;
}

.buttonLeft {
    background-color: lightgray;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

    .buttonLeft:hover {
        background-color: gray;
    }

.buttonRight {
    background-color: lightgray;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

    .buttonRight:hover {
        background-color: gray;
    }

.buttonCenter {
    background-color: lightgray;
}

    .buttonCenter:hover {
        background-color: gray;
    }

.buttonContainer {
    background-color: black;
    border-radius: 3px;
    display: grid;
    grid-gap: 1px;
    grid-auto-flow: column;
    align-self: center;
}

input[type="text"], input[type="number"], input[type="date"] {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    width: 100%;
    border: 0;
    margin: 0px;
    padding: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="password"] {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    width: 100%;
    border: 0;
    margin: 0px;
    padding: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Brand sub-tab: uniform "Enabled" checkbox row */
.brand-enable-row {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.brand-enable-hint {
    color: #999;
    font-size: 11px;
    margin-left: 8px;
    font-style: italic;
}

/* Hide browser-native password reveal button so only our custom toggle shows */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button {
    display: none;
}

/* Mask text inputs that act as password fields (prevents browser autofill heuristics) */
.masked-input {
    -webkit-text-security: disc;
    text-security: disc;
}

.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 32px;
}

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: default;
    padding: 0;
    margin: 0;
    color: rgba(0, 0, 0, 0.45);
    font-size: 13px;
    line-height: 1;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover,
.password-toggle-btn:active,
.password-toggle-btn:focus {
    color: rgba(0, 0, 0, 0.45);
    background: transparent;
    outline: none;
}

select {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    width: 100%;
    border: 0;
    margin: 0px;
    padding-left: 4px;
    box-sizing: border-box;
    font-size: 14px;
    height: 32px;
}

textarea {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    width: 100%;
    border: 0;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Disabled state for all form controls (site-wide) */
input[type="text"]:disabled,
input[type="number"]:disabled,
input[type="date"]:disabled,
input[type="password"]:disabled,
select:disabled,
textarea:disabled {
    /*background: #e2e2e2;
    background-color: #e2e2e2 !important;*/
    color: #999;
    cursor: not-allowed;
}

input[type="button"], button {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #33bbee;
    border: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.3px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    cursor: pointer;
}

button.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    box-shadow: none;
}

    input[type="button"]:not([disabled]):not(.selected):not(.selected2):not(.selected4):not(.unselected4):not(.menuButton):not(.password-toggle-btn):not(.show-new-btn):hover, button:not([disabled]):not(.selected):not(.selected2):not(.selected4):not(.unselected4):not(.menuButton):not(.password-toggle-btn):not(.show-new-btn):hover {
        background: #1a9fd4;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }

    input[type="button"]:not([disabled]):not(.password-toggle-btn):not(.show-new-btn):active, button:not([disabled]):not(.password-toggle-btn):not(.show-new-btn):active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    input[type="button"]:disabled, button:disabled {
        background: #e0e0e0;
        color: #9e9e9e;
        box-shadow: none;
        cursor: not-allowed;
    }

/* Reset modern button styles for icon-only / menu / form buttons */
.menuButton,
.transparent,
.buttonLeft,
.buttonRight,
#ProgramVMMenu button,
#OrderCreateForm button:not(.selected4):not(.unselected4),
#OrderCreateForm input[type="button"],
#OrderEditForm button:not(.selected4):not(.unselected4),
#OrderEditForm input[type="button"] {
    border-radius: 0;
    box-shadow: none;
    padding: 8px;
    color: inherit;
    letter-spacing: normal;
    font-weight: inherit;
    transform: none;
}

    #ProgramVMMenu button:hover,
    #OrderCreateForm button:not(.selected4):not(.unselected4):hover,
    #OrderEditForm button:not(.selected4):not(.unselected4):hover {
        box-shadow: none;
        transform: none;
    }

    #ProgramVMMenu button:active,
    #OrderCreateForm button:not(.selected4):not(.unselected4):active,
    #OrderEditForm button:not(.selected4):not(.unselected4):active {
        box-shadow: none;
        transform: none;
    }

input[type=date]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    display: none;
}

.oldInput {
    border: 1px solid gray;
    height: 21px;
    padding-left: 2px;
    padding-right: 2px;
    line-height: 21px;
    vertical-align: middle;
    margin: 0px;
}

.oldPassword {
    border: 1px solid gray;
    height: 21px;
    padding-left: 2px;
    padding-right: 2px;
    line-height: 21px;
    vertical-align: middle;
    margin: 0px;
}

selectOld {
    border: 1px solid gray;
    height: 21px;
    line-height: 21px;
    vertical-align: middle;
    margin: 0px;
}

.error {
    background-color: #ff5858
}

.error2 {
    color: #ff5858
}

.errorAndBold {
    color: #ff5858;
    font-weight: bold;
}

.transparent {
    background-color: transparent
}

.oddRow {
    background-color: #EEEEEE
}

.highlighted {
    background-color: #d0ecf8;
    color: black;
}

.selected {
    background-color: #33bbee /*#85c5ff*/;
    color: black;
}

    .selected.disabled {
        background: #DDDDDD;
        color: #AAAAAA;
    }

    .selected > .menuButton {
        color: black;
    }

    .selected.disabled > .menuButton {
        color: #AAAAAA;
    }

.selected2 {
    background-color: darkgray;
}

.selected3 {
    color: #0B88E0;
}

button.selected4 {
    background-color: #2e9e2e;
    color: #fff;
    font-size: 16px;
}

button.unselected4 {
    background-color: grey;
    font-size: 16px;
}

.hoverable:not(.selected) > .menuButton:disabled {
    background-color: transparent
}

.expanded {
    visibility: visible;
}

.hidden {
    display: none !important
}

.shown {
    display: block
}

.notVisible {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

.shownInline {
    display: inline-block
}

.shownCell {
    display: table-cell
}

.pathPart {
    cursor: pointer;
    /*color:black;*/
}

    .pathPart:hover {
        color: #85c5ff;
    }




.gridHeader {
    grid-column-start: 1;
    grid-column-end: 3;
    /*text-align: center;*/
    line-height: 50px;
    font-size: x-large;
    padding-left: 158px;
}

.gridSpan {
    grid-column-start: 2;
    grid-column-end: 3;
    line-height: 50px;
    padding-left: 10px;
}

.gridLeft {
    grid-column-start: 1;
    grid-column-end: 2;
    line-height: 50px;
}

.gridLabel {
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
    font-size: larger;
}

.gridRight {
    grid-column-start: 2;
    grid-column-end: 3;
    line-height: 50px;
    padding-left: 10px
}

.gridCell3 {
    grid-column-start: 3;
    grid-column-end: 4;
    line-height: 50px;
    padding-left: 10px;
}

.gridFooter {
    grid-column-start: 1;
    grid-column-end: 3;
    text-align: center;
    line-height: 50px
}




.floating {
    position: relative;
    top: 0px;
    left: 0px;
    bottom: 0px;
    display: block;
    width: 250px;
    height: 100%;
    overflow: auto;
}

.floating2 {
    position: absolute;
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: 210px
}

.floatingRight {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    width: 404px
}

.floating2Hidden {
    position: relative;
    display: none;
}

.menuButton {
    font-weight: 500;
    font-size: 14px;
    padding: 3px 8px 3px 2px;
    margin: 0px 0px 0px 0px;
    text-align: center;
    border: 0px;
    cursor: pointer;
    color: black;
}

.disabled:not(.selected) > .menuButton {
    color: #AAAAAA;
}

.menuButton:hover {
    /*background-color:lightgray;
    color:black;*/
}

.show-portal-bar {
    display: inline-flex;
    align-items: center;
    justify-content: start;
    max-width: 100%;
    overflow: visible;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 24px;
}

body.show-portal-collapsed #ShowPortalBar {
    display: inline-flex !important;
}

#ProgramVM > #ProgramVMMenu {
    margin-bottom: 4px;
}

.show-portal-toggle {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5f6b76;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.show-portal-toggle:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #1f2933;
}

.show-portal-toggle i {
    font-size: 10px;
    line-height: 1;
}

.show-portal-menu-host {
    display: none;
    align-items: center;
    min-width: 0;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
}

.show-portal-menu-host > #ProgramVMMenu {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: visible;
    min-height: 24px;
}

.show-portal-menu-host > #ProgramVMMenu .hoverable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.show-portal-menu-host > #ProgramVMMenu .menuButton {
    padding-top: 3px;
    padding-bottom: 3px;
}

.hoverable:not(.disabled):not(.selected):not(.selected2):hover {
    background-color: lightgray;
    color: black;
}

.notHoverable:hover {
}

div:disabled {
    color: lightgray;
}

.shadow {
    -moz-box-shadow: 0 0 5px 5px #CCC;
    -webkit-box-shadow: 0 0 5px 5px #CCC;
    box-shadow: 0 0 5px 5px #CCC;
}

.hoverable:not(.selected):hover {
    background-color: #EEEEEE;
}

.item:not(.disabled):not(.selected):not(.selected2):hover {
    background-color: lightgray;
    color: black;
}

.tableLabel {
    width: 250px
}

.tableValue {
    width: 300px
}

.headerLabel {
    font-family: Helvetica, 'Segoe UI';
    font-size: 12px;
    text-align: center
}

.titleLabel {
    font-size: 9px;
    padding-left: 8px;
    padding-right: 8px;
}

.valueLabel {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    background: none !important;
    padding-left: 8px;
    padding-right: 8px;
}

.unitsLabel {
    font-size: 8px;
    text-align: center;
    color: #808080;
    width: 48px;
    pointer-events: none;
    background: none !important;
    padding-left: 8px;
    padding-right: 8px;
    text-wrap: none;
    white-space: nowrap;
}

.label {
    font-family: Helvetica, 'Segoe UI';
    font-size: 10px;
    text-align: center;
}

.disabled {
    color: lightgray;
}

.disabled2 {
    color: gray;
}

.domainStart {
    background-image: url('../Images/icons/domainStart3.png');
    background-repeat: no-repeat;
    background-size: 25px 50px;
}

.domainMid {
    background-image: url('../Images/icons/domainMid3.png');
    background-repeat: repeat-y;
    background-size: 25px;
}

a[href^="tel:"] {
    color: black;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 3px;
}

.flexColCon {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    -ms-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -ms-justify-content: flex-start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -ms-align-items: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    -ms-align-content: stretch;
    -webkit-align-content: stretch;
    align-content: stretch;
}

.flexRowCon {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -ms-justify-content: flex-start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -ms-align-items: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    -ms-align-content: stretch;
    -webkit-align-content: stretch;
    align-content: stretch;
}

.flexChild {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: 0;
    -webkit-flex-order: 0;
    order: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    -ms-align-self: auto;
    -webkit-align-self: auto;
    align-self: auto;
}

.flexChildFill {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: 0;
    -webkit-flex-order: 0;
    order: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    -ms-align-self: auto;
    -webkit-align-self: auto;
    align-self: auto;
    position: relative;
    min-height: 1px;
}

a[disabled] {
    pointer-events: none;
    color: gray;
}

button {
    -webkit-appearance: button;
    cursor: pointer;
}

.panelHeader {
    background-color: white;
    color: black;
    height: 40px;
    min-height: 40px;
    line-height: 40px;
    vertical-align: middle;
    border-bottom: 4px solid black;
}

.panelSubHeader {
    background-color: #999999;
    color: black;
    height: 20px;
    min-height: 20px;
    line-height: 20px;
    vertical-align: middle;
    padding-left: 4px;
}

.columnHeader {
    height: 25px;
    line-height: 25px;
    font-size: 13px;
    font-weight: bold;
    margin-right: 4px;
    padding-left: 5px;
    background-color: lightgray;
    vertical-align: middle;
    cursor: pointer;
}

    .columnHeader:last-child {
        margin-right: 0px;
    }

.columnHeaderTextBox {
    padding: 0px !important;
    line-height: 21px;
}

.columnHeaderSelect {
    padding: 0px !important;
    line-height: 21px;
}

.columnFilter {
    height: 25px;
    line-height: 25px;
    font-size: 13px;
    margin-right: 4px;
    vertical-align: middle;
}

.tableCol {
    padding-right: 4px;
}

    .tableCol:last-child {
        padding-right: 0px;
    }

.columnFooter {
    height: 25px;
    line-height: 25px;
    font-size: 13px;
    font-weight: normal;
    padding-left: 5px;
    padding-right: 5px;
    background-color: lightgray;
    vertical-align: middle;
}

.last {
    margin-right: 0px
}

.columnCell {
    display: grid;
    align-items: center;
    height: 25px;
    line-height: 25px;
    font-size: 13px;
    font-weight: normal;
    margin-right: 4px;
    vertical-align: middle;
    user-select: none;
}

    .columnCell:last-child {
        margin-right: 0px;
    }

div.columnCell > div {
    height: 21px;
    line-height: 21px;
    padding: 0px;
    padding-left: 5px;
}

.columnCellCenter {
    display: grid;
    align-items: center;
    height: 25px;
    line-height: 25px;
    font-size: 13px;
    font-weight: normal;
    margin-right: 4px;
    vertical-align: middle;
    user-select: none;
}

div.columnCellCenter > div {
    height: 21px;
    line-height: 21px;
    padding: 0px;
    padding-left: 0px;
}

div.columnCellCenter > input {
    height: 21px;
    line-height: 21px;
    padding: 0px;
    text-align: center;
}

div.columnCell > input {
    height: 21px;
    line-height: 21px;
    padding: 0px;
    padding-left: 5px;
}

#tableRowVMTemplate:hover {
    background-color: #3EBBFF;
    color: black;
}

#tableRowVMTemplate.oddRow:hover {
    background-color: #3EBBFF;
    color: black;
}

.btn-group, .btn-group-vertical {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

    .btn-group > .btn, .btn-group-vertical > .btn {
        position: relative;
        float: left;
    }

        .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active {
            /*z-index: 2;*/
        }

        .btn-group > .btn:focus, .btn-group-vertical > .btn:focus {
            outline: 0;
        }

    .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group {
        margin-left: -1px;
    }

.btn-toolbar {
    margin-left: -5px;
}

    .btn-toolbar .btn-group, .btn-toolbar .input-group {
        float: left;
    }

    .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group {
        margin-left: 5px;
    }

.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
    border-radius: 0;
}

.btn-group > .btn:first-child {
    margin-left: 0;
}

    .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group > .btn-group {
    float: left;
}

    .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
        border-radius: 0;
    }

    .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .btn-group > .btn-group:last-child > .btn:first-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

.btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle {
    outline: 0;
}

.btn-group > .btn + .dropdown-toggle {
    padding-right: 8px;
    padding-left: 8px;
}

.btn-group > .btn-lg + .dropdown-toggle {
    padding-right: 12px;
    padding-left: 12px;
}

.btn-group.open .dropdown-toggle {
    -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
    box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
}

    .btn-group.open .dropdown-toggle.btn-link {
        -webkit-box-shadow: none;
        box-shadow: none;
    }

.btn .caret {
    margin-left: 0;
}

.btn-lg .caret {
    border-width: 5px 5px 0;
    border-bottom-width: 0;
}

.dropup .btn-lg .caret {
    border-width: 0 5px 5px;
}

.btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
}

    .btn-group-vertical > .btn-group > .btn {
        float: none;
    }

    .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group {
        margin-top: -1px;
        margin-left: 0;
    }

    .btn-group-vertical > .btn:not(:first-child):not(:last-child) {
        border-radius: 0;
    }

    .btn-group-vertical > .btn:first-child:not(:last-child) {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .btn-group-vertical > .btn:last-child:not(:first-child) {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 4px;
    }

    .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
        border-radius: 0;
    }

    .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

.btn-group-justified {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
}

    .btn-group-justified > .btn, .btn-group-justified > .btn-group {
        display: table-cell;
        float: none;
        width: 1%;
    }

        .btn-group-justified > .btn-group .btn {
            width: 100%;
        }

        .btn-group-justified > .btn-group .dropdown-menu {
            left: auto;
        }

.gridStyle {
    border: 1px solid rgb(212,212,212);
    width: 100%;
    height: 100%;
}

/* ── Keyboard Shortcuts Help Dialog ─────────────────────────── */

.keyboard-shortcuts-dialog {
    border: none;
    border-radius: 8px;
    padding: 0;
    max-width: 520px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.keyboard-shortcuts-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.keyboard-shortcuts-content {
    padding: 24px;
}

.keyboard-shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.keyboard-shortcuts-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.keyboard-shortcuts-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
    line-height: 1;
}

.keyboard-shortcuts-close:hover {
    color: #333;
}

.keyboard-shortcuts-group {
    margin-bottom: 16px;
}

.keyboard-shortcuts-group h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.keyboard-shortcuts-group table {
    width: 100%;
    border-collapse: collapse;
}

.keyboard-shortcuts-group tr {
    line-height: 32px;
}

.keyboard-shortcut-key {
    width: 120px;
    text-align: right;
    padding-right: 16px;
}

.keyboard-shortcut-key kbd {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    color: #333;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.keyboard-shortcut-desc {
    font-size: 14px;
    color: #444;
}

.keyboard-shortcuts-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.keyboard-shortcuts-footer kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* ── Account Creation Dialog ──────────────────────────────────
   AccountEditVM uses .absoluteScroll (position:absolute) which
   covers sibling content (child-account rows, footer).  Inside
   the creation dialog we need normal document flow instead.   */
#AccountCreationDialogVM .absoluteScroll {
    position: static;
}

/* ── SHOW Mode: Floating Countdown Indicator Pulse ────────── */
@keyframes showCountdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ══════════════════════════════════════════════════════════════
   SHOW MODE PANEL — Professional Kiosk UI
   ══════════════════════════════════════════════════════════════ */

/* ── Animations ─────────────────────────────────────────────── */

@keyframes showFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes showSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes showCtaPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(11, 136, 224, 0.25); }
    50%      { box-shadow: 0 4px 32px rgba(11, 136, 224, 0.45); }
}

@keyframes showActivitySlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Panel Root ─────────────────────────────────────────────── */

.show-panel {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    height: 100%;
    background: linear-gradient(170deg, #f0f4f8 0%, #e8edf4 40%, #f5f7fa 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    animation: showFadeIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

/* ── Top Bar ────────────────────────────────────────────────── */

.show-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 14px 28px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.show-topbar-link {
    color: #8899a6;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease, opacity 0.2s ease;
    letter-spacing: 0.01em;
}

.show-topbar-link:hover {
    color: #0B88E0;
    opacity: 0.9;
}

.show-topbar-link--danger {
    color: #c44;
}

.show-topbar-link--danger:hover {
    color: #e33;
}

.show-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Connection State Banner ────────────────────────────────── */

.show-connection-state {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ── Main Content ───────────────────────────────────────────── */

.show-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 32px 40px;
    overflow-y: auto;
}

.show-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    animation: showSlideUp 0.6s ease-out 0.1s both;
}

/* ── Logo with Lens Glare ───────────────────────────────────── */

.show-logo-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 6px;
}

.show-logo {
    max-width: 280px;
    max-height: 90px;
    opacity: 0.92;
    transition: opacity 0.3s ease;
    display: block;
}

.show-logo:hover {
    opacity: 1;
}

.show-logo-lens {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 140%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 38%,
        rgba(255, 255, 255, 0.35) 44%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.35) 56%,
        rgba(255, 255, 255, 0.08) 62%,
        transparent 70%
    );
    transform: skewX(-18deg) translateX(-100%);
    animation: showLensGlare 3s ease-in-out 2s infinite;
    pointer-events: none;
}

@keyframes showLensGlare {
    0%   { transform: skewX(-18deg) translateX(-100%); }
    20%  { transform: skewX(-18deg) translateX(320%); }
    100% { transform: skewX(-18deg) translateX(320%); }
}

.show-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.show-selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.show-name-label {
    font-size: 13px;
    font-weight: 600;
    color: #8899a6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.show-dropdown {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    min-width: 300px;
    max-width: 480px;
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.show-dropdown:focus {
    border-color: #0B88E0;
    box-shadow: 0 0 0 3px rgba(11, 136, 224, 0.1);
    background-color: #fff;
}

.show-no-shows {
    font-size: 14px;
    color: #8899a6;
    padding: 10px 0;
}

.show-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #0B88E0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.show-new-btn:hover {
    background: #0B88E0;
    color: #fff;
    border-color: #0B88E0;
}

.show-new-btn.show-new-btn--active {
    background: #0B88E0;
    color: #fff;
    border-color: #0B88E0;
    transform: rotate(45deg);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.show-new-btn.show-new-btn--active:hover {
    background: #0B88E0;
    color: #fff;
    border-color: #0B88E0;
    transform: rotate(45deg);
}

/* ── Selected show detail ─────────────────────────────────── */

.show-detail-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8899a6;
}

.show-detail-line i {
    font-size: 12px;
}

.show-delete-link {
    color: #8899a6;
    cursor: pointer;
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.show-delete-link:hover {
    opacity: 1;
    color: #e74c3c;
}

/* ── New Show Form ────────────────────────────────────────── */

.show-new-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 300px;
    max-width: 380px;
    animation: showNewFormSlide 0.2s ease-out;
}

@keyframes showNewFormSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.show-new-input {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.show-new-input:focus {
    border-color: #0B88E0;
    box-shadow: 0 0 0 2px rgba(11, 136, 224, 0.1);
}

.show-new-input::placeholder {
    color: #b0bec5;
}

.show-new-dates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-new-date {
    flex: 1;
    min-width: 0;
}

.show-new-date-sep {
    color: #8899a6;
    font-size: 13px;
}

.show-new-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.show-new-create {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #0B88E0;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.show-new-create:hover {
    background: #0972c4;
}

.show-new-create:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

.show-new-cancel {
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.show-new-cancel:hover {
    background: rgba(0, 0, 0, 0.04);
}

.show-tagline {
    font-size: 26px;
    font-weight: 300;
    color: #4a5568;
    margin: -60px 0px 0px 0px;
    letter-spacing: -0.01em;
    text-align: center;
}

/* ── CTA Button ─────────────────────────────────────────────── */

.show-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    width: min(100%, 420px);
}

.show-cta {
    background: linear-gradient(135deg, #0B88E0 0%, #0972c4 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px 56px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(11, 136, 224, 0.25);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    animation: showCtaPulse 3s ease-in-out infinite;
    letter-spacing: 0.01em;
    width: 290px;
    justify-content: center;
    box-sizing: border-box;
}

.show-cta--secondary {
    background: linear-gradient(135deg, #ffffff 0%, #eef5fb 100%);
    color: #0d5f9f;
    box-shadow: 0 4px 18px rgba(13, 95, 159, 0.15);
    animation: none;
}

.show-cta--secondary:hover {
    box-shadow: 0 6px 22px rgba(13, 95, 159, 0.22);
}

.show-cta--secondary:active {
    box-shadow: 0 2px 10px rgba(13, 95, 159, 0.14);
}

.show-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 28px rgba(11, 136, 224, 0.35);
    animation: none;
}

.show-cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 12px rgba(11, 136, 224, 0.2);
    animation: none;
}

.show-cta i {
    font-size: 17px;
}

.show-cta--disabled,
.show-cta:disabled {
    background: linear-gradient(135deg, #a0b4c8 0%, #8fa3b5 100%);
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
    opacity: 0.6;
}
.show-cta--disabled:hover,
.show-cta:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ── Bottom Bar ─────────────────────────────────────────────── */

.show-bottombar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 28px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 48px;
    z-index: 2;
}

.show-countdown {
    font-size: 12px;
    color: #8899a6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.show-countdown i {
    animation: showCountdownPulse 2s ease-in-out infinite;
}

.show-activity-toggle {
    color: #8899a6;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.show-activity-toggle:hover {
    background: rgba(11, 136, 224, 0.06);
    color: #0B88E0;
}

.show-activity-toggle--active {
    background: rgba(11, 136, 224, 0.08);
    color: #0B88E0;
}

.show-shortcut-hint {
    text-align: right;
    font-size: 11px;
    color: #b0bec5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.show-shortcut-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    color: #8899a6;
}

.show-shortcut-label {
    margin-left: 2px;
}

/* ── Activity Panel ─────────────────────────────────────────── */

.show-activity-panel {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    max-height: 60vh;
    overflow-y: auto;
    padding: 24px 32px;
    z-index: 3;
    animation: showActivitySlideUp 0.3s ease-out;
}

.show-section {
    margin-bottom: 24px;
}

.show-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.show-section--summary {
    margin-bottom: 0;
}

.show-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #8899a6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-section-title i {
    font-size: 14px;
    color: #0B88E0;
}

/* ── Summary Cards ──────────────────────────────────────────── */

.show-summary-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.show-summary-card {
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 90px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.show-summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.show-summary-card--wide {
    min-width: 110px;
}

.show-summary-card--full {
    flex-direction: row;
    gap: 8px;
    flex-basis: 100%;
    align-items: center;
    justify-content: center;
}

.show-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.1;
}

.show-summary-value--small {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.show-summary-label {
    font-size: 11px;
    font-weight: 500;
    color: #8899a6;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
    .show-summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .show-section--summary {
        margin-bottom: 0;
    }
}

/* ── Empty State ────────────────────────────────────────────── */

.show-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #b0bec5;
    padding: 24px 0;
}

.show-empty-state i {
    font-size: 20px;
}

/* ── Activity Entry ─────────────────────────────────────────── */

.show-activity-entry {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.show-activity-entry:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.show-activity-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.show-activity-entry-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.show-activity-time {
    color: #b0bec5;
    font-size: 12px;
    margin-right: 6px;
    font-variant-numeric: tabular-nums;
}

.show-activity-company {
    font-weight: 600;
    color: #2d3748;
}

.show-activity-summary {
    color: #8899a6;
    font-size: 12px;
    margin-left: 4px;
}

.show-activity-order {
    margin-top: 6px;
    padding-left: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #4a5568;
    font-size: 13px;
}

.show-activity-order-icon {
    color: #0B88E0;
    font-size: 12px;
    flex-shrink: 0;
}

.show-activity-order-link {
    color: #0B88E0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.show-activity-order-link:hover {
    background: rgba(11, 136, 224, 0.08);
}

.show-activity-order-link i {
    font-size: 10px;
}

.show-activity-create-link {
    color: #0B88E0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.show-activity-create-link:hover {
    background: rgba(11, 136, 224, 0.08);
}

.show-activity-create-link i {
    font-size: 12px;
}

