/* ==========================================
   YS ART ERP
   PRODUCTION DETAILS V3
========================================== */

:root{

    --primary:#2563eb;
    --secondary:#0f172a;
    --success:#22c55e;
    --warning:#f59e0b;
    --danger:#ef4444;

    --card:#ffffff;
    --text:#0f172a;
    --muted:#64748b;

    --bg:#f1f5f9;

    --radius:18px;

}

body{

    background:var(--bg);

    font-family:Inter,Segoe UI,Arial,sans-serif;

    color:var(--text);

}

.container-fluid{

    max-width:1700px;

}

/* ==========================================
   HERO HEADER
========================================== */

.hero-header{

    background:linear-gradient(135deg,#0f172a,#1d4ed8);

    border-radius:24px;

    padding:28px;

    color:#fff;

    box-shadow:0 20px 45px rgba(15,23,42,.18);

    margin-bottom:30px;

}

.hero-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:28px;

}

.hero-title h1{
    font-size:42px;
    font-weight:800;
    letter-spacing:-1px;

    background:linear-gradient(90deg,#ffffff,#dbeafe);

    background-clip:text;
    -webkit-background-clip:text;

    color:transparent;
    -webkit-text-fill-color:transparent;
}



.hero-progress{
    background:#fff;
    color:#111827;
    border-radius:18px;
    padding:14px 18px;
    margin-bottom:24px;
    box-shadow:0 8px 22px rgba(15,23,42,.08);
}


.hero-actions .btn:hover{

    transform:translateY(-3px);

}

.hero-title p{

    margin-top:10px;

    opacity:.85;

}

.hero-tag{

    display:inline-block;

    background:rgba(255,255,255,.12);

    padding:6px 14px;

    border-radius:30px;

    font-size:12px;

    letter-spacing:1px;

}

.hero-live{
    display:flex;
    align-items:center;
    gap:12px;
    background:rgba(255,255,255,.12);
    padding:12px 20px;
    border-radius:50px;
    font-weight:600;
    border:1px solid rgba(255,255,255,.15);
    box-shadow:0 0 18px rgba(34,197,94,.25);
}

.live-dot{

    width:10px;

    height:10px;

    background:#22c55e;

    border-radius:50%;

    animation:pulse 1.5s infinite;

}

@keyframes pulse{

0%{

transform:scale(1);

}

50%{

transform:scale(1.6);

opacity:.4;

}

100%{

transform:scale(1);

}

}

.hero-info-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:18px;

    margin-bottom:25px;

}

.hero-box{
    background:rgba(255,255,255,.10);
    backdrop-filter:blur(10px);
    border-radius:18px;
    padding:18px;
    border:1px solid rgba(255,255,255,.08);
    transition:all .30s ease;
    min-height:110px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}



.hero-box:hover{
    transform:translateY(-5px);
    background:rgba(255,255,255,.16);
    border-color:rgba(255,255,255,.25);
}

.hero-box small{

    opacity:.75;

}

.hero-box h5{

    margin-top:8px;

    margin-bottom:0;

    font-size:22px;

}



.hero-progress .progress{

    height:14px;

    border-radius:20px;

}

/* ==========================================
   KPI STRIP
========================================== */

.kpi-strip{

    display:grid;

    grid-template-columns:repeat(6,1fr);

    gap:18px;

    margin-top:24px;

}

.kpi-card{



    background:#ffffff;

    border-radius:18px;

    padding:22px 18px;

    text-align:center;

    box-shadow:0 10px 30px rgba(15,23,42,.12);

    transition:.30s;

}


.kpi-card{
    cursor:pointer;
}

.kpi-card{
    transition:
        transform .30s ease,
        box-shadow .30s ease,
        background .30s ease;
}

.kpi-card strong{
    font-size:30px;
    font-weight:800;
    line-height:1;
    margin-top:8px;
}

.kpi-card span{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#64748b;
}

.hero-box h5{
    font-size:24px;
    font-weight:700;
}

.kpi-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(15,23,42,.18);

}

.kpi-card i{

    font-size:30px;

    color:#2563eb;

    margin-bottom:12px;

    display:block;

}

.kpi-card span{

    display:block;

    color:#64748b;

    font-size:13px;

    margin-bottom:8px;

}

.kpi-card strong{

    display:block;

    color:#0f172a;

    font-size:24px;

    font-weight:700;

}

/* ==========================================
   HERO ACTIONS
========================================== */

.hero-actions{

    display:flex;

    gap:14px;

    margin-top:26px;

    flex-wrap:wrap;

}

.hero-actions .btn{
    border-radius:12px;
    padding:12px 22px;
    font-weight:600;
    box-shadow:0 8px 18px rgba(0,0,0,.12);
    transition:.30s;
}

.hero-actions .btn:hover{
    transform:translateY(-3px);
}

/* ==========================================
   WORKFLOW TRACKER
========================================== */

.workflow-card{

    background:#ffffff;

    border-radius:20px;

    padding:30px;

    margin:30px 0;

    box-shadow:0 10px 35px rgba(15,23,42,.08);

}

.workflow-header{

    margin-bottom:30px;

}

.workflow-header h4{

    margin:0;

    font-size:24px;

    font-weight:700;

    color:#0f172a;

}

.workflow-track{

    display:flex;

    align-items:flex-start;

    justify-content:space-between;

    gap:0;

    overflow-x:auto;

    padding:10px 0;

}

.workflow-step{

    position:relative;

    flex:1;

    min-width:120px;

    text-align:center;

}

.workflow-step:not(:last-child)::after{
    content:"";
    position:absolute;
    top:27px;
    left:50%;
    width:100%;
    height:4px;
    transform:translateX(29px);
    background:#dbeafe;
    z-index:1;
}

