/* admin panel */
#add_settlement, #branch_select {
    height: auto;
}
.branch_manager_select {
    padding: 6px 10px !important;
}

.status_button {
    padding: 5px 10px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    width: fit-content;
}
.status_button.closed {
    background-color: red;
}
.status_button.open {
    background-color: mediumspringgreen;
}

.date_textfield {
    direction: ltr;
    text-align: right;
}

.branch_name {
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
}
input.shipping_hours {
    direction: ltr;
    text-align: right;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 100000;
    align-items: center !important;
    justify-content: center !important;
}

#loader .fa-spin {
    font-size: 50px !important; /* Bigger icon */
    color: var(--e-global-color-primary);
}


.thinking-dots {
    display: inline-flex;
    width: 100%;
    place-content: center;
}

.thinking-dots i {
    animation: bounce 1.5s infinite;
    font-size: 1cqb;
    margin: 0 2px;
}

.thinking-dots i:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dots i:nth-child(2) {
    animation-delay: 0.3s;
}

.thinking-dots i:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
}

.filters form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters .dates {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters label {
    margin: 0;
}

.pagination {
    text-align: center;
}
.page-numbers:not(.current) {
    color:black;
}

.tabs {
    display: flex;
    justify-content: space-between;
    background-color: #f1f1f1;
    margin-bottom: 20px;
}
.tabs button {
    flex: 1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    text-align: center;
    background-color: #EBDEC7;
    color: black;
    Height: 50px;
    border-radius: unset;
}
.tabs button:hover {
    background-color: #EBDEC7;
}
.tabs button.active {
    background-color: #BE0030 !important;
    color: white;
}
.tabcontent {
    display: none;
    padding: 20px;
    border-top: none;
}
.set_address_button:hover {
    background-color: #EBDEC7;
}

.set_address_button {
    border-radius: 2px;
    background-color: black;
    width: 100%;
    margin-top: 20px;
}

.delivery_method_popup {
}

#days_buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.day_button {
    border: 1px solid red;
    background-color: white;
    margin: 5px;
    color: black;
}

select:focus {
    border-color: black  !important;
}

select#settlement, select#branch {
    padding: 6px 10px;;
}

#time_slot {
    padding: 10px 20px !important; 
}

tbody tr {
    color: black;
}

#limit {
    width: fit-content;
    margin-bottom: 20px;
}

.days_checkbox {
    direction: ltr;
    text-align: right;
}

.days_checkbox input {
    margin-left: 10px;
}

.return_checkbox, .remove_checkbox {
    text-align: center;
}

#hide_products_row {
    display: flex;
    align-items: center;
}

#edit-order-form h3 {
    margin: 20px 0px 0px 0px;
}
#edit-order-form select {
    padding: 0px 20px;
}
.quantity_input {
    width: 100px !important;
    max-width: 100px !important;
}

#products_table th {
}

#products_table {
    text-align: center;;
}

#products_table input:not(.quantity_input, #product-quantity), #product-quantity:not(.quantity_input, #product-quantity) {
    padding: 0px;
}

#products_table td {
    padding: 10px;
}

#order_summery, #order_summery td, #order_summery th {
    border: none;
    padding: 0px;
}

#order_summery .order_summery_value {
    display: flex;
    float: left;
    color: var(--e-global-color-primary);
    font-weight: bold;
    margin: 20px 0px 0px 0px;
    align-items: baseline;
}

#order_summery .order_summery_value input {
    color: var(--e-global-color-primary);
    font-weight: bold;
    border: none;
    text-align: left;
}

.coupon_entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon_entry input {
    color: var(--e-global-color-primary);
    font-weight: bold;
    border: none;
    field-sizing: content;
}

#product-autocomplete, #product-quantity {
    margin-bottom: 10px;
}
#customer_dropdown {
    padding: 0px 20px;
}
#add_settlement {
    display: flex;
    gap: 10px;
    height: 50px;
}
#add_settlement #settlement_name {
    height: auto;
}

#add_settlement #add_settlement_button {
    width: 40%;
    padding: 10px 50px;
}

#popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  	z-index: 100000;	
}
.modal-content {
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    background-color: #fff;
    box-shadow: 0 1px 9px rgba(0, 0, 0, .5);
    border-radius: 2px;
    background-clip: padding-box;
    outline: 0;
    position: relative;
    padding: 50px 100px;
    animation: fade-in 0.5s;
    place-items: center;
    top: 40%;
}

#modal-title {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: var(--e-global-typography-secondary-font-size);
    font-weight: var(--e-global-typography-secondary-font-weight);
    color: var(--e-global-color-primary);
}

#modal-body {
    color: var(--e-global-color-secondary);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
    text-align: center;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-x {
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 10px;
    top: 10px;
    color: black;
}

.download_icon {
    cursor: pointer;
    display: flow;
    justify-self: left;
}

#add_product {
    display: inline-flex; 
    gap: 20px; 
    width: 100%; 
}

#products_selection_message, #add_product_section {
    margin-bottom:20px;
}

#edit-order-form button, #guest_button {
    height: 40px;
}

.order_status_pending {
    background-color: red;
    color: #fff;
}

.order_status_processing {
    background-color: aqua;
    color: #fff;
}

.order_status_completed {
    background-color: mediumspringgreen;
    color: #fff;
}

#customers_report_table {
    font-size: 16px;
}

#products_table input:not(.quantity_input, .note) {
    border: none;
}

.note {
    padding: 0px 10px !important;
}

