/*!
 * Salon de Roosekrans POS
 * 
 * By Roefja - www.roefja.com
 *
 * main.css
 *
 */

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

:root {
	--main-bg-color: rgb(33, 33, 33);
	--secondary-bg-color: #313131;
	--tertiary-bg-color: #414141;
	--main-text-color: #fff;
	--sidebar-width: 100px;
	--small-border-radius: 5px;
	--background-blur: blur(15px);
	--background-blur2: blur(5px);
	--background-blur-color: rgba(33, 33, 33, 0.7);
	--bs-blue-rgb: rgb(13, 109, 252);
}

html,
body {
	width: 100%;
	height: 100%;
}

body {
	background-color: var(--main-bg-color);
	color: var(--main-text-color);
}

body:not(.page-pending-orders) {
	zoom: 80%;
	font-size: .95em;
}

button.btn-primary>a {
	color: #fff;
	text-decoration: none;
}

.btn-primary {
	background-color: #000;
	border-color: #000;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus-visible {
	background-color: var(--secondary-bg-color) !important;
	border-color: var(--secondary-bg-color) !important;
}

.form-group label {
	color: #000
}

/* Sidebar */
#sidebar_wrapper {
	width: var(--sidebar-width);
	position: fixed;
	background-color: var(--tertiary-bg-color);
	top: 0;
	bottom: 0;
	transition: 0.75s;
	z-index: 99;
}

.sidebar nav ul {
	padding: 0;
}

.sidebar nav li {
	list-style: none;
	text-align: center;
}

.sidebar .menu.buttons a {
	display: block;
	text-align: center;
}

.sidebar .menu.buttons a,
.sidebar nav li a {
	color: #fff;
}

.sidebar .menu.buttons a,
.sidebar nav li {
	margin-top: 30px;
}

.sidebar nav li:first-child {
	margin-top: 20px;
}

.sidebar svg {
	width: 50px;
	height: 50px;
}

.sidebar .branding {
	margin: 10px 5px;
	display: block;
}

.sidebar .branding img {
	width: 100%;
}

.sidebar .menu.buttons {
	margin-top: auto;
	margin-bottom: 20px;
}

.sidebar {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	max-height: 100%;
}


/* Layouts */

body.main-layout #main-content {
	margin-left: var(--sidebar-width);
	padding: 20px;
	width: calc(100% - var(--sidebar-width));
}

/* Map Pages */

body div.map {
	flex-direction: column;
	width: 100%;
}

div.map .page {
	border: 5px solid var(--tertiary-bg-color);
	margin: auto
}

div.map .pages {
	height: 100%;
}


body.main-layout.page-index main,
body.main-layout.page-index main>div,
body.main-layout.page-index main>div>div.map,
body.with-receipt main,
body.with-receipt main>div,
body.with-receipt main>div>div.map {
	display: flex;
	height: 100%;
}


div.map .page:not(.show) {
	display: none;
}


div.map table {
	border-spacing: 2em;
	border-collapse: separate;
}

div.map table td {
	width: 100px;
	height: 100px;
	line-height: 100%;
	font-size: 35px;
	font-weight: bold;
	border-radius: 10px;
}

td.has_table {
	background-color: var(--bs-success);
	color: #fff;
	text-align: center;
	cursor: pointer;
}

div.map .page td.has_table:hover {
	border: 2px solid #fff;

}

td.has_table[data-status=open_order] {
	background-color: var(--bs-blue);
}

td.has_table[data-status=unpaid_order] {
	background-color: var(--bs-orange);
}

div.map ul.map_navigation {
	display: flex;
	width: 100%;
	padding: 20px;
	justify-content: center;
}

div.map ul.map_navigation li {
	display: flex;
	list-style: none;
	background-color: var(--secondary-bg-color);
	padding: 15px 30px;
	margin-right: 40px;
	font-size: 1.5em;
	cursor: pointer;
	border: 3px solid var(--secondary-bg-color);
	border-radius: 10px;
}

div.map ul.map_navigation li.active,
div.map ul.map_navigation li:hover {
	border-color: #fff;
	;
}

div.map ul.map_navigation li:last-child {
	margin-right: 0;
}


