input,
input[type=text],
input[type=password],
input[type=email],
select,
textarea {
	font-family: 'Baloo';
	font-size: 100%;
    background-color: #fff;
	border: 1px solid #d3d3d3;
	transition: 0.22s;
	box-sizing: border-box;
}

button {
	display: flex;
	justify-content: center;
    align-items: center;
    gap: 10px; /* Adds spacing between text and icon */
	transition: background-color 0.3s ease;
	font-size: 100%;
    font-family: 'Baloo';
	background-color: #000;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
	border: 0 solid;
	text-align: left; /* Takes the lead on small screens, but text content requires mutiple lines */
}

button.blueButton {
	background-color: #257ac7 !important;
	color: white;
}

button.blueButton:hover {
	background-color: #236eb3 !important;
}

button:hover {
    background-color: #000;
}

button img {
	max-width: 30px;
/*	margin-right: 8px;*/
}

button span {
	/*margin-right: 4px;*/
}


.button {
	display: flex;
	align-items: center;
	justify-content: center; 
	transition: background-color 0.3s ease;
}

canvas {
	border-radius: 0 10px 10px 10px;
	cursor: crosshair;
	border: 1px solid #d3d3d3;
}

input:not([disabled]):focus,
input[type=text]:not([disabled]):focus,
input[type=password]:not([disabled]):focus,
input[type=email]:not([disabled]):focus,
select:not([disabled]):focus,
textarea:not([disabled]):focus,
canvas:focus{
	border: 1px solid #000 !important;
	outline: none;
}

input.error {
	background-color: #d9343b !important;
	color: #FFF;
}

/* Use case : Social links / share reservation page link*/
button.withImg {
	 display: flex;
	 align-items: center;
	 justify-content: center;
}

button[white] {
	border: 1px solid black;
	background-color: white;
	color: black;
}

button[white]:hover {
	background-color: white;
}

select {
	background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
	background-repeat: no-repeat;
	background-position-x: 100%;
	background-position-y: 50%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

#menu input,
#menu input[type=text],
#menu input[type=password],
#menu input[type=email],
#menu select {
	width: 100%;
	padding: 10px;
	background-color: #FFF;
}

#menu > .width-small select {
	margin-top: 24px;
	text-align-last: center; /* center text in select */
    border-radius: 8px;
}

button[process=loading]::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 28px;
    height: 28px;
    animation: spin 1.5s linear infinite;
    background-image: url(/core/gui/img/design/loading_120x120.webp);
    background-repeat: no-repeat;
    background-size: 28px 28px;
    background-position: center center;
}

button[process=success]::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 30px;
    height: 30px;
    background-image: url(/core/gui/img/icons/button_success.webp);
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: center center;
}

button[process=failure]::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 30px;
    height: 30px;
    background-image: url(/core/gui/img/icons/button_failure.webp);
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: center center;
}

.toggleButton,
.button-list .button {
    margin-top: 10px;
    color: #000;
    cursor: pointer;
    padding: 10px;
	border-radius: 10px !important;
	text-align : center;
}

.button-list .button {
	background-color: #e4e6eb;
}

.button-list .button:hover {
	background-color: #d8dadf;
}


.toggleButton {
	background-color: #fff;
	border: 1px solid #d3d3d3 !important;
}

.toggleButton:first-child {
    margin-top: 0; /* cf : margin-bottom provided by .dropdownButtons #title ("Update this slot") */
}


.toggleButton:hover {
	border: 1px solid #000  !important;
	background-color: #fff !important;
}

.content > .toggleButton:hover {
	background-color: #fff;
}

.button-list .toggleButton,
.button-list .button {
/*	background-color: #e4e6eb !important;*/
}
/*
.button-list .toggleButton:hover,
.button-list .button:hover {
	background-color: #d8dadf !important;
}
*/
/* Content Forms */

.insert,
#insert,
#edit,
.edit,
.close {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    max-height: 24px;
    min-width: 24px;
    max-width: 24px;
    font-size: 80%;
   /* margin: 10px 0 0 0;*/
    /*padding: 6px;*/ /* Removed to avoid display anomalie on case like parameters > large custom options*/
    border-radius: 100%;
    cursor: pointer;
    user-select: none;
	border: 1px solid #d3d3d3;
}

.insert:hover,
#insert:hover,
#edit:hover,
.edit:hover,
.close:hover {
	border: 1px solid #000;
	box-shadow: 0 0 0 0 !important;
}

.label {
    width: 100%;
    position: relative;
    display: inline-block;
    margin-top: 28px;
}

.body .label:first-of-type {
    margin-top: 14px;
}


/*.label:first-child {*/
/*	margin-top: 14px;*/
/*}*/

.label > .label_title {
    position: absolute;
    top: -14px;
    background-color: white;
    padding: 0 8px;
    color: rgba(0, 0, 0, 0.8);
    font-size: 90%;
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    border-left: 1px solid #d3d3d3;
}

.scroll-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.scroll-label {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}



.label[doNotAsk] {
	display: none;
}

/* Used in revenue */
.label .label_text {
    padding: 10px;
    box-sizing: none;
    background-color: #FFF;
    border: 1px solid #d3d3d3;
}

.label input {
	font-family: 'Baloo';
	font-size: 100%;
	border-radius: 0 10px 10px 10px;
	padding: 10px;
	width: 100%;
}

.label input[disabled] {
	color: grey;
    background-color: white;
}

.label select {
    padding: 10px;
   	border-radius: 0px 10px 10px 10px;
	width: 100%;
}

.requiredInformationNote {
	padding: 0 10px 6px 10px;
	font-size: 90%;
}

textarea {
	width: 100%;
	height: 200px;
	border-radius: 0 10px 10px 10px;
	padding: 8px;
}

