.pts-frontend {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1f2937;
    max-width: 1000px;
    margin: 0 auto;
}

.pts-order-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pts-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pts-order-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.pts-progress-container {
    margin: 20px 0;
}

.pts-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.pts-progress-bg {
    background: #f3f4f6;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.pts-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    transition: width 0.5s ease-out;
}

/* Timeline */
.pts-timeline {
    position: relative;
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 20px;
}

.pts-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.pts-step {
    position: relative;
    z-index: 2;
    text-align: center;
    min-width: 100px;
    flex: 1;
}

.pts-step-dot {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 3px solid #e5e7eb;
    border-radius: 50%;
    margin: 0 auto 10px;
    transition: all 0.3s;
}

.pts-step.completed .pts-step-dot {
    background: #10b981;
    border-color: #10b981;
}

.pts-step.in_progress .pts-step-dot {
    background: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.pts-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
}

.pts-step.completed .pts-step-label,
.pts-step.in_progress .pts-step-label {
    color: #111827;
    font-weight: 600;
}

.pts-updated-at {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 15px;
    text-align: right;
}

@media (max-width: 768px) {
    .pts-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .pts-timeline::before {
        left: 34px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .pts-step {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        min-width: unset;
        text-align: left;
    }

    .pts-step-dot {
        margin: 0;
    }
}

/* Production Items Frontend Styles */
.pts-production-items {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.pts-production-items-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.025em;
}

.pts-production-items-content {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
    white-space: pre-wrap;
}