* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2845c4 0%, #4ba24c 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Шапка */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: #555;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav a:hover {
    background: #667eea;
    color: white;
}

.nav a.active {
    background: #667eea;
    color: white;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 5px 10px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.lang-btn.active {
    background: #667eea;
    color: white;
}

/* Карточки */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 1em;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #667eea;
    font-size: 14px;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.btn-secondary {
    background: #3b3a3a;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
    margin: 3px;
}

/* Таблицы */
.table-responsive {
    overflow-x: auto;
}

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

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

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    position: sticky;
    top: 0;
}

tr:hover {
    background: #f8f9fa;
}

/* Сообщения */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Логин */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

/* Сетка дней */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.day-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.day-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.day-card.disabled {
    opacity: 0.6;
    background: #f5f5f5;
}

.day-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: normal;
}

.order-status.ordered {
    background: #d4edda;
    color: #155724;
}

.order-status.not-ordered {
    background: #f8d7da;
    color: #721c24;
}

.dish-options {
    margin-bottom: 15px;
}

.dish-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.dish-option:hover {
    background: #e9ecef;
}

.dish-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.dish-option.selected {
    background: #667eea;
    color: white;
}

/* Фильтры */
.filters {
    display: flex;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

        .filter-group label {
            font-weight: 600;
            font-size: 13px;
            color: #555;
        }
        .search-input {
            min-width: 250px;
            padding: 13.2px 12px;
            border-radius: 8px;
            border: 2px solid #ddd;
            font-size: 14px;
        }
        .search-input:focus {
            outline: none;
            border-color: #667eea;
        }
        .no-results {
            text-align: center;
            color: #666;
            padding: 40px;
            font-style: italic;
        }


/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
    }
    
    .days-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Сводная таблица для печати */
@media print {
    .header, .btn, .alert {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Информационный блок */
.info-box {
    background: linear-gradient(135deg, #e6df36 0%, #e3d82ef0 100%);
    border-left: 5px solid #0eed11;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #555;
}

/* Чекбоксы для меню */
.menu-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    background: #e9ecef;
}

.menu-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.menu-item.selected {
    background: #667eea;
    color: white;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}



/* admin-index.php */

        .report-controls {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .control-row {
            display: flex;
            gap: 15px;
            align-items: end;
            flex-wrap: wrap;
        }
        
        .control-group { display: flex; flex-direction: column; gap: 5px; }
        .control-group label { font-weight: 600; font-size: 13px; color: #555; }
        .control-group select { min-width: 220px; padding: 13px; border-radius: 6px; border: 1px solid #ddd; }
        
        .type-selector { display: flex; gap: 5px; background: white; padding: 4px; border-radius: 6px; border: 1px solid #ddd; }
        .type-btn { padding: 8px 16px; border-radius: 6px; text-decoration: none; color: #666; font-size: 14px; }
        .type-btn.active { background: #667eea; color: white; }
        
        .action-buttons { display: flex; gap: 8px; margin-left: auto; }
        .btn-csv { background: #217346; color: white; }
        .btn-print { background: #4a5568; color: white; }
        .btn-email { background: #dd6b20; color: white; }
        
        .compact-report { 
            background: white; 
            padding: 15px; 
            border-radius: 8px;
            font-size: 11px;
            line-height: 1.3;
        }
        
        .day-section { margin-bottom: 15px; page-break-inside: avoid; }
        .day-header { 
            background: #667eea; 
            color: white; 
            padding: 6px 10px; 
            border-radius: 4px; 
            margin-bottom: 8px;
            font-size: 12px;
            font-weight: bold;
        }
        
        .compact-table { 
            width: 100%; 
            border-collapse: collapse; 
            margin-bottom: 10px;
        }
        .compact-table th { 
            background: #e2e8f0; 
            padding: 4px 6px; 
            text-align: left; 
            font-size: 10px;
            border: 1px solid #cbd5e0;
        }
        .compact-table td { 
            padding: 3px 6px; 
            border: 1px solid #e2e8f0;
            vertical-align: top;
        }
        .compact-table tr:nth-child(even) { background: #f7fafc; }
        
        .compact-stats {
            display: flex;
            gap: 15px;
            font-size: 10px;
            background: #f7fafc;
            padding: 8px;
            border-radius: 4px;
            margin-top: 8px;
        }
        .compact-stats > div { flex: 1; }
        .compact-stats strong { color: #667eea; font-size: 11px; }
        .compact-stats ul { margin: 4px 0; padding-left: 15px; }
        .compact-stats li { margin: 2px 0; }
        
        .total-box {
            text-align: center;
            margin-top: 15px;
            padding: 10px;
            background: #667eea;
            color: white;
            border-radius: 6px;
        }
        .total-box .number { font-size: 24px; font-weight: bold; }
        .total-box .label { font-size: 10px; opacity: 0.9; }
        
        .print-header { display: none; }
        
        @media print {
            @page { size: A4 landscape; margin: 10mm; }
            
            body { background: white; font-size: 10pt; }
            .no-print { display: none !important; }
            .print-header { display: block !important; text-align: center; margin-bottom: 10px; }
            .print-header h1 { margin: 0; font-size: 14pt; color: #667eea; }
            .print-header p { margin: 3px 0; font-size: 9pt; color: #666; }
            
            .compact-report { padding: 0; box-shadow: none; }
            .day-section { page-break-inside: avoid; margin-bottom: 12px; }
            .compact-table { font-size: 9pt; }
            .compact-table th, .compact-table td { padding: 2px 4px; }
            
            .week-layout {
                column-count: 2;
                column-gap: 15px;
            }
            .week-layout .day-section {
                break-inside: avoid;
                margin-bottom: 10px;
            }
        }
        
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .modal-overlay.active { display: flex; }
        .modal-content {
            background: white;
            padding: 25px;
            border-radius: 12px;
            max-width: 450px;
            width: 90%;
        }
