/* ============================================================
   Quotations — Refined Glass Design
   ============================================================ */

/* ---------- Quotation Card ---------- */
.qt-card {
  border: 1px solid var(--border, #E1E5EF);
  border-radius: 14px;
  background: var(--bg-card, #fff);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.85rem;
  transition: all 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
  animation: appFadeUp 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.qt-card:hover {
  box-shadow: 0 8px 28px rgba(22, 34, 56, 0.07);
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb, 215, 25, 32), 0.15);
}

/* Status accent bar at left */
.qt-card--draft {
  border-left: 4px solid var(--color-warning, #B7791F);
}
.qt-card--approved {
  border-left: 4px solid var(--color-success, #2D8F6F);
}
.qt-card--rejected {
  border-left: 4px solid var(--color-danger, #D2555A);
}

/* Subtle status glow on hover */
.qt-card--draft:hover { box-shadow: 0 8px 28px rgba(255, 201, 40, 0.08); }
.qt-card--approved:hover { box-shadow: 0 8px 28px rgba(45, 143, 111, 0.08); }
.qt-card--rejected:hover { box-shadow: 0 8px 28px rgba(210, 85, 90, 0.08); }

/* ---------- Header ---------- */
.qt-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.qt-id {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main, #1E2430);
  letter-spacing: -0.01em;
}

.qt-meta {
  color: var(--text-muted, #6B7280);
  font-size: 0.76rem;
}

/* ---------- Items Table ---------- */
.qt-items-table {
  width: 100%;
  font-size: 0.84rem;
  margin-bottom: 0.6rem;
  border-collapse: separate;
  border-spacing: 0;
}

.qt-items-table th {
  color: var(--text-muted, #6B7280);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid rgba(var(--primary-rgb, 215, 25, 32), 0.10);
}

.qt-items-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(var(--primary-rgb, 215, 25, 32), 0.04);
  color: var(--text-sub, #4B5565);
}

.qt-items-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Total & Note ---------- */
.qt-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main, #1E2430);
  letter-spacing: -0.02em;
}

.qt-note {
  font-size: 0.8rem;
  color: var(--text-sub, #4B5565);
  font-style: italic;
  background: rgba(var(--primary-rgb, 215, 25, 32), 0.03);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

/* ---------- Actions ---------- */
.qt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--primary-rgb, 215, 25, 32), 0.06);
}

.qt-actions .btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  transition: all 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.qt-actions .btn:hover {
  transform: translateY(-1px);
}

/* ---------- Status Info Bars ---------- */
.qt-rejection-info {
  background: rgba(210, 85, 90, 0.05);
  border: 1px solid rgba(210, 85, 90, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-sub, #4B5565);
}

.qt-approval-info {
  background: rgba(45, 143, 111, 0.05);
  border: 1px solid rgba(45, 143, 111, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-sub, #4B5565);
}

/* ---------- Reject Modal ---------- */
.modal-content {
  border-radius: 14px;
  border: 1px solid var(--border, #E1E5EF);
  box-shadow: 0 16px 48px rgba(22, 34, 56, 0.12);
}

.modal-header {
  border-bottom: 1px solid rgba(var(--primary-rgb, 215, 25, 32), 0.08);
  padding: 1.1rem 1.35rem;
}

.modal-footer {
  border-top: 1px solid rgba(var(--primary-rgb, 215, 25, 32), 0.08);
  padding: 0.85rem 1.35rem;
}

/* Stagger animation for card list */
#quotationList .qt-card:nth-child(1)  { animation-delay: 0.04s; }
#quotationList .qt-card:nth-child(2)  { animation-delay: 0.08s; }
#quotationList .qt-card:nth-child(3)  { animation-delay: 0.12s; }
#quotationList .qt-card:nth-child(4)  { animation-delay: 0.16s; }
#quotationList .qt-card:nth-child(5)  { animation-delay: 0.20s; }
#quotationList .qt-card:nth-child(6)  { animation-delay: 0.24s; }
#quotationList .qt-card:nth-child(7)  { animation-delay: 0.28s; }
#quotationList .qt-card:nth-child(8)  { animation-delay: 0.32s; }
