@charset "UTF-8";

@import 'variables.css';

/* Select2 */
.select2-container--default .select2-selection--single .select2-selection__clear {
    z-index: 2;
}

.select2-dropdown {
    border-color: var(--border-color);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--form-text) !important;
    padding-left: .75rem;
    padding-right: .75rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--form-text) !important;
    padding-left: .75rem;
    padding-right: .75rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--placeholder);
}

.select2-results__option[aria-selected] {
    background-color: var(--white);
    color: var(--form-text);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background-color: var(--primary);
	color: var(--white);
    border: none;
}


.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: var(--primary);
	color: var(--white);
}

.select2-container.select2-container--open .select2-selection--single {
	background-color: #fefeff;
	border-color: #1a73e831;
}

.select2-selection.select2-selection--single {
	padding-right: 20px !important;
    border-color: var(--border-color) !important;
    border-radius: .25rem;
}

.select2-container.select2-container--focus .select2-selection--multiple:focus, .select2-container.select2-container--focus .select2-selection--single:focus {
    border-color: var(--primary) !important;
}

.select2-container.select2-container--focus .select2-selection--multiple, .select2-container.select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
}

/* Filepond */
.filepond--file-action-button.filepond--file-action-button {
	font-size: 1em;
	width: 1.625em;
	height: 1.625em;
	font-family: inherit;
	line-height: inherit;
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
	will-change: transform, opacity;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Ckeditor */
.cke_top {
    border-bottom: 1px solid var(--border-color) !important;
}

.cke_bottom {
    border-top: 1px solid var(--border-color) !important;
}

.cke_chrome {
    border: 1px solid var(--border-color) !important;
}

.cke_top,
.cke_bottom {
    background: var(--form-background-readonly) !important;
}

.cke_reset_all, .cke_reset_all *, .cke_reset_all a, .cke_reset_all textarea {
    color: var(--grey) !important;
}

.cke_reset_all a.cke_dialog_ui_button_ok span {
    color: var(--white) !important;
}

a.cke_button_off:hover, a.cke_button_off:focus, a.cke_button_off:active {
    border: none !important;
}

.cke_panel_listItem a {
    color: var(--black) !important;
}

/* Daterangepicker */
.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: var(--primary);
}

/* Sweetalert */
.swal2-styled.swal2-confirm {
	box-shadow: none !important;
}

/* Flatpickr */
.flatpickr-day.selected {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}

.form-control[readonly].flatpickr-input {
    background-color: var(--form-background) !important;
}

.flatpickr-calendar.hasTime .flatpickr-time {
    border-top: none;
}

.btn-translate {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    aspect-ratio: 1/1;
    width: 3rem;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-translate.dropdown-toggle::after {
    display: none;
}

.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}

/* Select payment method */
.payment-method-item {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #343a40;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    user-select: none;
}

.payment-method-item:hover {
    border-color: #4e73df;
    background-color: #f0f4ff;
}

.payment-method-item.active {
    border-color: #4e73df;
    background-color: #e8eeff;
}

.payment-method-item img {
    max-height: 36px;
    max-width: 100%;
    object-fit: contain;
}

/* Payment Method */
.btn-select-payment-method img {
    height: 22px;
    max-width: 60px;
    object-fit: contain;
}

.payment-method-label {
    min-width: 0;
}

/* Fast Order Wizard */
.fast-order-step-container {
    width: 30%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0.5;
}

.fast-order-step-container.step-active {
    opacity: 1;
    cursor: pointer;
}

.fast-order-step-container.step-disabled {
    cursor: not-allowed;
}

.fast-order-step-container.step-completed {
    opacity: 1;
    cursor: pointer;
}

.fast-order-step-container.step-active .fast-order-circle-container,
.fast-order-step-container.step-completed .fast-order-circle-container {
    background-color: rgba(78, 115, 223, 0.12);
    border: 1px solid var(--primary);
}

.fast-order-step-container .fast-order-circle-container {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-grey);
    border: 1px solid var(--light-grey);
    z-index: 2;
    position: relative;
}

.fast-order-step-container.step-completed .fast-order-circle-container {
    background-color: var(--primary);
}

.fast-order-step-container .fast-order-circle-container .text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--grey);
}

.fast-order-step-container.step-active .fast-order-circle-container .text {
    color: var(--primary);
}

.fast-order-step-container.step-completed .fast-order-circle-container .text {
    color: var(--white);
}

.fast-order-circle-container .fast-order-step-error {
    background-color: var(--danger);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 1px solid var(--white);
}

.fast-order-circle-container .fast-order-step-error i {
    font-size: 0.5rem;
}

.fast-order-step-container .fast-order-step-top {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
}

.fast-order-step-container .fast-order-step-top .right-line,
.fast-order-step-container .fast-order-step-top .left-line {
    background-color: var(--grey);
    height: 2px;
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
}

.fast-order-step-container .fast-order-step-top .right-line {
    left: calc(50% + 1.5rem);
    right: 0;
    width: auto;
}

.fast-order-step-container .fast-order-step-top .left-line {
    left: 0;
    right: calc(50% + 1.5rem);
    width: auto;
}

.fast-order-step-container .fast-order-step-top .right-line.active,
.fast-order-step-container .fast-order-step-top .left-line.active {
    background-color: var(--primary);
}

