.action-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.15s ease;
    color: #ffffff;
}

.action-icon:hover {
    transform: scale(1.08);
}

.action-icon--edit {
    background: #f4b40d;
}

.action-icon--delete {
    background: #dc3545;
}

.action-icon--view {
    background: #0dcaf0;
}

.nav-link .icon-fa {
    color: #2f3563 !important;
    font-size: 14px;
}

.nav-link.active .icon-fa {
    color: #ffffff !important;
}

.qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #8a99b7;
    border-radius: 999px;
    overflow: hidden;
    padding: 0;
    background: #fff;
}

.qty-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 16px;
    line-height: 1;
    color: #6e7b95;
    cursor: pointer;
    font-weight: 500;
}

.qty-btn:active {
    background: rgba(0, 0, 0, 0.06);
}

.qty-input {
    width: 42px;
    border: none !important;
    text-align: center;
    font-size: 12px;
    padding: 4px 0;
    outline: none;
    background: transparent;
    color: #2c3a4b;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.order-steps-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 0px;
}

.po-stepper {
    list-style: none;
    margin: 0 auto;
    padding: 40px 0 32px;
    width: 100%;
    display: grid;
    position: relative;
    column-gap: 0;
}

.po-stepper::before {
    content: "";
    position: absolute;
    top: 52%;
    height: 2px;
    background-color: #cfd2d6;
    z-index: 1;

    left: calc(100% / (var(--steps) * 2));
    right: calc(100% / (var(--steps) * 2));
}
.po-stepper::after {
    content: "";
    position: absolute;
    top: 52%;
    height: 2px;
    background-color: #d6673a;
    z-index: 2;
    left: calc(100% / (var(--steps) * 2));
    width: calc((100% - (100% / var(--steps))) * var(--progress-ratio));
    transition: width 0.35s ease;
}

.po-step {
    text-align: center;
    position: relative;
    z-index: 3;
}

.po-step__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #999;
}

.po-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #cfd2d6;
    color: #cfd2d6;
    background-color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.po-step__icon i {
    line-height: 1;
}

.po-step__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #cfd2d6;
    margin: 4px auto;
}

.po-step__date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.po-step.is-done .po-step__label {
    color: #d6673a;
}

.po-step.is-done .po-step__icon {
    border-color: #d6673a;
    color: #d6673a;
}

.po-step.is-done .po-step__dot {
    background-color: #d6673a;
}

.po-step.is-active .po-step__label {
    color: #d6673a;
}

.po-step.is-active .po-step__icon {
    border-color: #d6673a;
    color: #d6673a;
    box-shadow: 0 0 0 4px rgba(214, 103, 58, 0.2);
}

.po-step.is-active .po-step__dot {
    background-color: #d6673a;
}

@media (max-width: 768px) {
    .order-steps-container {
        padding: 0 12px;
    }

    .po-stepper {
        padding-top: 24px;
    }

    .po-step__label {
        font-size: 10px;
    }

    .po-step__date {
        font-size: 10px;
    }

    .po-step__icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .po-step__dot {
        width: 12px;
        height: 12px;
    }
}

.po-step.is-rejected .po-step__icon {
    background-color: #f8d7da;
    color: #842029;
    border-radius: 50%;
}

.po-step.is-rejected .po-step__dot {
    background-color: #dc3545;
    border-color: #dc3545;
}

.po-step.is-rejected .po-step__label {
    color: #dc3545;
    font-weight: 600;
}

#livewireToast {
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 300px;
}

#livewireToastIcon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.toast-success {
    background: #d1e7dd;
    color: #0f5132;
}

.toast-error {
    background: #f8d7da;
    color: #842029;
}

.toast-warning {
    background: #fff3cd;
    color: #664d03;
}

.toast-success-icon {
    background-color: #198754;
}

.toast-error-icon {
    background-color: #dc3545;
}

.toast-warning-icon {
    background-color: #ffc107;
    color: #000;
}
