/* Change the color of the primary button to black*/



  .btn-primary,
  .btn-primary:not(:disabled):not(.disabled):not(.btn-link):not(.btn-danger):active,
  .btn-primary:not(:disabled):not(.disabled):not(.btn-link):not(.btn-danger):active:focus,
  .btn-primary:not(:disabled):not(.disabled):not(.btn-link):not(.btn-danger):focus,
  .btn-primary:not(:disabled):not(.disabled):not(.btn-link):not(.btn-danger):hover {
    background: #000000 !important;
    color: white !important
  }

  .btn-primary i {
    color: white !important;
  }

form .btn-primary {
  background-color: #000000 !important;
  height: 42px !important;
}

/* Change the color of menu buttons to black */
#main-menu .menu .menu-item.active:not(.expanded) .menu-icon,
#main-menu .menu .menu-item.active:not(.expanded) a {
  color: var(--alert-dark-bg) !important;
}

/* Hide all logos by default */
.sidebar-logo img {
  display: none;
}

/* For expanded (normal) sidebar */
/* In dark scheme, show the normal dark logo */
body.ea-sidebar-width-normal.ea-dark-scheme .sidebar-logo .logo--normal.logo-dark {
  display: block !important;
}

/* In light scheme, show the normal light logo */
body.ea-sidebar-width-normal.ea-light-scheme .sidebar-logo .logo--normal.logo-light {
  display: block !important;
}

/* For compact sidebar */
/* In dark scheme, show the compact dark logo */
body.ea-sidebar-width-compact.ea-dark-scheme .sidebar-logo .logo--compact.logo-dark {
  display: block !important;
}

/* In light scheme, show the compact light logo */
body.ea-sidebar-width-compact.ea-light-scheme .sidebar-logo .logo--compact.logo-light {
  display: block !important;
}


/* Hide all logos by default */
.responsive-logo img {
  display: none;
}

/* For expanded (normal) sidebar */
/* In dark scheme, show the normal dark logo */
.ea-dark-scheme .logo-dark-responsive {
  display: block !important;
}

/* In light scheme, show the normal light logo */
.ea-light-scheme .logo-light-responsive {
  display: block !important;
}






h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Times New Roman', Times, serif;
}


.login-form-header {
  padding-top: 10px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
}

.form-submit-button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.form-error {
  color: red;
}

.login-wrapper {
  margin-block-start: 10px !important;
}

.login-wrapper .content {
  padding-block-start: 10px !important;
}



.datagrid td.actions {
  margin-top: px !important;
  display: flex !important;
}

.expense-report-attachments-collection .field-collection-add-button {
  display: none !important;
}

.navbar {
  padding-left: 3px !important;
  padding-right: 3px !important;
}



/*for phone number input field */
.iti {
  width: 100%;
}

.pwa-install-prompt {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.pwa-install-text {
  font-size: 0.95rem;
}

.pwa-install-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pwa-install-actions .btn {
  min-width: 96px;
}

@media (min-width: 768px) {
  .pwa-install-prompt {
    left: auto;
    right: 24px;
    max-width: 360px;
  }
}

.field-date input[type=date].form-control,
.field-datetime input[type=datetime-local].form-control,
.field-time input[type=time].form-control {
  inline-size: -webkit-fill-available !important;
  max-inline-size: 100% !important;
}

.responsive-top-logo img {
  height: 50px;
}

.sidebar-logo {
  padding-top: 0px;
}

.main-header #header-logo a {
  padding-top: 12px;
}

#main-menu {
  padding-top: 10px;
}

#main {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.ea-index .content-wrapper,
.ea-index .content,
.ea-index #main {
  min-inline-size: 0 !important;
  max-inline-size: 100%;
}

.ea-index {
  overflow-x: hidden;
}

