/* Basis-Styling für die Tabelle */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Tabellenkopf */
.table thead {

    background-color: #2128320A;
    border: 1px solid #21283220;
    color: #6c757d;
    font-weight: bold;
    text-align: left;
}

.table thead th {
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
}

/* Tabelleninhalt */
.table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Leichter Hover-Effekt */
}

/* Zellen-Styling */
.table td {
    padding: 12px 15px;
}

.editable-column {
    background-color: #fff3e6;
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    text-align: center; /* Falls der Text noch nicht perfekt ausgerichtet ist */
}

/* Buttons innerhalb der Tabelle */
.table button {
    background-color: #c6c6c6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.table button:hover {
    background-color: #e59400;
}

/* Spezielles Styling für die "Alle Aktualisieren"-Spalte */
.table th:last-child,
.table td:last-child {
    text-align: right;
    padding-right: 20px;
}

highlighted-row,
.highlighted-row td[data-field="lieferant"],
.highlighted-row td[data-field="ean"],
.highlighted-row td[data-field="artikelname"],
.highlighted-row td {
    background-color: #ffc98c !important;
    transition: background-color 0.5s ease;
}

.highlighted-row .editable-column {
    background-color: #ffddb9;
    transition: background-color 0.5s ease;
}

.table tr:hover .wk_positive {
    background-color: #ffddb9 !important; /* oder eine andere gewünschte Hover-Farbe */
}



/*###################### Pagination ######################*/
.pagination{
    width: 300px;
    float: right;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Label und Select Styling */
.footer-left label {
    margin: 0;
    font-weight: 500;
}

.footer-left select {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
}

/* Pagination Info */
#pagination-info {
    margin-right: 0.75rem;
    font-weight: 500;
}

/* Pagination Links Container */
#pagination-links {
    display: flex;
    gap: 0.25rem;
}

/* Beispiel-Buttons innerhalb #pagination-links */
#pagination-links button,
#pagination-links a {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    color: #0d6efd;
    border: 1px solid #ced4da;
    background-color: #fff;
    border-radius: 0.25rem;
    text-decoration: none;
    cursor: pointer;
}

#pagination-links .active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}


/* Sticky Pagination */
.fixed-table-pagination {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: white;
    padding: 10px;
    border-top: 1px solid #dee2e6;
}

.fixed-table-pagination>.pagination, .bootstrap-table .fixed-table-pagination>.pagination-detail {
    float: left;
    width: 500px;
}

.active>.page-link, .page-link.active {
    color: #fff !important;
    background-color: #eb8c04 !important;
    border-color: #eb8c04 !important;
}
.page-link:hover {
    background-color: #ffefd7 !important;
}
.disabled>.page-link, .page-link.disabled {
    background-color: #fff6e8 !important;
}
.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: #ffefd7 !important;
}



/*###################### Ausmusterung Kommentare ######################*/
/* Stil für das WhatsApp-Chat-Design */
.chat-box {
    background-color: #e9ecef;
    border-radius: 10px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

/* Nachrichten-Box */
.chat-message {
    display: block;
    margin-bottom: 10px;
    max-width: 100%;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    text-align: left;
    font-size: 14px;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

td {
    padding: 5px;
}


.table-container {
    max-height: 600px;
    overflow-y: auto;
}



.header{
    position:sticky;
    top: 0 ;
}

.editable-column {
    background-color: #ffddb9 !important;
}

#filterDropdown {
    display: none;
}

.image-hover-wrapper {
    position: relative;
    display: inline-block;
}

.preview-img {
    max-width: 100px;
    max-height: 100px;
    height: auto;
    cursor: zoom-in;
    border: 1px solid #ccc;
}

.etl_headline{
writing-mode: vertical-lr;
font-size: 12px;
}

/* Overlay-Bild in der Mitte des Bildschirms */
.image-hover-overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.image-hover-overlay img {
    max-width: 400px;
    height: auto;
    border-radius: 4px;
}

/* Aktiviert das Overlay beim Hover */
.image-hover-wrapper:hover .image-hover-overlay {
    display: block;
}


.table {
  display: table;
  width: 100%;
}
.row {
  display: table-row;
}
.cell {
  display: table-cell;
}
.table th, .table td {
    box-sizing: border-box;
}

.table th, .table td {
  white-space: nowrap;
  box-sizing: border-box;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.below-header-bar {
    position: fixed;
    top: 52px; /* direkt unterhalb des Headers */
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 20px;
}
.sidebar.hidden + .content #table-footer,
.content.full-width #table-footer {
    left: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-left select {
    margin-left: 10px;
}

.footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

thead tr.filter-row {
    background: #f1f3f5;
}

thead tr.filter-row th {
    position: sticky;
    top: 88px; /* unterhalb der Header-Zeile */
    z-index: 11;
    background: #f1f3f5 !important;
    border-bottom: 2px solid #dee2e6;
}

.filter-row input {
    width: 100%;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-sizing: border-box;
}

.filter-input {
    position: relative;
}

/* Filter-Dropdown allgemein */
.filter-input select {
    width: 100%;
    padding: 4px 30px 4px 8px;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%236c757d" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

/* Hover & Fokus-Effekt */
.filter-input select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

/* Reset-Button rechts vom Dropdown */
.filter-input .clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.filter-input .clear-btn:hover {
    color: #333;
}

/* Container für Dropdown + Clear */
.filter-input {
    position: relative;
    display: flex;
    align-items: center;
}



.filter-input input:not(:placeholder-shown) + .clear-btn {
    display: block;
}


.fixed-table-container .fixed-table-header {
  z-index: 999;
  background-color: white;
}

/* Verbessertes Responsive Design */
/* Responsive Tabelle */
@media (max-width: 768px) {
    .table, .table thead, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

    .table thead {
        display: none; /* Tabellenkopf ausblenden */
    }

    .table tbody tr {
        margin-bottom: 10px;
        border: 1px solid #dee2e6;
        padding: 10px;
        border-radius: 5px;
        display: flex;
        flex-direction: column; /* Stellt sicher, dass jede Spalte untereinander angezeigt wird */
    }



    .table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #dee2e6;
        width: 100%;
    }

    .table td::before {
        content: attr(data-label); /* Fügt Spaltennamen hinzu */
        font-weight: bold;
        color: #343a40;
        flex-basis: 40%; /* Belegt 40% der Breite */
        text-align: left;
    }

    .table td:last-child {
        border-bottom: none;
    }
    .table th{
        display: none;
    }
}

#table-body td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bootstrap-table .table td {
    white-space: normal !important;
}
