/* Base styles */
body {
    background-color: #f1f5f9;
    color: #334155;
}

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

/* Section containers */
.section-container {
    margin-bottom: 30px;
}

/* Headers with softer gradients */
.section-container:first-child .section-header {
    background: linear-gradient(90deg, #60a5fa 0%, #7dd3fc 100%);
    border-radius: 15px 15px 0 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-container:last-child .section-header {
    background: linear-gradient(90deg, #a78bfa 0%, #c4b5fd 100%);
    border-radius: 15px 15px 0 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
}

/* Order sections */
.order-section {
    background: #f8fafc;
    border-radius: 0 0 15px 15px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Section titles */
.section-title {
    color: #475569;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.section-title i {
    color: #64748b;
}

/* Count badge */
.count-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Order cards */
.order-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
}

.order-card:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
}

/* Order details */
.order-details {
    display: none;
    padding: 15px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.order-details.show {
    display: block;
}

.details-row {
    padding: 5px 0;
    color: #475569;
}

.details-row strong {
    color: #334155;
    margin-right: 8px;
}

/* Order summary */
.order-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.order-time {
    color: #64748b;
    font-size: 0.9rem;
}

.order-title {
    color: #334155;
    font-weight: 500;
}

.order-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

/* Status buttons */
.btn-status {
    background: transparent;
    border: 1px solid #6366f1;
    color: #6366f1;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-status:hover {
    background: #6366f1;
    color: white;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-style: italic;
}

/* Spacing utilities */
.mt-4 {
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Add these new styles */
.order-summary-wrapper {
    flex: 1;
    cursor: pointer;
    padding-right: 15px;
}

.clickable-area {
    flex: 1;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
}

.fa-chevron-right, .fa-chevron-down {
    transition: transform 0.2s ease;
}

.fa-chevron-down {
    transform: rotate(-90deg);
}

.fa-chevron-right {
    transform: rotate(90deg);
}

/* Add these styles to your existing CSS */
.table th {
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* Print styles */
@media print {
    .print-order {
        padding: 20px;
    }

    .print-order h2 {
        margin-bottom: 20px;
        color: #333;
    }
}

/* Badge styles in order summary */
.order-summary .badge {
    margin-left: 10px;
}