:root {
  --color-primary: hsl(0, 49%, 47%);
  --color-white: hsl(0, 0%, 100%);
  --color-black: hsl(0, 0%, 0%);
  --color-border: var(--color-primary);
  --color-border-light: hsl(210, 6%, 90%);
  --color-border-dark: hsl(210, 6%, 31%);
  --color-info: hsl(204, 64%, 89%);
  --color-info-border: hsl(210, 39%, 57%);
  --color-info-text: hsl(210, 70%, 9%);
  --color-success: hsl(120, 39%, 57%);
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: -webkit-fill-available;
}
body.dark-theme {
  background-color: black;
  color: white;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-height: 100%;
  background-color: var(--color-white);
}

.container {
  width: 100%;
  padding: 0.5rem;
  overflow-y: auto;
}

[class^=i-] {
  display: block;
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  transform: scale(1);
  color: currentColor;
  border-color: currentColor;
  cursor: pointer;
}
[class^=i-]::after, [class^=i-]::before {
  position: absolute;
  width: 0.12rem;
  height: 0.12rem;
  border-radius: 0.12rem;
}

/* info icon */
.i-info {
  border: 0.12rem solid;
  border-radius: 50%;
}

.i-info::after,
.i-info::before {
  content: "";
  background: currentColor;
  left: 43%;
}

.i-info::before {
  top: 0.12rem;
}

.i-info::after {
  height: 0.48rem;
  bottom: 0.12rem;
}

/* triangles */
.i-triangle-down {
  border-left: 0.59rem solid transparent;
  border-right: 0.59rem solid transparent;
  border-top: 0.95rem solid currentColor;
}

