/* F90 order history search and responsive transaction layout */
.f90-record-search-wrap{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:18px 0 20px;padding:17px;border:1px solid var(--f90-strong-border,var(--line));border-radius:18px;background:linear-gradient(135deg,var(--surface),var(--surface2))}
.f90-record-search-wrap .field{flex:1 1 250px;margin:0;min-width:0}
.f90-record-search-wrap input{width:100%;min-height:47px;border-radius:12px}
.f90-record-search-wrap [role="status"]{flex:1 1 170px;line-height:1.7}
.f90-search-empty{padding:22px 16px;border:1px dashed var(--accent);background:color-mix(in srgb,var(--accent) 6%,var(--surface));border-radius:14px;text-align:center;color:var(--muted);line-height:1.8}
.f90-search-empty[hidden]{display:none!important}
#historyRecords .record[hidden]{display:none!important}
#historyRecords .record{min-width:0;gap:13px}
#historyRecords .record .record-main{flex:1;min-width:0}
#historyRecords .record .record-price{flex:0 1 auto;text-align:left;overflow-wrap:anywhere}
#historyRecords .record h3{overflow-wrap:anywhere}
.pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin-top:24px}
.pagination .button{min-width:80px}
:root[data-theme="cream"] .f90-record-search-wrap{border-color:#d9bdc0}
@media(max-width:600px){.f90-record-search-wrap{padding:12px;gap:8px}.f90-record-search-wrap .field{flex-basis:100%}.f90-record-search-wrap [role="status"]{flex-basis:100%}#historyRecords .record{flex-wrap:wrap;padding:14px 12px}#historyRecords .record .record-price{margin-inline-start:auto}}


/* Three distinct customer histories: service orders, deposits, wallet ledger. */
.f90-history-view{width:min(100%,900px);margin:0 auto 26px;min-width:0}
.f90-history-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 18px}
.f90-history-nav a{display:grid;place-items:center;min-height:42px;padding:6px;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--surface2);text-decoration:none;font-size:13px;font-weight:700}
.f90-history-nav a[aria-current="page"]{background:color-mix(in srgb,var(--accent) 18%,var(--surface));border-color:var(--accent);color:var(--accent)}
.f90-history-tools{display:flex;align-items:center;gap:11px;margin:0 0 13px}
.f90-history-tools input{flex:1;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:13px;padding:10px 13px;background:var(--surface2);color:var(--text);font-size:16px}
.f90-history-tools small{font-size:12px;color:var(--muted);white-space:nowrap}
.f90-history-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.f90-history-filters button{border:1px solid var(--line);background:var(--surface2);color:var(--text);padding:8px 13px;border-radius:99px;font-weight:650;font-size:12px;cursor:pointer}
.f90-history-filters button[aria-pressed="true"]{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,var(--surface2))}
#f90HistoryView #historyRecords{display:grid;gap:9px}
#f90HistoryView .f90-history-entry{display:flex;align-items:center;min-width:0;gap:12px;padding:12px 15px;border-radius:15px;border:1px solid var(--line);background:var(--surface);color:var(--text);text-decoration:none;box-shadow:0 4px 18px #0001}
#f90HistoryView .f90-history-entry .record-image{width:49px;height:49px;min-width:49px;border-radius:11px;object-fit:contain}
.f90-history-entry-main{display:grid;gap:4px;min-width:0;flex:1}
.f90-history-entry-title{display:flex;align-items:center;gap:7px;justify-content:space-between;min-width:0;flex-wrap:wrap}
.f90-history-entry-title h3{font-size:clamp(13px,2vw,16px);line-height:1.4;margin:0;overflow-wrap:anywhere;flex:1;min-width:100px}
.f90-history-entry-title .badge{margin:0}
.f90-history-entry-main>small{color:var(--muted);font-size:11px;line-height:1.5}
.f90-history-entry .f90-history-sum{color:var(--accent);font-size:clamp(15px,3.2vw,20px);line-height:1.4;direction:ltr;text-align:right;justify-self:start}
.f90-history-open{color:var(--accent);font-size:25px}
.f90-history-more{margin-top:4px;font-size:12px;color:var(--muted)}
.f90-history-more summary{font-size:11px;color:var(--muted)}
.f90-history-more p{margin:7px 0 3px;line-height:1.6}
.f90-history-type{border:1px solid var(--line);border-radius:20px;padding:3px 11px;font-size:12px}
.f90-history-salary-group{display:grid;gap:9px;border-top:1px solid var(--line);padding-top:18px;margin-top:12px}
.f90-history-salary-group h2{font-size:17px;margin:2px 0 5px}
.f90-history-salary-group>.records{display:grid;gap:9px}
.f90-history-no-records{font-size:13px;color:var(--muted);text-align:center;padding:24px}
#f90HistoryView .record[hidden]{display:none!important}
@media(max-width:560px){
.f90-history-view{padding:0 2px}
.f90-history-nav{gap:5px}
.f90-history-nav a{font-size:12px;min-height:39px}
.f90-history-filters{gap:6px}
.f90-history-filters button{font-size:11px;padding:7px 11px}
.f90-history-tools{flex-wrap:wrap}
.f90-history-tools small{width:100%}
#f90HistoryView .f90-history-entry{padding:12px 11px;gap:8px}
#f90HistoryView .f90-history-entry .record-image{width:41px;height:41px;min-width:41px}
}
