body {
  font-family: Arial, sans-serif;
}



/* h1 {
  margin-bottom: 50px;
} */

#reportDropdownContainer,
#dateRangeContainer,
form {
  width: 100%;
}

#dateRangeContainer h3 {
  font-size: 18px;
  font-weight: bold;
}

#dateRangeContainer {
  margin-bottom: 20px;
}

#collaboratorSelectionContainer {
  margin-bottom: 10px;
}

#collaboratorSelectionContainer .col-md {
  max-width: 100%;
}

#collaboratorSelectionContainer .select2-container {
  margin-top: 8px;
  width: 100% !important;
}

.reports-collaborator-modes {
  margin-top: 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.reports-collaborator-mode {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 0 !important;
  min-width: 0;
  white-space: normal;
}

.reports-collaborator-mode input {
  margin: 0;
  flex-shrink: 0;
}

#selectedCollaboratorsContainer {
  margin-top: 0px;
  width: 100%;
}

#selectedCollaborators + .select2-container {
  margin-top: 8px;
  width: 100% !important;
}

#selectedCollaborators + .select2-container .select2-selection--multiple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  height: auto;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0px 0px 0px 0px;
  background-color: #fff;
  margin: 0px ;
}

#selectedCollaborators + .select2-container.select2-container--focus .select2-selection--multiple,
#selectedCollaborators + .select2-container.select2-container--open .select2-selection--multiple {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

#selectedCollaborators + .select2-container.select2-container--disabled .select2-selection--multiple {
  background-color: #e9ecef;
  cursor: not-allowed;
}

#selectedCollaborators + .select2-container .select2-selection__rendered {
  display: contents;
  padding: 0;
  margin: 0px;
}

#selectedCollaborators + .select2-container .select2-selection__choice {
  max-width: 100%;
  margin: 0;
  padding: 3px 8px 3px 24px;
  border: 1px solid #d5dbe1;
  border-radius: 3px;
  background: #f3f5f7;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.3;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

#selectedCollaborators + .select2-container .select2-selection__choice,
#selectedCollaborators + .select2-container .select2-selection__choice__display,
#selectedCollaborators + .select2-container .select2-search--inline {
  min-width: 0;
}

#selectedCollaborators + .select2-container .select2-selection__choice__remove {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  margin-right: 0;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid #d5dbe1;
  background: transparent;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}

#selectedCollaborators + .select2-container .select2-selection__choice__remove:hover,
#selectedCollaborators + .select2-container .select2-selection__choice__remove:focus {
  background: #e5e7eb;
  color: #374151;
  outline: none;
}

#selectedCollaborators + .select2-container .select2-selection__choice__display {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
  color: inherit;
  padding-left: 0;
  padding-right: 0;
}

#selectedCollaborators + .select2-container .select2-search--inline {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  padding: 4px;
}

#selectedCollaborators + .select2-container .select2-search--inline .select2-search__field {
  max-width: 100% !important;
  margin-top: 0;
  margin-left: 0;
  font-size: 14px;
  min-width: 0;
  padding: 0;
}

.select2-dropdown {
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.select2-search--dropdown {
  padding: 8px;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 6px 8px;
}

.select2-results__option {
  padding: 8px 12px;
  font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #fe6a00;
  color: #fff;
}

#dateRangeContainer div,
#dateRangeContainer label {
  display: block;
  margin-bottom: 20px;
}


#reportOptionsContainer div {
  display: inline-block;
  margin-right: 15px;
}

#reportOptionsContainer h2 {
  font-size: 26px;
  font-weight: bold;
}

#date-buttons-2-weeks {
  padding-top: 1px;
  padding-bottom: 1px;
}



.date-option {
  /* display: flex; */
  justify-content: space-between !important;
  width: 100% !important;
  /* margin-top: 1rem; */
  margin-bottom: 0.4rem !important;
}



.date-buttons {
  background-color: #FFFFFF !important;
  border-color: #FE6A00 !important;
  box-shadow: none;
  outline: #FE6A00 !important;
  max-width: 170px !important;
  min-width: 135px !important;
  width: 11rem;
  max-height: 50px !important;
  min-height: 35px !important;
  height: 2.5rem;
  margin-bottom: 1rem;
}

.date-buttons:disabled {
  background-color: #E0E0E0 !important; /* Light gray background */
  border-color: #B0B0B0 !important; /* Darker gray border */
  color: #808080 !important; /* Medium gray text color */
  pointer-events: none; /* Disable pointer events */
}

.date-buttons:hover {
  background-color: rgba(190, 190, 195, 0.9) !important;
  border-color: #FE6A00 !important;
  color: #FE6A00 !important;
}

/* CSS  date range buttons */
/* <!-- HTML !-->
<button class="button-64" role="button"><span class="text">Button 64</span></button> */

/* CSS */
.generate-button {
  align-items: center;
  background-image: linear-gradient(90deg, rgba(253,47,34,1) 26%, rgba(252,176,69,1) 100%);
  /* background-color: rgb(5, 6, 45); */
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  font-family: Phantomsans, sans-serif;
  font-size: 15px !important;
  justify-content: center;
  /* line-height: 40px; */
  width: 20rem !important;
  height: 2rem !important;
  padding: 0.5px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  margin: 20px 0;
  position: relative;
}

