* {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: text !important;
  -webkit-touch-callout: default !important;
  user-select: text !important;
}

a {
  color: inherit;
}

.modal {
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 16px;
  font-weight: 300;
  padding-bottom: env(safe-area-inset-bottom);
 
  .modal-header {
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 17px;
    padding-bottom: 18px;
    border-top: 22px solid #92C01F;
    border-bottom: 2px solid #92C01F;
    background-color: #ECEFEB;
    font-size: 20px;
    line-height: 20px;
    font-style: normal;
    font-weight: 400; 
    letter-spacing: 1px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);

    i {
     margin-top: 1px;
     margin-right: 4px;
    }
  }

  .modal-footer {
    padding: 10px;
    padding-bottom: 15px;
    margin-top: -14px;
    border-top: 0px;
  }

  .fa-arrow-left {
    position: absolute;
    right: 10px;
    padding: 5px;
    margin-top: 3px;
    cursor: pointer;
    border: 1px solid #F9F9F9;
    border-radius: 20%;
    background-color: #FFFFFF;
  }

  .item {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
  }
}

@media (max-width: 768px) {    
  .modal {
    .modal-dialog {
      width: 100%;
      max-width: unset;
      margin: 0px;
      margin-top: -1px; 
    }
  }
}

[data-bs-theme="dark"] .modal {
  .modal-header {
    background-color: #303030;
  }

  .fa-arrow-left {
    color: #000000;
  }
}

.btn {
  padding-top: 9px;
  padding-bottom: 10px;
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

.btn-success {
  background-color: #92c01f;
  border: 0px;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.btn-success:hover,
.btn-success:active:hover {
  background-color: #9bc531;
}

.btn-danger {
  background-color: #c01f1f;
  border: 0px;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.btn-danger:hover,
.btn-danger:active:hover {
  background-color: #c53131;
}

.form-label,
.form-error {
  color: #666;
  margin-bottom: 0.1rem;
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 15px;
  font-weight: 500;
}

.form-error {
  position: absolute;
  margin-left: 5px;
  color: #8E1600 !important;
}

.form-control,
.form-select {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0.4rem;
  background-color: transparent;
  box-shadow: none;
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 15px;
  font-weight: 300;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: none;
}

.form-text {
  overflow: none;  
  padding-top: 5px; 
  padding-bottom: 5px; 
  font-size: 15px; 
  line-height: 15px; 
  width: 100%; 
  height: auto; 
  background-color: #e9ecef
}

[data-bs-theme="dark"] .form-text {
  color: #aaaeb3;
  background-color: #343a3f;
}

/* Force VirtualSelect to behave like a normal Bootstrap form-select */
.form-select 
{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* HEADER */
#header {
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-size: 20px;
  line-height: 20px;
  border-top: 22px solid #92C01F;
  border-bottom: 2px solid #92C01F;
  background-color: #ECEFEB;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
  -webkit-box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
  padding: 10px;

  .logo {
    margin: auto;
    text-align: center;

    img {
      height: 40px;
    }

    span {
      display: block;
      font-style: normal;
      font-weight: 400; 
      letter-spacing: 1px;
      /*color: #6b3b11;*/ 
    }
  }

  .module {
    padding: 8px;

    span {
      font-style: normal;
      font-weight: 400; 
      letter-spacing: 1px;
      /*color: #6b3b11;*/ 
    }

    .fa-home {
      position: absolute;
      right: 10px;
      padding: 5px;
      margin-top: -5px;
      cursor: pointer;
      border: 1px solid #F9F9F9;
      border-radius: 20%;
      background-color: #FFFFFF;
    }
  }
}

[data-bs-theme="dark"] #header {
  background-color: #303030;

  .module {
    .fa-home {
      color: #000000;
    }
  }
}

.authentication #header {
  background-color: #455f3c;
  color: #FFFFFF;
}

/* CONTENT */
#content {
  position: fixed;
  top: 75px;
  height: calc(100% - 77px - env(safe-area-inset-bottom));
  width: 100%;
  padding: 20px;
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  overflow-y: auto;

  .item {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid #e5e5e5;
  }

  .item:last-child {
    border-bottom: 1px solid #e5e5e5 !important;
  }

  .item.hover:hover {
    background-color: #ECEFEB !important;
  }

  .item > div {
    display:flex;
  }

  .item > div > div:first-child { 
    vertical-align: top; 
    margin-top: 2px; 
    margin-right: 5px;
    width: 20px; 
    text-align: center;
    padding: 0px;
   }

  .item.cursor {
    cursor: pointer;
  }

  #index {
    margin-top: 20px;
    margin-bottom: 58px;
    padding-top: 10px;

    .item {
      display: block;
      padding: 18px; 
      border-bottom: 2px solid #a0c01b !important;
      border-top: 0px;
      text-align: center;
      font-size: 18px;
      font-weight: 400;
      line-height: 18px;
    }

    .item:first-child {
      border-top: 2px solid #a0c01b;
    }

    .item.hover:hover {
      background-color: #f5f5f5;
    }
  }
}

[data-bs-theme="dark"] #content {
  select {
    color: #000000;
  }

  .item.hover:hover {
    background-color: #303030 !important;
  }

  #index {
    .item.hover:hover {
      background-color: #303030 !important;
    }
  }
}

.authentication #content {
  top: 103px;
  height: calc(100% - 103px);
  display:flex; 
  align-items:center; 
  justify-content:center;

  background: url(oil.png);
  background-repeat: no-repeat;
  background-size: auto;

  div {
    background-color: #FFFFFF;
    color: #000000;
    opacity: 0.75;
  }
}

[data-bs-theme="dark"] .authentication #content {
  div {
    background-color: #303030;
    color: #FFFFFF;
  }
}

/* FOOTER */
#footer {
  display: none;
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  border-top: 1px solid #CCCCCC;
  background-color: #ECEFEB;
  justify-content: space-around;
  padding-top: 0.2rem;
  padding-bottom: env(safe-area-inset-bottom);
      
  .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    
    i {
      font-size: 1.2rem;
    }
  }
}

[data-bs-theme="dark"] #footer {
  background-color: #303030;

  .nav-link {
    color: #FFFFFF;
  }
}

/* OVERLAY */
#overlay {
  display: none;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-color: #000000;
  opacity: 0.50;
  z-index:2000;
}

/* PEOPLE */ 
img.people {
  display: inline-block;
  width: 100%;
  aspect-ratio : 1/1;
  margin-bottom: 10px;
}

span.people {
  display: block;
  vertical-align: middle;
}

@media (min-width: 576px) {
  img.people {
    display: inline-block;
    width: 175px;
    height: auto;
    padding-left: 0px; 
    padding-right: 0px;
    margin-right: 10px;
    margin-bottom: 0px;
  }

  span.people {
    display: inline-block;
  }
}

/* QUANTITY */
span.quantity {
  width: 28px; 
  height: 28px; 
  border: 1px solid #ccc; 
  background:#f3f3f3; 
  border-radius:4px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  cursor:pointer; 
  padding:0px
}

input.quantity {
  width: 40px; 
  margin-left:5px;  
  margin-right:5px;
}
