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

:root {
	--primary: #61663D;
	--primary-light: #A6AA7A;
	--azul-olivia: #3A536B;
  --rojo-olivia: #A3473B;
  --verde-olivia: #61663D;
  --naranja-olivia: #D48A3A;
  --amarillo-olivia: #D9C873;
  --rosa-olivia: #C9898E;
  --gris-oscuro-olivia: #4A4A45;
  --gris-claro-olivia: #EDEAE1;
  --fondo-gris-claro: #F8F8F8;
  --shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  --shadow-bottom-toolbar: -4px 0px 10px rgba(0, 0, 0, 0.15);
  --radius: 6px;

  --calendar-weekend: #3A536B;
  --calendar-sin-servicio: #4A4A45;
  --calendar-cerrado: #A6AA7A;
  --calendar-con-pedido: #D48A3A;
  --calendar-today: #4A4A45;
  --calendar-pendiente: #61663D;

  --theme-success: #61663D;
  --theme-wrong: #A3473B;

  --fullmessage-background: #61663D;
  --fullmessage-color: #fff;

  --background-outside-olivia: #fff;
  --color-texto: #4A4A45;

  --swiper-navigation-size: 1em;
  --swiper-theme-color: white;
}

/* Generales */
body {
  font-family: Montserrat;
  background: white;
  color: var(--color-texto);
}

body.outside.forgotpassword, body.outside.login, body.outside.registrar_d_diner {
  color: var(--color-texto);
}

body.outside {
  background: var(--verde-olivia);
}

body.outside a,
body.outside a:link,
body.outside a:active,
body.outside a:hover {
  color: var(--color-texto) !important;
}

body.inside #response {
  /*
 *   padding-left:1em;
 *     padding-right:1em;
 *       */
  min-height: 80vh;
  margin-left:auto;
  margin-right:auto;
}

body #logo-header {
    margin-top: 1em;
    background-image: url('../assets/olivia/logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 70vw;
    min-height: 30vh;
    max-width:500px;
    text-align:center;
    font-weight:bold;
    margin-left:auto;
    margin-right:auto;
}


#logo {
  background-image: url(../assets/olivia/logo.png);
  background-position: right;
  background-size: contain;
}

form table tr td input {
  width: 100%;
}

#hiddenLinks .username {
  font-weight: 500;
}

input[type="button"], input[type="submit"], a.button, button  {
  font-family: Montserrat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  margin-left:0;
  margin-right:0;
  width: 100%;
  font-weight: normal;
}

.view {
	display: none;
}
.view.active {
	display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-left:1em;
  padding-right:1em;
  box-sizing: border-box;
  animation: fadeInDown;
  animation-duration: 1s;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  /* Note: backdrop-filter has minimal browser support */
  border-radius: var(--radius);
}

.popup {
  min-height: 50%;
  width: 100%;
}

.fw, body input[type=submit].fw, body.outside input[type=submit], body.outside input[type=button] {
  padding: 0.5em;
  border-radius: var(--radius);
  border: none !important;
  font-size: 1.5em;
  font-weight: bold;
  display: block;
  outline: none;
  text-transform: none;
  box-shadow: none;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  
}

body.outside input[type=button],
body.outside input[type=submit] {
  color: white;
  background: var(--verde-olivia) !important;
}

.fw.rojo, body input[type=submit].fw.rojo {
  color: white;
  background: var(--rojo-olivia) !important;
}
.fw.azul, body input[type=submit].fw.azul  {
  color: white;
  background: var(--azul-olivia) !important;
}


a.button.primary, input[type="button"].primary {
  background: var(--azul-olivia) !important;
}

h1, h2, h3, h4 {
  font-weight: normal;
  color: var(--color-texto);
}

.form-label {
  color: var(--color-texto);
  text-align: left;
  text-transform: none;
  font-weight: 500;
}

#loading {
  background-color: white;
  animation-name: fadeIn;
  animation-duration: 1s;
}

#loading_message {
  width: 100px;
  height: 100px;
  /*background-image: url('../assets/olivia/icons/logo_icon.svg');*/
  background-size: cover;
}

#logo_icon_svg .st2 {
  animation: 5s draw ease-in-out forwards;
  animation-iteration-count: infinite;
}

