﻿.app-container {
    max-width: 100%;
    margin: 0;
    background: #f8f9fa;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.filter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 96%;
    color: #fff;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

.app-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .app-header h1 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }

.order-group {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
}

.group-header {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .group-header:hover {
        background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    }

    .group-header .date {
        font-size: 1.1rem;
    }

    .group-header .customer {
        font-size: 0.9rem;
        opacity: 0.9;
    }

.order-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    transition: background-color 0.2s ease;
}

    .order-item:last-child {
        border-bottom: none;
    }

    .order-item:hover {
        background-color: #f8f9fa;
    }

.order-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.order-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
}

.field-value {
    font-size: 0.95rem;
    color: #212529;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    min-height: 40px;
    display: flex;
    align-items: center;
}

    .field-value:hover {
        background: #f5f5f5;
        border-color: #1e3c72;
    }

    .field-value.editing {
        background: white;
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.status-0 {
    background: #ff9800;
    color: white;
}

.status-1 {
    background: #2196f3;
    color: white;
}

.status-6 {
    background: #4caf50;
    color: white;
}

.edit-container {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.edit-input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.edit-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.9rem;
    background: white;
}

.edit-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .edit-btn:hover {
        background: #218838;
    }

.warehouse-info {
    grid-column: 1 / -1;
    background: #e3f2fd;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0d47a1;
    font-weight: 600;
    border: 1px solid #bbdefb;
}

.deleted-item {
    opacity: 0.6;
    background: #ffebee !important;
}

    .deleted-item .field-value {
        background: #ffcdd2;
    }

.toast-container {
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 1050;
}

.toast {
    background: #28a745;
    color: white;
    border: none;
}

    .toast.error {
        background: #dc3545;
    }

@media (max-width: 576px) {
    .order-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .app-header {
        padding: 15px 10px;
    }

        .app-header h1 {
            font-size: 1.3rem;
        }

    .order-item {
        padding: 12px 15px;
    }
}

.collapse-icon {
    transition: transform 0.3s ease;
}

.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapse-content {
    border-top: 1px solid rgba(255,255,255,0.1);
}
