﻿/* Dialog shell */
.add-timeseries-dialog {
    width: 66vw;
    max-width: 900px;
    min-width: 620px;
    height: 66vh;
    max-height: 760px;
    overflow: hidden;
}

    .add-timeseries-dialog .mud-dialog-content {
        padding: 0 !important;
        overflow: hidden !important;
        height: calc(66vh - 52px);
        background: #f7f8fa;
    }

/* Main vertical layout */
.add-timeseries-dialog-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f8fa;
}

/* Fixed top area */
.wizard-header-container {
    flex: 0 0 auto;
    background: #f7f8fa;
    z-index: 10;
}

/* Title bar */
.add-timeseries-title-bar {
    background: #594AE2;
    color: white;
    padding: 10px 16px;
}

.add-timeseries-title-text {
    color: white;
}

.add-timeseries-title-bar .mud-chip {
    height: 24px;
    font-size: 0.75rem;
}

/* Step buttons row */
.wizard-stepbar-container {
    background: #f7f8fa;
    padding: 6px 8px;
    border-bottom: 1px solid #e0e0e0;
}

.wizard-step-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.wizard-step-button {
    min-width: 110px;
    height: 58px;
    padding: 4px 8px;
    text-transform: none;
    flex: 0 0 auto;
}

.wizard-step-button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
}

.wizard-step-number {
    font-size: 0.72rem;
    font-weight: 700;
}

.wizard-step-label {
    font-size: 0.78rem;
    white-space: nowrap;
}

.wizard-step-current {
    background: #594ae2 !important;
    color: white !important;
}

.wizard-step-complete {
    background: #9B92EE !important;
    color: white !important;
}

.wizard-step-future {
    background: #e0e0e0 !important;
    color: #666 !important;
}

/* Main page body */
.wizard-scroll-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
    background: #f7f8fa;
}

/* Shared wizard page panel */
.wizard-inset-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Search */
.wizard-search-box {
    flex: 0 0 auto;
    margin-bottom: 4px;
}

/* Scrollable list */
.wizard-selection-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-top: 0;
    padding-bottom: 0;
}

/* Shared system selection rows - used by StepPage_SelectSystem */
.wizard-system-list-item {
    padding-top: 2px;
    padding-bottom: 2px;
    cursor: pointer;
    border-left: 4px solid transparent;
}

    .wizard-system-list-item:hover {
        background: #f5f5f5;
    }

.wizard-system-list-item-selected {
    background: #e3f2fd !important;
    border-left: 4px solid #1976d2;
}

.wizard-system-list-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    min-width: 0;
}

.wizard-system-checkbox {
    flex: 0 0 auto;
}

.wizard-system-item-name {
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer-style buttons inside wizard pages */
.wizard-page-action-button {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 8px;
}

/* Breadcrumb/title separator */
.breadcrumb-at-symbol {
    color: white;
    font-weight: 700;
    padding: 0 2px;
}
