/* Modern Customer Service Interface Styles */

.modern-customer-service {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    padding: 10px;
    font-size: 15px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 6px 0 0 0;
    font-weight: 300;
}

/* Search Panel */
.search-panel {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-field label i {
    color: #6366f1;
    width: 16px;
}

.search-field input {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.search-field input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Results Panel */
.results-panel {
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.results-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-count {
    background: #6366f1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modern-table-container {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.modern-table th {
    background: #f8fafc;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 15px;
}

.modern-table tr:hover {
    background: #f8fafc;
}

.date-cell {
    font-weight: 600;
    color: #6366f1;
}

.order-number {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
}

.kitchen-cell {
    font-weight: 500;
}

.customer-cell {
    line-height: 1.4;
}

.price-cell {
    font-weight: 600;
    color: #059669;
    font-size: 1.05rem;
}

.bag-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 4px;
}

.bag-hot { background: #fef2f2; color: #dc2626; }
.bag-cold { background: #eff6ff; color: #2563eb; }
.bag-fresh { background: #f0fdf4; color: #16a34a; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Order Details Panel */
.order-details-panel {
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.order-header {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.order-number-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 15px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-cancelled {
    background: #fef2f2;
    color: #dc2626;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.info-grid-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.info-section {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.info-section:nth-child(even) {
    border-left: 1px solid #e0e0e0;
}

.info-grid-three .info-section:nth-child(2),
.info-grid-three .info-section:nth-child(3) {
    border-left: 1px solid #e0e0e0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
}

.section-title i {
    color: #6366f1;
    width: 20px;
}

.info-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    color: #374151;
    text-align: right;
    font-size: 15px;
}

.price-value {
    color: #059669;
    font-weight: 600;
}

.discount-value {
    color: #dc2626;
    font-weight: 600;
}

.total-charge {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.total-row {
    border-top: 2px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 8px;
    background: #f8fafc;
    border-radius: 4px;
    padding: 12px 8px 8px 8px;
}

.total-row .info-label {
    font-weight: 700;
    font-size: 1.05rem;
}

.total-row .total-charge {
    font-size: 1.2rem;
}

.payment-method {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-left: 8px;
}

.promo-code {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.email-link {
    color: #6366f1;
    text-decoration: none;
    cursor: pointer;
}

.email-link:hover {
    text-decoration: underline;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-small.btn-primary {
    background: #e95656;
    color: white;
}

.btn-small.btn-danger {
    background: #e95656;
    color: white;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.time-value {
    font-weight: 600;
    color: #059669;
}

/* Delivery Section */
.delivery-section {
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 15px;
}

.delivery-card {
    background: #f8fafc;
    border-radius: 6px;
    padding: 15px;
    margin-top: 12px;
}

.customer-details {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.customer-name, .customer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
}

.address-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.address-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.special-instructions {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #f59e0b;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #374151;
}

.instruction-item:last-child {
    margin-bottom: 0;
}

/* Instruction items within info-value */
.info-value .instruction-item {
    margin-bottom: 5px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 4px;
    border-left: 3px solid #f59e0b;
}

.info-value .instruction-item:last-child {
    margin-bottom: 0;
}

.instruction-text {
    flex: 1;
    margin-right: 10px;
}

/* Summary and Bag Container - Two Column Layout */
.summary-bag-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

/* Order Summary Section */
.order-summary-section {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 15px;
}

.order-items {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.order-item-card {
    background: #f8fafc;
    border-radius: 6px;
    padding: 10px 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.order-item-card:hover {
    border-left-color: #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 1.4rem;
}

.dish-type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hot-dish {
    background: #fef2f2;
    color: #dc2626;
}

.cold-dish {
    background: #eff6ff;
    color: #2563eb;
}

.item-quantity {
    background: #6366f1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.item-suppliers {
    display: flex;
    gap: 10px;
}

.supplier-badge, .packager-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.supplier-badge {
    background: #fef2f2;
    color: #dc2626;
}

.packager-badge {
    background: #f0fdf4;
    color: #16a34a;
}

/* Bag Information Section */
.bag-info-section {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 15px;
}

.bag-grid {
    margin-top: 12px;
}

.bag-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.bag-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.bag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bag-card.hot-bag {
    border-left: 4px solid #dc2626;
}

.bag-card.cold-bag {
    border-left: 4px solid #2563eb;
}

.bag-card.fresh-bag {
    border-left: 4px solid #16a34a;
}

.bag-card.warm-box {
    border-left: 4px solid #f59e0b;
}

.bag-header {
    padding: 12px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.bag-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: #374151;
}

.bag-type-indicator {
    background: #6366f1;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hot-bag .bag-type-indicator {
    background: #dc2626;
    color: white;
}

.cold-bag .bag-type-indicator {
    background: #2563eb;
    color: white;
}

.bag-contents {
    padding: 12px 15px;
    background: white;
}

.dish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dish-item:last-child {
    border-bottom: none;
}

.dish-id {
    font-weight: 600;
    color: #6b7280;
    font-size: 1.2rem;
    min-width: 60px;
}

.dish-name {
    flex: 1;
    color: #374151;
    font-weight: 500;
    font-size: 1.3rem;
}

/* Customer Statistics Section */
.customer-stats-section {
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stat-card {
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-left-color: #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card.priority-card {
    cursor: pointer;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.stat-card.notes-card {
    cursor: pointer;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left-color: #f59e0b;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-label i {
    color: #6366f1;
    width: 16px;
}

.stat-value {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
    line-height: 1.4;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
}

.stat-currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
}

.priority-value {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notes-value {
    font-style: italic;
    color: #6b7280;
    font-size: 1rem;
}

/* Ticket Management Section */
.ticket-management-section {
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 15px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.create-ticket-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-ticket-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.tickets-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-card {
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ticket-main {
    padding: 15px;
}

.ticket-order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.order-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-number.current-order {
    color: #6366f1;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 6px;
}

.order-date {
    color: #059669;
    font-weight: 700;
    font-size: 1.3rem;
    background: #f0fdf4;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.delete-btn {
    background: #dc2626;
    color: white;
}

.ticket-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.category-item,
.detail-item.responsibility-item {
    cursor: pointer;
}

.detail-item.category-item:hover,
.detail-item.responsibility-item:hover {
    background: #f1f5f9;
    padding: 8px;
    border-radius: 6px;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 500;
    color: #374151;
    font-size: 1.2rem;
}

.ticket-type {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.2rem;
}

.type-coupon {
    background: #eff6ff;
    color: #2563eb;
}

.type-refund {
    background: #fef2f2;
    color: #dc2626;
}

.type-note {
    background: #f0fdf4;
    color: #16a34a;
}

.category-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-main {
    color: #f59e0b;
    font-weight: 600;
    font-size: 1.2rem;
}

.category-sub {
    color: #059669;
    font-size: 1.2rem;
}

.responsibility-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resp-nextdish {
    background: #eff6ff;
    color: #2563eb;
}

.resp-supplier {
    background: #fef2f2;
    color: #dc2626;
}

.resp-tbd {
    background: #f0fdf4;
    color: #16a34a;
}

.amount-value {
    font-weight: 600;
    color: #374151;
    font-size: 1.2rem;
}

.credit-indicator {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-left: 4px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.75rem;
    opacity: 0.8;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processed {
    background: #d1fae5;
    color: #065f46;
}

.ticket-note {
    background: #fffbeb;
    border-top: 1px solid #e2e8f0;
    padding: 12px 15px;
}

.note-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.note-content {
    color: #374151;
    line-height: 1.5;
}

.ticket-images {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 12px 15px;
}

.images-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.image-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.image-thumbnail {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.image-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.no-tickets {
    text-align: center;
    padding: 60px 30px;
    color: #6b7280;
}

.no-tickets i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-tickets p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-customer-service {
        padding: 15px;
    }
    
    .page-header {
        padding: 20px;
        text-align: center;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .search-actions {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section:nth-child(even) {
        border-left: none;
        border-top: 1px solid #f1f5f9;
    }
    
    .customer-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .address-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-details {
        grid-template-columns: 1fr;
    }
    
    .bag-row {
        grid-template-columns: 1fr;
    }
}

/* Modern Modal Styles */
.modern-modal {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modern-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-modal-header .modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-modal-header .modal-title i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.modern-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modern-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modern-close i {
    font-size: 1.1rem;
}

.modern-modal-body {
    padding: 25px;
    background: #f8fafc;
}

.warmbox-content-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.table-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid #e2e8f0;
}

.header-cell {
    padding: 15px 20px;
    font-weight: 700;
    color: #374151;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-cell:first-child {
    border-right: 1px solid #e2e8f0;
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.content-row:hover {
    background: #f8fafc;
}

.content-row:last-child {
    border-bottom: none;
}

.content-cell {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #374151;
}

.content-cell:first-child {
    border-right: 1px solid #f1f5f9;
}

.content-cell i {
    color: #6366f1;
    width: 16px;
    font-size: 0.9rem;
}

.customer-name {
    font-weight: 600;
}

.dish-name {
    font-weight: 500;
}

.content-row.target-user {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.content-row.same-dish {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
    color: #9ca3af;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.modern-modal-footer {
    background: white;
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-modern {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modern.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-modern.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

@media (max-width: 768px) {
    .modern-modal-header {
        padding: 15px 20px;
    }
    
    .modern-modal-header .modal-title {
        font-size: 1.2rem;
    }
    
    .modern-modal-body {
        padding: 20px;
    }
    
    .table-header,
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .header-cell:first-child,
    .content-cell:first-child {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .content-cell {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .ticket-order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}