/* Styling für das Tabellen-Content-Element */

.table-content {
    margin-bottom: 2rem;
}

.table-content table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1rem;
}

.table-content caption {
    caption-side: top;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.table-content th,
.table-content td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.table-content th {
    font-weight: bold;
    background-color: #f8f9fa;
}

/* Responsive Tabellen */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Styling-Varianten */
.table-content table.default {
    /* Standard-Styling oben definiert */
}

.table-content table.striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-content table.bordered {
    border: 1px solid #dee2e6;
}

.table-content table.bordered th,
.table-content table.bordered td {
    border: 1px solid #dee2e6;
}

.table-content table.borderless th,
.table-content table.borderless td {
    border: none;
}

.table-content table.hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-content table.small th,
.table-content table.small td {
    padding: 0.3rem;
    font-size: 0.875rem;
}

.table-content table.dark {
    color: #fff;
    background-color: #343a40;
}

.table-content table.dark th {
    background-color: #23272b;
}

.table-content table.dark th,
.table-content table.dark td {
    border-color: #454d55;
}

.table-content table.dark.striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-content table.dark.hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* Textausrichtung */
.table-content .text-left {
    text-align: left;
}

.table-content .text-center {
    text-align: center;
}

.table-content .text-right {
    text-align: right;
}

/* Backend-Editor Styles */
.table-editor-container {
    margin-bottom: 1.5rem;
}

.table-toolbar {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.table-editor-table {
    width: 100%;
    overflow-x: auto;
}

.table-editor-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
}

.table-editor-table th,
.table-editor-table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    vertical-align: top;
}

.table-editor-table input {
    width: 100%;
    border: 1px solid transparent;
    background-color: transparent;
    padding: 0.25rem;
}

.table-editor-table input:focus {
    border-color: #80bdff;
    outline: 0;
    background-color: white;
}

.cell-actions {
    visibility: hidden;
    position: absolute;
    right: 0;
    top: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.table-editor-table th:hover .cell-actions,
.table-editor-table td:hover .cell-actions {
    visibility: visible;
}

.cell-actions button {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #6c757d;
}

.cell-actions button:hover {
    color: #343a40;
}

.table-editor-cell {
    position: relative;
    min-width: 100px;
    min-height: 30px;
}

.style-selector {
    max-width: 200px;
}