.carousel {
    max-width: 700px;
    overflow: hidden;
    display: flex;
}

.omni-index-container {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    background-color: #1475A2;
}

.omni-index-container .date {
    margin-right: 20px;
    padding: 5px 10px;
    background-color: #006a8e;
    font-weight: 900;
    flex-shrink: 0;
    border-right: 1px solid white;
    padding: 13px;
    font-weight: bold;
}

.omni-index-container .divider {
    height: 100%;
    background-color: white;
    margin-right: 20px;
}

/* A görgetés animáció csak a "scroll-group" elemen belül indul */
.scroll-group {
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    white-space: nowrap;
}

.scroll-group .group {
    display: flex;
    animation: scroll-left 30s linear infinite;
    align-items: center;
    will-change: transform;
}

/* Hover állapotban az animáció szüneteltetése */
.scroll-group:hover .group {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.scroll-group .box {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-size: 14px;
    color: white;
    white-space: nowrap;
    position: relative;
    gap: 10px; /* Térköz az elemek között */
}

/* Elválasztó vonal a box elemek között */
.scroll-group .box:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -10px;
    top: 0;
    color: white;
}

.currency {
    font-size: 13px;
}

.price {
    font-size: 14px;
    font-weight: bold;
}

.unit {
    font-size: 9px;
    font-style: italic;
    font-weight: bold;
}

.omni-index-top-bar .marquee:hover {
    animation-play-state: paused;
}


/* Általános beállítások a táblázathoz */
.omni-index-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-top: 20px;
}

/* Fejléc háttérszíne és szöveg stílusa */
.omni-index-table th {
    background-color: #4a4a4a; /* Sötétszürke háttér */
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/* Cellák szegélyezése */
.omni-index-table th, .omni-index-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

/* Tartalom középre igazítása */
.omni-index-table td {
    text-align: center;
}

/* Fejléc első oszlopának egyedi stílusa */
.omni-index-table th:first-child,
.omni-index-table td:first-child {
    text-align: left;
    padding-left: 15px;
}

/* Színezés a relatív változás oszlophoz - zöld és piros szín */
.omni-index-table .positive-change {
    color: #28a745; /* Zöld szín */
    font-weight: bold;
}

.omni-index-table .negative-change {
    color: #dc3545; /* Piros szín */
    font-weight: bold;
}

/* Alternatív sor háttérszínek */
.omni-index-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.omni-index-table tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Az utolsó oszlopban lévő ikon középre igazítása */
.omni-index-table .icon-cell {
    text-align: center;
}

/* Szegélyek az utolsó cella körül */
.omni-index-table td:last-child {
    padding: 8px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months{

}
.flatpickr-date {
    padding: 1em;
    width: 75% !important;
    font-size: 13px;
    color: inherit;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    background-color: transparent;
    -webkit-appearance: none;
}

.flatpickr-date:focus {
    border-color: #4a4a4a;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 115, 230, 0.5);
}

.filter-button{
    background-color: #4a4a4a;
    color: white;
    cursor: pointer;
}

.reset-button{
    background-color: #4a4a4a;
    color: white;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.pagination a,
.pagination span {
    color: #4a4a4a;
    font-size: 14px;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #4a4a4a;
    color: white;
}

.pagination .current {
    font-weight: bold;
    background-color: #4a4a4a;
    color: white;
    border-color: #4a4a4a;
}

.pagination a.disabled {
    color: #ccc;
    border-color: #ccc;
    pointer-events: none;
    cursor: default;
}

.pagination a:first-of-type,
.pagination a:last-of-type {
    font-weight: bold;
}

.date-filter {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.source-credits {
    margin-top: 15px;
    text-align: center;
    font-size: 0.8em;
    color: #666;
}

.source-credits p {
    margin: 0;
}

.source-credits a {
    color: #666;
    text-decoration: none;
    padding: 0 5px;
}

.source-credits a:hover {
    color: #333;
    text-decoration: underline;
}

.source-credits a strong {
    font-weight: bold;
    color: #333;
}

.source-credits a:not(:last-child)::after {
    content: "|";
    margin-left: 5px;
    color: #ccc;
}

.from-date-container,
.to-date-container,
.flex {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .date-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .from-date-container,
    .to-date-container {
        width: 100%;
    }

    .flatpickr-date {
        width: 100% !important;
    }

    .from-date-container label,
    .to-date-container label {
        display: block;
        margin-bottom: 5px;
    }

    .filter-button,
    .reset-button {
        width: 100%;
        margin-right: 5px;
    }

    .flex {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
}