/* Styly pro ApexCharts kontejnery, přepínače graf/hodnoty/stavy a heatmapu provozních stavů na stránce Odečty. */

.page-head-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.pill-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.12);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text);
    opacity: 0.65;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.pill:hover {
    opacity: 1;
}

.pill.is-active {
    opacity: 1;
    background: var(--glass-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.medium-section {
    padding: var(--space-4) var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
}

.medium-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.medium-head h2 {
    margin: 0;
}

.chart-container {
    min-height: 320px;
}

.monthly-table-wrap {
    overflow-x: auto;
}

.monthly-table-wrap .data-table th,
.monthly-table-wrap .data-table td {
    white-space: nowrap;
}

/* Heatmapa provozních stavů (záložka "Stavy") */
.status-heatmap th,
.status-heatmap td {
    text-align: center;
    padding: var(--space-1) var(--space-2);
}

.status-heatmap th:first-child,
.status-heatmap td:first-child {
    text-align: left;
    font-weight: 600;
}

.status-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.status-dot:hover {
    transform: scale(1.15);
}

.status-dot.is-active {
    box-shadow: 0 0 0 2px var(--color-accent);
}

.status-dot.status-green {
    background: rgba(52, 199, 89, 0.45);
}

.status-dot.status-gray {
    background: rgba(142, 142, 147, 0.5);
}

.status-dot.status-yellow {
    background: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.18);
}

.status-dot.status-red {
    background: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.22);
}

.status-dot.is-active.status-yellow,
.status-dot.is-active.status-red {
    box-shadow: 0 0 0 2px var(--color-accent);
}

.status-dot-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.6rem;
    line-height: 14px;
    font-weight: 700;
}

.status-detail {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--glass-border);
}

.status-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0;
    margin: var(--space-2) 0 0;
    list-style: none;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.12);
    font-size: 0.85rem;
}

.status-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-chip.status-green .status-chip-dot {
    background: #34c759;
}

.status-chip.status-gray .status-chip-dot {
    background: #8e8e93;
}

.status-chip.status-yellow .status-chip-dot {
    background: #ffcc00;
}

.status-chip.status-red .status-chip-dot {
    background: var(--color-danger);
}
