.vsaCircleTable, .vsaCircleTableDarkMode {
    width: 101%;
    white-space: normal;
    border-collapse: collapse;
    margin-left: -1px;
    /* font-size: 2vmin; */
    background: var( --background-color);
    margin-bottom: -1px;
}


.vsaCircleTable th {
    font-size: 14px;
    font-weight: bolder;
    background: var(--main-color);
    color: var(--header-textColor);
}

.vsaCircleTable th {
    border-collapse: collapse;
}


.vsaCircleTableRightColumn {
    padding-left: 4px;
}

.vsaCircleTableContent {
    text-align: center;
}

.vsaCircleTable_Tripple_IstSub,
.vsaCircleTable_Tripple_Ist, 
.vsaCircleTableValueColumn,
.vsaCircleTable_Tripple_IstDarkMode,
.vsaCircleTable_Tripple_SollSub,
.vsaCircleTable_Tripple_Soll, 
.vsaCircleTable_Tripple_SollDarkMode,
.vsaCircleTable_Tripple_Editable {
    background: var(--second-color-light);
    color: var( --main-color);
    text-align: left;
    white-space: nowrap;
    /* border-left: 2px solid var(--background-color);
    border-bottom: 2px solid var(--background-color);*/
    /* padding: 0.2em 0.2em 0.2em 0.2em; */
}

.vsaCircleTableValueColumn{
    max-width: 10rem;
    text-overflow: ellipsis;
    overflow: hidden;
}

.vsaCircleTable_Tripple_SollSub,
.vsaCircleTable_Tripple_IstSub {    
    background-color: var(--background-color) !important;
    color: var(--circleLabel-color) !important;
    border-left: 2px solid var(--circle-fill);
    border-bottom: 2px solid var(--circle-fill);
    font-size: 12px !important;
}

.vsaCircleTableLabelColumnSub {    
    background-color: var(--background-color) !important;
    color: var(--circleLabel-color) !important;
    font-size: 12px !important;
    border-bottom: 2px solid var(--circle-fill);
}

.vsaCircleTable_Tripple_IstDarkMode, .vsaCircleTable_Tripple_SollDarkMode  {
    background: #2b2b2b;
    color: white;
}

.vsaCircleTable_Tripple_Editable {
    background: var(--color-configurable);
    color: var(--main-color);
    cursor: pointer;
}

.vsaCircleTableLabelColumn,
.vsaCircleTableLabelColumn2,
.vsaCircleTableLabelColumnSub,
.vsaCircleTableLabelColumnDarkMode {
    /* padding-left: 4px;
    padding-right: 4px;
    padding-top: 6px;
    padding-bottom: 6px; */
    background: var(--second-color);
    text-align: left;
    white-space: nowrap;
    color: var(--main-color);
}

.vsaCircleTableLabelColumn2{
    text-overflow: ellipsis;
    max-width: 10rem;
    overflow: hidden;
}

.vsaCircleTableLabelColumnDarkMode {
    background: #313131;
}

.vsaLineTableContent {
    text-align: left;
    margin-top: 0em;
}

.vsaLineTable {
    margin-left: 80px;
}

.vsaCircleInfoTableContent {
    color: var(--text-color-sidePanel);
    background: var(--background-color);
    /* font-size: 1.25vmin; */
    margin-top: -1px;
}

.vsaCircleInfoTableLineLeft, .vsaCircleInfoTableLineRight,
.vsaCircleInfoTableLineLeftDarkMode, .vsaCircleInfoTableLineRightDarkMode  {
    width: 50%;
    background: var(--main-color);
    color: var(--header-textColor);
    font-size: 14px;
    font-weight: bolder;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 4px;
    text-align: left;
}

.vsaCircleInfoTableLineLeftContent, .vsaCircleInfoTableLineRightContent {
    width: 50%;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 4px;
    text-align: left;
}

.vsaCircleInfoTableLineLeftDarkMode, .vsaCircleInfoTableLineRightDarkMode {
    background: #565656;
}

.vsaCircleInfoTableLineCenter, .vsaCircleInfoTableLineCenterDarkMode {
    text-align: center;
    height: 2.4em;
    background: var(--circleLabel-color);
    color: var(--background-color);
    font-weight: bolder;
    font-size: inherit;
}

.vsaCircleInfoTableLineCenterDarkMode {
    background: #2b2b2b;
}

.vsaCircleInfoTable {
    text-align: left;
    width: 100%;
    border-spacing: 0px 1px;
    color: var(--text-color-sidePanel);
    border-bottom: 1px solid var(--main-color);
}

