
/* layout */
@media (max-width: 767px) {
    .container-fluid {
        padding: 0 5px;
    }
    .container-fluid > .row {
        margin-right: -5px;
	    margin-left: -5px;
    }
    /*.card {
        margin-left: -15px;
        margin-right: -15px;
    }*/
}


[type=checkbox]:checked,
[type=checkbox]:not(:checked) {
    left: inherit;
}

.btn-md {
    padding: 12px 25px;
}
.btn-yellow,
.btn-yellow:hover {
    background: #ffe100;
    border-color: #ffe100;
    color: black;
}

.text-wrap {
    white-space: normal !important;
}
.empty-block {
    margin-bottom: 1em;
	padding: 3em;
	border: 1px solid #eee;
    text-align: center;
}

.no-validation-marks .form-control.is-valid {
    padding-right: .75rem;
    background: none;
    border-color: inherit;
}


/* Bootstrap Switch fix */
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off,
.bootstrap-switch .bootstrap-switch-label {
    vertical-align: baseline;
}


/* charts */
.chartist-chart {
    position: relative;
}
.ct-legend {
    position: relative;
	list-style: none;
	text-align: center;
    z-index: 10;
}
.ct-legend li {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 3px;
    padding-left: 23px;
    cursor: pointer;
}
.ct-legend li:before {
    content: "";
	float: left;
	margin-right: 5px;
    width: 20px;
    height: 20px;
    border: 3px solid #0000;
    border-radius: 2px;
}
.ct-legend li.inactive:before {
    background: transparent;
}
.ct-legend.ct-legend-inside {
    position: absolute;
    top: 0;
    right: 0;
}
.ct-legend .ct-series-0:before {
    background-color: #c4e6ec;
    border-color: #c4e6ec;
}
.ct-legend .ct-series-1:before {
    background-color: #64cfdf;
    border-color: #64cfdf;
}


/* Top bar */
.topbar .top-navbar {
    padding: 0 15px;
}
.topbar .top-navbar .navbar-header {
    text-align: left;
}

.nav-logo {
	height: 30px;
	width: auto;
}
.nav-logo-text {
    margin-left: 5px;
	height: 20px;
	width: auto;
}
.nav-item-profile > a > i {
    line-height: 50px;
}

