.forex-market-hours-section {
    direction: ltr;
}

.forex-mh-cards-stack {
    min-height: 0;
}

.forex-mh-tz-dropdown-wrap {
    position: relative;
    min-width: 220px;
}

.forex-mh-tz-trigger {
    cursor: pointer;
}

.forex-mh-tz-trigger:hover {
    border-color: rgb(var(--primary_color)) !important;
}

.forex-mh-tz-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: rgb(var(--elements_background_color));
    border: 1px solid rgb(var(--border_color));
    border-radius: var(--border_radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.forex-mh-tz-dropdown.show {
    display: block;
}

.forex-mh-tz-search {
    border-bottom: 1px solid rgb(var(--border_color)) !important;
    background: rgb(var(--elements_inner_background_color)) !important;
    color: rgb(var(--text_color));
}

.forex-mh-tz-search::placeholder {
    color: rgb(var(--text_muted));
}

.forex-mh-tz-list {
    max-height: 220px;
    overflow-y: auto;
}

.forex-mh-tz-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: rgb(var(--text_color));
}

.forex-mh-tz-option:hover,
.forex-mh-tz-option.selected {
    background: rgba(var(--primary_color), 0.15);
}

.forex-mh-tz-option.hidden {
    display: none;
}

.forex-mh-24h-label {
    font-size: 0.875rem;
    color: rgb(var(--text_muted));
    cursor: pointer;
}

.forex-mh-clock-section {
    padding: 1rem 0;
}

.forex-mh-icons-row {
    color: rgb(var(--text_muted));
    font-size: 1.25rem;
}

.forex-mh-sun,
.forex-mh-moon {
    opacity: 0.6;
}

.forex-mh-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem 0.5rem;
    flex-wrap: nowrap;
}

.forex-mh-hour-label {
    flex: 1;
    min-width: 0;
    width: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(var(--text_muted));
    text-align: center;
    flex-shrink: 0;
}

.forex-mh-clock-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    min-height: 280px;
}

@media (min-width: 992px) {
    .forex-mh-clock-container {
        max-width: 768px;
        min-height: 560px;
    }
}

@media (max-width: 767px) {
    .forex-mh-clock-container {
        min-height: 324px;
    }
}

.forex-mh-clock-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.15;
    pointer-events: none;
}

.forex-mh-sessions-clock {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.forex-mh-session-badge {
    position: absolute;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 114px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    pointer-events: auto;
    transition: opacity 0.2s;
}

@media (min-width: 992px) {
    .forex-mh-session-badge {
        min-width: 200px;
        padding: 1rem 1.25rem;
        border-radius: 16px;
        font-size: 1rem;
        gap: 1rem;
    }
}

.forex-mh-session-badge.inactive {
    opacity: 0.55;
}

.forex-mh-session-badge.fx-card-light {
    background: rgb(var(--elements_background_color));
    border: 1px solid rgb(var(--border_color));
    color: rgb(var(--text_color));
}

.forex-mh-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.forex-mh-badge-row {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.forex-mh-badge-name {
    font-weight: 700;
}

.forex-mh-badge-flag-wrap {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

@media (min-width: 992px) {
    .forex-mh-badge-flag-wrap {
        width: 40px;
        height: 40px;
    }
}

.forex-mh-badge-flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forex-mh-badge-status {
    font-size: 0.875rem;
    font-weight: 400;
}

@media (max-width: 991px) {
    .forex-mh-badge-status-text {
        display: none;
    }
}

.forex-mh-badge-line {
    flex-shrink: 0;
    width: 4px;
    height: 44px;
    stroke: currentColor;
}

.forex-mh-current-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgb(var(--primary_color));
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.25rem;
    pointer-events: none;
}

.forex-mh-time-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    background: rgb(var(--primary_color));
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.forex-mh-current-time {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.forex-mh-period {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.9);
}

.forex-mh-draggable-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transform: translateX(-50%);
    z-index: 10;
    cursor: grab;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.forex-mh-draggable-marker:active {
    cursor: grabbing;
}

.forex-mh-marker-clock-icon {
    position: absolute;
    top: 0.25rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgb(var(--elements_background_color));
    color: rgb(var(--primary_color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 1px solid rgb(var(--border_color));
}

.forex-mh-marker-handle {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgb(var(--elements_background_color));
    background: rgb(var(--primary_color));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.forex-mh-chart-divider {
    width: 100%;
    height: 1px;
    border-top: 1px solid rgb(var(--border_color));
    margin: 0.75rem 0;
}

.forex-mh-volume-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 80px;
    padding: 4px 0;
}

@media (min-width: 992px) {
    .forex-mh-volume-chart {
        height: 76px;
    }
}

.forex-mh-volume-bar {
    width: 4px;
    min-width: 4px;
    max-width: 6px;
    flex: 1;
    background: rgb(var(--border_color));
    border-radius: 3px 3px 0 0;
    transition: background 0.2s;
}

@media (min-width: 992px) {
    .forex-mh-volume-bar {
        width: 6px;
        min-width: 6px;
    }
}

.forex-mh-volume-bar.current {
    background: rgb(var(--primary_color));
}

.forex-sc-flag-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.forex-sc-name {
    font-weight: 700;
    color: rgb(var(--text_color));
}

.forex-sc-status {
    font-size: 0.75rem;
    color: rgb(var(--text_muted));
}

.forex-sc-time {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgb(var(--text_color));
}

.forex-sc-meta,
.forex-sc-gmt,
.forex-sc-countdown {
    font-size: 0.75rem;
    color: rgb(var(--text_muted));
}

.forex-t-market {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    direction: ltr;
}

.forex-t-flag-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.forex-t-remaining-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
}

.forex-t-progress-wrap {
    flex: 1;
    max-width: 217px;
    height: 8px;
    background: rgb(var(--border_color));
    border-radius: var(--border_radius);
    overflow: hidden;
}

.forex-t-progress {
    height: 100%;
    border-radius: var(--border_radius);
    transition: width 0.3s ease;
}

.forex-t-progress.bg-success {
    background: rgb(var(--text_green)) !important;
}

.forex-t-progress.bg-danger {
    background: rgb(220, 38, 38) !important;
}

/* Table lives inside .box so use one border (the box); table matches theme row borders */
.forex-sessions-table-box .forex-sessions-table {
    border: 0;
    border-radius: 0;
    background-color: transparent;
}

.forex-sessions-table-box .forex-sessions-table table thead th,
.forex-sessions-table-box .forex-sessions-table table tbody td {
    border-color: rgb(var(--border_color));
}

@media (max-width: 767px) {
    .forex-mh-tz-dropdown-wrap {
        min-width: 100%;
    }
    .forex-market-hours-section .dashboard-table th:nth-child(4),
    .forex-market-hours-section .dashboard-table td:nth-child(4) {
        display: none;
    }
    .forex-t-remaining-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}
