﻿/* 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. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.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;
  }
}

.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 */
}

/*Anpassung*/
.underline-input {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

    .underline-input:focus {
        border-bottom: 2px solid #28a745;
        outline: none;
        box-shadow: none;
    }


/* === Allgemeine Button-Stile === */

/* === Reload-Button === */

.custom-reload-button {
    background-color: #28a745; /* Immer grün */
    color: white; /* Textfarbe weiß */
    font-weight: bold; /* Text fett */
    font-size: 1.25rem; /* Größerer Text */
    border-radius: 5px; /* Abgerundete Ecken */
    transition: background-color 0.3s ease; /* Sanfter Übergang bei Hover */
    padding: 0.50rem 0.50rem;
}

    .custom-reload-button .rotate-icon {
        width: 1.5rem;
        height: 1.5rem;
        transition: transform 1s linear;
        margin-left: 20px;
        fill: white;
    }

    .custom-reload-button.rotating .rotate-icon {
        transform: rotate(360deg);
    }

    .custom-reload-button:hover {
        background-color: #218838; /* Etwas dunkler beim Hover */
    }

    .custom-reload-button.w-100 {
        max-width: 100%;
        text-align: center; /* Text und Icon zentrieren */
    }

    .custom-reload-button span {
        margin-right: 10px; /* Abstand zwischen Text und Symbol */
    }

    /* Optional: Vergrößern des Symbols */
    .custom-reload-button .rotate-icon {
        margin-left: 10px;
    }



/* === Lupe (Such-Icon) === */
.search-icon {
    background-color: transparent !important;
    border: none !important;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
}

.search-svg {
    width: 16px;
    height: 16px;
    fill: #28a745;
    transition: transform 0.4s ease;
}

/* === Gemeinsame Dreh-Animation === */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rotate-animation {
    animation: rotate 0.6s ease;
}


.sort-icon {
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
}

.table-scroll {
    overflow-x: auto;
    position: relative;
    width: 100%;
}

.table-scroll table {
    width: max-content; /* oder min-width: 1000px; */
}

.table-scroll {
    overflow-x: auto;
    width: 100%;
}



/* Sticky Spalten mit unterschiedlichen Breiten */
/* Basiseigenschaften, die alle Sticky-Spalten gemeinsam haben */
.ApoAbfrageGrid-sticky {
    position: sticky;
    background: white;
    z-index: 10;
}

.ApoAbfrageGrid-sticky-1 {
    left: 0;
    width: 90px;
}

.ApoAbfrageGrid-sticky-2 {
    left: 90px;
    width: 300px;
}

.ApoAbfrageGrid-sticky-3 {
    left: 390px;
    width: 80px;
}

.ApoAbfrageGrid-sticky-4 {
    left: 470px;
    width: 170px;
}

.sticky-summary-cell {
    font-weight: bold !important; 
    background-color: #f8f9fa; 
}


.HerstAbfrageGrid-sticky {
    position: sticky;
    background: white;
    z-index: 10;
}

.HerstAbfrageGrid-sticky-1 {
    left: 0;
    width: 90px;
}

.HerstAbfrageGrid-sticky-2 {
    left: 90px;
    width: 300px;
    position: sticky;
}


/* Highlighted in der Suche die gefundene Row grün */
.highlight {
    background-color: #70B62C;
    transition: background-color 0.5s ease;
}

.table-wrapper-fixed-height {
    max-height: 600px; /* ca. 10 Zeilen – je nach Zeilenhöhe anpassen */
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}


#ApothekenTable td,
#ApothekenTable th {
    white-space: normal !important;
    word-break: break-word;
    word-wrap: break-word;
}


/* neu nach DataTable */

.auswertung-data-table {
    width: 90% !important; /* !important falls Bootstrap was überschreibt */
    margin: 0 auto; /* zentriert den Table */
}

.no-wrap-currency {
    white-space: nowrap;
}
.w-40 {
    width: 40% !important;
}
/*ExcelButton*/
/* Flex Container für Filter links, Button rechts */
.d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Button nur als Icon ohne Rahmen/Hintergrund */
.excel-custom-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

    .excel-custom-btn:hover {
        opacity: 0.8;
        background: none;
    }

#AbfrageApothekeTable tfoot th,
#AbfrageApothekeTable tfoot td {
    background-color: #e0e0e0 !important; /* hellgrauer Hintergrund */
    font-weight: bold;
}

#ApothekenTableControlling.table.table-striped tbody tr.table-selected-custom {
    background-color: #28a745 !important;
    color: #ffffff !important;
    font-weight: bold;
}



    #ApothekenTableControlling.table.table-striped tbody tr.table-selected-custom td {
        color: #ffffff !important;
    }


#ApothekenTableControlling tr.table-selected-custom {
    background-color: #28a745 !important; /* exaktes Bootstrap-Button-Grün */
    color: #ffffff !important; /* weiße Schrift */
    font-weight: bold; /* fett */
    transition: background-color 0.2s ease;
}

    #ApothekenTableControlling tr.table-selected-custom td {
        color: #ffffff !important;
    }

/* Optional: leicht helleres Grün beim Hover */
#ApothekenTableControlling tbody tr:hover {
    background-color: #28a745 !important; /* sanfter Hover-Effekt */
    cursor: pointer;
}

.table-selected-custom {
    background-color: #28a745 !important; /* exaktes Bootstrap-Button-Grün */
    color: #ffffff !important; /* weiße Schrift */
    font-weight: bold; /* fett */
    transition: background-color 0.2s ease;
}
.selected-row {
    background-color: #d1ecf1 !important; /* Hellblau als Beispiel */
}

#Sortiment,
#werteFilter {
    height: calc(2.25rem + 2px);
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-switch .slider {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background-color: #ccc;
        border-radius: 24px;
        transition: 0.3s;
    }

        .toggle-switch .slider::before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            border-radius: 50%;
            transition: 0.3s;
        }

    .toggle-switch input:checked + .slider {
        background-color: #198754; /* Bootstrap-success */
    }

        .toggle-switch input:checked + .slider::before {
            transform: translateX(24px);
        }











