/* ==========================================================
   Pipeline Studio
   Responsive Layout
========================================================== */

.pipeline-studio-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.pipeline-studio-header {
    background: #1e293b;
    border-radius: 10px;
    padding: clamp(16px, 2vw, 24px);
}

.pipeline-studio-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pipeline-tool {
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #334155;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: default;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.pipeline-tool.active {
    background: #38bdf8;
    color: #0f172a;
}

.pipeline-workspace {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.pipeline-workspace-header {
    padding: clamp(16px, 2vw, 24px);
    border-bottom: 1px solid #334155;
}

.pipeline-workspace-canvas {
    min-height: 520px;
    padding: clamp(20px, 3vw, 40px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    overflow-x: visible;
}

.pipeline-placeholder {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.pipeline-status-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.status-card {
    background: #1e293b;
    border-radius: 10px;
    padding: clamp(14px, 2vw, 18px);
    min-width: 0;
}

.status-title {
    font-size: 12px;
    color: #94a3b8;
}

.status-value {
    margin-top: 8px;
    font-size: clamp(18px, 2vw, 20px);
    font-weight: bold;
    word-break: break-word;
}

.pipeline-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(260px, 320px);
    gap: 20px;
    align-items: start;
}

/* ==========================================================
   Tablet
========================================================== */

@media (max-width:1200px) {

    .pipeline-dashboard-layout {

        grid-template-columns:

            1fr;

    }

}

/* ==========================================================
   Mobile / Small Laptop
========================================================== */

@media (max-width: 900px) {

    .pipeline-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .pipeline-status-panel {
        grid-template-columns: 1fr;
    }

}

.pipeline-tool.completed {

    background: #15803d;

    color: white;

}

.pipeline-tool.active {

    background: #38bdf8;

    color: #0f172a;

    font-weight: 600;

}

.pipeline-workspace {
    display: block;
    max-width: 100%;
}

.pipeline-sidebar-workspace {
    display: block;
}

.pipeline-status-panel {

    margin-top: 10px;

}

/* ==========================================================
   Selected Engineering Card
========================================================== */

.detail-card {

    transition:
        background-color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .20s ease;

}

.detail-card.active {

    border: 2px solid #22c55e;

    background: linear-gradient(
        180deg,
        rgba(34,197,94,.18),
        rgba(34,197,94,.08)
    );

    box-shadow:
        0 0 0 1px rgba(34,197,94,.25),
        0 10px 24px rgba(0,0,0,.35);

    transform: translateY(-2px);

}

.detail-card.active strong {

    color: #22c55e;

}

.detail-card.active::before {

    content: "✓";

    float: right;

    color: #22c55e;

    font-weight: bold;

    font-size: 18px;

}

.detail-card:not(.active):hover {

    border-color: #38bdf8;

    transform: translateY(-1px);

}

.approval-modal-actions button,
.pipeline-next-actions button {

    min-width: 240px;

}