/* Trainer-Verfügbarkeit – Frontend-Styles */

.tv-wrapper {
    font-size: 15px;
    line-height: 1.5;
}

.tv-hidden {
    display: none !important;
}

.tv-switcher {
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-switcher select {
    padding: 4px 8px;
    font-size: 14px;
}

.tv-table-scroll {
    overflow-x: auto;
    margin-bottom: 0.5em;
}

table.tv-grid {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
}

table.tv-grid th,
table.tv-grid td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

table.tv-grid thead th {
    background: #f3f3f3;
    text-align: center;
    white-space: nowrap;
}

table.tv-grid .tv-time-col {
    white-space: nowrap;
    font-weight: 600;
    background: #fafafa;
}

table.tv-grid-small td {
    width: 36px;
    height: 22px;
    padding: 0;
}

.tv-cell-verfuegbar {
    background: #00b050 !important;
}

.tv-cell-nicht-verfuegbar {
    background: #ff0000 !important;
}

.tv-cell-unbekannt {
    background: #f0f0f0 !important;
}

.tv-cell-legend {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    border: 1px solid #ccc;
    margin: 0 4px 0 12px;
}

/* Heatmaps (Sommer-Wochenübersicht und Detailansichten) */
table.tv-heatmap th.tv-time-col {
    text-align: left;
    white-space: nowrap;
}

td.tv-heat {
    text-align: center;
    font-weight: 700;
    width: 60px;
}

td.tv-heat-yes {
    background: #00b050 !important;
    color: #fff;
}

td.tv-heat-no {
    background: #ff0000 !important;
    color: #fff;
}

.tv-cell-legend.tv-heat-yes,
.tv-cell-legend.tv-heat-no {
    border: none;
}

/* TrainerIn-Finder */
.tv-finder {
    background: #f7f9fb;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 1.5em;
}

.tv-finder-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.tv-finder-controls select {
    padding: 6px 10px;
    font-size: 14px;
    max-width: 320px;
}

.tv-finder-result {
    margin-top: 10px;
}

.tv-finder-badges .tv-badge {
    font-size: 13px;
    padding: 4px 8px;
}

.tv-comment-icon {
    cursor: help;
}

.tv-badge {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px 2px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.tv-badge.tv-available {
    background: #d6f5df;
    color: #115e2c;
    border: 1px solid #00b050;
    cursor: help;
}

.tv-badge.tv-yes {
    background: #d6f5df;
    color: #115e2c;
    border: 1px solid #00b050;
}

.tv-badge.tv-no {
    background: #fde0e0;
    color: #7a1212;
    border: 1px solid #ff0000;
}

.tv-subtle {
    color: #777;
    font-size: 12px;
}

.tv-legend {
    font-size: 12px;
    color: #555;
}

.tv-trainer-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fff;
}

.tv-trainer-card summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.tv-pref-table {
    border-collapse: collapse;
    margin: 0.5em 0;
}

.tv-pref-table th,
.tv-pref-table td {
    border: 1px solid #ddd;
    padding: 4px 8px;
    font-size: 13px;
    text-align: left;
}

.tv-comment {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 6px 10px;
    margin-top: 0.5em;
    font-size: 13px;
}

.tv-upload-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 1em 0;
}

.tv-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.tv-button:hover {
    background: #135e96;
}

.tv-notice {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 1em;
}

.tv-notice-success {
    background: #d6f5df;
    border-left: 4px solid #00b050;
}

.tv-notice-error {
    background: #fde0e0;
    border-left: 4px solid #ff0000;
}