.content button {
	margin-top: 10px;
}

.checkboxContainer {
    width: 100%;
    text-align: justify;
    display: flex;
    align-items: center;
    text-align: left;
    user-select: none;
    margin-top: 10px;
    font-size:90%;
}

.checkboxContainer:first-child {
    margin-top: 0;
}

.checkboxContainer input[type=checkbox]{
	margin: 0; /* Remove default/native margins */
	/* min and max usage required for correct size */
	min-width:20px;
	max-width:20px;
	max-height:20px;
	min-height:20px;
}

.checkboxContainer .checkboxText {
    cursor: pointer;
    padding-left: 8px;
}

.checkboxContainer label {
    cursor: pointer;
    padding-left: 8px;
}

.checkboxContainer .checkboxTextDisabled {
    padding-left: 8px;
}

/* / Content Forms */

.notificationBasic {
	position: relative; 
    padding: 0 0 0 6px;
    color: red;
    border-left: 1px solid red;
    width: 100%;
    display: none;
    margin-top: 4px;
    font-size: 90%;
    text-align: left;
    box-sizing: border-box;
}

.notificationCheckboxBasic {
	margin-left: 6px;
	padding: 0 0 0 6px;
	color: red;
	display: none;
	font-size: 90%;
	border-left: 1px solid red;
	white-space: nowrap;
}

.notification {
    position: relative;
    padding: 2px 8px 2px 8px;
    border-radius: 8px;
    background-color: #d9343b;
    color: #FFF;
    width: 100%;
    margin: auto;
    display: none;
    margin-top: 6px;
    text-align: center;
    box-sizing: border-box;
}


.notification:after, .notification:before {
	bottom: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.notification:after {
	border-color: rgba(11, 70, 53, 0);
	border-bottom-color: #d9343b;
	border-width: 12px;
	margin-left: -12px;
}

/* Use case : error when trying to remove slots over a 3 month timeframe, display link to default/weekly agenda */
.notification a {
	font-weight: 700;
    color: #FFF;
}

.notification:before {
	border-color: rgba(255, 255, 255, 0);
	border-bottom-color: #FFF;
}

.notification[#0d755b] {
    background-color: #04AA6D;
    color: #fff;
}

.notification[#0d755b]:after {
	border-bottom-color: #04AA6D;
}

.notification span.button {
    background-color: red;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, .52);
    padding: 0 6px 0 6px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.notificationCheckbox {
	margin-left: 6px;
	padding: 0 4px 0 4px;
	border-radius: 8px;
	background-color: #d9343b;
	color: #FFF;
	display: none;
	white-space: nowrap; /* Avoid line-break on small/mobile screens */
}

/* Handle lost password feature */
.password_withLostPasswordFeature {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #FFF; 
	border-radius: 8px;
}

.password_withLostPasswordFeature input {
	margin-top: 0 !important;
	box-shadow: 0 0 0 0 red !important;
}

.password_withLostPasswordFeature .sendNotifButton {
	min-width: 90px;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    margin-left: 10px;
    color: grey;
    background: #f0f0f0;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.password_withLostPasswordFeature #trigger:hover {
	border: 1px solid grey;
}

/* Handle lost password feature */
#password_withLostPasswordFeatureReservationForm {
	display: flex;
	align-items: center;
	margin-top: 0; 
	background-color: #FFF; 
	border-radius: 8px;
	box-shadow: 0 0 24px rgb(74 85 95 / 10%);
}

#password_withLostPasswordFeatureReservationForm input {
	margin-top: 0 !important;
	box-shadow: 0 0 0 0 red !important;
}

#password_withLostPasswordFeatureReservationForm #trigger {
	min-width: 90px;
    text-align: center;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
    margin-right: 6px;
    color: grey;
    background: #f0f0f0;
	border: 1px solid #f0f0f0;
    border-radius: 8px;
}

#password_withLostPasswordFeatureReservationForm #trigger:hover {
	background-color: #fff;
	border: 1px solid #000;
}

.subLoginButton {
	box-shadow: 0 0 24px rgb(74 85 95 / 10%);
	background-color: #fff;
	border: 1px solid #fff;
	padding: 10px 0 10px 0;
	cursor: pointer;
	border-radius: 8px;
	text-align: center;
	margin-top: 10px;
}

.subLoginButton:hover {
	border: 1px solid #000;
}

.formRadioRow {
	display: flex;
	flex-direction: row;
	width: 100%;
	margin-top: 10px;
	user-select: none;
}

.formRadioRow input {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}

.formRadioRow label {
	width: 100%;
}

.dropdownButtons {
  /*  background-color: rgba(255, 255, 255, .5);*/
	background-color : #FFF;
    margin-top: 10px;
    box-shadow: 0 0 24px rgb(74 85 95 / 10%);
    border-radius: 8px;
    user-select: none;
    border: 1px solid #d3d3d3;
	transition: 0.22s;
}

.dropdownButtons:hover {
    border-color: #000;
}

.dropdownButtons #title {
	cursor: pointer;
	color: #000;
	padding: 10px;
	text-align: center;
}

.dropdownButtons #content {
	display: none;
	padding: 0 10px 10px 10px;
}

/* --- */
/* Toggle Switch */
/* --- */

.switchContainer {
	width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    user-select: none;
    margin-top: 12px;
    background: #f5f6f8;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  min-width: 30px;
  height: 17px;
  margin-right: 10px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .2s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #009b7d;
}

input:focus + .slider {
  box-shadow: 0 0 1px #009b7d;
}

input:checked + .slider:before {
  transform: translateX(13px);
}

/* --- */
/* / Toggle Switch */
/* --- */