.production-plan-page {
    padding: 1.5rem 0 3rem;
}

.production-plan-page .page-title {
    font-size: 1.75rem;
    font-weight: 600;
}

.production-plan-page .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.sequence-controls .btn {
    width: 36px;
}

.sequence-input {
    text-align: center;
}

.plan-order-list,
.existing-order-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.plan-order-list li,
.existing-order-list li {
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #edf2f9;
}

.plan-order-list li:last-child,
.existing-order-list li:last-child {
    border-bottom: 0;
}

.plan-order-badge,
.existing-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    font-weight: 600;
    color: #4a5568;
    background-color: #edf2f9;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
}

.plan-order-text {
    display: inline-flex;
    flex-direction: column;
}

.plan-order-text small {
    display: block;
}

.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.existing-plan-item {
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background-color: #ffffff;
}

.existing-plan-item:last-child {
    margin-bottom: 0;
}

.existing-plan-sequence {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    margin-bottom: 0.25rem;
}

.existing-order-list li span:last-child {
    font-weight: 600;
    color: #2d3748;
}

.existing-plans-toolbar {
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.existing-plans-scroll {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.existing-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.existing-plan-actions .btn {
    min-width: 110px;
}

.existing-plans-empty {
    border: 1px dashed #cbd5f5;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    background-color: #f8fafc;
}

@media (max-width: 992px) {
    .production-plan-page {
        padding: 1rem 0 2rem;
    }

    .sequence-controls {
        flex-direction: row !important;
    }

    .sequence-controls .btn {
        width: auto;
        margin: 0 0.15rem;
    }

    .existing-plans-scroll {
        max-height: none;
        padding-right: 0;
    }
}
