/* ==========================================================================
   Order Workflow Phases - Front Office Styles
   ========================================================================== */

.owp-front .owp-timeline-horizontal {
    padding: 25px 15px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.owp-front .owp-timeline-track {
    display: flex;
    align-items: flex-start;
    min-width: fit-content;
}

.owp-front .owp-step {
    flex: 1;
    min-width: 100px;
    text-align: center;
    position: relative;
}

.owp-front .owp-step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.owp-front .owp-connector-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    transition: background 0.3s;
}

.owp-front .owp-first .owp-line-left,
.owp-front .owp-last .owp-line-right {
    visibility: hidden;
}

.owp-front .owp-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 1;
}

.owp-front .owp-step-dot i {
    font-size: 15px;
    color: #fff;
}

.owp-front .owp-dot-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c4cdd5;
}

.owp-front .owp-step-completed .owp-connector-line {
    background: var(--phase-color);
}
.owp-front .owp-step-completed .owp-step-dot {
    background: var(--phase-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.owp-front .owp-step-current .owp-line-left {
    background: var(--phase-color);
}
.owp-front .owp-step-current .owp-step-dot {
    background: var(--phase-color);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.15);
    transform: scale(1.2);
}
.owp-front .owp-step-current .owp-step-name {
    font-weight: 700;
    color: var(--phase-color);
}

.owp-front .owp-step-error .owp-step-dot {
    background: #e74c3c;
}

.owp-front .owp-step-label {
    padding-top: 12px;
}
.owp-front .owp-step-name {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
}
.owp-front .owp-step-completed .owp-step-name {
    color: #374151;
}
.owp-front .owp-step-date {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}
.owp-front .owp-step-duration {
    display: inline-block;
    font-size: 10px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

/* Vertical (front) */
.owp-front .owp-timeline-vertical {
    padding: 20px;
}
.owp-front .owp-vstep {
    display: flex;
    min-height: 55px;
}
.owp-front .owp-vstep-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 36px;
    flex-shrink: 0;
    margin-right: 15px;
}
.owp-front .owp-vline {
    flex: 1;
    width: 3px;
    background: #e5e7eb;
    min-height: 8px;
}
.owp-front .owp-vfirst,
.owp-front .owp-vlast {
    visibility: hidden;
}
.owp-front .owp-vdot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.owp-front .owp-vdot i {
    font-size: 13px;
    color: #fff;
}
.owp-front .owp-vstep-completed .owp-vline {
    background: var(--phase-color);
}
.owp-front .owp-vstep-completed .owp-vdot {
    background: var(--phase-color);
}
.owp-front .owp-vstep-current .owp-vdot {
    background: var(--phase-color);
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--phase-color), 0 0 0 6px rgba(0,0,0,0.04);
}
.owp-front .owp-vstep-content {
    padding-bottom: 18px;
    padding-top: 3px;
}
.owp-front .owp-vstep-header {
    font-size: 14px;
    color: #374151;
}
.owp-front .owp-vstep-current .owp-vstep-header strong {
    color: var(--phase-color);
}
.owp-front .owp-vstep-pending .owp-vstep-header strong {
    color: #9ca3af;
    font-weight: 400;
}
.owp-front .owp-vstep-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0;
}
.owp-front .owp-badge {
    display: inline-block;
    font-size: 10px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .owp-front .owp-step {
        min-width: 80px;
    }
    .owp-front .owp-step-dot {
        width: 32px;
        height: 32px;
    }
    .owp-front .owp-step-dot i {
        font-size: 12px;
    }
    .owp-front .owp-step-name {
        font-size: 11px;
    }
}
