/* Sipariş Geçmişi Modal Responsive Styles */
#siparisGecmisModal .modal-dialog {
    margin: 0.5rem auto;
}

#siparisGecmisModal .modal-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

#siparisGecmisModal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

#siparisGecmisModal .modal-body {
    padding: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Mobile Card Styles */
.siparis-gecmis-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.siparis-gecmis-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header-mobile {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.card-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.card-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.card-product-option {
    font-size: 12px;
    color: #64748b;
}

.card-badge-mobile {
    flex-shrink: 0;
}

.card-options-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.option-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.card-body-mobile {
    padding: 12px;
    background: #f8fafc;
}

.card-info-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.card-info-item:last-child {
    border-bottom: none;
}

.card-info-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    min-width: 80px;
}

.card-info-value {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.staff-avatar-mobile {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fe6447;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive Modal Adjustments */
@media (max-width: 767.98px) {
    #siparisGecmisModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
    
    #siparisGecmisModal .modal-content {
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    #siparisGecmisModal .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
        max-height: none;
    }
    
    #siparisGecmisModal .modal-header {
        padding: 12px;
        flex-shrink: 0;
    }
    
    #siparisGecmisModal .modal-footer {
        padding: 12px;
        flex-shrink: 0;
    }
    
    .siparis-gecmis-card {
        border-radius: 10px;
    }
    
    .card-header-mobile {
        padding: 10px;
    }
    
    .card-body-mobile {
        padding: 10px;
    }
}

@media (max-width: 575.98px) {
    #siparisGecmisModal .modal-title {
        font-size: 1rem;
    }
    
    .card-product-name {
        font-size: 14px;
    }
    
    .card-info-label {
        font-size: 11px;
        min-width: 70px;
    }
    
    .card-info-value {
        font-size: 12px;
    }
}