@keyframes draw {
  0% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    stroke-width: 8px;
    fill: #FFFFFF00;
  }
  30% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 000;
    stroke-width: 2px;
    fill: #FFFFFFDD;
  }
  40% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    stroke-width: 2px;
    fill: #FFFFFFFF;
  }
  60% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    stroke-width: 2px;
    fill: #FFFFFFFF;
  }
  70% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 000;
    stroke-width: 2px;
    fill: #FFFFFFDD;
  }
  100% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    stroke-width: 8px;
    fill: #FFFFFF00;
  }
}


#loading_message::after {
  content: '';
}

.bottom_toolbar {
  padding-left: 0.5em;
  padding-right: 0.5em;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-bottom-toolbar);
  border-top: none;
  margin-left:auto;
  margin-right:auto;
}

.bottom_toolbar::before {
  display: block;
  height: 6em;
  width: 1em;
  background: black;
}



/* Login */
body.login, body.outside {
  background-color: var(--background-outside-olivia);
  /* background-position-x: -248px; */
  /* background-position-y: -547px; */

  background-image: linear-gradient(var(--primary) 0%, white 45%, transparent);
  background-size: 200% 200%;
  transition: all .25s ease;
}

body.login #logo_impact {
  background-image: url('../assets/olivia/logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 35%;
}

body.login #response {
	display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: space-around;
  margin-top: 2em;
}

body.login #closure a {
  color:rgba(0, 0, 0, 0.8);
  text-shadow: var(--shadow);
}

body.login #step2 h1 {
  margin-top: 2em;
}

body.login div.form-label.form-email,
body.login div.form-label.form-contraseña {
}

body.login input, body.outside input, body input, body select {
  background: #FFFFFF !important;
  /*box-shadow: inset 0px 4px 10px rgba(0, 0, 0, 0.15);*/
  border-radius: var(--radius);
  color: #222;
  border: none !important;
  font-family: Montserrat;
  width: 100%;
}

body input[type="submit"], body input[type="button"] {
  background: var(--rojo-olivia) !important;
  color: #fff !important;
  font-size: 1em;
}

body input[type="submit"]:hover, body input[type="button"]:hover {
  background: var(--rojo-olivia) !important;
}


body a.button.cancel {
  background: var(--gris-claro-olivia);
  color: var(--gris-oscuro-olivia) !important;
}

table.mobile_form td.label .form-label {
  margin-left: 1em;
  width: 100%;
}

/** registrar_d_diner **/
body.registrar_d_diner #response {
  backdrop-filter: blur(4px);
  /* Note: backdrop-filter has minimal browser support */
  border-radius: var(--radius);
  padding-left: 1em;
  padding-right: 1em;

}

body.registrar_d_diner #logo-header {
  background-image: url(../assets/olivia/logo.png);
  height: 12%;
}


body.registrar_d_diner form table tr td div.form-label.form-mail {
  font-size: 1.5em;
}

body.registrar_d_diner input[type=submit] {
  margin-top: 0em;
}

/** home **/

body.inside.home #response {
  padding-left:1em;
  padding-right:1em;
}

body.home #menuhoy {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  margin-top: 2em;
  height: auto;
}

body.home #menuhoy:before {
  content: 'Tu vianda de hoy';
  color: black;
  position: relative;
  background: none;
  font-size: 1.25em;
  top: auto;
  left: auto;
  margin-bottom: 0.5em;
  margin-top: -1em;
  font-weight: 500;
}

body.home .seleccion {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

body.home .seleccion .fecha {
  width: 50%;
  margin-right: 1em;
  background: var(--rojo-olivia);
  color: white;
  padding:0.5em;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.home .seleccion .fecha .dow,
body.home .seleccion .fecha .month
{
  font-size: 1.5em;
}

body.home .seleccion .fecha .daynumber {
  font-size: 3em;
}

body.home .seleccion .servicio {
  width: 50%;
  margin-left: 1em;
  background: var(--azul-olivia);
  color: white;
  padding: 0.5em;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.5;
  text-align: left;
  padding-left: 1em;
  font-size: 0.8em;
}

body.home .seleccion .servicio .servicio-nombre {
  display: none;
}


body.home #toolbar a {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
  color: var(--color-texto);
  width: 46%;
  min-height: 10vh;
}

body.home #toolbar a .fa {
  font-size: 3em;
}

body.home #toolbar a .label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

body.home #toolbar a .label .title {
  min-height: 3em;
  display: block;
}

body.home #toolbar a.fullwidth {
  width: 100%;
}

body.home #toolbar a.section-title {
  border-radius: none;
  border: none;
  box-shadow: none;
  font-weight: 500;
  color: black;
  text-align: left;
  font-size: 1.5em;
  padding: 0;
  margin-top: 1em;
}


