#mails thead td {
  cursor: pointer;
}

table span {
  opacity: 0.65;
}

.container {
  margin-bottom: 40px;
}

#driver-table-container {
  margin: 40px auto;
  max-width: 1500px;
}

canvas {
  margin-top: 20px
}

#modal-bus .is-flex {
  /* align items: center; */
  flex-direction: column;
  justify-content: center;
}

.navbar {
  margin-bottom: 40px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px,
    rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

#month-year-slider {
  margin-left: 40px;
}

.savedStatus {
  margin-right: 20px;
  opacity: 0.6;
  padding-top: 8px;
  display: none;
}

.stats-main-container.datetimepicker-dummy {
  width: 400px !important;
}

.datetimepicker.is-info {
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  border-radius: 10px;
}

.custom-picker .datetimepicker.is-info {
  /* margin-right: 38px; */
  margin-left: -150px;
  border-radius: 10px;
  width:400px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.datetimepicker .datepicker-nav {
  background-color: #3cb3f7 !important;
}

.datetimepicker.is-info .datepicker-body .datepicker-dates .datepicker-days .datepicker-date .date-item.is-active {
  background-color: #3cb3f7 !important;
}

.datetimepicker .datepicker-body .datepicker-dates .datepicker-days .datepicker-date .date-item.is-today {
  border: .1rem solid #3cb3f7 !important;
}

.datetimepicker.is-info {
  border-radius: 10px;
  overflow: hidden;
  max-width: 300px;
}

.tabs {
  margin-top: -10px;
  margin-bottom: 50px !important;
}

.passenger-change {
  margin-bottom: 7px;
}

.email-input {
  margin-bottom: 5px;
}

.dateSpan {
  opacity: 0.55;
}

.divider {
  height:40px;
  width:2px;
  background-color:#ccc;
  margin-right: 20px;
}

.dividerLast {
  margin-left: 20px;
}

.select.is-small {
  margin-right: 8px;
}

.button-switcher-button:hover {
  opacity: 0.6;
}

.stats-button {
  width: 200px;
}

#emailPassengerContainer {
  margin-right: 40px;
}

#saveEmailButton {
  margin-bottom: 20px;
}

#numberOfTicketsInput {
  margin-left: 10px;
}

#stats-container {
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  /* hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;

  table {
    display: inline-block;
  }
}

#month-year-slider {
  margin-top: -4px !important;
  margin-right: 40px;
  font-size: 1rem;
}

#statsPicker {
  width: 400px;
}

#current-month-span {
  width: 140px;
  text-align: center;
}

.stats-container-outer {
  margin-top: 20px;
}

.stats-main-container {
  margin-bottom: 40px;
  margin-top: 20px;
}

.locationSelect.numberOfTicketsInputDiv > div > div {
  width: 100% !important;
  margin-top: 5px;
}

.is-primary {
  background-color: #5ab9f8; /* New primary color */
  color: white;
}

#emailPassengerContainer tr:has(td:hover) {
  background-color: #e9e9e9;
  cursor: pointer;
}

#emailPassengerContainer td{
  vertical-align: middle;
}

.relation {
  padding: 10px;
}

#relations-list-items {
  margin-top: 20px
}

.buttonViewMail:hover {
  opacity: 0.6;
}

#sendEmailButton {
  margin-bottom: 17px;
}

.container-main {
  width: 95%;
  margin: auto;
  margin-top: 0;
}

#tables {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(5, auto);

  grid-row-gap: 50px;
}

.tables-driver {
  font-family: sans-serif;
}

#tickets {
  margin-bottom: 50px;
}

#tables {
  margin-bottom: 50px;
}

#mails {
  margin-bottom: 50px;
}

.navbar-start {
  padding-left: 10px;
}

#routes tr:hover {
  /* background-color: #eeeeee; */
  cursor: pointer;
  /* opacity: 0.65; */
}

.is-dark:hover {
  opacity: 0.4;
}

.is-disabled:hover {
  cursor: not-allowed !important;
}

.stats-main-container {
  opacity: 0;
}

.container-main {
  opacity: 0;
}

.container-tables .container-main {
  opacity: 1 !important;
}

.container-tables {
  opacity: 1  ;
}

