/* HF01G: one search/filter language for quotation, delivery-note and payment-history reports. UI only. */
.report-search-unified{
  background:#fff;
  border:1px solid #dce8e3;
  border-radius:10px;
  padding:9px 10px;
  display:grid;
  gap:8px;
  margin:0;
  box-sizing:border-box;
}
.report-search-unified__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.report-search-unified__title{display:grid;gap:1px;min-width:0}
.report-search-unified__title strong{font-size:12px;line-height:1.2;color:#244d41}
.report-search-unified__title small{font-size:10px;line-height:1.25;color:#70847b;font-weight:500}
.report-search-unified__actions{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.report-search-unified__actions button{
  min-height:30px;height:30px;border-radius:6px;padding:0 12px;
  font-size:10.5px;font-weight:800;white-space:nowrap;cursor:pointer;
}
.report-search-unified__reset{border:1px solid #cddbd5;background:#fff;color:#315d4f}
.report-search-unified__reset:hover{background:#f1f7f4}
.report-search-unified__submit{border:1px solid #17745a;background:#17745a;color:#fff}
.report-search-unified__submit:hover{background:#12654d}
.report-search-unified__primary,
.report-search-unified__more-grid{
  display:grid;
  gap:6px 8px;
  align-items:end;
}
.report-search-unified__primary{grid-template-columns:125px 125px minmax(180px,1fr) minmax(220px,1.35fr)}
.report-search-unified label{display:grid;gap:2px;margin:0;min-width:0;font-size:10px;font-weight:700;color:#50665d;line-height:1.2}
.report-search-unified input,
.report-search-unified select{
  width:100%;min-width:0;height:30px;box-sizing:border-box;
  border:1px solid #cddbd5;border-radius:6px;padding:3px 7px;
  background:#fff;color:#17395e;font-size:10.5px;
}
.report-search-unified input:focus,
.report-search-unified select:focus{
  outline:2px solid rgba(23,116,90,.14);border-color:#49977f;
}
.report-search-unified__wide{grid-column:span 2}
.report-search-unified__more{border-top:1px solid #e6eeeb;padding-top:6px}
.report-search-unified__more summary{
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;user-select:none;
  list-style:none;color:#315d4f;font-size:10.5px;font-weight:800;
}
.report-search-unified__more summary::-webkit-details-marker{display:none}
.report-search-unified__more summary::before{content:'▸';font-size:10px;transition:transform .15s ease}
.report-search-unified__more[open] summary::before{transform:rotate(90deg)}
.report-search-unified__more-grid{grid-template-columns:repeat(4,minmax(150px,1fr));margin-top:7px}
.report-search-unified__hint{margin:0;font-size:10px;color:#70847b}
.report-search-unified__result-search{margin-top:7px;display:grid;grid-template-columns:130px minmax(240px,1fr);gap:8px;align-items:center}
.report-search-unified__result-search>span{font-size:10px;font-weight:800;color:#50665d}
.report-search-unified__result-search input{
  height:30px;border:1px solid #cddbd5;border-radius:6px;padding:3px 7px;
  color:#17395e;font-size:10.5px;background:#fff;box-sizing:border-box;width:100%;
}

/* Quotation report */
.quote-report-page .quote-report-filter{display:grid!important;grid-template-columns:none!important}
.quote-report-page .quote-report-filter>label,
.quote-report-page .quote-report-filter>button{grid-column:auto!important;grid-row:auto!important}

/* Delivery-note report: the mounted search form owns the card. */
.dn-report-page .dn-history-search{padding:0!important;border:0!important;background:transparent!important}
.dn-report-page .document-search-form.report-search-unified{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:stretch!important;margin:0!important}
.dn-report-page .report-search-unified__more-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}
.dn-report-page .report-search-unified [data-search-error]:empty{display:none}
.dn-report-page .report-search-unified [data-search-error]{margin:0;color:#b42318;font-size:10px;font-weight:700}

/* Payment history uses the same compact report shell/search card without changing table logic. */
.ops-payment-history.report-search-page{padding:0 2px 8px;display:grid;gap:8px;background:#f5f8f7;min-height:100%;box-sizing:border-box}
.ops-payment-history.report-search-page .flow-heading{margin:0!important;padding:7px 11px!important;border:1px solid #dce8e3!important;border-radius:10px!important;background:#fff!important}
.ops-payment-history.report-search-page .flow-heading h1{margin:0 0 1px;font-size:19px;line-height:1.15;color:#153d31}
.ops-payment-history.report-search-page .flow-heading p{margin:0;font-size:10px;line-height:1.3;color:#60736c}
.ops-payment-history.report-search-page .ops-page-kicker{font-size:9px;line-height:1.2;color:#17745a}
.ops-payment-history.report-search-page>.ops-table-card{margin:0!important;border:1px solid #dce8e3!important;border-radius:10px!important;background:#fff!important;overflow:hidden}
.ops-payment-history.report-search-page>.ops-table-card .flow-table-wrap{margin:0!important;border:0!important;border-radius:0!important;max-height:calc(100vh - 250px);overflow:auto}
.ops-payment-history.report-search-page>[data-error]:empty{display:none}
.ops-payment-history.report-search-page>[data-error]{margin:0;color:#b42318;font-size:10.5px;font-weight:700}

@media(max-width:1100px){
  .report-search-unified__primary{grid-template-columns:125px 125px minmax(180px,1fr)}
  .report-search-unified__primary .report-search-unified__wide{grid-column:span 1}
  .report-search-unified__more-grid{grid-template-columns:repeat(3,minmax(145px,1fr))}
}
@media(max-width:760px){
  .report-search-unified{padding:8px}
  .report-search-unified__head{align-items:flex-start;flex-direction:column}
  .report-search-unified__actions{width:100%;justify-content:flex-end}
  .report-search-unified__primary,.report-search-unified__more-grid{grid-template-columns:1fr 1fr}
  .report-search-unified__wide{grid-column:1/-1!important}
  .report-search-unified__result-search{grid-template-columns:1fr;gap:3px}
}
@media(max-width:520px){
  .report-search-unified__primary,.report-search-unified__more-grid{grid-template-columns:1fr}
  .report-search-unified__actions{display:grid;grid-template-columns:1fr 1fr}
}