.vsaCircleInfoTableHead {
    font-weight: bold;
}

.vsaContent {
    /* margin-left: 4vmin; */
    border-radius: 1vmin;
    border: 1px solid var(--line-color);
    overflow: hidden;
    position: absolute;
    font-family: Ubuntu;
    /* cursor: pointer; */
    transform: translate(-50%, 2em);
    min-width: 12vw;
    margin: auto;
    margin-top: 2em;
    width: fit-content;
    font-size: 1.4vmin;
    background: var(--background-color);
    text-align: left;
    color: var(--text-color-sidePanel);
}

.vsaContent2 {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: Ubuntu;
    font-size: clamp(0.72rem, 0.72vw, 0.82rem);
    background: var(--background-color);
    text-align: left;
    color: var(--text-color-sidePanel);
    padding: 1vmin 2vmin;
}

.vsaContentTableWrapper {
    flex: 1 1 auto;
    max-height: min(32rem, 62vh);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    scrollbar-color: rgba(23, 56, 100, 0.35) transparent;
    scrollbar-width: thin;
}

.vsaContentMainWrapper{
    display: flex;
    width: min(var(--circle-info-box-width, 21rem), calc(100vw - 1.5rem));
    min-width: min(var(--circle-info-box-min-width, 18rem), calc(100vw - 1.5rem));
    min-height: var(--circle-info-box-min-height, 12rem);
    max-width: min(var(--circle-info-box-max-width, 22rem), calc(100vw - 1.5rem));
    max-height: calc(100vh - 2rem);
    flex-direction: column;
    margin-top: 0.5rem !important;
    position: absolute;
    transform: translate(-50%, 1rem);
    overflow: hidden;
    resize: both;
    margin: auto;
    border: 1px solid rgba(23, 56, 100, 0.2);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.65rem 1.8rem rgba(7, 24, 60, 0.17);
    color: #07183c;
    font-size: var(--circle-info-box-font-size, 0.78rem);
}

.circle-note-canvas-overlay {
    position: absolute;
    z-index: 1002;
    overflow: visible;
    pointer-events: auto;
}

.circle-note-canvas-overlay .vsaContentMainWrapper {
    pointer-events: auto;
    /* A backdrop blur is recalculated for every card on every canvas pan and
       makes larger graphs stutter. The card background is already opaque. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.vsaContentMainWrapper2{
    margin-top: 2em !important;
    position: absolute;
    transform: translate(-50%, 2em);
    overflow-x: hidden;
    margin: auto;
    border-radius: 1vmin;
    border: 1px solid var(--line-color);
}

.vsaSectionSortButton{
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
}

.vsaSectionSortButton:focus-visible {
    border-radius: 0.25rem;
    outline: 2px solid #8bd8e8;
    outline-offset: 1px;
}

.vsaContent td {
    padding: 0.2em 0.2em 0.2em 0.2em;
}

.vsaContent2 td {
    padding: 0.32rem 0.48rem;
    border-bottom: 1px solid rgba(23, 56, 100, 0.07);
    line-height: 1.2;
}

.vsaContentLine{
    margin-left: 4vmin;
    border-radius: 1vmin;
    border: 1px solid var(--line-color);
    margin-top: -30%;
    overflow: hidden;
    position: absolute;
}

.vsaTimeLineValue {
    font-size: 2em;
}

.vsaHeader {
    display: table-cell;
    column-gap: 1vw;
    height: 2.45rem;
    padding: 0.35rem 0.55rem !important;
    flex-direction: row-reverse;
    font-size: var(--circle-info-header-font-size, 1.1rem);
    background: rgba(255, 255, 255, 0.98);
}

.vsaHeaderSection {
    display: table-cell;
    column-gap: 1vw;
    padding: 0.38rem 0.55rem !important;
    flex-direction: row-reverse;
    font-size: var(--circle-info-section-font-size, 0.76rem);
    background: #07183c;
    color: #fff;
}

.vsaHeaderSectionSub {
    display: table-cell;
    column-gap: 1vw;
    padding: 0.34rem 0.55rem !important;
    flex-direction: row-reverse;
    font-size: 1em;
    background: var(--blue);
    color: var(--black);
}

.vsaFooter {
    display: table-cell;
    column-gap: 1vw;
    padding: 0.18rem 0.55rem !important;
    flex-direction: row-reverse;
    font-size: 1em;
    background: var(--background-color);
}

.vsaHeaderButton, .vsaHeaderButtonSettings, .vsaHeaderButtonClose {
    /* float: right; */
    cursor: pointer;
}

