/* These styles are generated from project.scss. */
@import "style-variables.css";
.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

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

body {
  font-family: "Poppins", sans-serif;
}

.logo-default {
  max-width: 100%;
}

.logo-minimize {
  scale: 40%;
  position: absolute;
  top: -40px;
  left: -40px;
}

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

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

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

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

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

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

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

.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: 100;
}

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

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

.subordinate-holiday-summary-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;
}

.year-selector-container 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: 100px;
}

.day-row-bg-day-off {
  background-color: #f5f5f5;
}

.day-row-bg-booked-day-off {
  background-color: #cfe8d2;
}

.day-row-bg-booked-home-office {
  background-color: #c5d7e6
}

.day-row-bg-sick-leave {
  background-color: #f8cbad;
}

.day-row-bg-unpaid-leave {
  background-color: #f1f8ad;
}

.day-row-bg-other-absence {
  background-color: #fae2ad;
}

.mobile-date-text-space {
  flex: 0 0 30%;
}

.mobile-home-office-switch-space {
  flex: 0 0 20%;
}

.attendance-day-details {
  overflow: hidden;
  max-height: 0;
  padding: 0 15px;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.attendance-day-details.shown {
  max-height: 500px;
  padding: 15px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

#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;
}

#toggle-holiday-summary-table {
  background-color: unset !important;
}

#toggle-holiday-summary-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 tbody tr:hover td {
  background-color: var(--bs-gray-300) !important;
}

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

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

#timesheet-table thead {
  z-index: 3;
  background: white;
  position: relative;
}

#timesheet-table thead tr th:last-child {
  background: white;
}

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

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

.toastr {
  opacity: 0.95 !important;
}

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

.mobile > .year-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);
}

tr .tst-weekend {
  background-color: var(--bs-light-warning);
}

tr .tst-holiday {
  background-color: var(--bs-light-danger);
}

tr .tst-extra-workday {
  background-color: var(--bs-light-info);
}

.sticky-shadow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 10px 0 var(--bs-primary);
}

.form-control.is-invalid {
  border-width: 2px;
}

@media (max-width: 800px) {
  .holiday.xmass-bottom {
    display: none;
  }
}

.decoration-container {
  width: 100%;
  margin-top: -32px;
}

.decoration-container .xmass-top {
  max-width: 90%;
}

.gray-home-office-flag {
  color: var(--bs-gray-400);
}

.home-office-flag {
  display: inline-block; /* Ensures precise control over styling */
  font-size: 1em; /* Keep the base font size unchanged */
  line-height: 1; /* Match the line height to prevent container growth */
  font-weight: bold; /* Make the character bold */
  transform: scale(2); /* Scale up the size */
  vertical-align: middle; /* Keep it aligned with surrounding text */
}

.dropdown-actions {
  display: block;
  visibility: visible;
  position: absolute;
}

.dropdown-actions-hidden {
  display: none;
}

