.sgqp-wrap{--sgqp-accent:#2457a6;color:#252a34;font-family:inherit}.sgqp-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:18px;margin:0 0 22px;background:#f5f7fa;border:1px solid #e1e6ee;border-radius:9px}.sgqp-filters label{display:flex;flex-direction:column;gap:5px;min-width:145px;flex:1}.sgqp-filters label span{font-size:13px;font-weight:600}.sgqp-filters input,.sgqp-filters select{width:100%;min-height:42px;border:1px solid #cbd2dc;border-radius:5px;padding:7px;background:white}.sgqp-filters button,.sgqp-actions a,.sgqp-more button{background:var(--sgqp-accent);color:#fff!important;border:0;border-radius:5px;padding:11px 16px;text-decoration:none;cursor:pointer;font-weight:600}.sgqp-filters .sgqp-reset{background:#e7ebf1;color:#263244!important}.sgqp-count{font-size:14px;color:#5d6674;margin:0 0 12px}.sgqp-list{display:grid;grid-template-columns:repeat(var(--sgqp-columns,1),minmax(0,1fr));gap:18px}.sgqp-item{border:1px solid #dfe4eb;border-radius:9px;padding:18px;background:#fff;min-width:0}.sgqp-item h3{font-size:19px;line-height:1.35;margin:0 0 9px}.sgqp-meta{display:flex;flex-wrap:wrap;gap:7px 16px;color:#5e6877;font-size:13px}.sgqp-description{font-size:14px;margin:12px 0}.sgqp-pdfjs{margin:15px 0 10px;border:1px solid #d5dbe4;border-radius:6px;overflow:hidden;background:#e9edf2}.sgqp-pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;padding:8px;background:#252f3e}.sgqp-pdf-toolbar button{border:1px solid #657184;border-radius:4px;background:#fff;color:#202b3a;padding:6px 10px;cursor:pointer}.sgqp-pageinfo{color:#fff;font-size:13px}.sgqp-canvas-wrap{position:relative;overflow:auto;max-height:900px;text-align:center;padding:14px}.sgqp-canvas-wrap canvas{display:inline-block;max-width:100%;height:auto;background:white;box-shadow:0 2px 9px #0002}.sgqp-pdf-loading{display:block;padding:20px;color:#4d5867}.sgqp-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.sgqp-actions a{display:inline-block;font-size:13px}.sgqp-missing,.sgqp-empty{padding:14px;background:#fff8e5;border-left:3px solid #d99b22}.sgqp-more{text-align:center;margin:20px}.sgqp-pagination{margin:22px 0}@media(max-width:640px){.sgqp-filters{display:grid;grid-template-columns:1fr}.sgqp-filters label{min-width:0}.sgqp-item{padding:13px}.sgqp-pdf-toolbar{gap:4px}.sgqp-pdf-toolbar button{padding:6px}.sgqp-canvas-wrap{padding:4px}}
.sgqp-catalogue-heading{margin:0 0 18px}.sgqp-catalogue-heading h2{margin:0 0 5px;font-size:25px}.sgqp-catalogue-heading p{margin:0;color:#687385;font-size:14px}.sgqp-extra-meta{display:flex;flex-wrap:wrap;gap:6px 15px;margin-top:9px;padding-top:9px;border-top:1px solid #edf0f4;color:#596577;font-size:12px}.sgqp-loading-state{opacity:.55;pointer-events:none;position:relative}.sgqp-loading-state:after{content:"Loading…";display:block;text-align:center;padding:12px;color:var(--sgqp-accent);font-weight:600}

/* Version 4.0: catalogue sorting control */
.sgqp-filters label select[name="sort"]{min-width:145px}
@media(max-width:640px){.sgqp-filters label select[name="sort"]{width:100%;min-width:0}}


/* Version 4.0.1: prevent search field sizing and label overlap */
.sgqp-wrap .sgqp-filters{
  display:grid;
  grid-template-columns:minmax(190px,1.4fr) repeat(4,minmax(115px,1fr)) auto auto;
  align-items:end;
  gap:12px;
  width:100%;
  box-sizing:border-box;
}
.sgqp-wrap .sgqp-filters label{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:stretch;
  gap:6px;
  flex:initial;
  min-width:0;
  width:100%;
  margin:0;
  box-sizing:border-box;
}
.sgqp-wrap .sgqp-filters label span{
  display:block;
  position:static;
  float:none;
  width:auto;
  min-height:16px;
  margin:0;
  padding:0;
  line-height:1.25;
  white-space:nowrap;
  box-sizing:border-box;
}
.sgqp-wrap .sgqp-filters input,
.sgqp-wrap .sgqp-filters select{
  display:block;
  position:static;
  float:none;
  width:100%;
  min-width:0;
  max-width:100%;
  height:42px;
  min-height:42px;
  margin:0;
  padding:7px 9px;
  line-height:1.3;
  box-sizing:border-box;
}
.sgqp-wrap .sgqp-filters button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:end;
  height:42px;
  min-height:42px;
  margin:0;
  padding:0 16px;
  white-space:nowrap;
  box-sizing:border-box;
}
.sgqp-wrap .sgqp-filters .sgqp-search{min-width:0}
@media(max-width:1050px){
  .sgqp-wrap .sgqp-filters{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:640px){
  .sgqp-wrap .sgqp-filters{
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }
  .sgqp-wrap .sgqp-filters label,
  .sgqp-wrap .sgqp-filters button{width:100%}
}