.fast-order-text-container {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.fast-order-step-container .fast-order-text-container p.step-title {
    font-size: 1.25rem;
    color: var(--grey);
    font-weight: 600;
    line-height: 1 !important;
    margin-bottom: 0.125rem;
}

.fast-order-step-container.step-active .fast-order-text-container p.step-title,
.fast-order-step-container.step-completed .fast-order-text-container p.step-title {
    color: var(--primary);
}

.fast-order-step-container .fast-order-text-container p.lead {
    font-size: 0.875rem;
    color: var(--grey);
    font-weight: 300;
    margin-bottom: 0;
    line-height: 1 !important;
}

.fast-order-step-container.step-active .fast-order-text-container p.lead,
.fast-order-step-container.step-completed .fast-order-text-container p.lead {
    color: var(--primary);
}

#fast-order-form .step-content {
    display: none;
}

#fast-order-form .step-content.step-active {
    display: block;
}

#fast-order-form .card-body.border-bottom {
    background-color: var(--white);
}

.fast-order-footer {
    padding: 1.25rem;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.fast-order-footer .btn {
    min-width: 120px;
}

@media (max-width: 767.98px) {
    .fast-order-step-container {
        width: 33.333333%;
    }

    .fast-order-step-container .fast-order-circle-container {
        width: 2.5rem;
        height: 2.5rem;
    }

    .fast-order-step-container .fast-order-circle-container .text {
        font-size: 1.125rem;
    }

    .fast-order-step-container .fast-order-text-container p.step-title {
        font-size: 0.875rem;
    }

    .fast-order-step-container .fast-order-step-top .right-line {
        left: calc(50% + 1.25rem);
    }

    .fast-order-step-container .fast-order-step-top .left-line {
        right: calc(50% + 1.25rem);
    }

    .fast-order-circle-container .fast-order-step-error {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 575.98px) {
    .fast-order-step-container .fast-order-text-container p.step-title {
        display: none;
    }

    .fast-order-step-container .fast-order-circle-container {
        width: 2.25rem;
        height: 2.25rem;
    }

    .fast-order-step-container .fast-order-circle-container .text {
        font-size: 1rem;
    }

    .fast-order-step-container .fast-order-step-top .right-line {
        left: calc(50% + 1.125rem);
    }

    .fast-order-step-container .fast-order-step-top .left-line {
        right: calc(50% + 1.125rem);
    }

    .fast-order-footer {
        padding: 1rem;
    }

    .fast-order-footer .btn {
        min-width: unset;
    }

    .fast-order-footer {
        position: fixed;
        left: 6px;
        right: 6px;
        bottom: 8px;
        z-index: 1040;

        padding: 10px;
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);

        gap: 8px;
    }

    .fast-order-footer .btn {
        flex: 1;
        white-space: nowrap;
        padding-left: 8px;
        padding-right: 8px;
    }

    .fast-order-footer .btn i {
        margin: 0 2px;
    }

    #fast-order-form {
        padding-bottom: 86px;
    }

    /* FAST ORDER GRID */
    #menu-container .card .card-body, 
    #menu-container .card .card-footer {
        padding: 0.5rem;
    }
}


.order-type-selectgroup {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-type-selectgroup .selectgroup-item {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .order-type-selectgroup {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .order-type-selectgroup .selectgroup-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .order-type-selectgroup .selectgroup-button {
        white-space: nowrap;
    }
}

.order-category-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.order-category-slider::-webkit-scrollbar {
    display: none;
}

.order-category-slider .order-type-selectgroup {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
}

.order-category-slider .selectgroup-item {
    flex: 0 0 auto;
}

.order-category-slider .selectgroup-button {
    white-space: nowrap;
}

#menu-container.fast-order-loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .15s ease-in-out;
}

#pagination-container.fast-order-loading {
    opacity: .45;
    pointer-events: none;
}

.fast-order-menu-qty-wrapper.fast-order-syncing {
    opacity: .65;
    pointer-events: none;
}

.fast-order-menu-qty-wrapper.fast-order-syncing input {
    background-color: #f8f9fa;
}

/* SUMMARY REPORT */
.summary-report-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--white);
    box-shadow: 0 4px 25px rgba(0, 0, 0, .04);
}

.summary-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-report-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.summary-report-label {
    font-size: 13px;
    color: var(--grey);
    font-weight: 500;
}

.summary-report-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.summary-report-main {
    align-items: stretch;
}

.summary-report-item {
    height: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--form-background-readonly);
}

.summary-report-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.summary-report-value-primary {
    color: var(--primary);
}

.summary-report-detail {
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--white);
    transition: .2s ease;
}

.summary-report-detail:hover {
    border-color: var(--primary-lighter);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.summary-report-detail-title {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 4px;
    font-weight: 600;
}

.summary-report-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.summary-report-detail-subtitle {
    font-size: 12px;
    color: var(--grey);
}

.summary-report-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-lighter);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-report-empty {
    padding: 14px 16px;
    border-radius: 6px;
    background-color: var(--form-background-readonly);
    color: var(--grey);
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .summary-report-title {
        font-size: 16px;
    }

    .summary-report-value {
        font-size: 20px;
    }

    .summary-report-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}