/* =========================================
   ORDERS SECTION STYLES
   ========================================= */

/* --- ORDER LIST CARD (Full Width with Details) --- */
.order-list-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-list-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* --- PENDING ORDERS (Single Line / Sleek) --- */
.pending-order-card {
    padding: 0 15px;
    height: 56px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 10px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pending-order-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
    transform: translateX(2px);
}

.order-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.order-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stage-badge {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    min-width: 90px;
    text-align: center;
    letter-spacing: 0.5px;
}

.stage-prio-low {
    background: var(--success-light);
    color: #065f46;
}

.stage-prio-med {
    background: #ffedd5;
    color: #9a3412;
}

.stage-prio-high {
    background: var(--danger-light);
    color: #991b1b;
}

.badge-healthy {
    background: var(--success-light);
    color: #065f46;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.date-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    text-align: center;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 120px;
    white-space: nowrap;
}

/* Dynamic Date Colors */
.db-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.db-orange {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.db-red {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.btn-toggle-view {
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-toggle-view:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Horizontal Progress Bar */
.progress-container {
    position: relative;
    margin: 40px 0;
    padding: 0 10px;
}

.progress-line {
    position: absolute;
    top: 18px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: #f1f5f9;
    z-index: 1;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.step:hover {
    transform: translateY(-2px);
}

.icon-circle {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: var(--transition);
    pointer-events: none;
}

.icon-circle i {
    pointer-events: none;
}

.step > span {
    pointer-events: none;
}

.step.prio-low .icon-circle {
    border-color: var(--success);
    color: var(--success);
}

.step.prio-med .icon-circle {
    border-color: var(--warning);
    color: var(--warning);
}

.step.prio-high .icon-circle {
    border-color: var(--danger);
    color: var(--danger);
    background: #fef2f2;
}

/* Customer Item (Simplified List View) */
.customer-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    background: white;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.customer-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.customer-item.selected {
    background: var(--primary-light);
    border: 2px solid var(--primary);
}