.popup_wrapper>.backdrop {
	display: block;
	background: var(--background-blur-color);
	backdrop-filter: var(--background-blur);
	-webkit-backdrop-filter: var(--background-blur);
	z-index: 100;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.popup_wrapper {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
}

.popup_wrapper .popup {
	z-index: 101;
	position: relative;
	margin: auto;
	flex-direction: column;
}

.popup_wrapper .popup button {
	margin-bottom: 20px;
	padding: 10px 20px;
	font-size: 2em;
}


.popup_wrapper .table_id {
	margin-bottom: 10px;
	font-size: 2em;
	text-align: center;
	font-weight: bold;
}

.popup_wrapper:not(.show) {
	display: none;
}

.btn-blue {
	background-color: var(--bs-blue);
	color: #fff;
}

.btn-blue:hover,
.btn-blue:focus,
.btn-blue:active {
	background-color: rgba(13, 109, 252, 0.8) !important;
}


div.receipt {
	margin-left: auto;
	background-color: #fff;
	color: #000;
	border: 1px solid #000;
	border-radius: 10px;
	width: 550px;
	min-height: 200px;
	padding: 40px 30px;
	font-family: 'Fira Code', monospace;
	display: flex;
	flex-direction: column;
	position: relative;
}

.receipt h1,
.receipt h2 {
	text-transform: uppercase;
}

.receipt h1 {
	text-align: center;
	font-weight: bold;
	margin-bottom: 10px;
}

.receipt h2 {
	text-align: center;
	margin-bottom: 20px;
	font-size: 1.2em;
}

.receipt .order {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px dashed black;
}

.receipt .order-line {
	display: flex;
	flex-direction: column;
}

.receipt .order-line .main {
	display: flex;
}

#receipt .lines {
	padding-bottom: 10px;
}

.receipt .order-line .main span,
.receipt .order-line .main>div {
	margin-top: auto;
	margin-bottom: auto;
}

.receipt .order-line .main>.order-line_total {
	margin-left: auto;
	min-width: 83px;
	text-align: right;
}

.receipt .order-line .main>.order-line_quantity {
	margin-right: 1em;
}

.receipt .order-line .main>.order-line_name {
	word-break: break-word;
}

.receipt .order-line_name .suffix {
	margin-left: 10px;
	font-size: .6em;
}

.receipt .order-line_extras {
	font-style: italic;
	font-size: .8em;
	margin-left: 5px;
	margin-top: 5px;
}

.receipt .note-block:not(.show) {
	display: none;
}

.receipt .note-block {
	background-color: #faf6d7;
	padding: 5px;
}



.receipt .totals {
	position: fixed;
	bottom: 21px;
	background: white;
	padding-bottom: 20px;
	padding-top: 5px;
	width: 440px;
}

.receipt .totals div {
	display: flex;
}

.receipt .totals div:last-child {
	font-weight: bold;
}

.receipt .totals div:last-child :last-child {
	margin-left: auto;
}

.receipt .order-line:not(.order-line_extras) {
	margin-top: 15px;
}

.receipt .totals span {
	font-size: 2em;
}

.page-new-order .order-buttons>i,
.page-new-order .order-buttons>svg {
	font-size: 1.4em;
	margin-right: 12px;
	cursor: pointer;
}

.page-new-order .order-buttons .note {
	color: var(--bs-yellow);
}

.page-new-order .order-buttons {
	min-width: 114px;
}

.receipt {
	height: 100%;
	overflow: auto;
}

body.with-receipt #main-content .buttons a,
body.with-receipt #main-content .buttons button {
	margin-bottom: 20px;
	padding: 10px 10px;
	font-size: 1.6em;
}

body.with-receipt #main-content .buttons {
	display: flex;
	flex-direction: column;
	margin: auto;
}

#pay-modal {
	text-align: center;
}

#pay-modal .popup .checkout {
	display: flex;
	flex-direction: row;
	margin-bottom: 20px;
}

#pay-modal .popup .checkout .amounts {
	min-width: 300px;
	text-align: center;
}

#pay-modal .popup .keypad {
	margin-left: 30px;
}

#pay-modal .popup>.button {
	margin-left: auto;
	margin-right: auto;
}

#pay-modal .popup .amounts h1 {
	margin-bottom: 20px;
}

#pay-modal .paid,
#pay-modal .change {
	display: inline-block;
}

.keypad {
	display: flex;
	flex-direction: column;
}

.keypad .keypad_row {
	display: flex;
}

.keypad button {
	width: 100px;
	height: 100px;
	background-color: white;
	color: var(--bs-blue);
	margin: 2.5px;
	font-size: 2.5em !important;
	text-transform: uppercase;
}

.keypad button[data-amount="0"] {
	width: 200%;
}

button {
	touch-action: manipulation;
}

.page-new-order .receipt {
	/*font-size: .85em;*/
	width: 525px;
	min-width: 525px;
}

