/* DP LiveBar CL - Shortcode Tables Styles */

/* Container für Shortcode-Tabellen */
.livebar-shortcode-container {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--e-global-typography-text-font-family, Sans-serif);
}

/* Basis-Tabellen-Styling */
.livebar-shortcode-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    background-color: #ffffff;
}

/* Header-Styling mit Elementor-Variablen */
.livebar-shortcode-table thead {
    background: var(--e-global-color-primary, #0072BC);
}

.livebar-shortcode-table thead th {
    background: transparent;
    color: #ffffff;
    font-family: var(--e-global-typography-9cbc796-font-family, Sans-serif);
    font-size: var(--e-global-typography-9cbc796-font-size, 14px);
    font-weight: bolder;
    font-style: var(--e-global-typography-9cbc796-font-style, normal);
    line-height: var(--e-global-typography-9cbc796-line-height, 1.4);
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #eeeeee;
    border-color: #eeeeee;
    letter-spacing: 0.3px;
}

.livebar-shortcode-table thead th:first-child {
    padding-left: 20px;
}

.livebar-shortcode-table thead th:last-child {
    padding-right: 20px;
}

/* Tbody-Styling */
.livebar-shortcode-table tbody {
    background-color: #ffffff;
}

/* Zeilen-Styling (abwechselnde Farben mit Elementor-Variablen) */
.livebar-shortcode-table tbody tr {
    /* Keine Hover-Animation */
}

.livebar-shortcode-table tbody tr:nth-child(even) {
    background-color: var(--e-global-color-ece082b, #0072BC1A);
}

.livebar-shortcode-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Hover-Effekt entfernt */

/* Zellen-Styling mit Elementor-Variablen */
.livebar-shortcode-table tbody td {
    padding: 12px 16px;
    border: 1px solid var(--e-global-color-secondary, #014673);
    font-family: var(--e-global-typography-text-font-family, Sans-serif);
    font-size: var(--e-global-typography-text-font-size, 14px);
    font-weight: var(--e-global-typography-text-font-weight, 400);
    font-style: var(--e-global-typography-text-font-style, normal);
    line-height: var(--e-global-typography-text-line-height, 1.5);
    color: #495057;
    vertical-align: middle;
}

.livebar-shortcode-table tbody td:first-child {
    padding-left: 20px;
    font-weight: 500;
}

.livebar-shortcode-table tbody td:last-child {
    padding-right: 20px;
}

/* Stelle sicher, dass alle Zeilen einen vollständigen Rahmen haben */
.livebar-shortcode-table tbody tr:last-child td {
    border-bottom: 1px solid var(--e-global-color-secondary, #014673);
}

/* Name-Spalte spezifisch */
.livebar-name-cell {
    color: #212529;
    font-weight: 500;
}

/* Status-Spalte spezifisch */
.livebar-status-cell {
    text-align: left;
    font-weight: 600;
    width: 120px;
    min-width: 120px;
}

/* Status-Styling */
.livebar-status-open {
    color: #28a745;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.livebar-status-closed {
    color: #dc3545;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Status-Icons */
.livebar-status-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.livebar-status-text {
    display: inline-block;
    vertical-align: middle;
}

/* Fallback wenn keine Daten vorhanden */
.livebar-no-data {
    padding: 20px;
    text-align: center;
    color: #495057;
    font-family: var(--e-global-typography-text-font-family, Sans-serif);
    font-size: var(--e-global-typography-text-font-size, 14px);
    font-weight: var(--e-global-typography-text-font-weight, 400);
    font-style: var(--e-global-typography-text-font-style, normal);
    line-height: var(--e-global-typography-text-line-height, 1.5);
    background-color: var(--e-global-color-ece082b, #0072BC1A);
    border: 1px solid var(--e-global-color-secondary, #014673);
    border-radius: 0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .livebar-shortcode-table {
        font-size: 13px;
    }
    
    .livebar-shortcode-table thead th,
    .livebar-shortcode-table tbody td {
        padding: 10px 12px;
    }
    
    .livebar-shortcode-table tbody td:first-child,
    .livebar-shortcode-table thead th:first-child {
        padding-left: 15px;
    }
    
    .livebar-shortcode-table tbody td:last-child,
    .livebar-shortcode-table thead th:last-child {
        padding-right: 15px;
    }
    
    .livebar-status-cell {
        width: 100px;
        min-width: 100px;
    }
    
    /* Auf sehr kleinen Bildschirmen nur Icons anzeigen */
    @media (max-width: 480px) {
        .livebar-status-text {
            display: none;
        }
        
        .livebar-status-cell {
            width: 60px;
            min-width: 60px;
        }
    }
}

/* Print-Styles */
@media print {
    .livebar-shortcode-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .livebar-shortcode-table thead th {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .livebar-shortcode-table tbody tr:nth-child(even) {
        background-color: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
} 