/* "Sorted by" tabs and parameter panel (right side of dashboard_view) */
.sort-head {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}
.sort-head h2 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1e3a5f;
}
.sort-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #e8edf3;
    border-radius: 10px;
}
.sort-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #4a5a6e;
    font-family: 'ProximaNova', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sort-tab:hover { color: #1e3a5f; background: rgba(255, 255, 255, 0.6); }
.sort-tab.is-active {
    background: #1e3a5f;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.sort-tab:focus-visible { outline: 2px solid #1971c2; outline-offset: 1px; }

.sort-pane.is-hidden { display: none !important; }

#param-panel {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-family: 'ProximaNova', sans-serif;
}
#param-panel::-webkit-scrollbar { width: 12px; }
#param-panel::-webkit-scrollbar-track { background: #e6e6e6; border-radius: 6px; }
#param-panel::-webkit-scrollbar-thumb { background: #888; border-radius: 6px; border: 2px solid #e6e6e6; }

.param-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #6b7785;
}
.param-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Same card as the data provider list, as a button */
.param-btn.provider-card {
    --param-color: #1e3a5f;
    width: 100%;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.param-btn .param-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    margin-right: 15px;
    justify-content: center;
    align-items: center;
}
.param-icon {
    color: var(--param-color);
    display: inline-flex;
    line-height: 0;
}
.param-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.param-count {
    font-size: 12px;
    color: #2b8a3e;
}
.param-btn-past .param-icon { opacity: 0.45; }
.param-btn-past .param-count { color: #8a939d; }

/* Station list for one parameter */
.param-list-head {
    --param-color: #1e3a5f;
    /* stays pinned while the station list scrolls; the negative offsets cover the panel padding */
    position: sticky;
    top: -12px;
    z-index: 2;
    margin: -12px -12px 8px;
    padding: 12px 12px 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.param-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px 4px 2px;
    margin-bottom: 8px;
    border: 0;
    background: none;
    color: #1e3a5f;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}
.param-back:hover { background: #eef2f7; }
.param-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.param-list-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e3a5f;
}
.param-list-sub {
    font-size: 12px;
    color: #6b7785;
}
.param-past-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #4a5562;
    cursor: pointer;
}

.param-stations {
    display: flex;
    flex-direction: column;
}
.param-station {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid #f0f2f5;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.param-station:hover { background: #f4f7fb; }
.param-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
}
.param-dot.is-now { background: #66FF00; box-shadow: 0 0 0 1px #3c9a00; }
.param-dot.is-past { background: #FF0800; box-shadow: 0 0 0 1px #b30600; }
.param-station-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.param-station-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.param-station-org {
    font-size: 11px;
    color: #7a8590;
}
.param-station-time {
    font-size: 11px;
    color: #2b8a3e;
    white-space: nowrap;
}
.param-station-time.is-past { color: #8a939d; }

.param-empty {
    padding: 16px 4px;
    font-size: 13px;
    color: #6b7785;
}
