/* --- BUTTON --- */
.G-button.cta {
	display: inline-block;

	min-width: 180px;

	padding: 5px 16px;
	padding-top: 9px;

	font-family: 'Bebas Neue', sans-serif;
	text-align: center;
	font-weight: bold;
	font-size: 2.3rem;
	color: #fff;

	box-sizing: border-box;

	border-radius: 3px;
	border: 1px solid #8b8b8b;
	background: #8b8b8b none no-repeat center center;
	background-size: cover;

	cursor: pointer;

	-webkit-transition: background .2s, color .2s, border .2s;
	transition: background .2s, color .2s, border .2s;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.G-button.cta:not(.disabled):not(:disabled):not(.loading):hover { background-color: #9b9b9b; border-color: #9b9b9b; }
.G-button.cta:not(.disabled):not(:disabled):not(.loading):active { background-color: transparent; color: #8b8b8b; border-color: #8b8b8b; }

.G-button.cta.big {
	padding: 14px 30px 10px 30px;
	font-size: 2.6em;
}

.G-button.cta.green { background-color: #73ce86; border-color: #73ce86; }
.G-button.cta:not(.disabled):not(:disabled):not(.loading).green:hover { background-color: #58bf6e; border-color: #58bf6e; }
.G-button.cta:not(.disabled):not(:disabled):not(.loading).green:active { background-color: transparent; color: #73ce86; border-color: #73ce86; }

.G-button.cta:not(.loading).disabled, .G-button.cta:not(.loading):disabled {
	color: #fff;
	background: #c1c1c1;
	border-color: #c1c1c1;

	cursor: default;
}
.G-button.cta.loading {
	background-image: url('/assets/img/loading.svg');
	cursor: default;
}



/* --- SWITCH --- */
.G-switch {
	display: inline-block;
	position: relative;

	width: 54px;
	height: 32px;

	background-color: #dcdcdc;
	border-radius: 16px;
	border: 1px solid #ebeaea;

	font-size: 0;
	vertical-align: middle;

	-webkit-transition: background .3s;
	transition: background .3s;

	cursor: pointer;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.G-switch.on { background-color: #73ce86; }
.G-switch:after {
	display: block;
	position: absolute;
	content: "";

	width: 30px;
	height: 30px;

	left: 1px;
	top: 1px;

	border-radius: 50%;
	background-color: #fff;
	border: 1px solid #f7f7f7;
	box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.33);

	box-sizing: border-box;

	-webkit-transition: left .3s;
	transition: left .3s;
}
.G-switch.on:after { left: 25px; }


/* - - - CHECKBOX - - - */
.G-checkbox {
	display: inline-block;
	position: relative;
	
	width: 42px;
	height: 42px;
	
	background-color: #e6eaee;
	border-radius: 50%;
	
	-webkit-transition: background .2s;
	transition: background .2s;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.G-checkbox:before {
	display: block;
	position: absolute;
	content: "";
	
	width: 20px;
	height: 19px;
	
	left: 50%;
	top: 50%;
	
	margin-left: -10px;
	margin-top: -9.5px;
	
	box-sizing: border-box;
	
	border: 2px solid #adb6c1;
	border-radius: 3px;
	background: transparent;
	
	-webkit-transition: border .2s, background .2s;
	transition: border .2s, background .2s;
}
.G-checkbox:after {
	display: block;
	position: absolute;
	content: "";
	
	width: 11px;
	height: 9px;
	
	left: 50%;
	top: 50%;
	
	margin-left: -5.5px;
	margin-top: -4.5px;
	
	background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAJCAMAAADTuiYfAAAAS1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////+DmQsHAAAAGHRSTlMA7lXj3a4cFw731si5tpmRhHdjTEY4KgOACa1NAAAAP0lEQVQIHQXBBwKCMAAEsLTQgjiY4v3/pSYAzuULMJVUgJYXQE3pDM+bqeTAmMf+a3nD/EnGlA5cQ1IB5nUDf20uAkXec0L0AAAAAElFTkSuQmCC) no-repeat 0 0;
	
	opacity: 0;
	
	-webkit-transform: scale(0) rotate(50deg);
	transform: scale(0) rotate(50deg);
	
	-webkit-transition: opacity .2s, -webkit-transform .2s, transform .2s;
	transition: opacity .2s, -webkit-transform .2s, transform.2s;
}
.G-checkbox.on { background: #dfefe2; }
.G-checkbox.on:before {
	background-color: #73ce86;
	border-color: #73ce86;
}
.G-checkbox.on:after {
	opacity: 1;
	
	-webkit-transform: scale(1) rotate(0);
	transform: scale(1) rotate(0);
}



/* - - - ROOMS - - - */
.G-rooms {
	display: -webkit-flex;
	display: flex;
	
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	
	-webkit-justify-content: space-between;
	justify-content: space-between;
	
	margin: 0 -5px;
}


/* - - - REFRSH - - - */
.G-refresh {
	position: relative;
	display: block;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	width: 23px;
	height: 23px;
	
	margin-left: 25px;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.G-refresh:before {
	display: block;
	position: absolute;
	content: "";
	
	width: 100%;
	height: 100%;
	
	left: -10px;
	top: -10px;
	
	padding: 10px;
	
	background: rgba(0, 0, 0, 0.06);
	border-radius: 50%;
	
	-webkit-transform: scale(0);
	transform: scale(0);
	
	-webkit-transition: -webkit-transform .3s, transform .3s, background .3s;
	transition: -webkit-transform .3s, transform .3s, background.3s;
}
.G-refresh:hover:before {
	-webkit-transform: scale(1);
	transform: scale(1);
}
.G-refresh:active:before, .G-refresh:focus:before {
	-webkit-transform: scale(1);
	transform: scale(1);
	background-color: rgba(0, 0, 0, 0.2);
}
.G-refresh:after {
	display: block;
	position: absolute;
	content: "";
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	width: 100%;
	height: 100%;
	
	background: url('/assets/img/refresh.png') no-repeat 0 0;
}
.G-refresh.loading:after {
	animation: refresh-loading 2s linear infinite;
	-webkit-animation: refresh-loading 2s linear infinite;
}
@-webkit-keyframes refresh-loading {
    from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes refresh-loading {
    from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}



/* - - - HOTEL - - - */
.G-hotel { margin-top: 40px; }
.G-hotel.not_searched, .G-hotel.not_filtered { display: none; }
.G-hotel_title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 3.5em;
	font-weight: bold;
	color: #424040;
}



/* - - - ROOM - - - */
.G-room {
	position: relative;
	
	width: 100%;
	width: calc(50% - 10px);
	max-width: 600px;
	
	box-sizing: border-box;
	
	margin: 10px 5px;
	padding: 18px;
	padding-bottom: 30px;
	
	border: 1px solid #e0e3e7;
	background: #fff;
}
.G-room.not_searched, .G-room.not_filtered { display: none; }
.G-room[data-checked_out]:after {
	display: block;
	position: absolute;
	content: "";
	
	width: 100%;
	height: 100%;
	
	left: 0;
	top: 0;
	
	background: rgba(255, 255, 255, 0.6);
}

.G-room header {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: space-between;
	justify-content: space-between;

	flex-wrap: wrap;
	
	margin-bottom: 30px;
}
.G-room header .title {
	-webkit-flex-grow: 1;
	flex-grow: 1;
}
.G-room header h1, .G-room header .room-people_count {
	display: inline-block;
	
	font-family: 'Bebas Neue', sans-serif;
	font-size: 2.6em;
	color: #424040;
	font-weight: bold;
}
.G-room header .room-people_count {
	margin-left: 10px;
	color: #9a9a9a;
}
.G-room header .hotel-name {
	display: inline-block;
	
	margin-top: -2px;
	margin-bottom: 4px;
	
	font-size: 1.3em;
	color: #888;
}
.G-room header .room-booking_data {
	display: inline-block;
	
	padding: 4px 13px;
	padding-top: 6px;

	background: #C4A15A;
	border-radius: 4px;
	
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.8em;
	color: #ffffff;
	text-align: center;
	font-weight: bold;
	
	-webkit-transition: background .2s;
	transition: background .2s;
	margin-left: 1rem;
}
.G-room header .room-booking_data:hover { background-color: #C4A15A; }
.G-room header .room-booking_data:active { background-color: #9b804a; }

.G-room header .contact {
	width: 100%;

	font-size: 1.3em;
	color: #5e5e5e;
}

.G-room .main { margin: -20px -10px; }
.G-room .main table {
	width: 100%;
	
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 10px 15px;
}
.G-room .main th, .G-room .main td {
	height: 40px;
	
	box-sizing: border-box;
	vertical-align: middle;
	
	font-size: 1.5em;
	color: #333333;
}
.G-room .main table .person-name, .G-room .main table .person-born_date {
	border: 1px solid #e4e4e4;
	background-color: #fff;
	
	padding: 8px 12px;
	
	-webkit-transition: background .2s, border .2s;
	transition: background .2s, border .2s;
}
.G-room .main table tr.checked_in .person-name, .G-room .main table tr.checked_in .person-born_date {
	border-color: #73ce86;
	background-color: #dfefe2;
}
.G-room .main table .person-born_date { width: 140px; }
.G-room .main table .person-actions {
	width: 76px;
	text-align: right;
}

.G-room .footer_actions { margin-top: 30px; }
.G-room .footer_actions .action {
	position: relative;
	z-index: 1;
	
	display: -webkit-flex;
	display: flex;
}
.G-room .footer_actions .action-label {
	margin-top: 5px;
	margin-right: 20px;
	
	font-size: 1.6em;
	color: #7d7d7d;
	font-weight: 300;
}
.G-room .footer_actions .G-switch {
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
}

.G-room .order_data { display: none; }

.order_data.template{ display: none; }
.order_data:not(.template){
	display: flex;
	justify-content: space-between;
	width: 100%;
	font-size: 15px;
	padding: 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.29);
	align-items: center;
}
.order_data.contact {
	border-bottom-width: 3px;
    border-bottom-style: double;
}
.order_data:not(.template):last-child{ border-bottom: 0; }

.appended_content{
    width: 100%;
}

.order_data:not(.template) .input{
	display: flex;
	justify-content: flex-end;
	flex-shrink: 0;
}
.order_data .contact_input{
	width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
	text-align: left;
	margin-right: 0;
	width: 300px;
}
.order_data:not(.template) .armband_input{
	width: 50px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 5px;
}

.order_data:not(.template) .armband_name{
    flex-grow: 1;
    text-align: left;
    margin-right: 20px;
}
.order_data:not(.template) .armband_name select{
	display: block;
    width: 100%;
}
.order_data input { margin-right: 10px; }
.order_data input[readonly] { background: #eee; }
.order_data .armband_value {
	width: 40px;
	text-align: right;
}
.order_data .joker_button {
	min-width: 0;

	margin: 0 !important;
	margin-right: 10px !important;

	padding: 3px 20px;
	padding-top: 5px;

	font-size: 18px;
}

.empty{ display: none; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }



@media screen and (max-width: 1000px){
	.G-rooms {
		-webkit-justify-content: center;
		justify-content: center;
	}
	.G-room {
		width: 100%;
		max-width: 600px;
	}
}





/* --- POPUP --- */
.G-popup {
	display: none;
	position: absolute;

	width: 100%;
	height: 100%;

	left: 0;
	top: 0;

	z-index: 500;

	box-sizing: border-box;
	padding: 0 15px;
}
.G-popup .popup-bg {
	position: fixed;

	width: 100%;
	height: 100%;

	left: 0;
	top: 0;

	background: rgba(0, 0, 0, 0.9);
}
.G-popup .popup-window {
	position: relative;
	display: -webkit-flex;
	display: flex;

	-webkit-flex-direction: column;
	flex-direction: column;

	-webkit-justify-content: center;
	justify-content: center;

	-webkit-align-items: center;
	align-items: center;

	-webkit-align-content: center;
	align-content: center;

	max-width: 826px;
	min-height: 500px;

	padding: 50px 100px 30px 100px;
	margin: 100px auto;

	box-sizing: border-box;

	background: #ffffff;
	border-radius: 9px;

	text-align: center;
}
.G-popup .popup-window.small {
	max-width: 600px;
	min-height: 380px;

	padding-left: 40px;
	padding-right: 40px;
	margin-top: 160px;
}
.G-popup.open .popup-window {
	-webkit-transform: rotateX(0) scale(1);
	transform: rotateX(0) scale(1);

	-webkit-transition: -webkit-transform .4s;
	transition: transform .4s;
}
.G-popup .popup-close {
	display: block;
	position: absolute;

	width: 22px;
	height: 22px;

	top: 32px;
	right: 36px;
}
.G-popup .popup-close:before {
	display: block;
	position: absolute;
	content: "";

	width: 40px;
	height: 40px;

	left: 50%;
	top: 50%;

	margin-left: -20px;
	margin-top: -20px;

	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);

	-webkit-transform: scale(0);
	transform: scale(0);

	-webkit-transition: -webkit-transform .2s, background .2s;
	transition: -webkit-transform .2s, background .2s;
}
.G-popup .popup-close:hover:before { -webkit-transform: scale(1); transform: scale(1); }
.G-popup .popup-close:active:before { -webkit-transform: scale(1); transform: scale(1); background: rgba(0, 0, 0, 0.15); }
.G-popup .popup-close:after {
	display: block;
	position: absolute;
	content: "";

	width: 100%;
	height: 100%;

	background: url('/assets/img/popup-close.png') no-repeat 0 0;
}

/* popup format */
.G-popup header {
	margin-bottom: 20px;
}
.G-popup h1 {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 3.8em;
	color: #333333;
	font-weight: bold;
}
.G-popup .subtitle {
	font-size: 1.3em;
    color: #5e5e5e;
}
.G-popup p {
	margin: 10px 0;
	
	font-size: 1.8em;
	color: #333333;
	font-weight: 300;
}
.G-popup p.small { font-size: 1.4em; }
.G-popup p a:hover { text-decoration: underline; }
.G-popup .G-button { margin-top: 40px; }



/* order data popup */
.G-popup .order_data {
	width: 100%;
	box-sizing:border-box;
	
	font-size: 1.6em;
	color: #333333;
	font-weight: 300;
}
.G-popup .order_data a:hover { text-decoration: underline; }
.G-popup .order_data .customer_name {
	margin-bottom: 5px;
	font-size: 1.1em;
}
.G-popup .order_data .customer_address { margin-top: 20px; }
.G-popup .update_form { width: 100%; }




/* entrances popup */
.G-popup .entrances {
	display: block;

	width: 100%;
	margin: 15px 0;

	text-align: left;
    color: #333333;

	padding: 10px 12px;

	background: #ffecdc;
    border: 1px solid #ffb767;
}

.G-popup .entrances .entrancesHeader {
	display: flex;
	justify-content: space-between;

	font-weight: bold;

	font-size: 1.4em;
}
.G-popup .entrances.closed .entrancesHeader .button.close { display: none; }
.G-popup .entrances:not(.closed) .entrancesHeader .button.open { display: none; }

.G-popup .entrances .entrancesContent {
	width: 100%;
	margin-top: 20px;
	font-size: 1.3em;
}
.G-popup .entrances .entrancesContent th, .G-popup .entrances .entrancesContent td {
	padding: 6px 12px;
}
.G-popup .entrances .entrancesContent th { font-weight: bold; }

.G-popup .entrances.closed .entrancesContent { display: none; }
.G-popup .entrances .entrancesContent .entranceTemplate { display: none; }
.G-popup .entrances .entrancesContent tbody tr:nth-child(even) > * { background: #ffdcbf; }
.G-popup .entrances
.G-popup .entrances
.G-popup .entrances
.G-popup .entrances
.G-popup .entrances
.G-popup .entrances
.G-popup .entrances {}


@media screen and (max-width: 850px) {
	.G-popup .popup-window {
		max-width: 725px;
		
		padding-left: 50px;
		padding-right: 50px;
	}
}
@media screen and (max-width: 700px) {
	.G-popup .popup-window {
		padding-left: 15px;
		padding-right: 15px;
	}
}
@media screen and (max-width: 500px) {
	.G-popup { padding: 0; }
	.G-popup .popup-window {
		width: 100%;
		
		margin: 0;
		margin-top: 50px;
		
		border-radius: 0;
	}
}


/* --- ALERT --- */
.L-alert {
	position: fixed;
	display: -webkit-flex;
	display: flex;

	-webkit-justify-content: space-between;
	justify-content: space-between;

	-webkit-align-items: center;
	align-items: center;

	bottom: 40px;
	left: 40px;

	max-width: 500px;
	box-sizing: border-box;
	padding: 19px 36px;

	background: #4b5c68;
	border-radius: 5px;
	box-shadow: 0px 0px 29px 0px rgba(0, 0, 0, 0.27);

	font-size: 14px;
	color: #ffffff;

	visibility: hidden;
	opacity: 0;
	-webkit-transform: translateY(100%) translateZ(0);
	transform: translateY(100%) translateZ(0);

	transition: -webkit-transform .4s, opacity .4s, visibility .4s, background .4s;
	transition: transform .4s, opacity .4s, visibility .4s, background .4s;

	z-index: 19999;
}
.L-alert.visible {
	visibility: visible;
	opacity: 1;
	-webkit-transform: translateY(0) translateZ(0);
	transform: translateY(0) translateZ(0);
}
.L-alert[data-type="info"]{ background: #4b5c68; }
.L-alert[data-type="success"]{ background: #81c870; }
.L-alert[data-type="error"]{ background: #dc5b5b; }
.L-alert[data-type="notification"]{ background: #ffffff; color: #4b5c68; }
.L-alert[data-type="loading"]{ background: #FFD600; color: #545454; }

/* text */
.L-alert .text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	margin-right: 20px;
}

/* action */
.L-alert .action {
	color: #64bfff;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	transition: color .4s;
}
.L-alert[data-type="info"] .action { color: #64bfff; }
.L-alert[data-type="success"] .action { color: #c6ffb8; }
.L-alert[data-type="error"] .action { color: #ffd1d1; }
.L-alert[data-type="notification"] .action { color: #009ed3; }
.L-alert[data-type="loading"] .action { color: #64bfff; }

/* close */
.L-alert .close {
	display: block;

	width: 20px;
	height: 20px;

	padding: 5px;
	margin-left: 15px;

	-webkit-flex-shrink: 0;
	flex-shrink: 0;

	opacity: .75;
	transition: opacity .2s;
}
.L-alert .close:hover { opacity: 1; }
.L-alert .close svg {
	display: block;
	width: 100%;

	stroke: #79a0bc;
	stroke-width: 2;

	transition: stroke .4s;
}

.L-alert[data-type="info"] .close svg { stroke: #79a0bc; }
.L-alert[data-type="success"] .close svg { stroke: #e1ffda; }
.L-alert[data-type="error"] .close svg { stroke: #ffadad; }
.L-alert[data-type="notification"] .close svg { stroke: #afb8bf; }

@media screen and (max-width: 600px){
	.L-alert {
		width: 100%;
		max-width: none;

		left: 0;
		bottom: 0;

		border-radius: 0;

		padding: 20px 15px;
	}
}

.d-flex {
	display: flex;
}
.align-items-center {
	align-items: center;
}
.align-items-start {
	align-items: flex-start;
}
.justify-content-space {
	justify-content: space-between;
}
.mb-1 {
	margin-bottom: 1rem;
}