@media (min-width: 576px) {
    .checkbox-list {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .checkbox-list > .checkbox {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (min-width: 992px) {
    .checkbox-list > .checkbox {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
.language-switch-right {
    position: absolute;
    top: 10px;
    right: 10px;
}
.language-switch-right .dropdown-menu {
    position: absolute;
}

/* flags */
.language-flag-en {
    background-image: url(icons/flag-icon-css/flags/gb.svg);
}
.language-flag-sr-cyrl,
.language-flag-sr-latn {
    background-image: url(icons/flag-icon-css/flags/rs.svg);
}

/* footer */
.mini-sidebar .footer {
    left: 0;
}
@media (max-width: 767px) {
    .footer {
        padding: 5px;
    }
}

/* help toggle */
.right-sidebar {
    width: 320px;
    right: -320px;
}
.right-sidebar-show {
    right: 0;
}
.right-side-toggle {
    position: fixed;
    right: 20px;
	bottom: 20px;
	padding: 25px;
    height: 35px;
    border-radius: 35px;
    z-index: 1000;
}
.rpanel-title .right-side-toggle {
	top: 5px;
	right: 5px;
}
.right-side-toggle i {
	top: 0;
	bottom: 0;
    left: 0;
    margin: auto;
    -webkit-animation-name: none;
    animation-name: none;
	font-size: 50px;
    line-height: 1;
}
@keyframes fadeOut {
    90% {
        opacity: 1;
        margin-left: 45px;
        max-width: 100px;
    }
    100% {
        opacity: 0;
        margin-left: 0;
        max-width: 0;
    }
}
.right-side-toggle > div {
    opacity: 1;
    margin-left: 45px;
    max-width: 100px;
    font-size: 24px;
    font-style: normal;
   	line-height: 1px;
    transition: .5s;

    animation: 3s fadeOut;
    animation-fill-mode: forwards;
}
.right-side-toggle:hover > div {
    opacity: 1 !important;;
    margin-left: 45px !important;;
    max-width: 100px !important;

    animation: none;
}


/* TODO: formset drag and drop fix is not good
.formset.sortable {
    overflow-x: hidden;
    overflow-y: auto;
} */
.ui-sortable-handle:hover {
    cursor: move;
}
.sortable-placeholder {
    margin-bottom: 1em;
    border: 1px dashed #aaa;
}

.formset-deleted {
    opacity: 0.5    ;
    pointer-events: none;
}

.formset .formset-item .col,
.formset .formset-item .col-auto {
    line-height: 37px;
}

.image-view > img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
}

.table .actions {
    width: 26px;
    white-space: nowrap;
}
.table .actions a:last-child {
    margin-right: 0;
}


.form-control-readonly-value {
    display: block;
}


.icon-picker > .btn-group {
    border: 1px solid #ced4da;
    border-radius: .25rem;
}
.icon-picker .dropdown-menu {
    padding: 5px;
    min-width: 642px;
    max-width: 642px;
    max-height: 600px;
    overflow: auto;
}
.icon-picker-group {
    float: left;
    margin-bottom: 1em;
    width: 100%;
}
.icon-picker-group:last-child {
    margin: 0;
}
.icon-picker-group .btn {
	float: left;
    margin-top: -1px !important;
    margin-left: -1px !important;
    padding: 5px;
    border-color: #9e9e9e;
    border-radius: 0;
}
.icon-picker-group .btn:not(:disabled):not(.disabled).active {
    background: #9e9e9e;
    border-color: #9e9e9e;
}
.icon-picker-icon {
	width: 20px;
	height: 20px;
}
.icon-picker-group .icon-picker-icon {
    padding: 10px;
    width: 52px;
    height: 52px;
}

.guest-app-preview {
    margin-left: 50px;
}

.form-check {
    padding-left: 0;
}

/* autosubmit */
.autosubmit-loading {
    position: relative;
    opacity: .5;
}
.autosubmit-loading:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
.autosubmit-loading:after {
    content: "\f110";
    display: inline-block;
    position: absolute;
    top: 40%;
	-webkit-animation: fa-spin 2s infinite linear;
	animation: fa-spin 2s infinite linear;
    font: normal normal normal 14px/1 'Font Awesome 5 Free';
    font-size: 4em;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    text-rendering: auto;
    width: 100%;
    z-index: 101;
}

/* tables */
.table > thead > tr > th.orderable > a:after {
    content: "\f0dc";
	margin-left: 10px;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: #32323280;
    cursor: pointer;
    opacity: .3;
}
.table > thead > tr > th.orderable.asc > a:after {
	content: "\f0de";
    opacity: 1;
}
.table > thead > tr > th.orderable.desc > a:after {
	content: "\f0dd";
    opacity: 1;
}
.table-group-row > td {
	background-color: #aaa;
	color: #fff;
}
.page-item.active .page-link {
    background-color: #7460ee;
}
.pagination .page-item{
    white-space: nowrap;
}


/* popup */
@media (max-width: 576px) {
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: .4rem;
    }
}


/* ------------------------------------ */
/* PAGES */
/* ------------------------------------ */

/* Simple page layout */
.simple-page-logo-wrapper {
    margin-top: -5%;
    margin-bottom: 50px;
    text-align: center;
}
.login-register {
    position: relative;
    padding-bottom: 30px;
}
@media (max-height: 830px) {
    .simple-page-logo-wrapper {
        margin: 20px 0;
    }
    .simple-page-logo-wrapper > img {
    	max-width: 150px;
	    height: auto;
    }
    .login-register {
        position: relative;
        padding: 0 0 30px;
    }
}


/* Order */
.order-list-open-popup > thead .short_id {
    width: 100px;
}
.order-list-open-popup > tbody > tr {
    cursor: pointer;
}
.btn-sort-orders {
    position: absolute;
    top: 9px;
	right: 20px;
}
@media (max-width: 767px) {
    .order-list-open-popup td.field-order-action {
        padding: 0;
    }
    .order-list-open-popup td.field-order-action button {
        padding-left: 10px;
        padding-right: 10px;
    }
    .order-list-open-popup th:first-child,
    .order-list-open-popup td:first-child {
        padding-left: 6px;
    }
    .btn-sort-orders {
        right: 10px;
    }
}
.order-list-open-popup .empty > td {
    padding: 1.5em 0 1em;
    text-align: center;
}
.order-list-open-popup .empty:hover {
    border-left-color: #fff;
    cursor: default;
}
.text-location-badge {
    font-weight: bold;
}
.page-bar-orders .order-list-open-popup td .text-location-badge {
    display: inline-block;
    margin-left: -12px;
    padding: 6px 12px;
    border-radius: 4px;
}
.text-short-id {
    font-family: monospace;
    font-size: 16px;
}
.column-order-action {
    width: 100px;
}
.icon-reported {
    color: #fc4b6c;
    vertical-align: middle;
}
.icon-reported:before {
    content: "\f05e";
	font-family: 'Font Awesome 5 Free';
	font-style: normal;
	font-weight: 900;
	font-variant: normal;
    line-height: 1;
    speak: none;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Order popup */
h3 .text-location-badge {
    font-family: monospace;
    font-size: 1.1em;
}
h3 .text-location-badge:before {
    content: "[";
    margin-right: 5px;
    font-weight: normal;
}
h3 .text-location-badge:after {
    content: "]";
    margin-left: 5px;
    font-weight: normal;
}
@media (max-width: 767px) {
    .page-bar-orders .card-header {
        padding-left: 12px;
    }
    .page-bar-orders .card-header h4 {
    	font-size: 17px;
    }
}

.page-bar-orders .card-body {
    padding: 5px;
}
.modal-order {
    padding: 0 10px;
    max-width: 1040px;
}
@media (max-width: 576px) {
    .modal-order {
        margin: 10px;
        padding: 0;
    }
}
#order-popup-content .table th,
#order-popup-content .table td {
    padding: .5rem;
}
.btn-title-right {
    margin-left: 10px;
    margin-bottom: 5px;
    min-width: 40px;
}
.order-details {
    padding-top: 1.4em;
    border-top: 1px solid #f3f1f1;
    color: #212529;
}
.order-details dt {
    display: inline;
    margin-right: 5px;
    font-weight: 700;
    line-height: 2em;
    white-space: nowrap;
}
.order-details dt:after {
    content: ": ";
    display: inline;
}
.order-details dd {
    display: inline;
    font-weight: 300;
    white-space: nowrap;
}
.order-details dd:after {
    content: "|";
    display: inline;
    padding: 0 5px 0 10px;
    font-weight: 300;
}
.order-details dd:last-child:after {
    content: "";
}
.delivery-details dt {
    clear: left;
    float: left;
    width: 200px;
}
@media (max-width: 767px) {
    .order-item-instructions-text,
    .delivery-details {
        padding-left: 6px;
        padding-right: 6px;
    }
    .delivery-details dt {
        clear: left;
        float: left;
        width: 100px;
    }
}
.order-item {
    font-weight: bold;
}
.order-item-extra td {
	border-top: none;
}
#order-popup-content .table .order-item-extra > td {
	padding: 0 .5rem 1em 1em;
}
#order-popup-content .table .order-item-extra > td i {
    margin-right: .6em;
    font-size: 10px;
}
.order-item-instructions-text {
    word-break: break-all;
}
.order-commands .form-group {
    margin-bottom: 0;
}
.order-comment {
    height: 136px;
}
.order-commands-status,
.order-commands-status-buttons {
    display: none;
}
.row-total {
    background: #f7f7f7;
    font-weight: bold;
}
#order-popup-content[data-order-status=open] .order-commands-status-open,
#order-popup-content[data-order-status=accepted] .order-commands-status-accepted,
#order-popup-content[data-order-status=closed] .order-commands-status-closed,
#order-popup-content[data-order-status=rejected] .order-commands-status-rejected {
    display: flex;
}
#order-popup-content[data-order-status=open] .order-commands-status-buttons-open,
#order-popup-content[data-order-status=accepted] .order-commands-status-buttons-accepted {
    display: block;
}
.order-commands-view-progress .order-commands-status {
    display: none !important;
}
.order-commands-view-progress[data-command-progress-state=spin] .order-commands-progress-spin,
.order-commands-view-progress[data-command-progress-state=success] .order-commands-progress-success,
.order-commands-view-progress[data-command-progress-state=error] .order-commands-progress-error {
    display: flex !important;
}


