@import "modal.css";

* {
  margin:0;
  padding:0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: -webkit-fill-available;
} 

main {
  /* display: flex; */
  flex: 1;
  overflow-y: auto;
}

main::-webkit-scrollbar {
  display: none;
}

footer {
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;

  background-color:#0d6efd;
  font-family: sans-serif;
}

button {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  border: none;
}

a {
  cursor: pointer;
}

.container {
  width:100%;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.col {
  padding: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: lightskyblue;
  border: 1px solid skyblue;
  padding: 0.25rem;
  margin: 0.25rem;

  font-size: 1.25rem;
  cursor: pointer;
}

.card-body {
  padding: 0.5rem;
}

.card-text {
  background-color: lightblue;
  padding: 0.25rem;
  margin: 0.25rem 0;
  border-radius: 0.25rem;
  cursor: pointer;
}

.card-text.card-new{
  background-color: aquamarine;
}

.card-text:hover, .card-text.active {
  background-color: antiquewhite;
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

.container-table {
  height: 60vh;
  overflow: auto;
  margin-bottom: 1.5rem;
}

th {
  position: sticky;
  background: lightgrey;
  top: 0;
}

tr {
  cursor: pointer;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:hover, tr.active {
  background-color: lightgray;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid darkgray;
}

form div {
  display: flex;
  flex-direction: row;
  vertical-align: middle;
}

form .content div {
  padding: 0.2rem;
}

form label {
  width: 30%;
  padding: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

form input, form select, form textarea {
  font-size: 1.2rem;
  width: 70%;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0 0.5rem 0 0.5rem;
}

form .footer {
  display: flex;
  justify-content: end;
}

.form-control {
    display: flex;
    justify-content:left;
    align-items: center;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.hidden {
  display: none;
}

/* Calendar */
.header {
  padding: 0;
  color: #Bf192B;
  font-size: 2rem;
  font-family: sans-serif;
  display: flex;
  justify-content:center;
}

#weekdays {
  position: sticky;
  top: 0;
  display: flex;
  width: 100%;
  background-color: aliceblue;
  color: #Bf192B;
}

#weekdays div {
  width: 14.2857%;
  padding: 0.25rem;
  text-align: center;
  font-size: 1rem;
}

#calendar{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.day {
  width: 14.2857%;
  min-height: 9rem;
  padding: 5px;
  /* aspect-ratio: 1/0.8; */
  cursor: pointer;
  background-color: white;
  box-shadow: 0px 0px 3px #CBD4C2;
  display: flex;
  flex-direction: column;
  justify-content:flex-start;
  overflow-y: auto;
}

.day div {
  background-color: beige;
  border-bottom: 1px solid gray;
}

.day div.DAYOFF {
  background-color: lightsalmon;
}

.day:hover, .day.active {
  background-color: #e8faed;
}

.currentDay {
  background-color:#e8f4fa;
}



@media only screen and (max-width: 576px) {
  body {
    height: calc(100vh - 5.5rem);
  }

  main {
    width: 180%;
    font-size: 0.8rem;
  }
  footer {
    height: auto;
  }
  button {
    width: auto;
    font-size: 0.8rem;
  }
}
