* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            background-color: #2c3e50;
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            margin-left: 20px;
        }

        .page {
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-top: 20px;
        }

        .active {
            display: block;
        }

        .search-form {
            text-align: center;
            margin: 50px 0;
        }

        .search-form h1 {
            margin-bottom: 20px;
            color: #2c3e50;
        }

        .search-input {
            padding: 12px 20px;
            width: 300px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }

        .search-btn {
            padding: 12px 24px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            margin-left: 10px;
            transition: background-color 0.3s;
        }

        .search-btn:hover {
            background-color: #2980b9;
        }

        .order-info {
            margin-top: 20px;
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .order-number {
            font-size: 1.5rem;
            color: #2c3e50;
        }

        .back-btn {
            padding: 8px 16px;
            background-color: #95a5a6;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        th {
            background-color: #f8f9fa;
            font-weight: 600;
        }

        tr:hover {
            background-color: #f8f9fa;
        }

        .status-badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .status-issued {
            background-color: #3498db;
            color: white;
        }

        .status-prepared {
            background-color: #f39c12;
            color: white;
        }

        .status-sent {
            background-color: #2ecc71;
            color: white;
        }

        .status-delivered {
            background-color: #27ae60;
            color: white;
        }

        .status-draft {
            background-color: #95a5a6;
            color: white;
        }
        .err {padding-top: 20px; color: red;}
        footer {
            text-align: center;
            padding: 20px;
            margin-top: 40px;
            color: #7f8c8d;
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .search-input {
                width: 100%;
                margin-bottom: 10px;
            }

            .search-form {
                margin: 20px 0;
            }

            th, td {
                padding: 8px 10px;
            }

            .order-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .back-btn {
                margin-top: 10px;
            }
        }

@media (max-width: 768px) {
    /* Существующие стили для мобильных */

    /* Новые стили для адаптивной таблицы */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        white-space: nowrap;
        min-width: 120px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .back-btn {
        margin-top: 10px;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    /* Альтернативный вариант для очень маленьких экранов */
    table {
        display: flex;
        flex-direction: column;
    }

    thead {
        display: none;
    }

    tbody, tr {
        display: flex;
        flex-direction: column;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 5px;
        border-bottom: 1px solid #eee;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
        color: #2c3e50;
        flex: 1;
    }

    td:last-child {
        border-bottom: 2px solid #ddd;
    }
}
