/* GENERATED by scripts/build-inmotion-css.js from public/css/booking.css - do not edit */
/* .booking-card {
    display: flex;
    max-width: 600px;
    margin: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
  }
  
  .booking-image {
    flex: 1;
    overflow: hidden;
  }
  
  .booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .booking-details {
    flex: 2;
    padding: 20px;
  }
  
  .booking-details h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
  }
  
  .booking-details p {
    margin: 5px 0;
    color: #666;
  }
  
  
  .booking-card:hover {
    transform: scale(1.05);
  } */

#Quotations-searchIcon {
  background-color: #6549E8;
}

#Quotations__searchBar:focus,
#Quotations__searchBar:hover {
  border-color: #FFD500; /* Change to the desired border color on focus */
  outline: 0; /* Remove the default focus outline */
  box-shadow: 0 0 0 0.15rem #FFD500; /* Optional: Add a box shadow on focus */
  border-radius: 2px;
}

.borderr {
  border: 1px solid red;
}

/* .BiddingCompany {
  letter-spacing: 1.6px;
  font-size: 2.4rem;
  line-height: 2.2rem;
  font-weight: 600;
}

#QuotationsSideBar {
  margin-top: 2.88rem;
} */

/* .Quotations_sidebar_container {
  padding: 4% 3% 2%;
}

.Quotations_sidebar_Phone_container {
  padding: 4% 3% 2%;
}

.Quotations_sidebar_row {
  padding: 4% 0 4%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4%;
  font-size: large;
}

.Quotations_sidebar_row-icon {
  flex: 0.15;
  display: flex;
  justify-content: center;
}

.Quotations_sidebar_row-text {
  letter-spacing: 0.5px;
  font-size: 16px;
  color: #1d1d24;
}

.QuotationsPhone {
  display: flex;
  align-items: center;
  gap: 5%;
  padding: 2% 0 0;
}

#AcceptButton {
  background-color: #6549E8;
  color: white;
  padding: 0.4rem 0 0.4rem;
  width: 85%;
  font-weight: 600;
  font-size: large;
  border-radius: 10px;
  letter-spacing: 1px;
  text-transform: capitalize;
  transition: all 0.4s ease;
}

#AcceptButton:hover {
  transform: scale(1.03, 1.03);
}

#DeclineButton {
  background-color: #FFD500;
  padding: 0.4rem 0 0.4rem;
  width: 85%;
  font-weight: 600;
  font-size: large;
  border-radius: 10px;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: white;
  transition: all 0.4s ease;
}

#DeclineButton:hover {
  transform: scale(1.03, 1.03);
}

.Bidding__Div {
  box-shadow: inset 0px 0px 8px #6549E862;
  border-radius: 10px;
  padding: 2% 1% 2%;
  background-color: white;
  transition: all 0.5s ease;
  color: #6549E8 !important;
}
.Bidding__Div:hover {
  background-color: #6549E8;
  cursor: pointer;
  color: #6549E8 !important;
}

.Bidding__Div:hover .biddingprice {
  color: white !important;
}

.Bidding__Div:hover #AcceptButton {
  background-color: white;
  color: #1d1d24;
}

.Bidding__Div:hover .BiddingCompany {
  color: #6549E8 !important;
}

.Bidding__Div:hover .BiddingInfo i {
  color: #6549E8 !important;
}

#Bidding__Section {
  padding: 2% 4%;
}

.biddingprice {
  font-size: 1.6rem;
  letter-spacing: 1px;
}

@media screen and (max-width: 760px) {
  #QuotationsTitleDiv {
    padding-top: 2%;
    text-align: center;
  }

  #Search_div {
    width: 50% !important;
  }

  .Quotations_sidebar_row {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .Quotations_sidebar_row-text {
    font-size: 1.5rem;
  }

  .Quotations_sidebar_Type .Quotations_sidebar_row-text {
    width: auto !important;
  }
  #bookingrequirments {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .Quotations_sidebar_Phone_container {
    display: flex;
    align-items: stretch;
    justify-items: center;
    flex-direction: column;
    text-align: center;
  }

  .Quotations_sidebar_Phone_container h5 {
    font-size: 2.8rem;
    text-align: center;
  }

  .Quotations_sidebar_Phone_container p {
    font-size: 1.5rem;
    line-height: 3rem !important;
    text-align: center;
  }
  .QuotationsPhone {
    justify-content: center;
    padding: 1% 0 1%;
  }
  #SearchInput {
    width: 60% !important;
    height: 3rem;
  }

  #Bidding__Section {
    padding: 5% 7% 5%;
  }

  .Bidding__Div {
    padding: 5% 0% 3%;
    box-shadow: 0px 0px 10px rgba(128, 128, 128, 0.607);
  }

  .biddingIMage img {
    width: 80%;
  }
  .BiddingInfo {
    padding: 3% 0 2% !important;
    align-items: center !important;
  }

  .BiddingInfo h5 {
    font-size: 2.5rem;
  }
  .BiddingInfo p {
    font-size: 2rem;
    padding-top: 3% !important;
  }
  .biddingButtonDIv {
    padding: 2% 0 2% !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .biddingButtonDIv button {
    width: 70% !important;
  }

  .biddingDivider {
    padding: 2% 0 2%;
  }
  .biddingDivider hr {
    opacity: 0.5 !important;
  }
} */

.biddingContainer {
  padding-left: 10%;
  padding-right: 10%;
}

