@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Main Premium Light Design */
body {
    background-color: #f4f5f7 !important;
    font-family: 'Outfit', sans-serif !important;
    color: #1e293b !important;
    margin: 0;
}

/* Header */
.wrapper .main_top {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 25px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.wrapper .main_top h1 {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    letter-spacing: -0.5px;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    margin: 0 !important;
}

/* Main Grid Layout */
#order_holder {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 24px !important;
    padding: 24px !important;
    align-items: start;
}

/* Order Card */
#order_holder.order_holder .single_order {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 280px !important;
    position: relative !important;
    padding-bottom: 56px !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

#order_holder.order_holder .single_order:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

/* Order Header */
#order_holder.order_holder .single_order .header_portion {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 16px 18px !important;
    border-radius: 20px 20px 0 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#order_holder.order_holder .single_order .header_portion.light-blue-background {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

#order_holder.order_holder .single_order .header_portion>div {
    width: auto !important;
    float: none !important;
}

#order_holder.order_holder .single_order .header_portion p.order_number {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
    display: flex;
    align-items: center;
}

#order_holder.order_holder .single_order .header_portion p.order_number:last-child {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* Timer Badge */
#order_holder.order_holder .single_order .header_portion p.order_duration {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    border-radius: 30px !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.5px;
}

/* Items Area */
#order_holder.order_holder .single_order .items_holder {
    background: #ffffff !important;
    padding: 16px !important;
    flex: 1;
}

/* Checkbox Modernization */
.order_checkbox,
.item_checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    cursor: pointer !important;
    margin-right: 12px !important;
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.order_checkbox:checked,
.item_checkbox:checked {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.order_checkbox:checked::after,
.item_checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.order_checkbox:hover,
.item_checkbox:hover {
    border-color: #4f46e5 !important;
    transform: scale(1.05);
}

/* Item Rows */
.selectable-item,
.sngl_item {
    border-radius: 12px !important;
    margin: 6px 0 !important;
    padding: 12px 14px !important;
    transition: all 0.25s ease !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.selectable-item:hover,
.sngl_item:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: translateX(4px);
}

/* Item Content Styles */
.item_detail p.item_name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 2px !important;
}

.item_detail p.item_qty {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.item_detail p.modifiers,
.item_detail p.note {
    font-size: 13px !important;
    margin-top: 4px !important;
    padding-left: 32px !important;
}

.item_detail p.modifiers {
    color: #059669 !important;
    font-weight: 600 !important;
}

.item_detail p.note {
    color: #e11d48 !important;
    font-weight: 600 !important;
}

/* Status Colors - Clean Light Gradients */
.selectable-item.light-blue-background,
.single_item.light-blue-background,
.sngl_item.light-blue-background {
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08) !important;
}

.selectable-item.light-blue-background *,
.single_item.light-blue-background *,
.sngl_item.light-blue-background * {
    color: #1e40af !important;
}

.selectable-item.green-background,
.single_item.green-background,
.sngl_item.green-background {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #a7f3d0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08) !important;
}

.selectable-item.green-background *,
.single_item.green-background *,
.sngl_item.green-background * {
    color: #065f46 !important;
}

.selectable-item.light-sky-background,
.single_item.light-sky-background,
.sngl_item.light-sky-background {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe) !important;
    border: 1px solid #a5b4fc !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1) !important;
}

.selectable-item.light-sky-background *,
.single_item.light-sky-background *,
.sngl_item.light-sky-background * {
    color: #3730a3 !important;
}

/* Status Badges */
.single_item_cooking_status {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px;
    padding: 4px 10px !important;
    border-radius: 30px !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
}

.light-blue-background .single_item_cooking_status {
    background: #bfdbfe !important;
    color: #1e40af !important;
    box-shadow: none !important;
}

.green-background .single_item_cooking_status {
    background: #a7f3d0 !important;
    color: #065f46 !important;
    box-shadow: none !important;
}

.light-sky-background .single_item_cooking_status {
    background: #c7d2fe !important;
    color: #3730a3 !important;
    box-shadow: none !important;
}

/* Bottom Action Buttons Holder */
.single_order_button_holder {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 0 20px 20px !important;
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 !important;
    display: flex !important;
    height: 56px !important;
    overflow: hidden;
}

.single_order_button_holder button {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-right: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
    height: 100% !important;
    cursor: pointer;
    font-family: 'Outfit', sans-serif !important;
}

.single_order_button_holder button:last-child,
.single_order_button_holder>div:last-child button {
    border-right: none !important;
}

.single_order_button_holder button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Highlight Action Buttons */
.single_order_button_holder button.start_cooking_button,
.single_order_button_holder button[class*="single_item_cook_"] {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: #ffffff !important;
}

.single_order_button_holder button.start_cooking_button:hover,
.single_order_button_holder button[class*="single_item_cook_"]:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    box-shadow: none !important;
}

.single_order_button_holder button.done_cooking,
.single_order_button_holder button[class*="single_item_done_"] {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
}

.single_order_button_holder button.done_cooking:hover,
.single_order_button_holder button[class*="single_item_done_"]:hover {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow: none !important;
}

.single_order_button_holder .ms-auto {
    display: flex;
    flex: 2;
}

.single_order_button_holder .ms-auto button {
    flex: 1;
}

/* Top Menu Buttons */
.top_menu .btn {
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

.bg-blue-btn {
    background: #ffffff !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.bg-blue-btn:hover {
    transform: translateY(-2px);
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

/* Select Dropdown in Header */
.top_menu .select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    height: 42px !important;
    display: flex;
    align-items: center;
    color: #1e293b !important;
}

.top_menu .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Remove default hr margins */
.hr_kitchen_panel {
    border-top: 1px solid #f1f5f9 !important;
    margin: 8px 0 !important;
}