.review_tables h3 {
    text-align: center;
}

.review_tables div {
    flex: 1;
}

.review_tables {
    flex-wrap: wrap; 
    display:flex !important; 
    place-content: space-between;
    gap:20px;
}

.search_line button {
    height: 40px;
}
.search_line {
    display: flex;
    gap: 20px;
}

.remove-item {
    height: 15px !important;
}

.report_row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to the next row */
    gap: 10px; /* Optional: Adds spacing between boxes */
    justify-content: space-between; /* Distributes boxes evenly */
}
.report_box h3 {
    color: var(--e-global-color-primary);
    font-weight: bold !important;
}

.report_box {
    padding: 50px 20px;
    flex: 1 1 calc(25% - 10px); /* 25% width for 4 in a row, minus the gap */
    justify-items: center;
    border: 1px solid black;
    color: black;
    position: relative;
}

.report_box.three_cols {
    flex: 1 1 calc(33.33% - 10px); /* 25% width for 4 in a row, minus the gap */
}

.report_box.four_cols {
    flex: 1 1 calc(25% - 10px); /* 25% width for 4 in a row, minus the gap */
}

.report_compare {
    left: 0;
    bottom: 0;
    position: absolute;
    padding: 10px 20px;
}

.switcher label {
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
}
.switcher input[type="radio"] {
    display: none;
}
.switcher span {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s, color 0.2s;
}
.switcher input[type="radio"]:checked + span {
    background-color: #0073aa !important;
    color: white !important;
    border-color: #0073aa !important;
}

.item_notes {
    display: flex;
    gap: 10px;
}

.item_notes label{
    font-size: 16px;
    align-content: center;
}

.pos_value {
    background-color: mediumspringgreen;
    color: white;
}

.neg_value {
    background-color: red;
    color: white;
}

.zero_value {
    background-color: lightgray;
}

.report_compare {
    padding: 5px 10px;
    border-radius: 3px;
    margin: 10px;
}

.date_line {
    display: flex;  
}

.filters form {
    display: flex;  
}

#delivery-method-section {
    background: var(--sections-background-color, #fff);
    border-color: var(--sections-border-color, #d5d8dc);
    border-radius: var(--sections-border-radius, 3px);
    border-style: var(--sections-border-type, solid);
    border-width: 1px;
    display: block;
    margin: var(--sections-margin, 0 0 24px 0);
    padding: var(--sections-padding, 16px 30px);
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.2);
}

#delivery-method-section label {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
}

#delivery-method-section input {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    background-color: #f9fafa;
    border: none;
    border-radius: var(--forms-fields-border-radius, 0);
    color: var(--forms-fields-normal-color, #69727d);
    padding: var(--forms-fields-padding, 16px);
}

#delivery-method-section select {
    border-color: rgb(235, 222, 199);
}

#creditcard_options {
    display: flex;
    gap: 20px;
}

.order_buttons {
    width: 100%; 
    text-align: left; 
    display: flex; 
    justify-content: left; 
    gap: 20px; 
    place-items: center; 
    margin-top: 20px;
}

.item_details {
    text-align: right;
}

.item-details {
    background-color: var(--e-global-color-primary);
    margin: 15px 0px 0px 15px;
    padding: 10px 10px 10px 10px;
    box-shadow: -6px 7px 13px -1px rgba(0, 0, 0, 0.5);
    line-height: var(--e-global-typography-2874d1e-font-size);
    font-family: var(--e-global-typography-2874d1e-font-family), Sans-serif;
    font-size: var(--e-global-typography-2874d1e-font-size);
    font-weight: var(--e-global-typography-2874d1e-font-weight);
    color: var(--e-global-color-374176e);
}

#pricing_limit input {
    width: 100px;
    padding: 10px;
    max-width: unset;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#x_for_y_form input[type="number"] {
    max-width: none;
}

.x_for_y_form_row {
    display: flex;
    gap: 20px;
}

.x_for_y_form_td {
    width: 50%;
}
.woocommerce-js input[type=number] {
    max-width: none !important;
}
.price_per_unit_label {
    direction: ltr;
}
.rule_title, .rule_name, .rule_details {
    font-size: 16px;
    color: var(--e-global-color-primary);
}
.rule_title {
    font-weight: bold;
}

#copy_order {
    display: block;
    margin: 0 auto;
}

/* Styles for mobile devices */
@media only screen and (max-width: 768px) {
    #edit-order-form input, #edit-order-form select, #customer_dropdown {
        font-size: 12px;
    }
    #add_product button, #guest_button {
        display: flex;
        align-items: center;
        place-content: center;
        border: none;
        border-radius: 5px;
        font-size: 15px;
    }
    #products_table td {
        padding: 5px;
    }
    #add_product {
        gap: 10px;
    }
    .ui-autocomplete {
        width: 80% !important;
        left: 10% !important;
        right: 10% !important;
    }

    .table-wrapper {
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .table-wrapper table {
        width: 100%; /* Ensure the table takes full width */
        border-collapse: collapse; /* Optional: Remove gaps between table cells */
        white-space: nowrap; /* Prevent table content from wrapping */
    }

    .report_box {
        flex: 1 1 calc(50% - 10px) !important; /* 50% width for 2 in a row on mobile */
    }

    .date_line {
        display: inline;  
    }

    .filters form {
        display: grid;  
        gap: 20px;
    }
    .filters .dates {
        display: contents;
    }
    .order_buttons button {
        font-size: 15px !important;
    }
}
