button.btn-merge-order,
button.btn-confirm-create-route {
  padding-left: 0;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
  border-radius: 4px;
  border: 1px solid #c5c5c5;
}

button.btn-confirm-create-route {
  margin-right: 8px;
  background: white;
}

.list-to-create {
  margin-right: 18px !important;
}

.col-md-80 .d-flex .ml-auto {
  height: 46px;
}

.selected-toolbar .btn-merge-order,
.selected-toolbar .btn-confirm-create-route {
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
  border: 1px solid#c5c5c5 !important;
}

#merge-order-data-table {
  display: none; /* Ẩn div này */
  position: absolute; /* Đặt vị trí tuyệt đối */
  z-index: 99; /* Đảm bảo nằm trên các phần tử khác */
  margin-top: 5px;
  right: 0px; /* Khoảng cách với thẻ p */
  background-color: white !important;
  max-height: 320px; /* Set the max height for the scrollable area */
  overflow-y: auto;
  width: 60vw;
  overflow-x: auto;
}
#merge-order-data-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#merge-order-data-table table th, #merge-order-data-table td {
  width: 120px !important; /* Đặt độ rộng cho cột */
}
#merge-order-data-table table tbody {
  max-height: 100px !important;
  overflow-y: auto !important;
}
#merge-order-data-table table thead {
  background-color: #f2f2f2;
  position: sticky; /* Enable sticky positioning */
  top: 0; /* Stick to the top of the table container */
  z-index: 1;
}

#merge-order-data-table th{
  background-color: #11509b !important;
  color: white !important;
}

/* start for map */

.show-map {
  position: relative;
  z-index: 2;
}
.maplibregl-control-container {
  display: none;
}

#journey_map {
  width: 100%;
  height: calc(50vh);
  border: 1px solid #e0e0e0;
  z-index: 98;
}
.map-style-selector.right-bottom {
  position: absolute;
  bottom: 16px;
  right: 10px;
  z-index: 999;
  font-family: sans-serif;
}
.popover-style {
  position: absolute;
  bottom: 100%;
  margin-bottom: 5px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 1000; 
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 4px;
  right: 0;
}

