﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

:root {
    /* Ein modernes, weiches Anthrazit statt hartem Schwarz */
    --tx-dark: #2d2d2d;
    --tx-header-grey: #404040;
}

/* Wir überschreiben die Bootstrap bg-dark Klasse */
.bg-dark {
    background-color: var(--tx-dark) !important;
}

/* Speziell für Card-Header: Etwas heller als der Body, für Tiefe */
.card-header.bg-dark {
    background-color: var(--tx-header-grey) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Option: Ein leichter Glow für die Schrift */
.card-header h5, .card-header h6 {
    color: #f8f9fa;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.02rem;
}

.card-header.bg-dark {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    /*color: #d95958;
    color: #d93231; SN 29.05.2024 - bisher rot */
    color: #333;
}

.a-colored {
    color: #d93231;
}
    a:hover {
        /*color: #d44544; SN 29.05.2024 - bisher rot */
        color: #828282;
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.text-tx-colored {
    color: #d93231;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height
    margin-bottom: 60px; */
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}


/* TX own styles ... */
.card-background {
    background-color: #eeeeee;
}

/*Card header Text wie H3 erweiteren */
.card-header {
    font-weight: 500;
    font-size: 1.75rem;
    line-height: 1.2;
}

.clickable-row {
    cursor: pointer;
}

/*Button class TXP colored*/
.btn-tx-std {
    background-color: #d93231;
    border-color: #d93231;
}

    .btn-tx-std:hover,
    .btn-tx-std:focus,
    .btn-tx-std:focus-visible {
        color: #fff;
        background-color: #b03231;
        border-color: #1d2124;
    }

    .btn-tx-std:not(:disabled):not(.disabled):active, .btn-tx-std:not(:disabled):not(.disabled).active,
    .show > .btn-tx-std.dropdown-toggle {
        color: #fff;
        background-color: #8e3231;
        border-color: #171a1d;
    }

.btn-tx-smart {
    background-color: inherit;
    border: 2px solid #d93231;
    border-radius: 20px;
}
.btn-tx-smart:hover {
    background-color: #fae3e3;
}
.btn-tx-smart:focus {
    box-shadow: none !important;

}
.btn-tx-smart:disabled {
    border-color: #3d3d3d;
}

.btn-tx-smart-round {
    border-radius: 50%; /* Vollständig rund */
    width: 40px; /* Quadratisch */
    height: 40px; /* Quadratisch */
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 0;*/
}

.btn-tx-smart-round.btn-sm {
    width: 30px;
    height: 30px;
}

/*checkbox switch, txp colored
    bootstrap 4


.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #d93231;
    background-color: #d93231;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(85, 19, 19, 0.25);
}

.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #ff8080;
}
    */
/*end checkbox*/

/*checkbox switch, txp colored
    bootstrap 5
*/
.form-check-input:checked {
    color: #fff;
    border-color: #d93231;
    background-color: #d93231;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(85, 19, 19, 0.25);
}

.form-check-input:focus:not(:checked) {
    border-color: #ff8080;
}
/*end checkbox*/

/*overwrite form-control colors*/
.form-control:focus,
.form-select:focus{
    color: #495057;
    background-color: #fff;
    border-color: #d93231;
    outline: 0;
    box-shadow: none;
}

.form-control:hover,
.form-select:hover {
    border-color: #fc3231;
}


/* end form-control*/

/* Configuration Table... */
.dtHorizontalVerticalExampleWrapper {
    max-width: 600px;
    margin: 0 auto;
}

#dtHorizontalVerticalExample th, td {
    white-space: nowrap;
}

/* make bootstrap-selected combo looks like bootstrap tx std*/
.btn-light {
    background-color: transparent;
    border: 1px solid #ced4da;
}

    .btn-light:hover {
        background-color: transparent;
        border-color: #fc3231;
    }

    .btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show > .btn-light.dropdown-toggle {
        background-color: transparent;
        border-color: #fc3231;
    }

.dropdown-item.active, .dropdown-item:active {
    color: #000;
    text-decoration: none;
    /*  SN 16.04.2026 ersetzt durch grün
        background-color: #fc3231;
    background-color: #298510;
     */
    background-color: inherit;
    font-weight: 700 !important;
}

.bootstrap-select > .dropdown-toggle {
    width: 300px;
}

.form-inline > .tx-search-field {
    display: inline-block;
    width: 300px;
    vertical-align: middle;
}


/*Make select2() Bootstrap theme looks like tx std while overwriting some classes */

    .select2-container--bootstrap .select2-selection--single {
    height: 38px;
    line-height: 1.5;
}

.select2-selection--single:hover {
    border-color: #fc3231
}

.select2-container--bootstrap .select2-selection {
    font-size: 1rem;
    font-weight: 400;
}

.select2-container--bootstrap.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection {
    border-color: #fc3231;
}

.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
    background-color: #fc3231;
}

