:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --background: #ffffff;
    --text: #2c3e50;
    --border: #dee2e6;
    --current-hour: #fff3cd;
    --current-day: #e3f2fd;
    --current-cell: #cce5ff;
    --negative: #000000;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: var(--text);
}

.container {
    max-width: 100%;
    padding: 1rem;
}

.header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 12px;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.subtitle {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.9em;
}

.table-wrapper {
    overflow: visible;
    background: var(--background);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-table {
    width: 70%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.price-table th,
.price-table td {
    padding: 0.2rem;
    text-align: center;
    border: 1px solid var(--border);
    vertical-align: middle;
}

.time-header {
    width: 120px;
    background: var(--primary);
    color: white;
    position: sticky;
    left: 0;
    z-index: 2;
}

.time-cell {
    font-weight: bold;
}

.date {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 0.3rem;
}

.current-hour {
    border: 2px solid var(--accent);
}

.current-day {
    
}

.current-cell {
    background-color: var(--current-cell) !important;
    font-weight: bold;
    font-size: 1.3em; /* или 16px, 18px и т.д. */
}

.price {
    /*min-height: 40px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 0.3rem;*/
}

.negative {
    color: var(--negative);
    /*font-weight: bold;*/
}

.price-cell {
    position: relative;
    padding: 0 !important;
}

.price-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
}

.price-value {
    position: relative;
    z-index: 1;
    /*min-height: 40px;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.average-row td {
    font-weight: bold;
    background: var(--background);
}

/* Стили для переключателя PVN */
.vat-switch {
    display: inline-flex;
    background: var(--border);
    border-radius: 20px;
    padding: 2px;
    margin-top: 5px;
}

.vat-btn {
    padding: 4px 12px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    font-size: 0.85em;
    background: transparent;
}

.vat-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vat-btn:hover {
    background: rgb(6, 73, 136);
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .price-table {
        font-size: 1.2em;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.2rem;
        min-width: 80px;
    }
    
    .time-header {
        width: 100px;
    }
    
    .date {
        display: none;
    }
    .vat-switch {
        flex-direction: column;
        align-items: center;
    }

    .vat-btn {
        margin: 2px 0;
    }
}

@media (max-width: 480px) {
    .price-table {
        font-size: 1.1em;
        width: 100%;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.2rem;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .header {
        padding: 0.3rem;
    }
    
    .price {
        /*min-height: 35px;*/
        font-size: 1.1em;
    }
}

@media (max-width: 360px) {
    .price-value {
        font-size: 0.9em;
    }

    .time-cell {
        font-size: 0.85em;
    }
}