.code-tag {
  margin-left: 5px;
}

.datetimepicker-dummy {
  width: 300px !important;
  background-color: white !important;
}

.modalDepartureContainer {
  width: 50%;
}

.relation-title {
  padding: 5px;
  cursor: pointer;
}

input[type="checkbox"] {
  margin-top: 4px;
}

.relation-data-input {
  width: 200px;
}

.relation > .relation-data-input:first-child {
  margin-bottom: 5px;
}

.ticketAction {
  cursor: pointer;
}

.ticketAction:hover {
  opacity: 0.4;
}

.ticket-input {
  border-color: rgb(238, 238, 238);
}

.input-ticket-num {
  width: 50px;
  margin-right: 5px;
}

.status-span {
  margin-right: 10px;
}

.for-drivers-table {
  font-size: 14px !important;
}

.voznikLabel {
  opacity: 0.55;
}

.place_span {
  opacity: 0.45;
}

#customAlert {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  z-index: 1000;
}
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.code-tag {
  margin-left: 5px;
}

#todayStats, #thisMonthStats, #thisYearStats {
  margin-right: 20px;
}

.status-codes {
  margin-right: 10px
}

#alertText{
  margin-bottom: 20px;
}

.refresh-button {
  margin-right: 5px;
}

.input-driver {
  margin-right: 3px;
}

.relation-title {
  margin-bottom: 0px !important;
}

.not-stats .datetimepicker-dummy,
.not-stats .datetimepicker-dummy-input {
  width: 170px !important;
  margin-top: -7px;
}

.datetimepicker-wrapper {
  z-index: 1000;
}

.not-stats .datetimepicker-dummy-input {
  padding-top: 9px;
}

.datetimepicker-clear-button {
  display: none !important;
}

.checkbox {
  margin-right: 15px;
}

#relationSelect,
.codeSelect {
  width: 100% !important;
}

.relation_stops {
  margin-top: 10px;
  text-align: center;
}

.in-between {
  margin-bottom: 10px;
}

.relation_stop {
  padding: 10px;
  background-color: #ebf5ff;
}



.title-td {
  padding: 0px;
}


#codeSelect {
  width: 100% !important;
}

#departureLocationSelect,
#arrivalLocationSelect {
  width: 100% !important;
}

#arrivalLocationSelect {
  margin-left: 10px;
}

.locationSelect {
  width: 100%;
}

#departureDateInput {
  width: 100% !important;
}

#relations-list-container {
  margin-right: 200px;
}

#relations-list,
#relations-list-container {
  width: 300px;
  flex-shrink: 0;
}

.checkbox {
  margin-top: 18px;
  margin-bottom: 15px;
}

.hideElement {
  display: none;
}

.tempHide {
  display: none !important;
}

.relation-list-row:hover {
  opacity: 0.8;
  cursor: pointer;
  background-color: #e9e9e9;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: max-content;
  transition: width 0.5s ease-in-out, height 0.5s ease-in-out,
    box-shadow 0.5s ease-in-out;
}
.checkbox-container h1 {
  margin: 0 0 20px 0;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
}
.checkbox-container h2 {
  margin: 20px 0 0 0;
  font-size: 24px;
  font-weight: 400;
  color: #666;
  text-align: center;
}
.checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
}
.checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
  background-color: #ccc;
  border-radius: 20px;
  margin-right: 15px;
  transition: background-color 0.2s;
}
.slider:before {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background-color: white;
  left: 4px;
  bottom: 4px;
  transition: transform 0.2s;
}
.checkbox input:checked + .slider {
  background-color: #4caf50;
}
.checkbox input:checked + .slider:before {
  transform: translateX(20px);
}

.editorSettings {
  max-height: 70%;
  margin-bottom: 40px;
}



@media screen and (max-width: 768px) {
  .checkbox-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: none;
    box-shadow: none;
  }
}

/* .relation-seats-button {
  opacity: 1 !important;
} */

@media screen and (max-width: 1400px) {
  .relationNotForDrivers {
    display: block !important;
  }
}

@media screen and (max-width: 1024px) {
  .container-main {
   flex-direction: column;
  }
  #relations-list {
    margin-bottom: 30px;
  }
  #tables {
    width: 100%;
  }
}
