.btn-green {
  background-color: #57970c !important;
}

.location-icon-btn {
  position: absolute;
  left: 12px;
  transform: translateY(-50%);
  color: #6b7280;
  z-index: 2;
  top: 50%;
}

.search-container {
  position: relative;
}

.location-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.location-clear-btn:hover {
  color: #111827;
}

.location-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
}

.location-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  text-align: left;
  color: #374151;
  cursor: pointer;
}

.location-dropdown-item:hover {
  background: #f3f4f6;
}

.search-input {
  border-radius: 8px !important;
  height: 42px !important;
  border: 1px solid #d1d5db !important;
  background-color: #fff !important;
  transition: box-shadow 0.3s ease !important;
  padding-left: 2.5rem !important;
  padding: 0px 44px !important;
}

.loc-swap {
  border-radius: 50% !important;
}

.kss-filter-dropdown {
  display: inline-flex;
}

.kss-filter-btn {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 400;
  color: #6b7280;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.kss-filter-btn:hover,
.kss-filter-btn:focus {
  background: #fff;
  color: #6b7280;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kss-filter-btn.dropdown-toggle::after {
  display: none;
}

.kss-chevron {
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.kss-filter-btn[aria-expanded="true"] .kss-chevron {
  transform: rotate(180deg);
}

.kss-filter-menu {
  border: 1px solid #d9dee7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 6px 0px;
  min-width: 160px;
  margin-top: 6px !important;
}

.kss-filter-menu .dropdown-item {
  padding: 8px 12px;
  font-size: 0.92rem;
  color: #6b7280;
}

.kss-filter-menu .dropdown-item:hover,
.kss-filter-menu .dropdown-item:focus {
  background: #f3f4f6;
  color: #111827;
}

.kss-filter-menu .dropdown-item.active {
  background: #f3f4f6;
  color: #111827;
  font-weight: 400;
}

.logistic-logo {
  height: 96px;
  width: 100%;
  object-fit: contain;
}

.logistic-card > * {
  width: 100%;
}

.verified-badge {
  background-color: #f1fae8;
  padding: 2px 8px;
  color: #5a8d20;
  border-radius: 6px;
  font-size: 12px;
  width: fit-content;
}

.text-small {
  font-size: 12px;
}

.prim-btn {
  background-color: #0b8fd7 !important;
}

.details-wrap {
  border-left: 1px solid #f3f4f6;
  padding-left: 48px;
}

.location-search-wrap > a:last-child {
  width: 50%;
}

.back-nav-btn {
  color: #000;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: auto;
  height: 128px;
  opacity: 1;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.brand-logo {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.log-data-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px;
  gap: 24px;
}

.log-data-footer {
  padding: 32px;
  background-color: #f9fafb80;
}

.truck-img {
  height: 116px;
  width: 116px;
  object-fit: contain;
}

.location-route {
  font-family: Arial, sans-serif;
  padding-left: 12px;
}

.location-item {
  position: relative;
  border-left: 2px dashed #57970c;
  padding-left: 12px;
  padding-bottom: 18px;
}

.location-item:last-child {
  padding-bottom: 0;
}

.location-dot {
  position: absolute;
  left: -5px;
  top: 0px;
  width: 8px;
  height: 8px;
  background-color: #57970c;
  border-radius: 50%;
}

.location-label {
  display: inline-block;
  background-color: #57970c;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 5px;
}

.location-name {
  color: #344054;
}

.location-address {
  color: #8090a0;
  margin-top: 2px;
}

.view-route-btn {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #57970c;
  border-radius: 5px;
  background-color: #fff;
  color: #57970c;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.view-route-btn:hover {
  background-color: #57970c;
  color: #fff;
}

.route-data-box {
  padding: 16px;
  border-radius: 8px;
  background-color: #6b728008;
}

.route-card {
  align-items: center;
}

.request-log-logo {
  height: 96px;
  width: 96px;
  object-fit: contain;
}

.request-info-box {
  padding: 16px;
  background-color: #e8f5e970;
  border-radius: 8px;

  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.goods-badge {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #57970c;
  border-radius: 5px;
  background-color: #fff;
  color: #57970c;
  flex-shrink: 0;

  display: flex;
  align-items: center;
}

.truck-card-img {
  height: 198px;
  width: auto;
  object-fit: contain;
}

.table-action-popup {
  position: absolute;
  right: 20px;
  top: 35px;
  z-index: 1000;

  width: max-content;
  padding: 8px 12px;

  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.table-action-popup p {
  margin: 0;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;

  display: flex;
  align-items: center;
  gap: 8px;
}

.table-action-popup > p {
  display: flex;
  align-items: center;
}

.request-header {
  background-color: #f7faf7;
  border-radius: 8px;
  padding: 16px;
}

.request-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  display: flex;
}

.request-detail-overview {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f7faf7;

  display: flex;
  /* justify-content: space-between; */
  gap: 24px;
  align-items: flex-start;
}

.subStatus.success {
  background: #3876e41a;
  color: #2863c8;
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 4px 8px;
  text-transform: capitalize;
}

.subStatus.cancelled {
  background: #ffdad6;
  color: #93000a;
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 4px 8px;
  text-transform: capitalize;
}

.confirm-request-item {
  padding-left: 24px;
  padding-right: 24px;
  border-right: 1px solid #dfe5df;
}

.confirm-request-item:first-child {
  padding-left: 0;
}

.confirm-request-item:last-child {
  padding-right: 0;
  border-right: none;
}

.vehicle-img-wrap {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
}

.border-back {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5dc !important;
  background-color: #fff !important;
  color: #000 !important;
  height: 42px;
}

.route-req-form > .flex-fill {
  min-width: 0;
}

.route-req-form {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.route-req-form_fields {
  flex: 0 0 75%;
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.route-req-form_summary {
  flex: 0 0 25%;
  max-width: 25%;
  min-width: 0;
}

@media (max-width: 1024px) {
  .route-req-form {
    flex-direction: column;
  }

  .route-req-form_fields,
  .route-req-form_summary {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .location-search-wrap {
    flex-wrap: wrap;
  }

  .location-search-wrap > a:last-child {
    width: 100%;
  }
}

.confirm-modal {
  max-width: 1200px !important;
}

@media (max-width: 1024px) {
  .logistic-card {
    flex-wrap: wrap;
    gap: 20px;
  }

  .logistic-logo {
    width: 120px;
    min-width: 120px;
  }

  .logistic-card > * {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 180px;
  }

  .logistic-card .details-wrap {
    margin-left: 0;
  }

  .log-data-body {
    gap: 20px;
    padding: 20px;
  }

  .log-data-footer {
    padding: 18px 20px;
  }

  .logistic-tabs-content {
    flex-direction: column;
  }

  .logistic-tabs-content > .flex-fill {
    width: 100%;
  }

  .truck-img {
    width: 160px;
    height: 110px;
  }

  .route-card {
    flex-direction: column;
    align-items: normal !important;
  }

  .route-popup-header {
    gap: 16px !important;
  }

  .route-popup-vehicle {
    gap: 20px !important;
  }

  .route-popup-vehicle .truck-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
  }

  .route-popup-vehicle-details {
    gap: 16px;
  }

  .route-popup-vehicle-detail {
    gap: 6px !important;
  }

  .route-req-form {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .logistic-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px !important;
  }

  .logistic-card > * {
    width: 100%;
    min-width: 0;
  }

  .logistic-logo {
    width: 100%;
    height: 80px;
  }

  .details-wrap {
    border-left: none;
    border-top: 1px solid #f3f4f6;
    padding-left: 0;
    padding-top: 16px;
  }

  .log-data-body {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .log-data-body > .d-flex {
    width: 100%;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .logistic-tabs-content {
    gap: 16px;
  }

  .logistic-tabs-content .available-vehicle-card {
    flex-wrap: wrap;
    gap: 12px;
  }

  .truck-img {
    width: 110px;
    height: 80px;
  }

  .logistic-tabs-content h5 {
    font-size: 16px;
  }

  .logistic-tabs-content .available-vehicle-card {
    flex-wrap: wrap;
    gap: 16px;
  }

  .logistic-tabs-content .available-vehicle-card > div {
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
  }

  .location-route {
    width: 100%;
  }

  .route-popup-header {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .route-popup-header > div {
    flex: 1;
  }

  .route-popup-vehicle {
    gap: 16px !important;
  }

  .route-popup-vehicle .truck-img {
    width: 130px;
    height: 90px;
  }

  .route-popup-vehicle-details {
    flex-wrap: wrap;
    gap: 16px !important;
  }

  .route-popup-vehicle-detail {
    flex: 1 1 calc(50% - 8px);
  }

  .confirm-request-item {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #dfe5df;
    padding-bottom: 16px;
  }

  .confirm-request-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 425px) {
  .logistic-card {
    grid-template-columns: 1fr;
    gap: 16px !important;
  }

  .logistic-logo {
    height: 90px;
  }

  .details-wrap {
    width: 100%;
  }

  .log-data-body {
    padding: 14px;
  }

  .log-data-footer {
    padding: 14px;
  }

  .log-data-footer > * {
    flex-direction: column;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .logistic-tabs-content .available-vehicle-card {
    flex-direction: column;
    align-items: stretch !important;
  }

  .kss-filter-dropdown {
    width: 100%;
  }

  .kss-filter-btn {
    width: 100%;
    justify-content: space-between;
  }

  .logistic-tabs-content .available-vehicle-row {
    flex-direction: column;
    gap: 16px !important;
  }

  .truck-img {
    width: 100%;
    height: 150px;
  }

  .logistic-tabs-content .available-vehicle-card {
    flex-direction: column;
    gap: 14px;
  }

  .logistic-tabs-content .available-vehicle-card > div {
    width: 100%;
    flex: none;
  }

  .location-route {
    padding: 0;
  }

  .route-popup-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .route-popup-header > svg {
    display: none;
  }

  .route-popup-header > div {
    width: 100%;
  }

  .route-popup-destination {
    text-align: left;
  }

  .route-popup-destination .verified-badge {
    margin-left: 0 !important;
  }

  .route-popup-vehicle {
    flex-direction: column;
    gap: 16px !important;
  }

  .route-popup-vehicle .truck-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }

  .route-popup-vehicle-details {
    flex-direction: column;
    gap: 16px !important;
  }

  .route-popup-vehicle-detail {
    width: 100%;
    flex: none;
  }
}