/* ============================================================
   /new/quote/ — Quote portal specific styles
   ============================================================ */

/* Hero card */
.qt-hero__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}
.qt-hero__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--r-4);
  background: var(--accent);
  color: var(--surface-0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-2);
}
.qt-hero__body { flex: 1; min-width: 0; }
.qt-hero__body .pp-card__title {
  font-size: var(--t-h2);
  margin: 0;
}
.qt-hero__body .pp-card__sub { margin-top: 4px; }
#qt-number {
  color: var(--ink-3);
  font-size: 0.9em;
  margin-right: 6px;
}
.qt-hero__status {
  flex-shrink: 0;
  font-size: var(--t-small);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.qt-hero__status[data-status="approved"] { background: var(--ok-soft); color: var(--ok); }
.qt-hero__status[data-status="rejected"] { background: var(--err-soft); color: var(--err); }
.qt-hero__status[data-status="pending"]  { background: var(--info-soft); color: var(--info); }

/* Customer grid */
.qt-customer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.qt-customer__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qt-customer__label {
  font-size: var(--t-small);
  color: var(--ink-3);
  font-weight: 500;
}
.qt-customer__value {
  font-size: var(--t-body);
  color: var(--ink-1);
  font-weight: 500;
  direction: ltr;
  text-align: right;
}

/* Snapshot */
.qt-snapshot {
  padding: 0;
  overflow: hidden;
}
.qt-snapshot img {
  width: 100%;
  display: block;
  max-height: 380px;
  object-fit: cover;
  background: var(--surface-2);
}

/* Items table */
.qt-items-wrap {
  overflow-x: auto;
  margin: 0 calc(var(--s-6) * -1);
  padding: 0 var(--s-6);
}
.qt-items {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-body);
}
.qt-items thead th {
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: var(--t-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: right;
  padding: 10px 14px;
  border-bottom: 1px solid var(--stroke-strong);
}
.qt-items tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}
.qt-items tbody tr:last-child td { border-bottom: none; }
.qt-items__col-idx {
  width: 36px;
  text-align: center;
  color: var(--ink-4);
}
.qt-items__col-idx + td, .qt-items thead .qt-items__col-idx { text-align: center; color: var(--ink-4); }
.qt-items__col-detail {
  color: var(--ink-3);
  font-size: var(--t-small);
}
.qt-items__col-price {
  text-align: left;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink-1);
  direction: ltr;
}
.qt-items thead .qt-items__col-price { text-align: left; }

/* Total */
.qt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 2px solid var(--ink-1);
}
.qt-total__label {
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink-1);
}
.qt-total__amount {
  font-size: var(--t-h2);
  font-weight: 700;
  color: var(--accent);
}

/* COCO grid */
.qt-coco {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
}
.qt-coco__item {
  background: var(--accent-soft);
  border-radius: var(--r-3);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid color-mix(in oklch, var(--accent) 15%, transparent);
}
.qt-coco__label {
  font-size: var(--t-small);
  color: var(--accent-ink);
  font-weight: 500;
}
.qt-coco__value {
  font-size: var(--t-h3);
  font-weight: 700;
  color: var(--accent-ink);
  direction: ltr;
}

/* Notes */
.qt-notes {
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
  margin: 0;
  background: var(--surface-1);
  padding: var(--s-4);
  border-radius: var(--r-3);
  border-right: 3px solid var(--accent);
}

/* Response */
.qt-response { display: flex; flex-direction: column; gap: var(--s-4); }
.qt-response__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.qt-response__divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-4);
  font-size: var(--t-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.qt-response__divider::before,
.qt-response__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stroke);
}
.qt-response__label {
  font-size: var(--t-small);
  color: var(--ink-3);
  font-weight: 500;
}
#comment-text {
  font-family: var(--font-ui);
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 640px) {
  .qt-hero__head { flex-direction: column; gap: var(--s-3); }
  .qt-hero__icon { width: 44px; height: 44px; }
  .qt-hero__body .pp-card__title { font-size: var(--t-h3); }
  .qt-response__buttons { grid-template-columns: 1fr; }
  .qt-total__amount { font-size: var(--t-h3); }
  .qt-items thead th, .qt-items tbody td { padding: 8px 10px; font-size: var(--t-small); }
}