.i-spinner {
  border: 0.12rem solid;
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.i-spinner.dark {
  border-top-color: var(--color-black);
}

.i-close::before, .i-arrow-left::before, .i-arrow-up::before, .i-arrow-down::before, .i-arrow-right::before,
.i-close::after,
.i-arrow-left::after,
.i-arrow-up::after,
.i-arrow-down::after,
.i-arrow-right::after {
  content: "";
  width: 100%; /* Spans the width of the parent */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  background-color: currentColor; /* Color of the lines */
  transform-origin: center center; /* Ensures rotation around the center */
}

.i-close::before, .i-arrow-left::before, .i-arrow-up::before, .i-arrow-down::before, .i-arrow-right::before {
  transform: translate(-50%, -50%) rotate(45deg); /* Rotate for one diagonal */
}

.i-close::after, .i-arrow-left::after, .i-arrow-up::after, .i-arrow-down::after, .i-arrow-right::after {
  transform: translate(-50%, -50%) rotate(-45deg); /* Rotate for the other diagonal */
}

.i-add::after,
.i-add::before {
  content: "";
  background: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.i-add::before {
  width: 80%;
}

.i-add::after {
  height: 80%;
}

.i-arrow-left::before, .i-arrow-up::before, .i-arrow-down::before, .i-arrow-right::before,
.i-arrow-left::after,
.i-arrow-up::after,
.i-arrow-down::after,
.i-arrow-right::after {
  content: "";
  width: 90%;
  left: 0;
}

.i-arrow-left::before, .i-arrow-up::before, .i-arrow-down::before, .i-arrow-right::before {
  top: 10%;
  transform: translate(-5%, 0) rotate(-28deg); /* Rotate for one diagonal */
  transform-origin: top right; /* Ensures rotation around the center */
}

.i-arrow-left::after, .i-arrow-up::after, .i-arrow-down::after, .i-arrow-right::after {
  top: 90%;
  transform: translate(-5%, 0) rotate(28deg); /* Rotate for the other diagonal */
  transform-origin: bottom right; /* Ensures rotation around the center */
}

.i-arrow-right::before {
  transform: translate(10%, 0) rotate(28deg); /* Rotate for one diagonal */
  transform-origin: top left; /* Ensures rotation around the center */
}

.i-arrow-right::after {
  transform: translate(10%, 0) rotate(-28deg); /* Rotate for the other diagonal */
  transform-origin: bottom left; /* Ensures rotation around the center */
}

.i-arrow-down::before {
  transform: translate(-5%, 0) rotate(-62deg); /* Rotate for one diagonal */
  transform-origin: top right; /* Ensures rotation around the center */
}

.i-arrow-down::after {
  top: 10%;
  transform: translate(15%, 0) rotate(62deg); /* Rotate for the other diagonal */
  transform-origin: top left; /* Ensures rotation around the center */
}

.i-arrow-up::before {
  top: 85%;
  transform: translate(-5%, 0) rotate(62deg); /* Rotate for one diagonal */
  transform-origin: bottom right; /* Ensures rotation around the center */
}

.i-arrow-up::after {
  top: 85%;
  transform: translate(15%, 0) rotate(-62deg); /* Rotate for the other diagonal */
  transform-origin: bottom left; /* Ensures rotation around the center */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeOutAlert {
  0% {
    opacity: 1;
  } /* Start fully visible */
  80% {
    opacity: 1;
  } /* Stay visible for most of the duration */
  100% {
    opacity: 0;
  }
}
/* @keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    visibility: visible;
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.slideInUp {
  animation-name: slideInUp;
} */
header {
  padding: 0.25rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
}

footer {
  display: flex;
  justify-content: space-between;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 1.2rem;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}
footer p {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
footer p a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: var(--color-white);
}
footer p a:hover {
  color: var(--color-secondary);
}

.modal {
  z-index: 20;
  display: none;
  flex: 1;
  flex-direction: column;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal .header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem;
  font-size: 1.4rem;
  font-weight: bold;
}
.modal .header.close {
  cursor: pointer;
}
.modal .header .i-close {
  position: absolute;
  right: 0.75rem;
}
.modal .content {
  width: 100%;
  padding: 0.5rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  color: var(--color-black);
}
.modal .content ul {
  list-style: circle inside;
  margin: 0;
}
.modal .content ul li {
  padding: 1rem;
  border-bottom: solid 1px var(--color-border-light);
}
.modal .footer {
  padding: 0.75rem;
  display: flex;
  width: 100%;
  justify-content: space-around;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: larger;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 1.25rem;
  border: solid 1px var(--color-primary);
  box-shadow: 0px 0px 2px var(--color-border-light);
  border-radius: 0.25rem;
}

button {
  cursor: pointer;
  box-shadow: 0px 0px 2px gray;
  border: none;
  outline: none;
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  color: white;
  background-color: var(--color-primary);
  font-size: 1.25rem;
}

.tab-btn {
  flex: 1;
  padding: 0.5rem;
  text-decoration: none;
  text-align: center;
  color: black;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  box-shadow: none;
  background-color: whitesmoke;
}

.tab-btn.active {
  background-color: #Bf192B;
  color: white;
}

#btn_close_mdlMyShift,
#btn_showaddeventmodal,
#btn_preday,
#btn_nextday {
  padding: 0 0.6rem 0.28rem;
  box-shadow: 0px 0px 2px gray;
  border: none;
  outline: none;
  border-radius: 5px;
  color: white;
  background-color: #Bf192B;
  font-size: 1.2rem;
}

table {
  width: 100%;
  display: flex;
  flex-direction: column;
  table-layout: fixed;
  border-collapse: collapse;
}
table caption {
  position: sticky;
  display: flex;
  justify-content: space-between;
  top: 0;
  width: 100%;
  padding: 0.65rem;
  background-color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-white);
}
table caption [class^=i-] {
  scale: 1.2;
  font-size: 2rem;
  font-weight: 1000;
}
table tbody {
  background-color: var(--color-white);
  overflow-y: auto;
}
table tr {
  border-bottom: 1px solid var(--color-border-light);
}
table th, table td {
  padding: 0.5rem;
}
table th:not(:last-child), table td:not(:last-child) {
  width: 1%;
  white-space: nowrap;
}
table th:last-child, table td:last-child {
  width: auto;
}
table tr.clickable {
  cursor: pointer;
}

.calendar {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 47%;
  background-color: var(--color-white);
}
.calendar .calendar-header, .calendar .form-header {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.65rem;
  background-color: var(--color-primary);
  color: var(--color-white);
}
.calendar .calendar-footer {
  display: flex;
  bottom: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: var(--color-border-light);
  color: var(--color-dark-gray);
}
.calendar .calendar-footer div {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.calendar .calendar-footer div:has(.legend-info) {
  justify-content: end;
}
.calendar .calendar-content {
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}
.calendar .calendar-content .weekdays {
  position: sticky;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 0.5rem;
}
.calendar .calendar-content .weekdays div {
  flex: 1;
  text-align: center;
  font-weight: bold;
}
.calendar .calendar-content .calendar-grid {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0.5rem;
}
.calendar .calendar-content .calendar-grid [class^=week] {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.calendar .calendar-content .calendar-grid [class^=week] .day {
  display: flex;
  width: 14.2857%;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1/0.8;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.calendar .calendar-content .calendar-grid [class^=week] .day:hover {
  background-color: var(--color-border-light);
}
.calendar .calendar-content .calendar-grid [class^=week] .day.current {
  background-color: var(--color-border-light);
}
.calendar .legend-busy, .calendar .legend-info, .calendar .legend-off {
  display: inline-block;
  width: 1.5rem;
  height: 0.275rem;
  padding: 0.2rem;
  margin-right: 0.3rem;
  border-radius: 5px;
  background-color: var(--color-primary);
}
.calendar .legend-off {
  background-color: var(--color-success);
}
.calendar .legend-info {
  background-color: var(--color-info-border);
}

form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
form .form-header {
  display: flex;
  justify-content: left;
  width: 100%;
  margin-bottom: 0.5rem;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.65rem;
  background-color: var(--color-primary);
  color: var(--color-white);
}
form .form-header .i-info {
  margin-left: 0.5rem;
}
form .row {
  display: flex;
  width: 100%;
  padding: 0.5rem;
  flex-direction: row;
  justify-content: space-between;
  font-size: 1.5rem;
}
form .row .form-label {
  width: 40%;
}
form .row .form-control {
  display: flex;
  flex: 1;
}

.tabs {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: 100%;
}

.tab-content {
  display: none;
  width: 100%;
  padding: 0.5rem;
  background-color: whitesmoke;
  border: solid 1px #Bf192B;
  border-radius: 0 0 5px 5px;
}

.tab-content.active {
  display: block;
}

.alert, .alert-success,
.alert-error, .alert-busy {
  display: none;
  width: 80vw;
  z-index: 100;
  position: fixed;
  flex-direction: column;
  top: 35vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--color-info-text);
  justify-content: center;
  background-color: var(--color-info);
  border: solid 1px var(--color-info-border);
  border-radius: 5px;
  padding: 0.5rem;
}
.alert .alert-content, .alert-success .alert-content,
.alert-error .alert-content, .alert-busy .alert-content {
  padding: 1rem 0;
}
.alert .alert-action, .alert-success .alert-action,
.alert-error .alert-action, .alert-busy .alert-action {
  display: none;
  flex-direction: row;
  justify-content: space-around;
}
.alert .alert-action button, .alert-success .alert-action button,
.alert-error .alert-action button, .alert-busy .alert-action button {
  width: 40%;
}
.alert .alert-action.active, .alert-success .alert-action.active,
.alert-error .alert-action.active, .alert-busy .alert-action.active {
  display: flex;
}
.alert.active, .active.alert-success,
.active.alert-error, .active.alert-busy {
  display: flex;
}
.alert.dark-theme, .dark-theme.alert-success,
.dark-theme.alert-error, .dark-theme.alert-busy {
  background-color: black;
  color: var(--color-white);
  border: none;
}
.alert .alert-content, .alert-success .alert-content,
.alert-error .alert-content, .alert-busy .alert-content {
  text-align: center;
}

.alert-busy {
  align-items: center;
  justify-content: space-evenly;
}

.alert-success,
.alert-error {
  background-color: rgb(206, 138, 138);
  animation-name: fadeOutAlert;
  animation-duration: 1500ms;
  /* Total duration of the animation */
}

.info {
  display: none;
  padding: 0.5rem;
}

.info.active {
  display: block;
}

ul li.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: bold;
}

nav {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  height: 2.75rem;
  width: 100%;
  pointer-events: none;
}
nav .navbar-brand {
  display: none;
}
nav a {
  color: whitesmoke;
  text-decoration: none;
}
nav a:hover {
  font-size: 1.7rem;
}
nav .nav-items {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-primary);
  justify-content: space-around;
  align-items: center;
  list-style: none;
  padding: 2.75rem 0.5rem 0.5rem;
  pointer-events: auto;
}
nav .nav-items a {
  display: inline-block;
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-white);
}
nav .nav-items a:hover {
  font-size: 1.7rem;
}
nav .nav-items.active {
  display: flex;
  z-index: 10;
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  position: absolute;
  right: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 0;
  color: var(--color-white);
  background-color: var(--color-primary);
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 0;
  transform: translateY(0.08rem);
  pointer-events: auto;
}

