/* owner-styles.css */

/* Стили страницы владельца */
.owner-page .account-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 10px;
}

.charts-container {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Отступ снизу для табов */
    padding-bottom: 20px;
}

.chart-container {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-title {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
    font-weight: 600;
}

.chart-bars {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    overflow-x: auto;
    padding-top: 20px;
    width: 100%;
}

.chart-bar {
    width: 30px;
    min-width: 30px;
    margin: 0 3px;
    border-radius: 5px 5px 0 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.chart-bar:hover {
    opacity: 0.8 !important;
    transform: translateY(-5px);
}

.chart-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    z-index: 10;
}

.chart-bar:hover .chart-bar-value {
    opacity: 1;
}

.chart-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 60px;
    text-align: center;
}

.report-content {
    margin-top: 20px;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
}

.report-content th, .report-content td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.report-content th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.report-controls {
    margin-bottom: 15px;
}

.report-filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.report-filter-form .form-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-filter-form select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 80px; /* Больше отступ для мобильных табов */
    }
    
    .chart-container {
        height: 250px;
    }
    
    .chart-bar {
        width: 25px;
        min-width: 25px;
    }
}

/* Анимация появления столбиков */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Разные задержки для анимации */
.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.15s; }
.chart-bar:nth-child(3) { animation-delay: 0.2s; }
.chart-bar:nth-child(4) { animation-delay: 0.25s; }
.chart-bar:nth-child(5) { animation-delay: 0.3s; }
.chart-bar:nth-child(6) { animation-delay: 0.35s; }
.chart-bar:nth-child(7) { animation-delay: 0.4s; }
.chart-bar:nth-child(8) { animation-delay: 0.45s; }
.chart-bar:nth-child(9) { animation-delay: 0.5s; }
.chart-bar:nth-child(10) { animation-delay: 0.55s; }
.chart-bar:nth-child(11) { animation-delay: 0.6s; }
.chart-bar:nth-child(12) { animation-delay: 0.65s; }
.chart-bar:nth-child(13) { animation-delay: 0.7s; }
.chart-bar:nth-child(14) { animation-delay: 0.75s; }
.chart-bar:nth-child(15) { animation-delay: 0.8s; }
.chart-bar:nth-child(16) { animation-delay: 0.85s; }
.chart-bar:nth-child(17) { animation-delay: 0.9s; }
.chart-bar:nth-child(18) { animation-delay: 0.95s; }
.chart-bar:nth-child(19) { animation-delay: 1s; }
.chart-bar:nth-child(20) { animation-delay: 1.05s; }