.ea-index table.table.datagrid {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.ea-light-scheme .gala-icon {
  display: inline-block;
  background-image: url("../images/gala-icon-PgUVR3F.svg");
  width: 17px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  align-self: center;
  vertical-align: middle;
  background-position-x: center;
  margin-bottom: 3px;
}

.ea-light-scheme .active .gala-icon {
  display: inline-block;
  background-image: url("../images/gala-icon-active-yZDAKa0.svg");
  width: 17px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  align-self: center;
  vertical-align: middle;
  background-position-x: center;
  margin-bottom: 3px;
}

.ea-dark-scheme .gala-icon {
  display: inline-block;
  background-image: url("../images/gala-icon-dark-mode-wVy5A1q.svg");
  width: 17px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  align-self: center;
  vertical-align: middle;
  background-position-x: center;
  background-position-y: center;
  margin-bottom: 3px;
}

.ea-dark-scheme .active .gala-icon {
  display: inline-block;
  background-image: url("../images/gala-icon-active-yZDAKa0.svg");
  width: 20px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  align-self: center;
  vertical-align: middle;
  background-position-x: center;
  background-position-y: center;
  margin-bottom: 3px;
}


.field-invisible {
  display: none;
}

.field-required {
  color: red;
}

#main-menu .menu .menu-icon {
  block-size: unset !important;
}

#main-menu .menu .menu-item-contents {
  align-items: center !important;
}

.content-header {
  flex-wrap: wrap;
}

#filterTabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

#filterTabs .nav-item {
  flex: 0 0 auto;
}

#filterTabs .nav-link {
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0.4rem 0.4rem 0 0;
  margin-bottom: -1px;
}

#filterTabs .nav-link:hover,
#filterTabs .nav-link:focus {
  border-color: rgba(0, 0, 0, 0.12);
  background-color: rgba(0, 0, 0, 0.03);
}

#filterTabs .nav-link.active {
  border-color: rgba(0, 0, 0, 0.12);
  border-bottom-color: #fff;
  background-color: rgba(0, 0, 0, 0.06);
}

.ea-dark-scheme #filterTabs {
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.ea-dark-scheme #filterTabs .nav-link:hover,
.ea-dark-scheme #filterTabs .nav-link:focus {
  border-color: rgba(255, 255, 255, 0.24);
  background-color: rgba(255, 255, 255, 0.08);
}

.ea-dark-scheme #filterTabs .nav-link.active {
  border-color: rgba(255, 255, 255, 0.28);
  border-bottom-color: var(--body-bg, #1f2937);
  background-color: rgba(255, 255, 255, 0.14);
}



/* Container for positioning */
.content-search-label {
  position: relative;
  display: block;
}

/* Position the search icon inside the input and move it 5px up */
.content-search-label .content-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  /* Adjust spacing from the left edge as needed */
  transform: translateY(calc(-50% - 5px));
  /* Centered then shifted 5px up */
  pointer-events: none;
  /* Allow clicks to pass through to the input */
  color: #aaa;
  /* Icon color */
  font-size: 1.2em;
  /* Icon size */
}

/* Add left padding to the input so its text doesn't overlap the icon */
.content-search-label input.form-control {
  padding-left: 40px;
  /* Adjust based on icon size */
}

/* Optionally, style the reset (clear) button */
.content-search-reset {
  position: absolute;
  top: 50%;
  right: 12px;
  /* Adjust spacing from the right edge */
  transform: translateY(-120%);
  text-decoration: none;
  color: #aaa;
}

/* Keep only the custom reset link and hide the native search clear icon */
.content-search-label input[type="search"]::-webkit-search-cancel-button,
.content-search-label input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.content-search-label input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}



.content-search {
  padding-right: 8px;
  position: relative;

}

.content-search input {
  width: 120px;
  transition: width 0.2s;
}

.content-search input:active,
.content-search input:focus {
  width: 200px;
  transition: width 0.2s;
}

.btn-secondary .action-icon {
  color: var(--text-color-light);
}

.autocomplete-hidden-label-field {
  display: none;
}

.ts-dropdown-content {
  max-block-size: unset;
}

/* flatpickr fix for full screen calendar bug */
.multiMonth {
  max-width: 618px;
}