/*Result box bigger*/
.select2-container--bootstrap .select2-results > .select2-results__options {
    max-height: 400px;
}

.select2-container--bootstrap.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.select2-container--bootstrap .select2-dropdown {
    border-color: #fc3231;
}

.select2-container {
    margin-right: 1rem !important;
}

/*for multiple select on classic theme*/
.select2-container--classic .select2-selection--multiple {
    min-height: 38px;
    /*width: 500px;*/
}

.select2-container--classic.select2-container--open .select2-selection--multiple {
    border: 1px solid #fc3231;
}

.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #fc3231;
}

.multiselectfield {
    width: 500px;
}
/* END select2() Bootstrap theme manipulations */
/*Menu stuff overwrites*/
.sidebar-dropdown.active > a > i,
.sidebar-dropdown.active > a > span {
    color: #d93231;
}

.sel-menu-item > a > span,
.sel-menu-item > a > i {
    color: #d93231;
}


/*Card Animation Scale ...*/
.card-animated-scale {
    border-radius: 4px;
    box-shadow: 0 6px 10px rgba(0,0,0,.08), 0 0 6px rgba(0,0,0,.05);
    transition: .3s transform cubic-bezier(.155,1.105,.295,1.12),.3s box-shadow,.3s -webkit-transform cubic-bezier(.155,1.105,.295,1.12);
}

    .card-animated-scale:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
    }


.card-link{
    text-decoration:none;
    color:inherit;
}
.card-link:hover {
    text-decoration:none;
    color: inherit;
}

.switch-checkbox {
    margin-left: 0em !important;
}

.tr-selected {
    background: rgba(0,0,0,0.12);
}

.tr-selected>td {
    font-weight: 600;
}

.form-grp-colored {
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius:5px;
}

.mdtimepicker-input[readonly], .mdtimepicker-symbol {
    background-color: #fff;
}

.mdtimepicker-input[readonly]:disabled {
    background-color: #e9ecef
}

.tx-table-header {
    font-weight: 600;
    font-size: 1.6rem;
    margin-left: 10px !important;
    
}

.link-uncolored {
    color: rgb(0, 0, 0, 0.5);
}

.link-uncolored:hover {
    color: rgb(0, 0, 0, 0.75);
}

.nav-tabs .nav-link.active {
    color: rgb(0,0,0,0.8);
    background-color: inherit !important;
    border-top: 0;
    border-right: 0;
    border-bottom: 2px solid #d93231;
    border-left: 0;
}

.nav-tabs .nav-link {
    color: rgba(0,0,0,0.5);
}

.form-control-color {
    width: 100% !important;
}

.btn-behind-disabled {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}


.form-floating-checkboxes {
    position: relative;
    padding-top: 1.5rem;
}

.form-floating-checkboxes > .floating-label {
    position: absolute;
    top: 0;
    left: 0.75rem;
    padding: 0 0.25rem;
    transition: all 0.2s;
    pointer-events: none;
    transform-origin: left top;
}

/* auskommentiert, sonst floated das label wenn man auf eine checkbox klickt, schaut seltsam aus ... 
 .form-floating-checkboxes:focus-within > .floating-label,
.form-floating-checkboxes .form-check-input:checked ~ .floating-label {
    transform: scale(0.85) translateY(-0.75rem) translateX(-0.15rem);
}*/

.w-70 {
    width: 70% !important;
}
.w-65 {
    width: 65% !important;
}
.w-60 {
    width: 60% !important;
}
.w-40 {
    width: 40% !important;
}

.w-35 {
    width: 35% !important;
}