.vsaHeaderButton,
.vsaHeaderButtonSettings,
.vsaHeaderButtonClose {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0.48rem;
    background: #eef6fa;
    color: #173864;
    font-size: var(--circle-info-button-font-size, 0.9rem);
    place-items: center;
}

.vsaHeaderButton:hover,
.vsaHeaderButtonSettings:hover,
.vsaHeaderButtonClose:hover {
    background: #dff2f7;
}

.vsaHeaderButtonLeft {
    float: left;
    cursor: default;
}

.vsaHeaderTimestamp{
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #60738f;
    font-size: var(--circle-info-timestamp-font-size, 0.64rem) !important;
    font-weight: 600;
    align-content: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vsaHeader > div {
    min-width: 0;
}

.circle-note-closed-indicator {
    position: absolute;
    z-index: 1003;
    display: grid;
    width: 2.1rem;
    height: 1.85rem;
    padding: 0;
    border: 1px solid rgba(139, 216, 232, 0.9);
    border-radius: 0.65rem;
    background: linear-gradient(145deg, #173d78, #010a2d 72%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.88),
        0 0.42rem 1rem rgba(1, 10, 45, 0.28);
    color: #b0deed;
    cursor: pointer;
    place-items: center;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.circle-note-closed-indicator::after {
    position: absolute;
    top: -0.18rem;
    right: -0.18rem;
    width: 0.48rem;
    height: 0.48rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #c01466;
    content: "";
}

.circle-note-closed-indicator .icon-infobox {
    font-size: 0.88rem;
    line-height: 1;
}

.circle-note-closed-indicator:hover,
.circle-note-closed-indicator:focus-visible {
    border-color: #b0deed;
    box-shadow:
        0 0 0 3px rgba(176, 222, 237, 0.3),
        0 0.55rem 1.2rem rgba(1, 10, 45, 0.34);
    outline: none;
    transform: translateY(-1px);
}

.vsaCircleTableLabelColumn2,
.vsaCircleTableValueColumn {
    width: 50%;
    padding: 0.34rem 0.55rem !important;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vsaCircleTableLabelColumn2 {
    color: #526783;
    font-weight: 600;
}

.vsaCircleTableValueColumn {
    color: #07183c;
    font-weight: 650;
}

.circle-note-canvas-overlay [data-info-field="rohstoffListe"] .vsaCircleTableValueColumn,
.circle-note-canvas-overlay [data-info-field="direktVorschau"] .vsaCircleTableValueColumn,
.circle-note-canvas-overlay [data-info-field="stuecklistenVorschau"] .vsaCircleTableValueColumn,
.circle-note-canvas-overlay [data-info-field="verkauftListe"] .vsaCircleTableValueColumn,
.circle-note-canvas-overlay [data-info-field="lieferantenListe"] .vsaCircleTableValueColumn,
.circle-note-canvas-overlay [data-info-field="folgematerialListe"] .vsaCircleTableValueColumn,
.circle-note-canvas-overlay [data-info-field="bearbeiteteMaterialien"] .vsaCircleTableValueColumn,
.circle-note-canvas-overlay [data-info-field="nachfrageVorschau"] .vsaCircleTableValueColumn,
.circle-note-canvas-overlay [data-info-field="kundenListe"] .vsaCircleTableValueColumn {
    max-width: none;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
}

.vsaMaterialListMoreButton {
    display: inline;
    margin-left: 0.3em;
    padding: 0;
    border: 0;
    background: transparent;
    color: #087b9a;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.vsaContentMainWrapper > .vsaContent2,
.vsaContentMainWrapper > table.vsaContent2 {
    margin: 0 !important;
}

.vsaContentMainWrapper .vsaNoteInput {
    width: 100% !important;
    min-height: 2rem;
    padding: 0.42rem 0.52rem;
    border: 1px solid rgba(23, 56, 100, 0.16);
    border-radius: 0.48rem;
    background: #f7fafc;
    box-sizing: border-box;
    color: #07183c;
    font: inherit;
}

.vsaContentMainWrapper .vsaNoteInput:focus {
    border-color: #59bcd4;
    outline: 2px solid rgba(89, 188, 212, 0.2);
}

.vsaContentMainWrapper > table:last-child {
    margin: 0 !important;
    padding: 0.38rem 0.18rem 0.5rem;
    border-top: 1px solid rgba(23, 56, 100, 0.09);
}

/* Compact, anchored mode selector for the graph's node detail cards. */
.circle-details-view-popover {
    position: fixed;
    z-index: 50050;
    width: min(21rem, calc(100vw - 1.5rem));
    padding: 0.55rem;
    border: 1px solid rgba(23, 56, 100, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1rem 3rem rgba(7, 24, 60, 0.24);
    box-sizing: border-box;
    color: #07183c;
    font-family: "Ubuntu", sans-serif;
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.circle-details-view-popover__header {
    display: grid;
    grid-template-columns: 2.25rem 1fr 1.85rem;
    align-items: center;
    padding: 0.2rem 0.15rem 0.62rem;
    gap: 0.55rem;
}

.circle-details-view-popover__mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.68rem;
    background: #e8f5f8;
    color: #173864;
    font-size: 1.15rem;
    place-items: center;
}

.circle-details-view-popover__header > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.circle-details-view-popover__header strong {
    font-size: 0.9rem;
    font-weight: 750;
}

.circle-details-view-popover__header small {
    margin-top: 0.12rem;
    color: #71839d;
    font-size: 0.68rem;
}

.circle-details-view-popover__close {
    display: grid;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf3f7;
    color: #173864;
    cursor: pointer;
    font-size: 1.2rem;
    place-items: center;
}

.circle-details-view-popover__options {
    display: flex;
    flex-direction: column;
    gap: 0.36rem;
}

.circle-details-view-option {
    display: grid;
    grid-template-columns: 2rem 1fr 1.25rem;
    align-items: center;
    width: 100%;
    min-height: 3.65rem;
    padding: 0.48rem 0.58rem;
    border: 1px solid rgba(23, 56, 100, 0.1);
    border-radius: 0.78rem;
    background: #f8fbfd;
    box-sizing: border-box;
    color: #173864;
    cursor: pointer;
    font-family: inherit;
    gap: 0.5rem;
    text-align: left;
}

.circle-details-view-option:hover,
.circle-details-view-option:focus-visible {
    border-color: rgba(89, 188, 212, 0.65);
    background: #eef9fb;
    outline: none;
}

.circle-details-view-option.is-selected {
    border-color: #173864;
    background: #edf5fa;
    box-shadow: inset 0 0 0 1px rgba(23, 56, 100, 0.12);
}

.circle-details-view-option__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    border-radius: 0.58rem;
    background: #fff;
    color: #173864;
    font-size: 1.15rem;
    place-items: center;
}

.circle-details-view-option__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.circle-details-view-option__copy strong {
    font-size: 0.78rem;
    font-weight: 750;
}

.circle-details-view-option__copy small {
    margin-top: 0.14rem;
    color: #6c7f99;
    font-size: 0.64rem;
    line-height: 1.25;
}

.circle-details-view-option__check {
    display: grid;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid #b8c8d7;
    border-radius: 50%;
    color: transparent;
    font-size: 0.68rem;
    place-items: center;
}

.circle-details-view-option.is-selected .circle-details-view-option__check {
    border-color: #173864;
    background: #173864;
    color: #fff;
}

.circle-details-view-popover__manage {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.58rem;
    border: 0;
    border-top: 1px solid rgba(23, 56, 100, 0.1);
    background: transparent;
    color: #173864;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 650;
    text-align: left;
}

/* Compact in-process inventory marker on classic value stream connections. */
.wsacInventoryLineLabel {
    pointer-events: auto;
    cursor: pointer;
    overflow: visible;
}
.wsacInventoryMarker {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 5px;
    width: 100%;
    color: #17212b;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}
.wsacInventoryTriangle {
    width: 54px;
    height: 48px;
    overflow: visible;
}
.wsacInventoryInfo {
    padding: 5px 9px;
    border: 1px solid #8fa2ad;
    background: white;
}

.wsacTimeLineLabel {
    pointer-events: none;
    overflow: visible;
}
.wsacTimeSummaryLabel {
    pointer-events: auto;
    cursor: help;
}
#chart[data-wsac-dense="true"] .wsacTimeLineLabel:not(.wsacTimeSummaryLabel) {
    display: none;
}
/* In material focus the process card sits directly below its label. The
   overview retains the complete timeline. */
#chart[data-wsac-material-focus="true"] .wsacTimeLineLabel:not(.wsacTimeSummaryLabel) {
    display: none;
}
#chart[data-wsac-dense="true"] .circle-note-canvas-overlay:hover,
#chart[data-wsac-dense="true"] .circle-note-canvas-overlay:focus-within {
    z-index: 2100;
    transform: scale(0.8) !important;
}
#chart[data-wsac-dense="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"]:hover .vsaContentMainWrapper,
#chart[data-wsac-dense="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"]:focus-within .vsaContentMainWrapper {
    max-height: min(520px, var(--wsac-note-hover-max-height, 520px));
}
.wsacMaterialFlowLabel {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 2px 5px;
    border: 1px solid rgba(112, 133, 145, 0.42);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    color: #263747;
    font-size: 13px;
    line-height: 17px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
}
.wsacTimeLabel {
    color: #263747;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    white-space: nowrap;
}
.wsacTimeSummaryLabel .wsacTimeLabel {
    background: #fff;
}

/* Keep the classic overview legend in the gap below the view controls and
   above the ERP node. Respect a position the user chose by dragging it. */
body:has(#chart[data-wsac-overview="true"])
    .analysis-feature-legend-explorer-host:not([data-manual-position="true"]) {
    top: max(236px, 22vh);
    bottom: auto;
    left: 80px !important;
    width: 185px;
    max-width: 185px;
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
}
body:has(#chart[data-wsac-overview="true"])
    .analysis-feature-legend-explorer-host:not([data-manual-position="true"])
    .analysis-feature-legend {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: 64px;
    overflow: hidden;
}
body:has(#chart[data-wsac-overview="true"])
    .analysis-feature-legend-explorer-host:not([data-manual-position="true"])
    .analysis-feature-legend__external-add-metric {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
body:has(#chart[data-wsac-overview="true"])
    .analysis-feature-legend-explorer-host:not([data-manual-position="true"])
    .analysis-feature-legend:is(:hover, :focus-within) {
    max-height: min(80px, calc(100vh - max(236px, 22vh) - 16px));
    overflow-y: auto;
}

/* Leave the focused operation and its label clear while keeping the legend
   available beside the material lane. */
body:has(#chart[data-wsac-material-focus="true"])
    .analysis-feature-legend-explorer-host:not([data-manual-position="true"]) {
    top: 65vh;
    bottom: auto;
    left: 80px;
    width: 260px;
    align-items: start;
}
body:has(#chart[data-wsac-material-focus="true"])
    .analysis-feature-legend-explorer-host:not([data-manual-position="true"])
    .analysis-feature-legend {
    width: 260px;
    max-height: 64px;
    overflow: hidden;
}
body:has(#chart[data-wsac-material-focus="true"])
    .analysis-feature-legend-explorer-host:not([data-manual-position="true"])
    .analysis-feature-legend:is(:hover, :focus-within) {
    max-height: min(250px, 30vh);
    overflow-y: auto;
}

/* At overview zoom, keep every classic value stream card within its column. */
#chart[data-wsac-overview="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"] .vsaContentMainWrapper {
    width: min(var(--circle-info-box-width, 21rem), 300px);
    min-width: min(var(--circle-info-box-min-width, 18rem), 280px);
    max-width: min(var(--circle-info-box-max-width, 22rem), 300px);
    min-height: 0;
    font-size: min(var(--circle-info-box-font-size, 0.78rem), 17px);
}
#chart[data-wsac-overview="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"] .vsaContentMainWrapper {
    --circle-info-header-font-size: 16px;
    --circle-info-section-font-size: 14px;
    max-height: 520px;
}
#chart[data-wsac-overview="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"] .vsaContent2 {
    font-size: 18px;
}
#chart[data-wsac-overview="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"] .vsaHeader {
    height: auto;
    padding: 6px !important;
}
#chart[data-wsac-overview="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"] .vsaHeaderSection,
#chart[data-wsac-overview="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"] .vsaHeaderSectionSub {
    padding: 5px 6px !important;
}
#chart[data-wsac-overview="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"] .vsaContent2 td {
    padding: 4px 6px;
}
#chart[data-wsac-material-focus="true"] .circle-note-canvas-overlay[data-circle-note-id*="_WSAC"] .vsaContentMainWrapper {
    min-height: 0;
    max-height: min(520px, var(--wsac-note-max-height, 520px));
}
#chart[data-wsac-material-focus="true"] .circle-note-canvas-overlay[data-circle-note-id*=".VORNR"] .vsaContentMainWrapper {
    width: min(400px, var(--wsac-note-column-width, 300px));
    min-width: 0;
    max-width: min(400px, var(--wsac-note-column-width, 300px));
}
#chart[data-wsac-material-focus="true"] .circle-note-canvas-overlay[data-wsac-focus-related="false"] {
    opacity: 0.14;
    pointer-events: none;
}

.circle-note-canvas-overlay {
    position: absolute;
    z-index: 1002;
    overflow: visible;
    pointer-events: auto;
}

/* Compact cards for the classic value stream; keep typography in screen pixels. */
.wsac-info-box .vsaContentMainWrapper {
    width: 100%;
    margin: 10px 0 0 !important;
    transform: translate(-50%, 0);
    border-radius: 8px;
    border: 1px solid #ccd3da;
    background: var(--background-color);
    box-shadow: 0 3px 12px #00000014;
}
.wsac-info-box .vsaContentTableWrapper {
    scrollbar-width: thin;
    max-height: 280px;
    min-width: 0;
    overflow-x: hidden;
}
.wsac-info-box .vsaContent2 {
    font-size: 12px;
    line-height: 1.4;
    table-layout: fixed;
    padding: 0;
}
.wsac-info-box .vsaContent2 td { padding: 4px 8px; }
.wsac-info-box .vsaCircleTableLabelColumn2 { width: 55%; }
.wsac-info-box .vsaCircleTableValueColumn {
    width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wsac-info-box .vsaHeaderTimestamp {
    font-size: 10px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wsac-info-box .vsaHeaderButtonSettings,
.wsac-info-box .vsaHeaderButton,
.wsac-info-box .vsaHeaderButtonLeft { font-size: 18px; }
.wsac-info-box .vsaHeaderSection { padding: 5px 8px; font-size: 12px; }
.wsac-info-box .vsaContent2:not([id]) {
    margin: 0 !important;
    border-top: 1px solid #ccd3da;
}
.wsac-info-box .vsaNoteInput { width: 100%; box-sizing: border-box; font-size: 12px; }
.wsac-info-toggle {
    border: 0;
    background: transparent;
    color: var(--text-color-sidePanel);
    font-size: 1em;
    padding: 3px 8px;
    cursor: pointer;
    vertical-align: middle;
}

.wsac-info-box-title {
    padding: 6px 8px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid #ccd3da;
}

#wsacInfoBoxTooltip {
    position: fixed;
    z-index: 100010;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 16px));
    padding: 7px 10px;
    border: 1px solid #ccd3da;
    border-radius: 4px;
    background: var(--background-color);
    color: var(--main-color);
    box-shadow: 0 2px 8px #00000026;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chart-legend-navigation {
    font-size: 0.85em;
    padding: 3px 6px;
    font-weight: bold;
}

