/* Employee Order Overview Styles */

.overview-intro {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.overview-intro p {
    margin: 0;
    color: #6c757d;
}

/* Weeks List */
.weeks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.week-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    background-color: #fff;
    transition: box-shadow 0.2s ease;
}

.week-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.week-card.week-current {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}

.week-card.week-past {
    opacity: 0.85;
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.week-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.week-dates {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Overview Detail */
.overview-detail .account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.print-header {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
}

.print-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.print-date-range {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.print-meta {
    font-size: 0.9rem;
    color: #666;
}

/* Day Detail */
.day-detail {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    page-break-inside: avoid;
}

.day-detail.day-locked {
    background-color: #f8f9fa;
}

.day-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.day-detail-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #212529;
}

.soup-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.day-status-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Meal Summary */
.meal-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.meal-summary h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #495057;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.summary-meal {
    font-weight: 500;
    color: #212529;
}

.summary-quantity {
    font-weight: 700;
    color: #0d6efd;
    font-size: 1.1rem;
}

/* Employee Selections Table */
.employee-selections {
    margin-top: 1.5rem;
}

.employee-selections h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #495057;
}

.selections-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.selections-table thead {
    background-color: #e9ecef;
}

.selections-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.selections-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.selections-table tbody tr:hover {
    background-color: #f8f9fa;
}

.selections-table tbody tr.no-selection {
    opacity: 0.6;
}

.no-selections-message {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.no-selections-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        color: #000;
    }

    .no-print {
        display: none !important;
    }

    .print-header {
        display: block !important;
    }

    .account-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .day-detail {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1.5rem;
    }

    .day-detail-header {
        border-bottom: 1px solid #000;
    }

    .selections-table {
        border: 1px solid #000;
    }

    .selections-table th,
    .selections-table td {
        border: 1px solid #000;
        padding: 0.5rem;
    }

    .selections-table thead {
        background-color: #e0e0e0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .meal-summary {
        border: 1px solid #000;
        background-color: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .summary-item {
        border: 1px solid #000;
    }

    .week-card,
    .overview-intro,
    .form-alert {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .week-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .day-detail-header {
        flex-direction: column;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .selections-table {
        font-size: 0.85rem;
    }

    .selections-table th,
    .selections-table td {
        padding: 0.5rem;
    }

    .overview-detail .account-card-header {
        flex-direction: column;
    }
}