.w-30 {
    width: 30% !important;
}
.w-20 {
    width: 20% !important;
}
.w-15 {
    width: 15% !important;
}
.w-13 {
    width: 13% !important;
}
.w-10 {
    width: 10% !important;
}
.w-7 {
    width: 7% !important;
}
.w-5 {
    width: 5% !important;
}


.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
}

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 25px;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 0;
    font-size: 24px;
    line-height: 1.33;
    border-radius: 35px;
}
.btn-circle:focus, .btn-circle:active {
    outline: none !important;
    box-shadow: none;
}
.btn-gray {
    background-color: #797979;
    color: #fff;
}
.btn-gray:hover {
    color:#000;
}
.sub-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.sub-header-sm {
    padding: 2px 0;
}

.span-container {
    display: flex;
    align-items: center; /* Align the items vertically */
    gap: 10px; /* Optional: add some space between the spans */
}

.sub-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #eee;
    z-index: 1;
}

.sub-header span {
    background-color: #fff;
    padding: 0 10px;
    z-index: 2;
}

.subsub-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    margin-top:5px;
}

.subsub-header::after {
    content: "";
    position: absolute;
    margin-left: 5px;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #eee;
    z-index: 1;
}

.subsub-header span {
    background-color: #fff;
    padding: 0 25px;
    font-size: 0.95rem;
    font-weight:600;
    z-index: 2;
}

.link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    background-color: #fff;
    padding: 0 10px;
    margin-bottom: .5rem;
}

.link-container-vertical {
    display: flex;
    flex-direction: column; /* Elemente untereinander */
    align-items: flex-start; /* Rechtsbündig */
    /* gap: 5px; */
    background-color: #fff;
    padding: 0 10px;
    margin-bottom: .5rem;
}

.scroll-up-link, .collapse-link {
    z-index: 2;
    padding: 0 10px;
    background-color: #fff;
    text-decoration: none;
}


/* Specific style for .collapse-link inside the .h4 span */
.h4 .collapse-link {
    padding: 0;
}

.scroll-up-link {
    color:#ccc;
}

.tx-colored-link {
    color:#014386;
}

/* 
    Remove Arrows from number Inputs
    Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Fucntion for Style!!!! 
    Firefox 
    when enabled in firefox also the only numeric input isnt forced, so better show the arrows ... 
*/
input[type=number] {
    /*-moz-appearance: textfield; */
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-100 {
    max-width: 100px;
}

.truncate-150 {
    max-width: 150px;
}

.truncate-200 {
    max-width: 200px;
}

.truncate-300 {
    max-width: 300px;
}

.select-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-truncate-full {
    width: 100%;
}
.select-truncate-150 {
    max-width: 150px; /* Breite des Dropdowns */
}

.select-truncate-200 {
    max-width: 200px; /* Breite des Dropdowns */
}

.select-truncate-250 {
    max-width: 250px; /* Breite des Dropdowns */
}
.select-truncate-300 {
    max-width: 300px; /* Breite des Dropdowns */
}


.select-truncate option {
    max-width: 150px; /* Option-Breite */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chrome, Edge, Safari: Slider-Thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; /* Breite des Punkts */
    height: 20px; /* Höhe des Punkts */
    background-color: #b03231; /* Farbe des Punkts */
    border-radius: 50%; /* Kreisförmig */
    border: 2px solid #fff; /* Weißer Rand */
    cursor: pointer; /* Zeiger beim Hover */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
    outline:none;
}

    /* Firefox: Slider-Thumb */
    input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background-color: #b03231;
        border-radius: 50%;
        border: 2px solid #fff;
        cursor: pointer;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        outline: none;
    }

    /* Schiene des Sliders global anpassen (optional) */
    input[type="range"] {
        -webkit-appearance: none; /* Standardstil entfernen */
        appearance: none;
        width: 100%; /* Breite des Sliders */
        height: 6px; /* Höhe der Schiene */
        background: #ddd; /* Farbe der Schiene */
        border-radius: 3px; /* Abgerundete Ecken */
        outline: none; /* Fokusrahmen entfernen */
    }

    /* Fokus-Farbe für den Slider */
    input[type="range"]:focus {
        outline: none; /* Entfernt Standardrahmen */
    }

    /* Entfernt die aktive Outline beim Loslassen */
    input[type="range"]::-webkit-slider-thumb {
        outline: none;
    }

    /* Stil für den Slider-Thumb bei Fokus */
    input[type="range"]::-webkit-slider-thumb:focus {
        background-color: #d64544; /* Hellere Farbe für Fokus */
        box-shadow: 0 0 5px rgba(214, 69, 68, 0.5); /* Roter Schimmer */
    }

    /* Stil für den Slider-Thumb während des Schiebens */
    input[type="range"]::-webkit-slider-thumb:active {
        background-color: #7a2524; /* Dunklere Farbe für aktiv */
        box-shadow: 0 0 10px rgba(122, 37, 36, 0.6); /* Intensiver Schimmer */
    }

    /* Firefox Fokus und aktiv */
    input[type="range"]::-moz-range-thumb:focus {
        background-color: #d64544;
        box-shadow: 0 0 5px rgba(214, 69, 68, 0.5);
        outline:none;
    }

        input[type="range"]::-moz-range-thumb:active {
            background-color: #7a2524;
            box-shadow: 0 0 10px rgba(122, 37, 36, 0.6);
            outline: none;
        }

    /* Edge/IE Fokus und aktiv */
        input[type="range"]::-ms-thumb:focus {
            background-color: #d64544;
            box-shadow: 0 0 5px rgba(214, 69, 68, 0.5);
            outline: none;
        }

        input[type="range"]::-ms-thumb:active {
            background-color: #7a2524;
            box-shadow: 0 0 10px rgba(122, 37, 36, 0.6);
            outline: none;
        }


