/* HF01H · common report search/filter pattern */
#page-content[data-page^="report-"] .rsx-standard,
#page-content[data-page="ar-receipt-history"] .rsx-standard,
#page-content[data-page="finance-tax-report"] .rsx-standard,
#page-content[data-page="finance-wht-report"] .rsx-standard{
  display:block!important;width:100%;padding:14px!important;margin:0 0 14px!important;
  border:1px solid #d7e4df!important;border-radius:14px!important;background:#fff!important;
  box-shadow:0 4px 16px rgba(25,70,58,.045)!important;box-sizing:border-box;
}
.rsx-shell{display:grid;gap:10px;width:100%}
.rsx-primary{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,1.55fr) minmax(190px,.8fr) auto;gap:10px;align-items:stretch}
.rsx-step{min-width:0;display:flex;flex-direction:column;gap:7px;padding:0 12px 10px;border-right:1px solid #e4eeea}
.rsx-step:first-child{padding-left:0}.rsx-step-3{border-right:0}
.rsx-step-head{display:flex;align-items:center;gap:7px;min-height:28px;color:#173d35;font-size:13px;font-weight:800}
.rsx-step-no{display:inline-grid;place-items:center;width:25px;height:25px;min-width:25px;border-radius:50%;background:#0878df;color:#fff;font-size:13px;line-height:1}
.rsx-step-body{display:flex;gap:8px;align-items:end;min-width:0;flex-wrap:wrap}
.rsx-step-body>.rsx-field{flex:1 1 130px;min-width:110px;margin:0!important}
.rsx-step-2 .rsx-step-body>.rsx-field{flex:1 1 200px}
.rsx-step label,.rsx-more label{display:grid!important;gap:5px!important;color:#314c45!important;font-size:11px!important;font-weight:700!important;align-content:end}
.rsx-step label>span:first-child,.rsx-more label>span:first-child{font:inherit;color:inherit}
.rsx-step input,.rsx-step select,.rsx-more input,.rsx-more select,.rsx-more textarea{
  width:100%!important;min-width:0!important;height:39px!important;box-sizing:border-box!important;border:1px solid #cbded7!important;border-radius:8px!important;background:#fff!important;color:#193c34!important;padding:8px 10px!important;font:inherit!important;outline:none!important
}
.rsx-more textarea{height:auto!important;min-height:72px!important}
.rsx-step input:focus,.rsx-step select:focus,.rsx-more input:focus,.rsx-more select:focus,.rsx-more textarea:focus{border-color:#168a69!important;box-shadow:0 0 0 3px rgba(22,138,105,.1)!important}
.rsx-actions{display:flex;gap:8px;align-items:flex-end;justify-content:flex-end;align-self:end;padding-bottom:10px;white-space:nowrap}
.rsx-actions button{height:40px!important;border-radius:8px!important;padding:0 14px!important;font-weight:800!important;font-size:12px!important;margin:0!important;width:auto!important;min-width:76px}
.rsx-actions .rsx-reset{background:#fff!important;color:#315a50!important;border:1px solid #bfd5ce!important}
.rsx-actions .rsx-search{background:#07835e!important;color:#fff!important;border:1px solid #07835e!important;box-shadow:0 4px 12px rgba(7,131,94,.13)!important}
.rsx-actions .rsx-search:hover{background:#066f51!important}
.rsx-more{border:0!important;border-top:1px solid #e5efeb!important;padding-top:9px!important;margin:0!important;background:transparent!important}
.rsx-more>summary{display:flex!important;align-items:center!important;gap:8px!important;cursor:pointer!important;list-style:none!important;color:#173d35!important;font-size:12px!important;font-weight:800!important;padding:0!important;min-height:30px}
.rsx-more>summary::-webkit-details-marker{display:none}.rsx-more>summary:after{content:'⌄';margin-left:auto;font-size:17px;color:#52786d}.rsx-more[open]>summary:after{transform:rotate(180deg)}
.rsx-more-hint{color:#7b918a;font-weight:500;font-size:11px}
.rsx-more-grid{display:grid!important;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px!important;padding:10px 0 2px!important}
.rsx-more-grid>.rsx-field{margin:0!important;min-width:0!important}
.rsx-more-grid .tax-date-grid{display:grid!important;grid-template-columns:repeat(2,minmax(150px,1fr));gap:10px!important;grid-column:span 2}.rsx-more-grid .tax-date-grid[hidden]{display:none!important}
.rsx-more-grid label:has(input[type=checkbox]){display:flex!important;align-items:center!important;gap:8px!important;align-self:end;height:39px;padding:0 8px;border:1px solid #d9e6e1;border-radius:8px;background:#f8fbfa}.rsx-more-grid input[type=checkbox]{width:16px!important;height:16px!important;padding:0!important}
.rsx-step .tax-types{display:flex!important;gap:6px!important;flex-wrap:wrap!important}.rsx-step .tax-types button{height:39px!important;padding:0 10px!important;border-radius:8px!important}
.rsx-standard>.report-search-unified__head,.rsx-standard>.report-search-unified__primary,.rsx-standard>.report-search-unified__more,.rsx-standard>.report-search-unified__result-search{display:none!important}
.rsx-standard .cs-date-wrap{display:block!important}.rsx-standard .cs-date-wrap>span{display:none!important}.rsx-standard .cs-result-search{min-width:260px!important}
.rsx-standard .wht-search-grid,.rsx-standard .wht-search-actions{display:contents!important}
.rsx-standard legend{font-weight:800;color:#173d35}
@media(max-width:1180px){.rsx-primary{grid-template-columns:repeat(2,minmax(240px,1fr))}.rsx-step{border-right:0;border-bottom:1px solid #e4eeea;padding:0 0 10px}.rsx-actions{justify-content:flex-start}.rsx-more-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}}
@media(max-width:720px){.rsx-primary{grid-template-columns:1fr}.rsx-more-grid{grid-template-columns:1fr}.rsx-more-grid .tax-date-grid{grid-template-columns:1fr;grid-column:auto}.rsx-actions{flex-wrap:wrap}.rsx-actions button{flex:1 1 110px}.rsx-more-hint{display:none}}

.rsx-standard>legend{display:none!important}

/* HF01I · deterministic Thai date display (DD/MM/B.E.) while backend keeps ISO */
.rsx-thai-date{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;width:100%;min-width:0}
.rsx-thai-date .rsx-thai-date-input{grid-column:1 / -1;padding-right:42px!important;font-variant-numeric:tabular-nums!important;letter-spacing:.01em}
.rsx-thai-date-picker{position:absolute!important;right:4px!important;bottom:4px!important;width:31px!important;min-width:31px!important;height:31px!important;padding:0!important;border:0!important;border-left:1px solid #d7e4df!important;border-radius:5px!important;background:#f7fbf9!important;color:#315a50!important;font-size:13px!important;line-height:1!important;box-shadow:none!important}
.rsx-thai-date-picker:hover{background:#eef7f3!important;color:#087c5c!important}
.rsx-date-native{position:absolute!important;right:5px!important;bottom:5px!important;width:28px!important;height:28px!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important}
.quote-report-loading{min-height:86px;display:grid;place-items:center;color:#54756c;font-size:12px;background:linear-gradient(90deg,#fbfdfc,#f5faf8,#fbfdfc);border-radius:8px}
