﻿/* =========================================================
   CHART & LEGEND
   ========================================================= */
.chart-canvas-holder {
    position: relative;
    width: 100%;
    min-height: 250px;
    flex-grow: 1;
}

.legend-item {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.legend-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 0; /* Sharp square markers */
}

/* =========================================================
   DOTTED TABLES
   ========================================================= */
.dotted-table {
    width: 100%;
    table-layout: auto;
}

    .dotted-table th,
    .dotted-table td {
        vertical-align: bottom; /* Aligns text to bottom */
        padding-bottom: 0.25rem;
    }

    /* Force all labels and numbers to hug their content tightly */
    .dotted-table .col-fit,
    .dotted-table .col-netto,
    .dotted-table .col-brutto,
    .dotted-table .col-unit {
        width: 1%;
        white-space: nowrap !important;
    }

    /* The filler expands to take all remaining space */
    .dotted-table .col-filler {
        width: 100%;
        min-width: 15px;
    }

    /* The dots now sit exactly at the text baseline */
    .dotted-table .dots {
        border-bottom: 1.5px dotted var(--bootstrap-border-color);
        display: block;
        width: 100%;
        margin-bottom: 4px; /* Adjust this 1-2px up or down if needed for your font */
    }

/* =========================================================
   ADDITIONAL & HELPER CLASSES
   ========================================================= */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.verweis {
    color: var(--primary);
}

.detail-header {
    color: var(--primary);
}

.text-micro {
    font-size: 0.65rem;
}

.legend-line {
    height: 3px;
}

.table-hover > tbody > tr.no-hover:hover > td,
.table-hover > tbody > tr.no-hover:hover > th {
    background-color: transparent !important;
    box-shadow: none !important; /* Bootstrap 5 uses box-shadow for table backgrounds */
}