/* Webkit (Chrome, Edge, Safari) */
.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(176, 50, 49, 0.25);
}

/* Mozilla (Firefox) */
.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(176, 50, 49, 0.25);
}

/* Microsoft (IE, Edge Legacy) */
.form-range:focus::-ms-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(176, 50, 49, 0.25);
}


.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}


.type-badge {
    display: inline-block;
    width: 4em; /* Breite in `em` für relative Anpassung */
    text-align: center;
}

.modal-moveable .modal-header {
    cursor: move;
}

th.sortable-tbl {
    cursor: pointer;
}

th.sorted-asc::after {
    content: " ▲";
    margin-left: 5px;
}

th.sorted-desc::after {
    content: " ▼";
    margin-left: 5px;
}

th.sortable-tbl {
    cursor: pointer;
    user-select: none; /* Verhindert Text-Markierung beim Klicken */
    white-space: nowrap; /* Pfeil bleibt neben dem Text */
}

/* Fläche um einen Link vergrößern, speziell in Tables wo es nur ein Icon als Link gibt wird dieser schwer klickbar */
.table-link-area {
    display: inline-block; /* macht die Fläche steuerbar */
    padding: 8px 12px; /* vergrößert Klickfläche */
    margin: -6px -10px; /* neutralisiert optisch den Abstand, wenn nötig */
}

.table-link-area i
.table-link-area span i {
    font-size: 16px; /* Icongröße unverändert */
    vertical-align: middle;
}

.alert-rounded {
    border-radius: 0.65rem;
    font-weight: 600;
    text-align: center;
}


:not(.form-floating) > .form-control-sm.mdtimepicker-input {
    padding: .20rem .20rem !important;
}

/* Bootstrap negativ Margin Nachbau */
.ms-n1 {
    margin-left: -0.25rem !important;
}
.ms-n2 {
    margin-left: -0.5rem !important;
}
.me-n1 {
    margin-right: -0.25rem !important;
}
.me-n2 {
    margin-right: -0.5rem !important;
}
.mt-n1 {
    margin-top: -0.25rem !important;
}
.mt-n2 {
    margin-top: -0.5rem !important;
}
.mb-n1 {
    margin-bottom: -0.25rem !important;
}
.mb-n2 {
    margin-bottom: -0.5rem !important;
}

/* Sperrt nur die Eingabefelder, lässt aber Collapse-Links (<a>) klickbar */
.tx-readonly-tab input,
.tx-readonly-tab select,
.tx-readonly-tab textarea {
    pointer-events: none;
    opacity: 0.75;
    background-color: #e9ecef !important;
}