.chart-legend-navigation[hidden],
.deactiveLegend .chart-legend-navigation {
    display: none;
}

/* IoT cards must not inherit the generic 18rem minimum on large displays. */
.iot-info-box .vsaContentMainWrapper {
    width: min(100%, 320px);
    min-width: 0;
    max-width: calc(100vw - 1.5rem);
    box-sizing: border-box;
}

/* Keep narrow IoT cards compact even with a large application root font. */
.iot-info-box .vsaContent2 td {
    padding: 2px 6px !important;
    line-height: 1.2;
}
.iot-info-box .vsaContent2 .vsaHeader {
    height: auto;
    padding: 6px 8px !important;
}
.iot-info-box .vsaHeader > div {
    display: grid !important;
    grid-template-columns: 14px minmax(0, 1fr) repeat(3, 28px);
    gap: 4px !important;
    align-items: center;
}
.iot-info-box .vsaHeaderButtonLeft { grid-row: 1; grid-column: 1; font-size: 12px; }
.iot-info-box .vsaHeaderTimestamp {
    grid-row: 1;
    grid-column: 2 / -1;
    font-size: 10px !important;
    line-height: 1.3;
}
.iot-info-box .vsaHeaderButton,
.iot-info-box .vsaHeaderButtonSettings,
.iot-info-box .vsaHeaderButtonClose {
    grid-row: 2;
    width: 28px;
    height: 28px;
    font-size: 16px;
}
.iot-info-box .vsaHeaderButton { grid-column: 3; }
.iot-info-box .vsaHeaderButtonSettings { grid-column: 4; }
.iot-info-box .vsaHeaderButtonClose { grid-column: 5; }
.iot-info-box .vsaContent2 .vsaHeaderSection,
.iot-info-box .vsaContent2 .vsaHeaderSectionSub { padding: 4px 6px !important; }
