.complex-plan-page {
    min-height: calc(100vh - 6rem);
}

.complex-plan-panel {
    border: 1px solid #dbe5ef;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 2rem rgba(15, 32, 55, 0.08);
    overflow: hidden;
}

.complex-plan-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f7fbff;
    border-bottom: 1px solid #dbe5ef;
}

.complex-plan-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #52708f;
}

.complex-plan-helper {
    color: #5e7288;
    font-size: 0.9rem;
}

.complex-plan-table-wrap {
    max-height: calc(100vh - 24rem);
    overflow: auto;
}

.complex-plan-table-wrap th,
.complex-plan-table-wrap td {
    white-space: nowrap;
}

.complex-plan-run-row {
    cursor: pointer;
}

.complex-plan-run-row.active td {
    background: #eef6ff;
}

.complex-plan-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #dbe5ef;
    background: #ffffff;
}

.complex-plan-form {
    padding: 1rem 1.25rem 1.25rem;
}

.complex-plan-delete-btn {
    padding: 0.15rem 0.45rem;
}

.complex-plan-detail {
    padding: 1.25rem;
    min-height: 24rem;
}

.complex-plan-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.complex-plan-field {
    border-bottom: 1px solid #eef4fb;
    padding-bottom: 0.75rem;
}

.complex-plan-field-label {
    color: #6b7d90;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.complex-plan-field-value {
    font-weight: 600;
    word-break: break-word;
}

.complex-plan-json {
    background: #f7fbff;
    border: 1px solid #dbe5ef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 18rem;
    overflow: auto;
}

.complex-plan-added-surveys {
    border: 1px solid #dbe5ef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.complex-plan-added-surveys th,
.complex-plan-added-surveys td {
    padding: 0.5rem 0.75rem;
}

@media (max-width: 768px) {
    .complex-plan-detail-grid {
        grid-template-columns: 1fr;
    }
}
