/* CSS Document */

:root {
  --bs-font-size-base: .875rem;
}

body, .btn, .form-control, .select2-container--bootstrap-5 .select2-selection, .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
  font-size: .875rem !important;
}

@media print {
  body {
    zoom: 80%;
  }
  body.bg-light {
    background-color: transparent !important;
  }
  .container-fluid {
     padding: 0 !important;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg {
      justify-content: space-between;
  }
}

.bg-light {
  background-color: #ededed !important;
}

.btn-dashed {
  border-style: dashed;
}

.emp.dragged,
.vhc.dragged {
  z-index: 1060;
  background-color: var(--bg-light);
}

.ui-droppable {
  word-wrap: break-word;
  word-break: break-word;
  opacity: 1.0 !important;
}

.job .job-dri.active,
.job .job-vhc.active {
  background: #B2DFDB !important;
}

.job .remove-del {
  position: absolute;
  top: -14px;
  right: 0;
}

.vehicles div, .drivers div {
  cursor: grab;
}

@media (min-width: 1600px) {
  .col-xxxl-3 {
      flex: 0 0 auto;
      width: 25%;
  }
}

.dataTables_filter label, .dataTables_length label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dataTables_filter label {
  justify-content: end;
}

.dataTables_filter label .form-select, .dataTables_length label .form-select, .dataTables_filter label .form-control, .dataTables_length label .form-control {
  width: auto;
}

.dataTables_wrapper div:last-of-type {
  align-items: center;
}

.dataTables_paginate .pagination {
  margin-bottom: 0;
  justify-content: end;
}

table.dataTable {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

.table-link tr {
  cursor: pointer;
}

.table-link tr.no-pointer {
  cursor: default;
}

table.dataTable tbody td {
  vertical-align: middle;
}

table.dataTable.table-striped>tbody>tr.odd.selected>*, table.dataTable>tbody>tr.selected>* {
  box-shadow: inset 0 0 0 9999px rgba(98, 75, 255, 1);
}

.dataTables_empty {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.select2-results__option--selected, .select2-results__option--selected .text-muted, .select2-results__option--selected .text-primary {
  color: white !important;
}

.select2-selection.select2-selection--single {
  padding-right: 50px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  color: #637381 !important;
}

.table-driver-defect td {
  font-size: 0.85rem;
}

.table-driver-defect .cell-title {
  font-size: 0.75rem;
}

.btn.text-danger:hover, .btn.text-primary:hover, .btn.text-secondary:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.btn-square-sm {
  width: 25px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  height: 25px !important;
  text-align: center;
  padding: 0px;
  font-size: 14px;
}

.card-footer {
  background-color: #dce7ef !important;
}

.card-header {
  background-color: #637381 !important;
  color: white !important;
  text-align: center !important;
  font-weight: 400 !important;
}

.card-header h4 {
 color: white; 
}

.modal-header {
  background-color: #637381 !important;
  color: white !important;
}

.modal-header .btn-close, .modal-title {
  color: white !important;
}

.btn-close {
    background-image: none;
    position: relative;
}

.btn-close::after {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: white;
}

.nav-tabs {
  border-bottom: none !important;
}

.nav-tabs .nav-item {
  margin-right: 4px;
  border: 0;
  box-shadow: 3px 0 4px -2px rgba(0, 0, 20, 0.08), -3px 0 4px -2px rgba(0, 0, 20, 0.08), 0 -3px 4px -2px rgba(0, 0, 20, 0.08);
}

.nav-tabs .nav-link {
  background-color: #dce7ef;
  padding: 0.75rem 1.5rem;
  color: #666;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-link.text-success.active {
  background-color: #637381 !important;
  color: white !important;
}

.nav-tabs .nav-link.text-danger.active {
  color: red !important;
}

.nav-tabs .nav-link.text-success.active {
  color: springgreen !important;
}

.nav-tabs .nav-link.text-info.active {
  color: #0dcaf0 !important;
}

.nav-tabs .nav-link.text-primary.active {
  color: mediumblue !important;
}

.nav-tabs .nav-link.text-warning {
  color: orange !important;
}

.nav-link.nav-success {
  background-color: #d1e7dd;
}

.nav-link.nav-warning {
  background-color: #fff3cd;
}

.nav-link.nav-danger {
  background-color: #f8d7da;
}

.nav-link.nav-info {
  background-color: #cff4fc;
}

.nav-link.nav-primary {
  background-color: #e0dbff;
}

.nav-link.nav-secondary {
  background-color: #e0e3e6;
}

.custom-checkbox-lg .form-check-input {
  transform: scale(1.5);
  margin-right: .3em;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.sticky-div {
  width: 121px;
  top: 0;
  z-index: 10;
}

.sticky2 {
  position: fixed;
  top: 0;
  z-index: 1000; /* Higher index to be on top */
  background-color: white; /* Prevents content from showing through */
  width: 350px; /* Maintain original width */
  /* no need to define right here since it's set dynamically by JS */
}


.sticky {
  position: fixed;
}

.sticky2 {
    position: fixed;
    top: 0;
    z-index: 1000; /* Ensure it stacks above other content */
    background-color: white; /* Optional: prevents content below from showing through */
    width: inherit; /* This helps in maintaining the width as per the parent's width */
}

.d-flex > .left-div {
    flex: 0 0 auto;  /* Do not grow or shrink */
    width: calc(100% - 382px);  /* Adjust the width calculation based on your layout */
}

.d-flex > .sticky-div2 {
    flex: 0 0 382px; /* This width matches the width defined in .sticky2 */
}

.calendar-hol {
  background-color: rgb(255, 145, 77) !important;
  margin-bottom: 0 !important;
}

.calendar-hol::before {
  content: "Holiday";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 0, 0, 1);
  font-size: 12px;
  z-index: -1;
  text-align: center;
}

.calendar-bankhol {
  background-color: rgb(255 77 126) !important;
  margin-bottom: 0 !important;
}

.calendar-bankhol::before {
  content: "Bank Holiday";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 0, 0, 1);
  font-size: 12px;
  z-index: -1;
  text-align: center;
}

.scrollable-div {
    max-height: calc(100vh - 100px); /* Maximum height of the viewport */
    overflow-y: auto; /* Enables vertical scrolling if content overflows */
    box-sizing: border-box; /* Includes padding in the height calculation */
    scrollbar-width: thin;
    scrollbar-color: #8f9f98 transparent;
}

.scrollable-div::-webkit-scrollbar {
    width: 6px;
}
.scrollable-div::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable-div::-webkit-scrollbar-thumb {
    background-color: #8f9f98;
    border-radius: 3px;
}

.fc .fc-bg-event {
  opacity: 0.5;
}

.fc-theme-bootstrap5 th {
  background-color: #637381;
  color: white;
}

.icon-xxs {
  height: 0.875rem;
  line-height: 0.875rem;
  width: 0.875rem;
  color: #624bff;
}

.btn-outline-warning, .btn-outline-success, .btn-outline-danger {
  color: #637381;
}

.fc-toolbar-title {
  color: var(--bs-primary);
  margin-bottom: 0;
}

.fc-event {
  padding: 2px 4px;
  margin-bottom: 2px;
  line-height: normal;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-width: 2px;
}

.fc-event::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
  min-height: 37px;
}

.fc-daygrid-day-events {
  margin-bottom: 0 !important;
  padding: 2px;
}

.fs-7 {
  font-size: 0.75rem !important;
}

.btn-sm.btn-dashed {
  padding: .125rem .5rem;
}

.btn-dashed.btn-outline-secondary:hover {
    background-color: inherit;
    border-color: inherit;
    color: inherit;
}

.hover-drag-over {
  background-color: #637381;
  color: white;
}


/* CSS Document */