﻿.item-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Расстояние между картинкой и текстом */
    padding-bottom: 8px;
}

.item-header img {
    width: 32px; 
    height: 32px;
    object-fit: cover; /* Адаптация изображения под заданные размеры */
}

.item-header h1 {
    font-size: 2rem;
    color: #ffab00;
    margin: 0;
    text-align: center;
}

#item-details {
    margin: 0 0 20px 0;
    border-collapse: collapse;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

#item-details th, 
#item-details td {
    height: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#item-details th {
    width: 100px;
    background-color: #28293e;
    text-align: right;
    padding-right: 4px;
}

#item-details td {
    width: 80px;
    background-color: #1e1e2e;
    border-bottom: 1px rgba(255, 255, 255, 0.1);
    padding-left: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
}

#item-details .td-wide {
    width: 150px;
    background-color: #1e1e2e;
    border-bottom: 1px rgba(255, 255, 255, 0.1);
    padding-left: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
}

#item-details tr:last-child th,
#item-details tr:last-child td {
    border-bottom: none;
}

/* Иконка предмета */
#item-details .item-detail-sprite {
    margin-bottom: unset;
    text-align: center;
    vertical-align: center;
}

.item-detail-sprite img {
    object-fit: contain; /* Сохраняем пропорции изображения */
    border-radius: 12px; /* Небольшое сглаживание */
    border: 8px solid rgba(255, 255, 255, 0.1); /* Лёгкая рамка */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Добавляем тёмную тень вокруг */
}

#item-details a {
    color: #ffcc00; /* Жёлтый цвет ссылок */
    text-decoration: underline; /* Подчёркивание для лучшей видимости */
    font-weight: bold; /* Немного утолщаем */
    transition: color 0.3s ease-in-out; /* Плавное изменение цвета */
}

#item-details a:hover {
    color: #ffaa00; /* Оранжевый цвет при наведении */
    text-decoration: none; /* Убираем подчёркивание при наведении */
}

#vend-history-section {
    padding: 16px;
}

.vend-history-container {
    display: flex;
    gap: 12px;
    background-color: #1e1e2e;
    border-radius: 8px;
}

.vend-history-chart {
    flex: 1;
}

.main-svg{
    width: 100%;
}