body.home #toolbar a.newRequest  {
  background: #D48A3A;
}
body.home #toolbar a.newRequest .title {
  color: white;
}

body.home #toolbar a.newRequest .fa {
  color: white;
}

body.home #toolbar a.menuDelDia {
  background:#008e93;
}

body.home #toolbar a.menuDelDia .fa {
  color: white;
}

body.home #toolbar a.menuDelDia .title {
  color: white;
}


/*body.home #toolbar a.thisWeek, body.home #toolbar a.menuDelDia, body.home #toolbar a.currentRequests {
 * }
 *
 * body.home #toolbar a.nextWeek, body.home #toolbar a.newRequest, body.home #toolbar a.repeatRequest,
 * body.home #toolbar a.dinerAdmin {
 * }*/

body.home #toolbar a.dinerAdmin {
  width: 100%;
}


body.home #toolbar a.currentRequests,
body.home #toolbar a.repeatRequest,
body.home #toolbar a.qrEntregaPedidos {
  min-height: 12vh;
}

a.currentRequests .label, a.repeatRequest .label {
}

a.currentRequests .label .title, a.repeatRequest .label .title {
  font-size:0.9em;
}

body.home #toolbar a.currentRequests .label i.currentRequests {
  height: 2em;
  width: 2em;
  display: block;
}

body.home #toolbar a.repeatRequest .label i.repeatRequest {
  height: 2em;
  width: 2em;
  display: block;
}

body.home #toolbar a.newRequest.toolbar-break {
  /*width: 100%;*/
}

body.home #toolbar a.currentRequests .label i,
body.home #toolbar a.repeatRequest .label i,
body.home #toolbar a.qrEntregaPedidos .label i {
  font-size: 1.5em;
  color: #D9C873;
  margin-bottom: 0.5em;
}


body.home #toolbar a.currentRequests .label i {

}


body.home #toolbar a.smallbutton {
  height: 3em;
  font-size: 1.4em;
  font-weight: 600;
  display: flex;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  min-height: 3em;
}

body.home #toolbar a.smallbutton .title {
  font-size: 0.9em;
  min-height: auto;
}

body.home #toolbar a.sugerencias {
  /*background-image: url(../assets/olivia/icons/opinion.png);*/
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.home #toolbar a.conozcanos {
  /*background-image: url(../assets/olivia/icons/redes.png);*/
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.home #toolbar a.conozcanos .label {
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 1em;
  box-sizing: border-box;
  background-color: var(--gris-claro-olivia);
  border-radius: var(--radius);
  color: var(--gris-oscuro-olivia);
  font-weight: normal;
}

body.home #toolbar a.sugerencias .label {
  position: absolute;
  top:0;
  right:0;
  width: 100%;
  height: 100%;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 1em;
  box-sizing: border-box;
  background-color:var(--gris-oscuro-olivia);
  border-radius: var(--radius);
  color: white;
  font-weight: normal;
}

body.home #pl_request_kpi {
  background-color: var(--azul-olivia);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.home #pl_request_kpi .legend {
  font-size: 1em;
}

body.new_request_planificacion #response,
body.new_request #response,
body.current_requests #response,
body.diner_nutritional_info #response,
body.changepassword.inside #response,
body.mis_datos.inside #response
{
  background: var(--fondo-gris-claro);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

body.new_request_planificacion #response h1,
body.new_request #response h1,
body.current_requests #response h1,
body.diner_nutritional_info #response h1
{
  text-align: center;
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 1em;
  margin-top: 0.5em;
}


.indicator.blue {
  background-color: var(--azul-olivia);
}


.indicator.blue .label, .indicator.blue .value {
  color: white;
}


body.home.inside #pl_request_kpi .count {
  color: white;
  text-shadow: none;
  font-weight: 500;
}

body.home .swiper .slide {
  background-color: transparent;
  color: white;
  border-radius: var(--radius);
}

body.home .swiper .slide .slide-label {
  max-width: 80%;
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
  text-shadow: 0px 0px 10px #222;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

body.home .swiper .slide .slide-label::after{
  display: block;
  content: 'Ver mas';
  background-color: var(--rojo-olivia);
  color: white;
  width: 6em;
  font-size: 0.6em;
  text-align: center;
  text-shadow: none;
  margin-top: 1em;
  border-radius: var(--radius);
  padding:0.5em;
}

body.home .slider .slide-background {
  border-radius: var(--radius);
}


body.new_request_registered .topnav,
body.pago_pendiente .topnav,
body.pago_no_aprobado .topnav {
  display:none;
}

body.new_request_registered #response {
  padding:0;
  background: var(--verde-olivia);
  color: white;
}

