@import url('/static/css/ubuntu-font-faces.css');

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

#week-selector::placeholder {
  color: white !important;
  opacity: 1;
}

#week-selector:-ms-input-placeholder {
  color: white !important;
}

#week-selector::-ms-input-placeholder {
  color: white !important;
}

input:invalid {
  border: 2px solid var(--bs-red);
}

.select2-selection__rendered {
  color: var(--bs-dark) !important;
}

#employee-timesheet-modal .modal-dialog {
  max-width: 1280px;
}

.btn-group .btn-primary:first-of-type {
  border-right: 1px solid var(--bs-light) !important;
}

.btn-primary.dropdown-toggle.dropdown-toggle-split {
  border-left: 1px solid var(--bs-light) !important;
}

.badge-weekend {
  background-color: #dddddd;
}

.people-table-hidden-text {
  color: #F5F8FA;
}

.people-table-hidden-text-weekend {
  color: #dddddd;
}

.htmx-indicator {
  display:none;
}

.htmx-request .tst-indicator {
  display:inline;
}

.htmx-request.tst-indicator {
  display:inline;
}

.tst-indicator {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.75);
  min-height: 200px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.tst-indicator.inline {
  min-height: unset;
}

.people-container {
  min-height: 400px;
}

.btn:not(.btn-outline):not(.btn-dashed):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon).prev-week,
.btn:not(.btn-outline):not(.btn-dashed):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon).next-week {
  max-width: 43px;
  padding-left: 14px;
}

.week-selector-container input.input {
  background-image: url(/static/images/calendar.svg);
  background-repeat: no-repeat;
  background-position: 14px center;
  border: 0;
  margin: 0 10px;
  padding-left: 40px;
  max-width: 170px;
}

#toggle-deleted-bookings-table {
  background-color: unset !important;
}

#toggle-deleted-bookings-table::after {
  width: 1.5rem !important;
  height: 1.5rem !important;
  background-size: 1.5rem !important;
}

.booking-duration-cell {
  position:relative;
  overflow: auto;
  height: 100%;
}

.increased-z-index {
  z-index: 1 !important;
}

.has-description {
  z-index: 1 !important;
}

.description-icon {
  cursor: pointer;
  position: absolute;
  bottom: 12px;
  right: 4px;
  z-index: -1;
}

#timesheet-table table {
  border-spacing: 0;
  border-collapse: collapse;
  overflow: hidden;
}

#timesheet-table td,
#timesheet-table th {
  position: relative;
}

#timesheet-table tr:not(:first-child):hover,
#timesheet-table tr:not(:last-child):hover{
  background-color: #fafafa;
}

#timesheet-table td:hover:not(:first-child)::after,
#timesheet-table td:hover:not(:last-child)::after {
  background-color: #fafafa;
  content: '\00a0';
  height: 10000px;
  left: 0;
  position: absolute;
  top: -5000px;
  width: 100%;
  z-index: 0;
}

#timesheet-table tfoot td:hover::after,
#timesheet-table td:first-child:hover::after,
#timesheet-table td:last-child:hover::after{
  display: none;
}

#timesheet-table td:first-child *,
#timesheet-table td:last-child *,
#timesheet-table th {
  position: relative;
  z-index: 1;
}

#timesheet-table .booking-duration-cell {
  z-index: 1;
}

.form-control.is-invalid {
  background-image: none;
}

.toastr {
  opacity: 0.95 !important;
}

#toastr-container {
  width: 100vw;
  top: 10px;
  right: 0;
}

#toastr-container > div {
  width: calc(100% - 30px);
  margin-left: 15px;
}

.toastr-message {
  margin-right: 2em;
}

@media (min-width: 481px) {
  #toastr-container {
    width: unset;
    right: 15px;
  }

  #toastr-container > div {
    width: unset;
    margin-left: unset;
  }
}

@media (min-width: 992px) {
  #toastr-container {
    top: 28px;
    right: 40px;
  }
}

/* MOBILE RELATED CSS */
.mobile > .week-selector-container {
  justify-content: center;
}

.approved-week-border {
  border-left: 5px solid var(--bs-blue);
}

.pending-week-border {
  border-left: 5px solid var(--bs-success);
}

.position-absolute.bulk-action {
  left: 5px;
  top: 5px;
}

.brightness-50 {
  filter: brightness(0.5);
}