/* restaurant-register */
.register-restaurant .simple-page-logo-wrapper img {
    margin: 10px;
    max-width: 100%;
    height: auto;
}
@media (min-width: 481px) {
    .register-restaurant .simple-page-logo-wrapper img {
        max-width: 50%;
    }
}
.register-restaurant-source-delivery .simple-page-logo-wrapper {
    margin-bottom: 0;
}
.register-restaurant-source-delivery .btn-back-klopa {
    margin-bottom: 1em;
}


/* restaurant-view */
.page-restaurant-view .language-list > li {
    padding: .35rem .75rem;
}


/* restaurant-update */
.work-hours-closed .work-hours-time {
    display: none;
}


/* categories */
.category-group {
    margin-bottom: 1em;
    padding: .6em;
    background: #f4faff;
}
.category-group:nth-child(even) {
    background: #f9f8ed;
}
.category-group-form {
    border-bottom: 1px solid #eee;
}
.category-group .sortable {
    padding: 1em 0;
    min-height: 86px;
}
.page-category-list .btn-group > .btn,
.page-category-list [type=checkbox].filled-in:not(:checked) + label:after {
    background: #fff;
}
.page-category-list .formset-item {
    margin-bottom: 1em;
    padding: .4em;
    background: #ffffff80;
	border: 1px solid #eee;
}
.page-category-list .formset-item:last-child {
    margin-bottom: 0;
}
.page-category-list .form-group {
	margin-bottom: 15px;
}
.page-category-list .formset-item > .row:last-child .form-group {
    margin-bottom: 0;
}
.page-category-list .subcategory-item {
    margin-bottom: 1em;
    padding-left: 140px;
    padding-right: 370px;
}
.page-category-list .formset-item > .row:last-child .subcategory-item {
    margin-bottom: 0;
}
.page-category-list .subcategory-item > input {
    background: #fff;
}