#form-login {
  display: none;
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  width: 80vw;
}
#form-login .row {
  display: flex;
  width: 100%;
  padding: 0 0 1rem 0;
}
#form-login .row input {
  width: 55%;
}
#form-login .row button {
  flex: 1;
  min-height: 100%;
  padding: 0.5rem;
  font-size: 1.25rem;
  border: solid 1px var(--color-primary);
  border-radius: 0.25rem;
  box-shadow: 0px 0px 2px var(--color-border-light);
}
#form-login .row:last-child {
  padding-top: 1rem;
}
#form-login #sendagain {
  display: block;
  width: 100%;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1.12rem;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
#form-login #sendagain:hover {
  color: var(--color-primary);
}
.grecaptcha-badge {
  visibility: hidden;
}
#form-login.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#recaptcha-container {
  position: fixed;
  left: 50vw;
  top: 58vh;
  transform: translateX(-50%);
  z-index: 10;
}

#modal_code li, #modal_code button {
  font-size: 1.5rem;
}

#mdlText li {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  align-items: center;
}

#modal_code li,
#mdlText li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.list-item-detail {
  font-size: 0.9rem;
  font-weight: normal;
  opacity: 0.8;
}

.alert {
  width: 85%;
}

#verifying .alert-content {
  display: flex;
  width: 65%;
  flex-direction: row;
  align-items: center;
}

#container-schedule-shifts {
  max-height: 50%;
  overflow-y: auto;
}

#table_events_today caption,
#table_shifts_today caption {
  background-color: var(--color-border-light);
  color: var(--color-primary);
  text-align: left;
}

#table_events_today {
  margin-top: 2rem;
}

#mdl_add_event #form_addEvents {
  height: 100%;
}
#mdl_add_event #form_addEvents textarea {
  height: 90%;
}
#mdl_add_event button {
  box-shadow: none;
  font-size: larger;
  font-weight: bold;
}

#modal_shift .footer {
  justify-content: space-between;
}
#modal_shift #btn_request_day_off,
#modal_shift #btn_remove_day_off {
  display: none;
}
#modal_shift #btn_request_day_off.active,
#modal_shift #btn_remove_day_off.active {
  display: inline-block;
}/*# sourceMappingURL=main.css.map */
