@media print {
  /* Keep quotation print cleanup inside the quotation screen only.
     This stylesheet is loaded by the global ERP layout, so bare selectors
     such as header, nav, .btn and .alert must never affect other documents. */
  .cg-quotation-screen .cg-quotation-details-header,
  .cg-quotation-screen .alert,
  .cg-quotation-screen .btn,
  .cg-quotation-screen nav,
  .cg-quotation-screen header,
  .cg-quotation-screen .navbar,
  .cg-quotation-screen .sidebar {
    display: none !important;
  }

  .cg-quotation-screen .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  body {
    background: #fff !important;
  }
}
@media (max-width: 767.98px) {
  .cg-quotation-details-header { flex-direction:column; }
  .cg-quotation-details-header > div:last-child { width:100%; justify-content:flex-start !important; }
  .cg-quotation-details-header .btn, .cg-quotation-details-header form { flex:1 1 auto; }
  .cg-quotation-details-header form .btn { width:100%; }
}


/* Sales Quotation index - mobile UX */
.cg-quotation-mobile-cards { display:none; }
.cg-mobile-new-quotation { display:none; }
.cg-quotation-page-head .cg-title-block { min-width:0; }
.cg-quotation-page-head h2 { display:flex; align-items:center; flex-wrap:wrap; }
.cg-quotation-page-head .cg-context-help { flex:0 0 auto; }
.cg-quotation-card { padding:14px 16px; border-bottom:1px solid #e7eeee; }
.cg-quotation-card:last-child { border-bottom:0; }
.cg-quotation-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.cg-quotation-number { font-weight:700; font-size:1rem; text-decoration:none; }
.cg-quotation-date { color:#6c7788; font-size:.78rem; margin-top:3px; }
.cg-quotation-card-grid { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; margin-top:14px; }
.cg-quotation-card-grid div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.cg-quotation-card-grid span { color:#6c7788; font-size:.7rem; text-transform:uppercase; letter-spacing:.04em; }
.cg-quotation-card-grid strong { font-size:.9rem; overflow-wrap:anywhere; }
.cg-quotation-card-actions { display:flex; gap:8px; margin-top:14px; }
.cg-quotation-card-actions .btn { width:100%; }
.cg-quotation-empty { text-align:center; color:#6c757d; padding:28px 16px; }

@media (max-width: 767.98px) {
  .cg-quotation-page-head { display:block !important; margin-bottom:12px !important; }
  .cg-quotation-page-head .cg-title-block { width:100%; }
  .cg-quotation-page-head h2 { font-size:1.5rem; line-height:1.2; }
  .cg-desktop-new-quotation { display:none !important; }
  .cg-mobile-new-quotation { display:inline-block; margin-top:10px; }
  .cg-quotation-desktop-table { display:none !important; }
  .cg-quotation-mobile-cards { display:block; }
  .cg-quotation-filters .card-body { padding:14px 12px; }
  .cg-quotation-filters .row { --bs-gutter-y:.75rem; }
  .cg-filter-actions { justify-content:flex-end !important; margin-top:12px !important; }
  .cg-filter-actions .btn { min-height:42px; }
  .cg-quotation-results .card-header { padding:12px 14px; }
  .cg-quotation-results { overflow:hidden; }
}
