.ret-controls{flex-shrink:0}.ret-query{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:6px 0}.ret-query label{display:flex;gap:5px;align-items:center;margin:0;white-space:nowrap}.ret-query input,.ret-query select{width:133px;height:30px;padding:3px 6px;font-size:13px}.ret-query .ret-keyword{flex:1;min-width:230px}.ret-keyword input{width:100%;min-width:0}.ret-query #rq-type{width:145px}.ret-query #rq-status{width:105px}.ret-balance{font-size:13px;white-space:nowrap}.ret-export-bar{gap:5px!important;flex-wrap:wrap}.ret-export-bar label{margin:0;white-space:nowrap;font-size:12px}.ret-export-bar input[type=checkbox]{width:auto}.ret-list{padding:0!important;min-height:0;flex:1;overflow:auto}.ret-table th,.ret-table td{height:35px;padding:3px 6px!important;white-space:nowrap;vertical-align:middle;overflow:hidden;text-overflow:ellipsis}.ret-table th{position:sticky;top:0;z-index:8}.ret-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ret-link{border:0;background:none;font:inherit;padding:0;color:#3b6081;cursor:pointer;text-align:left}.ret-sort{border:0;background:none;color:#60798d;padding:0 4px;cursor:pointer;font-size:12px}.ret-actions{display:flex;align-items:center;gap:3px;white-space:nowrap}.ret-actions .btn{padding:3px 5px;font-size:12px;min-height:25px}.ret-thumb{display:block;width:28px;height:28px;object-fit:contain;cursor:zoom-in}.ret-group-total{float:right;margin-left:15px}.ret-detail{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}.ret-detail dt{color:var(--muted)}.ret-detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.ret-edit-heading{display:flex;align-items:center;gap:12px;flex-shrink:0}.ret-edit-heading h3{margin:0}.ret-edit-heading span{color:var(--muted);font-size:12px}.ret-edit-unified{display:flex;gap:8px;align-items:center;margin:8px 0;flex-shrink:0}.ret-edit-unified label{display:flex;gap:6px;align-items:center;margin:0;white-space:nowrap}.ret-edit-unified select{width:140px}.ret-edit-unified>input{width:200px}.ret-edit-body{flex:1;min-height:0;overflow:auto}.ret-edit-table{width:1800px}.ret-edit-table td{vertical-align:middle;white-space:normal}.ret-edit-table th{position:sticky;top:0;background:#e8edf2;z-index:3}.ret-edit-table input{height:31px;padding:4px 6px;font-size:13px;min-width:90px}.ret-edit-table td:first-child{min-width:180px}.ret-edit-table td:first-child div{font-size:12px;color:var(--muted)}.ret-edit .modal-actions{flex-shrink:0}.ret-table .layout-action{background:#fff}.ret-list .chk input{width:16px;height:16px;margin:0;vertical-align:middle}
@media(max-width:700px){.ret-query{gap:6px}.ret-query .ret-keyword{flex-basis:100%}.ret-query input,.ret-query select{min-height:36px}.ret-export-bar{overflow-x:auto;flex-wrap:nowrap!important;max-width:100%;padding-bottom:4px}.ret-export-bar>*{flex-shrink:0}.ret-table td,.ret-table th{height:42px}.ret-actions .btn{min-height:32px}.ret-detail{grid-template-columns:75px minmax(0,1fr)}.ret-edit-heading{display:block}.ret-edit-unified{flex-wrap:wrap}.ret-edit-unified>input{width:160px;flex:1}.ret-edit-table{width:1600px}.ret-edit-table input{min-height:40px}.ret-group-total{float:none;display:inline;margin-left:8px}}

.ret-mobile-action{display:none}.ret-controls .row>.flex1{min-width:0}
@media(max-width:700px){.ret-actions>.btn{display:none}.ret-actions>.ret-mobile-action{display:inline-block;width:72px;min-height:36px}}

@media(max-width:700px){
 .wrap:has(.ret-list){height:100dvh;min-height:0;padding-bottom:calc(64px + env(safe-area-inset-bottom));overflow:hidden}
 #tab-body:has(.ret-list){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:4px}
 #tab-body>.ret-controls{padding:6px 8px;margin:0}
 .ret-controls .mobile-factory-row{gap:4px}.ret-controls .mobile-factory-row>.flex1{flex:1}
 .ret-controls .mobile-factory-row>.btn{flex:0;white-space:nowrap;padding:4px 7px;min-height:34px}
 .ret-controls .mobile-factory{font-size:12px}.ret-controls .mobile-factory select{margin:2px 0 4px;min-height:34px}
 .ret-query label{font-size:12px}.ret-query input,.ret-query select{height:34px;min-height:34px;font-size:14px}
 .ret-query{gap:4px;margin:4px 0}.ret-query .ret-keyword{flex-basis:100%;min-width:0}
 .ret-list.card.scroll{flex:1;min-height:160px;overflow:auto;margin:0}
 .ret-table .btn,.ret-table .tag{white-space:nowrap}.ret-table th,.ret-table td{font-size:13px}
 .ret-edit .ret-edit-body{overflow:auto}.ret-edit-table{table-layout:fixed}
}
@media(max-width:700px){
 .ret-table{border-collapse:separate;border-spacing:0}
 .ret-table .layout-leading{position:sticky;left:0;z-index:4;background:#fff}
 .ret-table .layout-action{position:sticky;right:0;z-index:4;background:#fff;box-shadow:inset 1px 0 #cbd6e2}
 .ret-table th.layout-leading,.ret-table th.layout-action{z-index:9;background:var(--table-head,#e8edf3)}
 .ret-table .month-row .layout-leading{background:#526b82;color:#fff}.ret-table .batch-row .layout-leading{background:#eeece5}
}
