/**
 * Incon Kolleginnen
 * Frontend-Styling für das Mitarbeiterverzeichnis mit DataTables-Integration
 * Angepasst für bessere Responsive-Unterstützung
 */

/* Hauptcontainer */
.incon-kolleginnen-container {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    width: 100%;
    overflow-x: auto;
    padding: 0px!important;
}

/* Überschrift */
.incon-kolleginnen-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* Filter-Styles */
.incon-kolleginnen-filters {
    margin-bottom: 20px;
}

.incon-filter-row {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.incon-filter-item {
    flex: 1;
    min-width: 200px;
    margin: 5px;
}

.incon-filter-select,
.incon-kolleginnen-search {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

/* Spezifischer Stil für das Suchfeld im Kolleginnen-Plugin */
.incon-kolleginnen-search {
    background-image: none;
    background-color: #fff !important;
    padding-right: 40px !important;
}

/* Export-Button für Kolleginnen */
.incon-kolleginnen-export {
    margin: 10px 0 20px;
    text-align: right;
}

.incon-kolleginnen-export-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.incon-kolleginnen-export-button:hover {
    background-color: #005177;
}

.incon-kolleginnen-export-button.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Tabellen-Wrapper */
.incon-kolleginnen-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    position: relative;
}

.incon-kolleginnen-table-wrapper.loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

/* Tabellen-Styling */
.incon-kolleginnen-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 20px;
}

.incon-kolleginnen-table thead th {
    background-color: #f7f7f7;
    font-weight: 600;
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #ddd;
    color: #333;
}

.incon-kolleginnen-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.incon-kolleginnen-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Name-Spalte */
.incon-kolleginnen-table .kolleginnen-name {
    font-weight: 500;
}

.incon-kolleginnen-table .kolleginnen-name a {
    color: #0073aa;
    text-decoration: none;
}

.incon-kolleginnen-table .kolleginnen-name a:hover {
    text-decoration: underline;
}

/* E-Mail-Spalte mit Links */
.kolleginnen-email a {
    color: #0073aa;
    text-decoration: none;
    font-size: 16px;
}

.kolleginnen-email a:hover {
    color: #005177;
}

/* FontAwesome Icon anpassen */
.kolleginnen-email a .far.fa-envelope {
    font-size: 18px;
}

/* Leerzustand */
.incon-kolleginnen-empty-state {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.incon-kolleginnen-empty-message {
    max-width: 500px;
    margin: 0 auto;
}

.incon-kolleginnen-empty-message .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #ddd;
    margin-bottom: 15px;
}

.incon-kolleginnen-empty-message h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #666;
}

.incon-kolleginnen-empty-message p {
    color: #888;
    font-size: 16px;
}

/* Verstecke leere Tabelle */
.incon-empty-table {
    display: none;
}

/* DataTables Responsive-Styles */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background-color: #0073aa;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
    background-color: #d33;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #333;
}

/* Plugin-spezifische Responsive Anpassungen */
@media screen and (max-width: 767px) {
    .incon-filter-row {
        flex-direction: column;
    }

    .incon-filter-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .incon-kolleginnen-export {
        text-align: center;
    }

    /* Tabellen-Anpassungen - Label für Mobilgeräte */
    .incon-kolleginnen-table tbody td:before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }
}

.pinned-mitarbeiter-item{background-color: #fff!important;}
.pinned-mitarbeiter-item .pinned-mitarbeiter-image{
    margin-bottom: 20px;
}
.pinned-mitarbeiter-item i{
    width: 18px;
    font-size: 14px;
    color: var(--awb-color2);
}
/* Weitere Responsive-Anpassungen für DataTables */
@media screen and (max-width: 640px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: center;
    }

    .dataTables_wrapper .dataTables_filter {
        margin-top: 0.5em;
    }

    .dataTables_wrapper .dataTables_info {
        padding-top: 0.75em;
    }
}