/* date-layout-20261029 */
body #history-search,body #order-dates{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;gap:16px;padding:20px;background:#fff;border:1px solid #eee;border-radius:12px}
body #history-search .field,body #order-dates .field,body #history-search .field:first-child{display:flex;flex-direction:column;gap:8px;flex:1 1 180px;min-width:180px;max-width:100%;margin:0}
body #history-search input,body #history-search select,body #order-dates input,body #order-dates select{box-sizing:border-box;width:100%;min-width:0;height:42px;margin:0}
body #history-search .btn,body #order-dates .btn{flex:0 0 auto;min-height:42px;margin:0;white-space:nowrap}
input[type=date]{box-sizing:border-box;font-variant-numeric:tabular-nums}
@media(max-width:600px){body #history-search .field,body #order-dates .field,body #history-search .field:first-child{flex:1 1 100%;min-width:0}body #history-search,body #order-dates{padding:14px;gap:14px}}

/* history-date-filter-20261112-v1: keep date segments out of generic full-width input sizing. */
body #history-search{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;align-items:end}
body #history-search .field,body #history-search .field:first-child{width:100%;min-width:0;max-width:100%;margin:0}
body #history-search .history-date-field .xf-date-entry{box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;width:100%;min-width:0;max-width:100%;height:44px;padding:0 8px;gap:4px}
body #history-search .xf-date-entry input.xf-date-part{box-sizing:content-box;flex:0 0 2.5ch;width:2.5ch;min-width:2.5ch;max-width:none;height:34px;min-height:0;margin:0;padding:0 2px;font-size:14px;line-height:34px;text-align:center;font-variant-numeric:tabular-nums;border:0}
body #history-search .xf-date-entry input.xf-date-year{flex:0 0 5ch;width:5ch;min-width:5ch}
body #history-search .xf-date-entry input.xf-date-native{position:absolute;width:1px;min-width:0;max-width:1px;height:1px;min-height:0;padding:0;opacity:0;pointer-events:none}
body #history-search .xf-date-entry>span{flex:0 0 auto;font-size:12px;white-space:nowrap}
body #history-search .xf-date-entry>button{box-sizing:border-box;flex:0 0 32px;width:32px;min-width:32px;height:36px;min-height:0;margin:0 0 0 auto;padding:4px}
body #history-search .history-filter-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
body #history-search .history-filter-actions .btn{flex:0 0 auto;min-height:42px}
body #history-search .history-date-hint{grid-column:1/-1;margin:0;color:#666;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body #history-search .history-date-hint strong{font-weight:600;color:#333;font-variant-numeric:tabular-nums}
@media(max-width:600px){body #history-search{grid-template-columns:minmax(0,1fr);padding:14px;gap:14px}}
