﻿@media (max-width: 768px) {
    .user-editable-table th, .user-editable-table td

{
    padding: 4px 6px !important;
    font-size: 0.78rem !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

.user-editable-table input,
.user-editable-table select {
    padding: 2px 4px !important;
    font-size: 0.75rem !important;
}

.user-editable-table .btn,
.user-editable-table .dropdown-toggle {
    padding: 2px 6px !important;
    font-size: 0.75rem !important;
}

.user-editable-table .trade-logo {
    max-height: 20px !important;
    max-width: 20px !important;
}

.user-editable-table .notes span,
.user-editable-table .text-muted {
    font-size: 0.7rem !important;
}

.user-editable-table [data-bs-toggle="tooltip"] {
    font-size: 0.7rem !important;
}

.accordion-button {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.85rem !important;
}

}

@media (max-width: 576px) {
    .container-fluid.px-4,
    .card-body.px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .accordion-button.px-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .table-responsive {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .unrealized-badge {
        white-space: normal !important;
        font-size: 0.72rem !important;
        padding: 0.25rem 0.5rem !important;
        max-width: 100%;
        text-align: center;
    }
    .expiry-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 10px;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .expiry-summary .stat {
        flex: 0 0 48%; /* 2-per row */
    }

    .expiry-summary .stat strong {
        font-weight: 600;
    }

}

/* Base styling */
.summary-bar {
    font-size: 0.875rem;
    line-height: 1.3;
    flex-wrap: wrap;
    row-gap: 6px;
}

/* Responsive adjustment */
@media (max-width: 576px) {
    .summary-bar {
        font-size: 0.78rem;
        padding: 0.5rem 0.75rem;
    }

        .summary-bar span {
            flex: 0 0 48%;
        }
}

/* ticker.css */
.market-news-carousel {
    max-width: 100%;
    padding: 0.5rem 0.25rem;
    background: transparent; /* changed from #f6faff */
    border: none; /* remove borders */
    font-size: 0.94rem;
    font-weight: 500;
    color: #1a1a1a;
    overflow: hidden;
}


    .market-news-carousel .carousel-inner {
        display: flex;
        align-items: center;
        height: 2rem;
    }

    .market-news-carousel .carousel-item {
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.6s ease-in-out;
    }

.news-link {
    text-decoration: none;
    color: #1a73e8;
    display: flex;
    align-items: center;
}

    .news-link:hover {
        text-decoration: underline;
        color: #0d47a1;
    }

.news-source {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    color: #666;
    margin-right: 0.6rem;
}

.carousel-control-prev,
.carousel-control-next {
    filter: brightness(0.7);
    width: 2rem;
    height: 2rem;
    top: 50%;
    transform: translateY(-50%);
}
