:root {
--primary-color-hue:214;
--primary-color-saturation: 68%;
--primary-color-lightness: 50%;
--secondary-color-hue:199;
--secondary-color-saturation: 10%;
--secondary-color-lightness: 44%;
} #select2-KLASSIFI_FIELD_select2-container {
    width: 725px;
}

textarea.multilineinput#EMAIL_TEXT {
	max-height: 500px;
}

lang[persis-key="XSL.BootstrapDateTemplate.DueDateToday"] {
	color: #d4003c;
}

:root {
    --bs-body-line-height: 1.125rem;
}

a {
    font-family: Calibri, sans-serif; 
    font-weight: normal; 
    font-size: 11pt; 
    text-decoration: none;
}

#customer_bm_head .display-group-content-col {
    width: 100%;
}
  
#customer_bm_head .display-group-content-col .display-group-label,
#customer_bm_head .display-group-content-col .display-group-value {
    width: 50%;
}

/* CSS Override: Prevent text truncation in select2 results with exactly 5 columns */
.select2-results__option .row .col.text-truncate:first-child:nth-last-child(5),
.select2-results__option .row .col.text-truncate:first-child:nth-last-child(5) ~ .col.text-truncate,
.selection-header .col.text-truncate:first-child:nth-last-child(5),
.selection-header .col.text-truncate:first-child:nth-last-child(5) ~ .col.text-truncate {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

/* CSS Override: Fixed column widths for 5-column layout */
/* Column 1: Kürzel (Short code) - 5rem */
.select2-results__option .row .col.text-truncate:first-child:nth-last-child(5):nth-child(1),
.selection-header .col.text-truncate:first-child:nth-last-child(5):nth-child(1) {
    flex: 0 0 5rem !important;
    width: 5rem !important;
    min-width: 5rem !important;
    max-width: 5rem !important;
}

/* Column 2: Bezeichnung (Description) - Flexible, takes remaining space */
.select2-results__option .row .col.text-truncate:first-child:nth-last-child(5) + .col.text-truncate,
.selection-header .col.text-truncate:first-child:nth-last-child(5) + .col.text-truncate {
    flex: 1 1 auto !important;
    min-width: 12.5rem !important;
    max-width: 100% !important;
}

/* Column 3: SAP - 3.75rem */
.select2-results__option .row .col.text-truncate:first-child:nth-last-child(5) ~ .col.text-truncate:nth-child(3),
.selection-header .col.text-truncate:first-child:nth-last-child(5) ~ .col.text-truncate:nth-child(3) {
    flex: 0 0 3.75rem !important;
    width: 3.75rem !important;
    min-width: 3.75rem !important;
    max-width: 3.75rem !important;
}

/* Column 4: Sparte (Division) - 7.5rem */
.select2-results__option .row .col.text-truncate:first-child:nth-last-child(5) ~ .col.text-truncate:nth-child(4),
.selection-header .col.text-truncate:first-child:nth-last-child(5) ~ .col.text-truncate:nth-child(4) {
    flex: 0 0 7.5rem !important;
    width: 7.5rem !important;
    min-width: 7.5rem !important;
    max-width: 7.5rem !important;
}

/* Column 5: Personalverantwortung (Yes/No) - 10rem */
.select2-results__option .row .col.text-truncate:first-child:nth-last-child(5) ~ .col.text-truncate:nth-child(5),
.selection-header .col.text-truncate:first-child:nth-last-child(5) ~ .col.text-truncate:nth-child(5) {
    flex: 0 0 10rem !important;
    width: 10rem !important;
    min-width: 10rem !important;
    max-width: 10rem !important;
}

/* Styling for selection header - only for 5 column tables */
.selection-header:has(.col.text-truncate:first-child:nth-last-child(5)) {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.3125rem;
}

/* Ensure proper alignment for rows */
.select2-results__option .row,
.selection-header:has(.col.text-truncate:first-child:nth-last-child(5)) {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}

/* Add padding to list items for better alignment */
.select2-results__option {
    padding: 0.25rem 0.75rem !important;
}