.map-style-option {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-style-option:hover {
  transform: scale(1.05);
}

.hidden {
  display: none;
}

.map-style-selector img {
  width: 36px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.journey-vehicle-item {
  list-style: none;
  padding: 4px;
}

.journey-vehicle-item:hover,
.journey-vehicle-item.active {
  cursor: pointer;
  color: #52c41a;
  background: #f6ffed;
  border-color: #b7eb8f;
  transition: 0.1s ease-in;
}

.journey-vehicle-item p {
  margin-bottom: 0;
}

.journey-vehicle-item span {
  font-size: 13px;
}

.status {
  border: 1px solid #28a745;
  border-radius: 4px;
  padding: 1px;
  color: white;
  background-color: #28a745;
  font-size: 11px !important;
}

.status.fail {
  background-color: #B22222;
  border: 1px solid #B22222;
}

.status.drive {
  background-color: #1E90FF;
  border: 1px solid #1E90FF;
}

.status.hold {
  background-color: #DAA520;
  border: 1px solid #DAA520;
}

.detail-item-sep {
  width: 100%;
  border-bottom: 1px solid #ccc;
  height: 1px;
  list-style: none;
}

.vehicle-plate {
  width: 100px;
  height: 20px;
  border: 1px solid #eb3a44;
  border-radius: 5px;
  background: #fee1d7;
  color: #eb3a44;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  font-size: 14px;
  opacity: 1 !important;
}

.content-iw p {
  margin-bottom: 0;
}

.content-iw span {
  font-size: 16px;
  color: #e41b23;
  font-weight: bold;
}

.vehicle-content {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.vehicle-content > div {
  flex: 1;
}
.vehicle-list {
  padding-left: 0px;
  overflow: hidden auto;
  height: 364px;
  padding-bottom: 0;
}

.collapse-bar {
  color: #11509b;
  padding: 5px;
  margin-left: 20px;
  cursor: pointer;
}

.filter {
  width: 340px;
  padding: 8px;
  z-index: 1;
  position: absolute;
  background: #fff;
  height: 750px;
  overflow: hidden;
  top: 0;
  box-shadow: 1px 1px 4px #c1c0c0;
  left: 0;
  z-index: 99;
}
.journey-map {
  width: 100%;
  position: relative;
}

.btn.journey-btn-filter {
  font-size: 12px;
  padding: 6px 8px;
  height: 35px;
  background-color: #11509b;
  border-color: #11509b
}

.filter-list-vehicle-team {
  display: flex;
  flex-wrap: wrap;
}

.show-total-txt {
  font-size: 14px;
  font-weight: bold;
  line-height: 18px;
  margin-bottom: 5px;
  margin-top: 10px;
}

.show-total-list {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  max-height: 600px;
  padding: 10px 0;
  overflow: auto;
}

.filter-border {
  border-top: 1px solid #e0e0e0;
  width: 100%;
}

.show {
  display: block;
}

.journey-content {
  position: relative;
  width: 100%;
}

/* .form-control{
  margin-left : 4px;
  border-radius : 0px;
  height: 29px;
} */
.search-input-icon {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 16px;
}

.filter-condition {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vehicle-list .badge-light {
  color: #212529;
  background-color: #d0d0d0;
}

.vehicle-list .badge {
  font-weight: 600;
  padding: 6px 10px;
  font-size: 12px;
  margin-top: 1px;
  cursor: pointer;
}

.vehicle-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.journey-footer {
  display: none;
  /* position: absolute; */
  left: 0;
  bottom: 0;
  /* width: 100%; */
  padding: 8px px;
  background-color: #fff;
  border-top: 1px solid #ccc;
}

.vehicle-reg-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vehicle-reg-no b, .vehicle-statust .status {
  font-weight: 400 !important;
  font-size: 13px !important;
}
.btn.btn-filter {
  border-radius: 0px;
  padding: 3px 4px;
}

.info-vehicle {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid #ccc;
  padding: 0 8px 4px 8px;
  font-size: 12px;
  height: 364px;
  overflow: auto;
}
.close-info-vehicle {
  display: none;
  justify-content: flex-end;
  padding: 8px 12px 4px;
}
.map-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #cacaca;
  padding: 0 8px 0 0;
}
.map-title b {
  font-weight: 500 !important;
}
.journey-show-route-button:hover {
  color: rgb(77, 77, 241);
}

.filter-item,
.filter-total {
  display: inline-block;
  font-size: 14px;
  line-height: 17px;
  position: relative;
  width: 100%;
}

.filter-item__title {
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 5px 10px;
  overflow: hidden;
  height: 35px;
  line-height: 19px;
  width: 100%;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.filter-show {
  display: none;
  background-color: #fff;
  box-shadow: 0 2px 20px rgb(0 0 0 / 50%);
  max-width: 274px;
  position: absolute;
  padding: 4px;
  top: 45px;
  width: 600px;
  white-space: normal;
  z-index: 3;
}

.show-team {
  left: 0;
}

.show-group {
  right: 0
}

.filter-item__title span {
  padding-right: 12px;
  position: relative;
  width: 100%;
  display: block;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
}

.c-btnbox {
  align-items: center;
  border: 1px solid #e0e0e0;
  color: #333;
  display: flex;
  font-size: 12px;
  justify-content: center;
  line-height: 17px;
  margin-bottom: 6px;
  padding: 4px 8px;
  cursor: pointer;
  width: 100%
}

.c-btnbox:hover {
  border: 1px solid #4a90e2;

}


.filter-item__title span::before {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #333;
  content: '';
  height: 0;
  position: absolute;
  top: 8px;
  right: 0;
  width: 0;
}

.marker-vehicle-plates {
  width: 85px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  font-weight: 700;
  position: absolute;
  right: -25px
}

.journey-footer .view-detail-info {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 4px;
  color: #1890ff;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  opacity: 1;
  padding: 0 7px;
  white-space: nowrap
}

.journey-footer .view-detail-info:hover {
  background: #bae0f1
}

.journey-vehicle-list-order {
  margin-top: 4px
}

.maplibregl-popup-content {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  padding: 15px 10px;
  pointer-events: auto;
  position: relative;
}

/* end for map */

/* start css for ds tài xế trong right_sidebar */

.driver-list table {
    width: 100%;
    border-collapse: collapse;
    /* table-layout: fixed; */
}
.driver-list th,
.driver-list td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 4px;
}
.driver-list th {
    background-color: #f2f2f2;
}
.driver-list tbody td {
    background-color: #ffffff !important;
    font-size: 15px;
}
#driver-list-scroll-wrapper {
    max-height: 82vh;
    overflow-y: auto;
}
.driver-total {
  padding-bottom: 10px;
 text-align: right;
 padding-right: 10px;
 font-weight: 500;
}
.driver-list .salary-column {
  text-align: right;
  width: 25%; 
  max-width: 25%;
  white-space: normal;
  word-break: break-word;
}

.driver-list .full_name_column {
  text-align: left;
  width: 35%; 
  max-width: 35%;
  white-space: normal;
  word-break: break-word;

}

.driver-list .mobile-no-column {
  text-align: right;
  width: 20%; 
  max-width: 20%;

}

.driver-list .reg-no-column {
    text-align: left;
  width: 20%; 
    max-width: 20%;
      white-space: normal;
    word-break: break-word;
}

.table-sorting-salary {
    display: inline-block;
    position: relative;
    text-align: left;
    padding-right: 1.5em;
    vertical-align: middle;
}

.table-sorting-salary:before {
    position: absolute;
    right: 0.5em;
    content: "\2191"; 
    opacity: 0.3;
    color: #4c5667; 
    transition: color 0.2s; 
}

.table-sorting-salary:after {
    position: absolute;
    right: 0;
    content: "\2193"; 
    opacity: 0.3;
    color: #4c5667; 
    transition: color 0.2s; 
}

.table-sorting-salary.sorting_asc:after {
    opacity: 1;
    color: #0f4f9b; 
}

.table-sorting-salary.sorting_desc:before {
    opacity: 1;
    color: #0f4f9b; 
}

.table-sorting-salary.sorting_asc:before,
.table-sorting-salary.sorting_desc:after {
    color: #4c5667; 
}

#sort-salary {
    display: inline-block;
    vertical-align: middle;
}
.driver-list th {
    position: relative;
}
.driver-list .mobile-no-column a {
    color: #007bff; 
    text-decoration: none; 
}

.driver-list .mobile-no-column a:hover {
    text-decoration: underline; 
}
.driver-list th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0; 
    z-index: 1; 
}
#sort-salary:hover {
    color: #007bff; 
}
.driver-list .full_name_column .full-name-text {
    font-weight: bold;
}

/* css cảnh báo đơn đến hạn màn list */
tr.red td {
  background: #ff7b87 !important;
}
tr.yellow td {
  background: #fffd70 !important;
}
.vehicle-team-label {
    font-weight: 500; 
}
.team-badge-brown {
    background-color: white;
    color: black;
    border: 1px solid darkgrey;
}
.team-badge {
    padding: 3px 5px;
    font-size: 15px;
}
.team-badge {
    display: inline-block;
    padding: .25em .4em;
    vertical-align: baseline;
    border-radius: .25rem;
    margin-top: 3px;
}