.generate-button:active,
.generate-button:hover {
  outline: 0;
}

.generate-button span {
  position: absolute;
  background: linear-gradient(to right, #FF7F50, #FFA500 150%);
  padding: 5px 7px;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.generate-button:hover span {
  background: none;
}



@media (max-width: 514px) {
  .generate-button {
    font-size: 24px;
    min-width: 15rem;
  }

  .date-option-container .date-option{
    position: relative;
    max-width: 400px;
    left: 0%;
  }

  .date-option-container {
    width: 100% !important;
  }

  .date-option-container #date-buttons-day{
    max-width: 110px !important;
  }

  .date-option-container #date-buttons-week{
    max-width: 110px !important;
  }
  .date-option-container #data-buttons-2-weeks{
    padding: 2px;
    min-width: 170px !important;
  }

  .date-option-container .date-buttons{
    max-width: 140px !important;
    min-width: 100px !important;
    width: 10rem;
    max-height: 55px !important;
    min-height: 35px !important;
    height: 2.7rem;
    margin-bottom: 1rem;
    font-size: 14px !important;
  }
}


@media (max-width: 430px) {

  .submit-filters-button {
    display: flex;
    justify-content: space-between;
  }

  .date-option-container .date-option{
    position: relative;
    width: 300px !important;
    left: 0%;
  }

  .date-option-container {
    position: relative;
    width: 200px !important;
    left: 13%;
  }

  .date-option-container #date-buttons-day{
    max-width: 200px !important;
    width: 200px !important;
  }

  .date-option-container #date-buttons-week{
    max-width: 200px !important;
    width: 200px !important;
  }
  .date-option-container #data-buttons-2-weeks{
    font-size: 13px !important;
    width: 100% !important;
  }

  .date-option-container .date-buttons{
    max-width: 200px !important;
    min-width: 100px !important;
    width: 100%;
    max-height: 55px !important;
    min-height: 35px !important;
    height: 2.7rem;
    margin-bottom: 1rem;
    font-size: 13px !important;
  }

}

@media (max-width: 394px) {

  .generate-button {
    width: 12rem !important;
    min-width: 120px;
  }

  .date-option {
    /* display: flex; */
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
  }
  
  .date-buttons {
    background-color: white;
    max-width: 140px !important;
    min-width: 120px !important;
    max-height: 55px;
  }

  .date-buttons:disabled {
    background-color: #E0E0E0 !important;
    border-color: #B0B0B0 !important;
    color: #808080 !important;
    pointer-events: none;
  }
}

@media (max-width: 337px) {

  .date-option-container {
    left: 0%;
  }

  #generateReportForm{
    max-width: 100%;
  }

  #collaboratorDropdown{
    max-width: 220px
  }
}


.dropdown {
  position: relative;
  display: inline-block;
}

#collaboratorDropdownContainer h3 {
  font-size: 18px;
  font-weight: bold;
}

#collaboratorDropdown { 
  text-align: left;
  width: 270px;  /* match the width of .generate-button */
  background-color: rgba(228, 230, 237, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.2); /* slightly transparent border */
  padding-left: 20px;
  position: relative; /* set the positioning context for the arrow */
  padding-right: 40px; /* extra padding to make space for the arrow *
  /* padding: 10px 20px; */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s; /* smooth transition for hover effects */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* subtle shadow for depth */
  color: #333; /* dark text color for contrast */
  font-weight: 500; /* semi-bold text for better readability */
}

#collaboratorDropdown::after {
  content: '';  /* this is necessary for the pseudo-element to show */
  position: absolute;  /* absolute positioning */
  right: 15px;  /* positioned 15px from the right */
  top: 50%;  /* centered vertically */
  transform: translateY(-50%);  /* vertically centering trick */
  
  /* the following properties create the arrow/triangle */
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #333;  /* color of the arrow. Adjust as needed. */
}

#collaboratorDropdown:hover {
  background-color: rgba(201, 200, 213, 0.9);
}

.dropdown-menu {
  width: 270px;  /* match the width of .generate-button */
  background-color: rgb(246, 247, 248);
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 10px; /* spacing between button and dropdown items */
}

.dropdown-item:hover {
  background-color: rgba(201, 200, 213, 0.9);
}


.filters-row-reports {
  width: 100%;
  max-width: 520px;
}

@media (max-width: 640px) {
  .filters-row-reports {
    max-width: 100%;
  }

  .reports-collaborator-modes {
    gap: 10px;
  }

  .reports-collaborator-mode {
    width: 100%;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.35;
  }

  #selectedCollaborators + .select2-container .select2-selection--multiple {
    min-height: 20px;
  }

  #selectedCollaborators + .select2-container .select2-selection__choice {
    font-size: 12px;
    line-height: 1.2;
  }

  #selectedCollaborators + .select2-container .select2-selection__choice__display {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
  }

}

@media (max-width: 337px) {
  .filters-row-reports {
    max-width: 100%;
  }

  .reports-collaborator-mode {
    font-size: 13px;
  }
}
