/* DOCHIFOOD PUBLIC V5.0.5 — PROFESSIONAL B2B QUOTE */

/* Không còn pill/tab xanh cũ */
.v5-yours-tabs,
.v5-yours-tabs-single {
  display: none !important;
}

.v5-yours-scroll {
  padding: 20px 18px calc(142px + env(safe-area-inset-bottom)) !important;
  background: #fff !important;
}

/* Tiêu đề trang B2B */
.v5-quote-workspace-head {
  width: min(100%, 1040px);
  margin: 0 auto 10px;
  padding: 10px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e2e9e6;
}

.v5-quote-workspace-head small {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .11em;
}

.v5-quote-workspace-head h1 {
  margin: 0;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.v5-quote-workspace-head p {
  margin: 8px 0 0;
  color: #6e7e78;
  font-size: 13px;
}

.v5-quote-workspace-head p strong {
  color: var(--green);
  font-size: 15px;
}

#v5ClearQuotes {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #e7caca;
  border-radius: 10px;
  background: #fff;
  color: #b3262e;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

#v5ClearQuotes:disabled {
  opacity: .38;
  pointer-events: none;
}

/* Danh sách sản phẩm B2B */
.v5-yours-list {
  width: min(100%, 1040px);
  margin: 0 auto !important;
}

.v5-yours-item {
  grid-template-columns: 76px minmax(0, 1fr) 42px !important;
  gap: 14px !important;
  min-height: 106px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #e4eae7 !important;
}

.v5-yours-thumb {
  width: 76px !important;
  height: 76px !important;
  border: 1px solid #edf1ef !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.v5-yours-thumb img {
  width: 100% !important;
  height: 100% !important;
  padding: 3px;
  object-fit: contain !important;
}

.v5-yours-copy strong {
  color: #153f33 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  letter-spacing: -.012em;
  -webkit-line-clamp: 2 !important;
}

.v5-yours-copy small {
  margin-top: 6px !important;
  color: #788781 !important;
  font-size: 12px !important;
  line-height: 1.3;
}

.v5-yours-spec {
  display: block;
  margin-top: 4px;
  color: #526861;
  font-size: 11px;
  line-height: 1.3;
}

.v5-remove {
  width: 40px !important;
  height: 40px !important;
  align-self: center;
  border: 1px solid #efd6d6 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #c42b32 !important;
  box-shadow: none !important;
}

.v5-remove svg {
  width: 18px !important;
  height: 18px !important;
}

/* Ghi chú chung cho yêu cầu báo giá */
.v5-quote-note-card {
  width: min(100%, 1040px);
  margin: 22px auto 8px;
  padding: 16px;
  border: 1px solid #dce7e2;
  border-radius: 16px;
  background: #f8fbfa;
}

.v5-quote-note-card[hidden] {
  display: none !important;
}

.v5-quote-note-card label {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.v5-quote-note-card label strong {
  color: var(--navy);
  font-size: 14px;
}

.v5-quote-note-card label span {
  color: #73827d;
  font-size: 11px;
  line-height: 1.4;
}

#v5QuoteNote {
  width: 100%;
  min-height: 84px;
  box-sizing: border-box;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid #ccd9d3;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #183d31;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: none;
}

#v5QuoteNote:focus {
  border-color: var(--green);
}

/* Thanh chốt báo giá: gọn, rõ, không nặng bóng */
.v5-quote-bar {
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 8px !important;
  border: 1px solid #d8e3de !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.v5-quote-bar-summary {
  min-width: 70px;
  padding-left: 6px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--navy);
  white-space: nowrap;
}

.v5-quote-bar-summary strong {
  font-size: 20px !important;
}

.v5-quote-bar-summary span {
  font-size: 11px;
  font-weight: 850;
}

.v5-quote-note-shortcut {
  min-height: 44px !important;
  padding: 0 11px !important;
  border: 1px solid #cbd9d3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--green) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.v5-quote-send {
  min-width: 0;
  min-height: 48px !important;
  padding: 0 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0 !important;
  border-radius: 13px !important;
  background: var(--green) !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
}

.v5-quote-send b {
  font-size: 18px;
}

.v5-send-desktop {
  display: none;
}

.v5-send-mobile {
  display: inline;
}

/* Empty state đúng ngữ cảnh B2B */
#v5YoursEmpty > div:first-child {
  color: var(--green) !important;
}

@media (min-width: 760px) {
  .v5-yours-scroll {
    padding: 34px 42px 150px !important;
  }

  .v5-quote-workspace-head {
    margin-bottom: 16px;
    padding-bottom: 24px;
  }

  .v5-quote-workspace-head h1 {
    font-size: 36px;
  }

  .v5-quote-workspace-head p {
    font-size: 14px;
  }

  #v5ClearQuotes {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 13px;
  }

  .v5-yours-item {
    grid-template-columns: 92px minmax(0, 1fr) 44px !important;
    min-height: 126px !important;
    padding: 16px 0 !important;
  }

  .v5-yours-thumb {
    width: 92px !important;
    height: 92px !important;
  }

  .v5-yours-copy strong {
    font-size: 17px !important;
  }

  .v5-yours-copy small {
    font-size: 13px !important;
  }

  .v5-yours-spec {
    font-size: 12px;
  }

  .v5-quote-note-card {
    padding: 20px;
  }

  .v5-quote-bar {
    max-width: 1040px !important;
    grid-template-columns: auto 110px minmax(320px, 1fr) !important;
    padding: 10px !important;
  }

  .v5-quote-bar-summary {
    min-width: 110px;
    padding-left: 12px;
  }

  .v5-send-mobile {
    display: none;
  }

  .v5-send-desktop {
    display: inline;
  }

  .v5-quote-send {
    font-size: 16px !important;
  }
}