.page-new-order .receipt .totals {
	width: 465px;
}

.page-new-order .receipt h1 {
	font-size: 1.4em;
}

/* 
	Menu Pages
*/


.page-new-order #main-content {
	min-width: calc(100% - var(--sidebar-width));
}

.menu {
	width: 100%;
	position: relative;
}

.menu-page {
	width: 100%;
	display: flex;
	flex-wrap: wrap;

}

.menu-page .menu-button {
	width: 150px;
	height: 150px;
	background: var(--bs-red);
	margin: 5px;
	display: flex;
	justify-content: center;
	padding: 5px;
	touch-action: manipulation;
	cursor: pointer;
	word-break: break-word;
}

.menu-page .menu-button.menu-button_category {
	background-color: var(--bs-green);
}

.menu-page .menu-button.menu-button_extra {
	background-color: var(--bs-purple);
}

.menu-page .menu-button.menu-button_product {
	background-color: var(--bs-purple);
}


.menu-button * {
	touch-action: manipulation;
}

.menu-page .menu-button:hover {
	opacity: .8;
}

.menu-page .menu-button>div {
	margin: auto;
	text-align: center;
	font-size: 1.2em;
}

.menu-page:not(.menu-page-main):not(.show) {
	display: none;
}

.empty_lines {
	display: none;
}

.order-line>.remove {
	margin-top: auto;
	margin-bottom: auto;
	cursor: pointer;
}

body:not(.page-pending-orders) .order-line {
	font-size: 1.3em;
}


body:not(.page-pending-orders) .receipt .order-line_name .suffix {
	font-size: .8em;
}

.menu-page.popup {
	z-index: 102;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	flex-direction: column;
	flex-wrap: nowrap;
}


.menu-page.popup>.backdrop {
	display: block;
	background: var(--background-blur-color);
	backdrop-filter: var(--background-blur);
	-webkit-backdrop-filter: var(--background-blur);
	z-index: 99;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}


.menu-page.popup .close {
	display: flex;
	width: 100%;
	cursor: pointer;
}


.menu-page.popup .close>svg {
	margin-left: auto;
}

.menu-page.popup>*:not(.backdrop) {
	z-index: 100;
}

.menu-page.popup .buttons {
	margin: 0 !important;
	flex-direction: row !important;
	flex-wrap: wrap;
}

.menu form button {
	margin-bottom: 20px;
	padding: 10px 20px;
	font-size: 2em;
}

.menu form {
	margin: auto auto 0;
}

#main-content>.menu {
	display: flex;
	flex-direction: column;
}

.pending_orders {
	display: flex;
	flex-wrap: wrap;
}


.pending_orders .pending-order-receipt {

	min-width: 300px;
	max-width: calc(33% - 20px);
	margin: 10px;
	flex-grow: 1;
}

.pending_orders .pending-order-receipt_head {
	font-weight: bold;
	border-bottom: 1px dashed var(--main-bg-color);
	margin-bottom: 5px;
	padding-bottom: 5px;
}

.pending-order-receipt .order-line:not(.order-line_extras) {
	cursor: pointer;
}

.pending-order-receipt .order-line.checked {
	text-decoration: line-through;
}

.pending-order-receipt button {
	width: 100%;
	margin-top: 30px;
}

#manual_product>.popup {
	display: flex;
	flex-direction: row;
}

#manual_product .price {
	display: inline-block;
}

#line_note textarea,
#manual_product input[name=product_name] {
	font-size: 2em;
	color: black;
	padding: 10px;
	margin-bottom: 30px;
	border: 2px solid black;
}

#line_note .form,
#manual_product .form {
	display: flex;
	flex-direction: column;
	margin-right: 30px;
	height: auto;
}

#manual_product.popup_wrapper {
	position: fixed;
	z-index: 99;
}

#line_note .form,
#manual_product .form button {
	margin-top: auto;
}

#line_note .backdrop {
	z-index: 900;
	;
}

#line_note .popup {
	z-index: 999;
}

.map.popup_wrapper>* {
	z-index: 9999;
}

.map.popup_wrapper:not(.show) {
	display: none;
}


.map.popup_wrapper .pages {
	height: auto;
}

.history {
	display: flex;
	max-width: 100%;
	flex-wrap: wrap;
}

.history .receipt {
	min-height: unset;
	height: max-content;
	margin: 10px;
	max-width: calc(50% - 20px);
	min-width: 400px;
}

.history_item-footer {
	font-weight: bold;
	display: flex;
	justify-content: space-between;
}