body {
    font-family: 'Roboto', sans-serif;
    padding: 20px;
    background-color: #f5f5f5;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.q-table {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.q-table__container {
    flex: 1;
    overflow: auto;
    position: relative;
}

/* Фиксированный заголовок таблицы */
.q-table thead tr {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: white;
}

.connection-panel {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.price-up {
    color: #21BA45;
}

.price-down {
    color: #C10015;
}

.profit-positive {
    color: #21BA45;
    font-weight: bold;
}

.profit-negative {
    color: #C10015;
}

.slider-container {
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-wrapper {
    flex-grow: 1;
}

.copyable {
    cursor: pointer;
    color: #1976D2;
}

.copyable:hover {
    text-decoration: underline;
}

.copyable:active {
    background-color: #e0e0e0;
}

.price-value {
    cursor: help;
}

.table-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.q-tooltip {
    z-index: 9999 !important;
    pointer-events: none;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.item-dialog {
    padding: 20px;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
}

.dialog-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.dialog-label {
    font-weight: bold;
    color: #666;
}

.dialog-value {
    color: #333;
    text-align: right;
    max-width: 300px;
}

/* Стили для диалога с вкладками */
.item-dialog {
    min-width: 500px;
    max-width: 800px;
}

.q-tab-panel {
    padding: 16px 0;
}

.dialog-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.dialog-label {
    font-weight: bold;
    color: #666;
}

.dialog-value {
    color: #333;
    text-align: right;
    max-width: 300px;
}

.connection-panel.grid {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 8px;
}

/* Добавьте в стили */
.text-red {
    color: #ff4444;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.draggable-header {
    cursor: move;
    user-select: none;
    background-color: #f5f5f5;
}

.sortable {
    cursor: pointer;
}

.sortable:hover {
    background-color: #f0f0f0;
}

.header-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
}

/* Добавьте в ваш main.css */
.item-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-badge {
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #6c757d !important;
}

.item-title {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profit-high {
    color: #21BA45;
    font-weight: bold;
}

.copyable {
    cursor: pointer;
    transition: background-color 0.3s;
}

.copyable:hover {
    background-color: rgba(25, 118, 210, 0.1);
}

.q-table td {
    padding: 4px 8px;
}

.item-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-badge {
    flex-shrink: 0;
}

/* В вашем CSS файле */
.q-dialog__inner--maximized-- {
    padding: 20px;
}

.q-table__container-- {
    max-height: 70vh;
    overflow-y: auto;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.upgrade-badge {
    color: #4caf50;
    /* Зеленый цвет для заточки */
    font-weight: bold;
    margin-left: 4px;
}

.quality-badge {
    color: #ff9800;
    /* Оранжевый цвет для качества */
    margin-left: 4px;
}

.item-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        margin-left: 0;
        margin-top: 12px;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}