/* =====================================================
   ERP GGN — Quotation Styles
   File: css/quotation.css
   ===================================================== */

/* ============ BUTTON PRIMARY ============ */
.qt-btn-primary{
  padding:11px 18px;
  border:none; border-radius:12px;
  background:linear-gradient(135deg,#C9A227,#E8B33D);
  color:#0A2540; font-size:13px; font-weight:800;
  cursor:pointer; font-family:inherit;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow:0 4px 14px rgba(201,162,39,.35);
  transition:transform .15s, box-shadow .2s;
  letter-spacing:.3px;
}
.qt-btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(201,162,39,.5);
}
.qt-btn-primary:active{ transform:translateY(1px); }
.qt-btn-primary svg{
  width:16px; height:16px;
  stroke:currentColor; fill:none;
  stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
}

/* ============ STAT CARDS ============ */
.qt-stat-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
  margin-bottom:14px;
}
.qt-stat-card{
  background:#fff; border-radius:12px; padding:12px 10px;
  box-shadow:0 3px 10px rgba(10,37,64,.06);
  text-align:center;
  border:1px solid rgba(10,37,64,.04);
}
.qt-stat-lbl{
  font-size:9.5px; color:#64748B;
  text-transform:uppercase; letter-spacing:.5px;
  font-weight:700;
}
.qt-stat-val{
  font-size:18px; font-weight:800; color:#0A2540;
  margin-top:4px; letter-spacing:-.5px;
}

/* ============ SEARCH & FILTER ============ */
.qt-input-search{
  width:100%; padding:12px 14px 12px 44px;
  border:1.5px solid #E2E8F0; border-radius:12px;
  font-size:13.5px; font-family:inherit;
  color:#0A2540; background:#fff; outline:none;
  transition:border-color .2s, box-shadow .2s;
  box-sizing:border-box;
}
.qt-input-search:focus{
  border-color:#3E7CB1;
  box-shadow:0 0 0 4px rgba(62,124,177,.12);
}

.qt-filter-grid{
  display:grid;
  grid-template-columns:1.2fr 1.2fr 1.2fr;
  gap:8px;
}

.qt-select{
  padding:10px 32px 10px 12px;
  border:1.5px solid #E2E8F0; border-radius:11px;
  font-size:12px; font-family:inherit;
  color:#0A2540; background:#fff; outline:none;
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 10px center;
  cursor:pointer;
  box-sizing:border-box;
  width:100%;
}
.qt-select:focus{
  border-color:#3E7CB1;
  box-shadow:0 0 0 4px rgba(62,124,177,.12);
}

/* ============ CARD QUOTATION ============ */
.qt-card{
  background:#fff; border-radius:16px; padding:14px;
  box-shadow:0 3px 12px rgba(10,37,64,.07);
  border-left:4px solid #C9A227;
  margin-bottom:10px;
  transition:transform .15s;
}
.qt-card:active{ transform:scale(.99); }

.qt-badge{
  display:inline-block;
  padding:2px 8px; border-radius:20px;
  font-size:9px; font-weight:800;
  text-transform:uppercase; letter-spacing:.4px;
}
.badge-draft{ background:#F1F5F9; color:#475569; }
.badge-sent{ background:#DBEAFE; color:#1E40AF; }
.badge-rev{ background:#FEF3C7; color:#92400E; }
.badge-fail{ background:#FEE2E2; color:#991B1B; }
.badge-deal{ background:#DCFCE7; color:#166534; }

.qt-card-actions{
  display:flex; gap:6px; margin-top:12px; padding-top:12px;
  border-top:1px solid #F1F5F9; flex-wrap:wrap;
}
.qt-btn-icon{
  padding:7px 11px;
  border:1.5px solid #E2E8F0; border-radius:9px;
  background:#fff; color:#0A2540;
  font-size:11px; font-weight:700;
  cursor:pointer; font-family:inherit;
  display:inline-flex; align-items:center; gap:5px;
  transition:all .15s;
}
.qt-btn-icon svg{
  width:13px; height:13px;
  stroke:currentColor; fill:none;
  stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round;
}
.qt-btn-icon:hover{
  border-color:#3E7CB1;
  background:#F0F9FF;
  color:#1B4B7E;
}
.qt-btn-delete{
  color:#991B1B; border-color:#FECACA;
}
.qt-btn-delete:hover{
  background:#FEF2F2; border-color:#DC2626; color:#991B1B;
}

/* ============ RESPONSIVE ============ */
@media (max-width:600px){
  .qt-filter-grid{ grid-template-columns:1fr 1fr; }
  .qt-filter-grid > select:last-child{ grid-column:span 2; }
  .qt-stat-grid{ grid-template-columns:repeat(2,1fr); }
}