.page-category-manage .checkbox-list {
    margin-bottom: 2em;
}
.page-category-manage .checkbox-list > .checkbox {
    flex: 1 0 100%;
    max-width: none;
}
.page-category-manage .sortable {
    margin-bottom: 1em;
    padding: 2em 1em;
    background: #faf8ed;
}
.page-category-manage .formset-item {
    margin-bottom: 1em;
    padding: .4em;
    background: #ffffff80;
	border: 1px solid #eee;
}
.page-category-manage .formset-item:last-child {
    margin-bottom: 0;
}
.page-category-manage .formset-item .form-group {
	margin-bottom: 0;
}
.page-category-manage .input-group-append .sortable-move {
    margin-right: 37px;
    border-radius: .25rem;
}


/* menu-list */
.page-menu-list .table .thumbnail {
    width: 60px;
}
.page-menu-list .table td.thumbnail {
    height: 85px;
}
.page-menu-list .table .thumbnail > img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
}
.page-menu-list .table .price {
    width: 100px;
    text-align: right;
}
.page-menu-list .table .price > del {
    font-size: .8em;
}
.page-menu-list .table .is_visible {
    width: 15px;
    text-align: right;
}
.menu-category-warning .swal2-popup .swal2-title {
    font-size: 1.4em;
}


/* menu-form */
.brand-override-check {
	display: inline-block;
    margin-right: 1em;
}


/* modifiers */
.form-modifiers[data-modifier-type="multi"] .default-selection-wrapper {
    display: none;
}
.form-modifiers .field-price {
    width: 8.5em;
}


/* translation */
.language-pick select.is-valid {
    padding-right: inherit;
    background: inherit;
    border-color: inherit;
}
.language-pick .form-group {
    margin-bottom: 0;
}
.translation-stats {
    margin-top: 1em;
}
.translation-stats-item {
    float: left;
    margin-right: 4em;
}
.translation-stats-item h1 {
    display: inline-block;
    margin-bottom: 0;
}
.translation-order {
    margin-top: 1em;
}
.translation-order span:after {
    content: " | ";
}
.translation-order span:last-child:after {
    content: "";
}
.translation-order a {
    color: inherit;
}
.translation-order a.active {
    cursor: auto;
    font-weight: bold;
}
.page-translate .row-translation-item > .alert {
	display: block;
	width: 100%;
	margin: 0 15px 1em;
}
.page-translate .row-translation-item {
    position: relative;
    margin-bottom: 2em;
    /*border-bottom: 1px solid #d7dfe3;*/
}
.page-translate .row-translation-item:after {
    content: "";
	position: absolute;
	left: 15px;
	right: 15px;
    bottom: 0;
    border-bottom: 1px solid #d7dfe3;
}
.row-translation-subitem {
    margin: 0;
    padding-left: 60px;
    width: 100%;
}
.show-empty:placeholder-shown {
    border-color: #dc3545;
}
.show-empty {
    border-color: #ced4da;
}


/* print */
@media print {
    #order-view-popup {
        background: #fff;
    }
    #order-view-popup-dialog {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
    #order-view-popup-dialog .modal-content {
        border: 0;
        border-radius: 0;
    }
    #order-view-popup-dialog .modal-footer {
        display: none;
    }
    #order-view-popup-dialog .btn[data-dismiss=modal],
    #order-view-popup-dialog .btn[data-order-command=report] {
        display: none;
    }
}