.workflow-circle{

    width:58px;

    height:58px;

    margin:0 auto;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    position:relative;

    z-index:2;

    font-size:22px;

    transition:all .35s ease;

    cursor:pointer;

    border:3px solid transparent;

}

.workflow-name{

    margin-top:14px;

    font-size:15px;

    font-weight:700;

    color:#0f172a;

    line-height:1.3;

}

/* ==========================================
   WORKFLOW STATUS
========================================== */

.workflow-step.completed .workflow-circle{

    background:#22c55e;

    color:#fff;

}

.workflow-step.completed::after{

    background:#22c55e;

}

.workflow-step.current .workflow-circle{

    background:#2563eb;

    color:#fff;

    animation:workflowPulse 1.5s infinite;

}

.workflow-step.pending .workflow-circle{

    background:#e2e8f0;

    color:#64748b;

}

@keyframes workflowPulse{

    0%{

        box-shadow:0 0 0 0 rgba(37,99,235,.55);

    }

    70%{

        box-shadow:0 0 0 14px rgba(37,99,235,0);

    }

    100%{

        box-shadow:0 0 0 0 rgba(37,99,235,0);

    }

}

@media (max-width:992px){

    .hero-info-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .kpi-strip{
        grid-template-columns:repeat(3,1fr);
    }

}

@media (max-width:768px){

    .stage-info-grid{

    grid-template-columns:1fr;

}

    .hero-header{
        padding:20px;
    }

    .hero-top{
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

    .hero-title h1{
        font-size:30px;
    }

    .hero-info-grid{
        grid-template-columns:1fr;
    }

    .kpi-strip{
        grid-template-columns:repeat(2,1fr);
    }

    .hero-actions{
        flex-direction:column;
    }

    .hero-actions .btn{
        width:100%;
    }

    .workflow-track{
        min-width:900px;
    }

}

/* ==========================================
   PREMIUM WORKFLOW
========================================== */

.workflow-circle:hover{

    transform:translateY(-4px) scale(1.08);

}

.workflow-step.completed .workflow-circle{

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

}

.workflow-step.current .workflow-circle{

    box-shadow:0 0 0 8px rgba(37,99,235,.15),
               0 12px 28px rgba(37,99,235,.35);

}

.workflow-step.pending .workflow-circle{

    border:2px solid #cbd5e1;

}

.workflow-circle i{

    font-size:22px;

}

.workflow-status{

    margin-top:6px;

    font-size:12px;

    font-weight:600;

    color:#64748b;

}

.workflow-step.completed .workflow-status{

    color:#16a34a;

}

.workflow-step.current .workflow-status{

    color:#2563eb;

}

.workflow-step.pending .workflow-status{

    color:#94a3b8;

}

/* ==========================================
   WORKFLOW DATE
========================================== */

.workflow-date{

    margin-top:6px;

    font-size:11px;

    color:#94a3b8;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:5px;

}

.workflow-date i{

    font-size:11px;

}

.stage-details-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.stage-details-header h4{

    margin:0;

    font-size:22px;

    font-weight:700;

}

.stage-info-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:18px;

    margin-top:20px;

}

.stage-info-card{

    background:#f8fafc;

    border:1px solid #e2e8f0;

    border-radius:16px;

    padding:18px;

    transition:.30s;

}

.stage-info-card:hover{

    transform:translateY(-4px);

    border-color:#2563eb;

    box-shadow:0 12px 24px rgba(37,99,235,.10);

}

.stage-info-card small{

    display:block;

    color:#64748b;

    font-size:12px;

    margin-bottom:8px;

}

.stage-info-card h5{

    margin:0;

    font-size:20px;

    font-weight:700;

    color:#0f172a;

}

.stage-status{

    background:#dcfce7;

    color:#15803d;

    padding:8px 18px;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

}

/* ==========================================
   STAGE EXTRA GRID
========================================== */

.stage-extra-grid{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:20px;

    margin-top:24px;

}

.stage-extra-card{

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:16px;

    padding:20px;

    transition:.3s;

}

.stage-extra-card:hover{

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transform:translateY(-3px);

}

.stage-extra-card h5{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:15px;

    font-size:17px;

    font-weight:700;

}

.stage-extra-card p{

    margin-bottom:10px;

    color:#6b7280;

}

.stage-extra-card strong{

    font-size:20px;

    color:#111827;

}

@media(max-width:768px){

    .stage-extra-grid{

        grid-template-columns:1fr;

    }

}

/* ==========================================
   AI INSIGHTS
========================================== */

.ai-insights-card{

    margin-top:25px;

    background:#fff;

    border-radius:18px;

    padding:22px;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

}

.ai-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.ai-title{

    font-size:20px;

    font-weight:700;

}

.ai-title i{

    color:#6f42c1;

    margin-right:8px;

}

.ai-badge{

    background:#6f42c1;

    color:#fff;

    padding:6px 14px;

    border-radius:30px;

    font-size:13px;

}

.ai-box{

    border-radius:14px;

    padding:18px;

    color:#fff;

    min-height:90px;

}

.ai-box h5{

    margin-top:10px;

    font-weight:700;

}

.ai-box.success{

    background:#198754;

}

.ai-box.warning{

    background:#fd7e14;

}

.ai-box.primary{

    background:#0d6efd;

}

.ai-box.dark{

    background:#212529;

}


.ai-score-card{

    background:#fff;

    margin:25px 0;

    padding:25px;

    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.score-title{

    font-size:18px;

    font-weight:700;

    margin-bottom:10px;

}

.score-number{

    font-size:42px;

    font-weight:800;

    color:#6f42c1;

}