.BiddingInfoCol {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hideDiv {
  display: none !important;
}

#quotationPagination li:hover {
  cursor: pointer;
}
#quotationPagination .page-item.active .page-link {
  background-color: #FFD500 !important;
  color: #1d1d24 !important;
  border-color: #FFD500;
}
#quotationPagination .page-item .page-link {
  color: #1d1d24 !important;
}

/* ============================================================================
   Deposit / full-payment buttons — acknowledge the click while the browser
   navigates to the payment page. Spinner is hand-rolled rather than a Font
   Awesome glyph so it can't be affected by the icon kit.
   ========================================================================== */

.pay-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.18s ease;
}

.pay-btn__spinner {
  display: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  /* Transparent quadrant is what makes the rotation readable. */
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.9;
  animation: pay-btn-spin 0.6s linear infinite;
}

.pay-btn.is-busy .pay-btn__spinner {
  display: inline-block;
}

.pay-btn.is-busy {
  cursor: progress;
  opacity: 0.85;
}

.pay-btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

@keyframes pay-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay-btn__spinner {
    animation-duration: 1.6s;
  }
}

/* ============================================================================
   Bid card — one operator's quote in the bidding pool.
   Built by renderBids() in public/js/tugvan.js. Navy #1c2b39 / amber #fbbf24.
   ========================================================================== */

.bid-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e8ebee;
  border-left: 4px solid #FFD500;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(101, 73, 232, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.bid-card:hover {
  transform: translateY(-2px);
  border-color: #d8dde2;
  box-shadow: 0 8px 24px rgba(101, 73, 232, 0.12);
}

/* --- 20-second quote countdown ------------------------------------------
   The card is a 3-column grid, so the timer is taken out of flow and pinned to
   the top edge rather than being given a cell of its own. */
.bid-card {
  position: relative;
  overflow: hidden;
}

.bid-card__timer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #eef1f4;
}

.bid-card__timer-fill {
  height: 100%;
  background: #FFD500;
  /* scaleX from a right-hand origin, so the bar drains towards the left. The
     transform is written every frame; animating width instead would force a
     layout pass per card per frame. */
  transform-origin: right center;
  will-change: transform;
}

.bid-card__timer-secs {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Inline, self-dismissing message for a quote that expired under the click.
   Not an alert(): quotes lapse routinely here and a modal each time would be
   unusable. */
.bid-expired-notice {
  display: none;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
}

.bid-expired-notice.is-visible {
  display: block;
}

/* --- identity: logo + company --- */
.bid-card__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.bid-card__logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #f7f8f9;
  border: 1px solid #eceff1;
  border-radius: 10px;
}

.bid-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bid-card__names {
  min-width: 0;
}

.bid-card__company {
  margin: 0;
  color: #1d1d24;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.2px;
  /* Long operator names truncate rather than reflowing the whole card. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bid-card__location {
  margin: 2px 0 0;
  color: #6b7785;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- facts: pickup + quote --- */
.bid-card__facts {
  display: flex;
  align-items: center;
  gap: 32px;
}

.bid-card__fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bid-card__fact--price {
  padding-left: 32px;
  border-left: 1px solid #eceff1;
}

.bid-card__label {
  color: #8b95a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.bid-card__value {
  color: #1d1d24;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.bid-card__price {
  color: #1d1d24;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

/* --- actions --- */
.bid-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 132px;
}

.bid-card__btn {
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.bid-card__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.45);
}

.bid-card__btn--accept {
  background: #FFD500;
  border-color: #FFD500;
  color: #1d1d24;
}

.bid-card__btn--accept:hover {
  background: #F2C900;
  border-color: #F2C900;
}

/* Decline is the secondary path — outlined so it doesn't compete with Accept. */
.bid-card__btn--decline {
  background: transparent;
  border-color: #d8dde2;
  color: #6b7785;
}

.bid-card__btn--decline:hover {
  background: #6549E8;
  border-color: #6549E8;
  color: #ffffff;
}

@media screen and (max-width: 992px) {
  .bid-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 24px;
  }

  .bid-card__actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .bid-card__facts {
    grid-column: 1;
  }
}

@media screen and (max-width: 640px) {
  .bid-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .bid-card__actions,
  .bid-card__facts {
    grid-column: 1;
    grid-row: auto;
  }

  .bid-card__facts {
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #eceff1;
  }

  /* The vertical rule reads as clutter once the row is edge-to-edge. */
  .bid-card__fact--price {
    padding-left: 0;
    border-left: none;
    align-items: flex-end;
  }

  .bid-card__actions {
    flex-direction: row;
    min-width: 0;
  }

  .bid-card__btn {
    flex: 1;
  }
}

#Quotations-searchIcon:hover {
  cursor: pointer;
}

.hideBIDS {
  display: none !important;
}

.booking_detail_requirement {
  font-size: 12px;
}

.booking_detail_text {
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  #Bidding__Section {
    display: flex;
    /* stretch, not center — cards are full-width blocks, not content-sized. */
    align-items: stretch !important;
    flex-direction: column;
    padding: 0 5% 0;
  }
}

@media screen and (max-width: 768px) {
  .BiddingSearch {
    width: 50% !important;
  }
  .alert-container {
    width: 70% !important;
  }
}

.showModal {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-dialog {
  min-width: 200px !important;
}

.rotate {
  animation: rotation 3s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

.alert-container {
  position: fixed;
  top: 50px;
  right: 5px;
  width: 40%;
  z-index: 5000;
}

.alertDiv {
  position: relative;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.alert.show {
  opacity: 1;
}

.activeFilter {
  background-color: #FFD500 !important;
}

#reloadIcon {
  transition: transform 0.6s ease-in-out;
}

.rotating {
  animation: rotate 1s linear infinite; /* Infinite rotation */
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