body.pago_pendiente #response {
  padding: 0;
  background: var(--amarillo-olivia);
}

body.pago_no_aprobado #response {
  padding:0;
  background: var(--naranja-olivia);
}

body.new_request_registered .fullscreen_message,
body.pago_no_aprobado .fullscreen_message {
  margin-top: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
  align-content: center;
  height: 100%;
}

body.new_request_registered .fullscreen_message > *,
body.pago_no_aprobado .fullscreen_message > * {
/*height: 50%;*/
  width: 100%;
}

body.new_request_registered .fullscreen_message .icon,
body.pago_pendiente .fullscreen_message .icon,
body.pago_no_aprobado .fullscreen_message .icon {
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /*background-image: url(../assets/olivia/icons/food_delivery.png);*/
  background-position: center;
  background-repeat: no-repeat;
  animation-name: tada;
  animation-delay: 500ms;
}

body.pago_no_aprobado .fullscreen_message .icon {
  /*background-image: url(../assets/olivia/icons/pago_no_aprobado.png);*/
}

body.new_request_registered .fullscreen_message .icon::before,
body.pago_no_aprobado .fullscreen_message .icon::before {
}

body.new_request_registered .fullscreen_message .message,
body.pago_pendiente .fullscreen_message .message,
body.pago_no_aprobado .fullscreen_message .message
 {
  border-radius: var(--radius);
  background: none;
  animation-name: slideInUp;
  animation-delay: 500ms;
  font-size:1.5em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  box-sizing: border-box;
  color: white;
}

body.pago_pendiente .fullscreen_message .message {
  color: var(--gris-oscuro-olivia);
}

body.new_request_registered .fullscreen_message .fa-check-circle:before,
body.pago_pendiente .fullscreen_message .fa-check-circle:before,
body.pago_no_aprobado .fullscreen_message .fa-frown:before {
  font-size: 2em;
}

.topnav {
  margin-bottom:2em;
}


button.yes {
  background: var(--verde-olivia) !important;
}

button.no {
  background: var(--rojo-olivia) !important;
}

.diner_request .row.total {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  font-weight: bold;
  font-size: 1.2em;
  text-transform: uppercase;
  position: absolute;
  top: 0;
  right: 1em;
}

.diner_request {
  position: relative;
  border: 1px solid #ccc !important;
  padding: 1em;
  background-color: white;
  border-radius: var(--radius);
  margin-bottom: 1em !important;
}

.diner_request .row.total .label::before {
  content: '' !important;
}

.pedido .estado.rechazado::before {color: var(--rojo-olivia)}
.pedido .estado.sinaprobar::before {color: var(--amarillo-olivia)}
.pedido .estado.aprobado::before {color: var(--verde-olivia)}
.pedido .estado.confirmado::before {color: var(--verde-olivia)}
.pedido .estado.temporal::before {color: var(--gris-olivia)}
.pedido .estado.en_camino::before {color: var(--azul-olivia)}
.pedido .estado.entregado::before {color: var(--verde-olivia)}
.pedido .estado.cancelado_fuera_de_termino::before {color: var(--rojo-olivia)}

body.vista_servicio .recipe_information_more_info {
  color: var(--verde-olivia);
}

body.vista_servicio .recipe_information_more_info:before {
  content: "  Más info"
}

.vista_servicio #titulo {display: none;}
.vista_servicio #titulo-alt {display: block;}
.vista_servicio #titulo-alt2 {display: none;}

.vista_servicio #recipe_type_filter {
	margin-bottom: 2em;
}

.vista_servicio .service_item:first-child input[type='checkbox']+div {
	border-top: none;
}

.x_mobile_list .option.Activo.controlado .secondary-label::after {
  content: 'Coordinado' !important;
}

body.login #install-button.button {
  color:white !important;
}
#cambiar_a_controlado_button {
	display: flex;
	margin-top:2em;
	margin-bottom:2em;
	font-weight: bold;
	width:calc(100% - 4em);
	height: 4em;
	align-content: center;
	justify-content: center;
	align-items: center;
	margin-left: auto;
	margin-right: auto;
	background-color: var(--gris-oscuro-olivia)
}

#cambiar_a_controlado_button::before {
	content: 'Cambiar comensal';
	margin-right: 1em;
}

#cambiar_a_controlado_button i {
	font-size:2em;
}