@media (min-width: 992px) {
  .ea-index .wrapper {
    grid-template-columns: var(--sidebar-max-width) minmax(0, 1fr);
  }

  body.ea-sidebar-width-compact.ea-index .wrapper {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ea-index .content-wrapper,
  .ea-index .content {
    min-inline-size: 0;
  }
}




.global-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* optional spacing between buttons */
}

.global-actions a {
  flex: 1 1 auto;
  /* default: grow and shrink */
  min-width: 0;
  /* prevent overflow */
  height: 29px;
}

.datagrid td.actions {
  flex-direction: column;
  column-gap: 10px;
  row-gap: 10px;
}

.ea-index .datagrid thead th:last-child,
.ea-index .datagrid tbody td.actions {
  position: sticky;
  right: 0;
  z-index: 3;
  background: var(--body-bg, #fff) !important;
}

.ea-index .datagrid thead th:last-child {
  z-index: 4;
}

.ea-index .datagrid tbody td.actions {
  box-shadow: -1px 0 0 rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.ea-index .datagrid tbody td.actions:focus-within {
  z-index: 20;
}

.ea-index .datagrid tbody td.actions .dropdown-menu {
  z-index: 30;
}

.datagrid td.actions a:not(.dropdown-item)+a:not(.dropdown-item) {
   margin-inline-start: unset;
}

.ea-index table.table tbody tr:has(span.variable-pickup-time) > td {
  background-color: rgba(129, 130, 130, 0.12) !important;
  border-bottom: 1px solid var(--table-thead-cell-border-color, var(--table-border-color)) !important;
}

.ea-index table.table tbody tr:has(span.variable-pickup-time) > td.actions {
  background-color: var(--body-bg, #fff) !important;
  box-shadow: -1px 0 0 rgba(0, 0, 0, 0.08);
}

.nav-link {
  color: var(--link-color);
}

.datagrid .empty-row td span {
  background: none !important;
}

.datagrid tr.empty-row td,
.datagrid tr.no-results td,
.datagrid tr.datagrid-row-empty td {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.driver-assignments.driver-assignments-disabled {
  opacity: 0.55;
}

.driver-assignments-unavailable-note {
  background: var(--body-bg, #fff);
  border: 1px solid var(--table-thead-cell-border-color, var(--table-border-color));
  border-radius: 0.5rem;
  color: var(--text-color);
  padding: 0.65rem 0.75rem;
}

.driver-assignments-unavailable-note .fa {
  margin-right: 0.35rem;
}

.ts-dropdown .option.flight-option-with-icon {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  width: 100%;
}

.ts-control .item.flight-option-with-icon {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
}

.flight-option-with-icon i {
  color: var(--bs-secondary-color, #8b8f97);
  width: 1rem;
  text-align: center;
}

@media (max-width: 767.98px) {
  #Transportation_driverAssignments {
    zoom: 0.7;
  }

  @supports not (zoom: 0.7) {
    #Transportation_driverAssignments {
      transform: scale(0.7);
      transform-origin: top left;
      width: calc(100% / 0.7);
    }
  }

  #Transportation_driverAssignments table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
  }

  #Transportation_driverAssignments table th,
  #Transportation_driverAssignments table td {
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #Transportation_driverAssignments table th:nth-child(1),
  #Transportation_driverAssignments table td:nth-child(1) {
    width: 15%;
  }

  #Transportation_driverAssignments table th:nth-child(2),
  #Transportation_driverAssignments table td:nth-child(2) {
    width: 13%;
  }

  #Transportation_driverAssignments table th:nth-child(3),
  #Transportation_driverAssignments table td:nth-child(3),
  #Transportation_driverAssignments table th:nth-child(4),
  #Transportation_driverAssignments table td:nth-child(4) {
    width: 24%;
  }

  #Transportation_driverAssignments table th:nth-child(5),
  #Transportation_driverAssignments table td:nth-child(5),
  #Transportation_driverAssignments table th:nth-child(6),
  #Transportation_driverAssignments table td:nth-child(6) {
    width: 12%;
  }

  #Transportation_driverAssignments .form-help,
  #Transportation_driverAssignments small {
    font-size: 0.75rem;
  }
}
