.issue-material-body .mr-record-panel{margin-top:0;padding:12px 16px 10px;min-height:0}.issue-material-body [hidden]{display:none!important}.mr-tab-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;margin:0;background:#fff;border:1px solid #dce5ef;border-bottom:0;border-radius:6px 6px 0 0}.mr-record-tabs{display:flex;gap:18px}.mr-record-tabs button{background:none;border:0;border-radius:0;color:#60728d;padding:8px 0;width:auto;font-size:14px;border-bottom:2px solid transparent}.mr-record-tabs button[aria-pressed=true]{color:#175cd3;border-bottom-color:#175cd3;font-weight:600}.mr-record-panel .material-filter-strip{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 6px;padding:0}.mr-record-panel .material-filter-strip>input{flex:1 1 220px}.mr-record-panel .material-filter-strip>select{flex:0 1 145px;width:145px}.mr-record-panel .material-filter-strip>button{width:auto}.mr-date-filter{display:flex!important;align-items:center;gap:4px;white-space:nowrap;margin:0!important;color:#526780;font-size:12px}.mr-date-filter input{width:125px!important;min-width:0!important}.mr-record-panel .app-list-sort-summary{margin:4px 0 8px}.mr-record-panel table{table-layout:fixed;width:100%}.mr-record-panel th:nth-child(1){width:21%}.mr-record-panel th:nth-child(2){width:11%}.mr-record-panel th:nth-child(3){width:20%}.mr-record-panel th:nth-child(4){width:24%}.mr-record-panel th:nth-child(5){width:11%}.mr-record-panel th:nth-child(6){width:13%}.mr-record-panel td{vertical-align:top;padding:8px!important;overflow-wrap:anywhere}.mr-record-panel .cell-sub{line-height:1.45}.mr-record-panel .table-action-group{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.mr-record-panel .table-action-group button{width:auto;min-width:0;white-space:nowrap}.mr-record-panel .customer-fixed-list-scroll{min-height:0!important}.mr-dialog{z-index:150!important}.mr-dialog .bf-shell{width:min(920px,calc(100vw - 32px));max-height:calc(100vh - 32px)}.mr-dialog .bf-header{padding:12px 18px}.mr-dialog .bf-header h2{font-size:15px}.mr-dialog .bf-content{padding:14px 18px;overflow:auto}.mr-record-title{display:flex;justify-content:space-between;gap:16px;margin-bottom:12px}.mr-record-title strong{font-size:15px}.mr-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 22px;margin:0}.mr-detail-fields>div{display:flex;gap:10px;min-width:0}.mr-detail-fields dt{flex:0 0 76px;color:#667b96}.mr-detail-fields dd{margin:0;overflow-wrap:anywhere}.mr-detail-fields dd .cell-sub{display:inline;margin-right:6px}.mr-quantity-summary{background:#f5f8fc;padding:10px 12px;margin:12px 0;font-size:13px}.mr-detail-section{border-top:1px solid #e1e8f1;padding-top:10px;margin-top:10px}.mr-detail-section h3{font-size:13px;margin:0 0 8px}.mr-related{overflow:auto}.mr-related table{width:100%}.mr-related th,.mr-related td{padding:7px 9px;vertical-align:top}.mr-related small{display:block;color:#667b96;margin-top:3px}.mr-history{list-style:none;padding:0;margin:0}.mr-history li{padding:5px 0}.mr-history span{color:#667b96}.mr-history p{margin:3px 0;color:#526780}.mr-dialog-actions{display:flex;justify-content:flex-end;margin-top:12px;gap:8px}.mr-dialog-actions button{width:auto;min-width:120px}.mr-review-form{margin-top:10px}.mr-review-form textarea{min-height:64px;max-height:130px}.mr-origin{display:flex;gap:12px;align-items:center;margin-top:12px}.material-return-form-grid .mr-return-field{display:flex;flex-direction:column;gap:5px}.mr-return-projection{grid-column:1/-1;margin:0;padding:8px 10px;background:#f5f8fc;font-size:13px}.mr-return-projection[data-error=true]{background:#fff5f4;color:#b42318}@media(max-width:700px){.mr-detail-fields{grid-template-columns:1fr}.mr-tab-header{flex-wrap:wrap}.mr-record-panel table{min-width:850px}.mr-date-filter{flex-wrap:wrap}.mr-record-panel .material-filter-strip>select{flex:1 1 135px}.mr-dialog .bf-shell{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}}
/* Keep the shared pager's automatic mode compact when only a few records match. */
body .issue-material-body .mr-record-panel .list-page-scroll[data-page-size-mode="auto"]{min-height:0!important}
body .issue-material-body .mr-record-panel .mr-expense-inline .cell-main,body .issue-material-body .mr-record-panel .mr-expense-inline .cell-sub{display:inline;font-weight:400;font-size:12px;line-height:1.45}
body .issue-material-body .mr-record-panel .mr-expense-inline .cell-sub::before{content:' / '}
body .issue-material-body .mr-tab-header{margin:0;padding:6px 16px;min-height:0}
body .material-issue-dialog #returnForm>.mr-return-projection{grid-column:1/-1}
body .material-issue-dialog #returnForm>.mr-return-pending{grid-column:1/-1}
body .material-issue-dialog #returnForm>.mr-return-read-status{grid-column:1/-1;padding:8px 10px;background:#f5f8fc;font-size:13px;line-height:1.5}
body .material-issue-dialog #returnForm>.mr-return-read-status[data-state=error]{background:#fff5f4;color:#b42318}
body .material-issue-dialog #returnForm>.mr-return-read-status[hidden]{display:none}
body .material-issue-dialog #returnForm>.mr-return-read-status button{width:auto;margin:0 0 0 8px}
body .material-issue-dialog #returnForm>button[type=submit]:disabled{opacity:.55;cursor:not-allowed}
body .material-issue-dialog #returnForm>.return-usage-search-select{grid-column:1/-1}
body .bf-modal.mr-dialog .bf-shell{width:min(920px,calc(100vw - 32px));min-height:0;height:auto;max-height:calc(100vh - 32px)}
body .bf-modal.mr-dialog .bf-header h2{font-size:15px;margin:0}
body .bf-modal.mr-dialog .bf-content{font-size:13px}
body .bf-modal.mr-dialog .mr-detail-section p.muted{margin:5px 0}
body .bf-modal.mr-dialog .mr-review-form textarea{min-height:64px;height:64px;font-size:13px;font-weight:400}
@media(min-width:701px) and (max-width:1500px){
  body .issue-material-body .mr-record-panel .usage-record-filter-strip>input{flex:1 1 170px;min-width:150px}
  body .issue-material-body .mr-record-panel .usage-record-filter-strip>select{flex:0 1 102px;width:102px;min-width:90px;padding-left:7px;padding-right:4px}
  body .issue-material-body .mr-record-panel .usage-record-filter-strip>.mr-date-filter input{width:105px!important;padding-left:5px;padding-right:3px}
  body .issue-material-body .mr-record-panel .usage-record-filter-strip>button{min-width:0;width:auto;padding-left:9px;padding-right:9px}
}
@media(min-width:701px) and (max-width:1500px){
  body .issue-material-body .mr-record-panel .usage-record-filter-strip>.mr-date-filter input{width:125px!important}
  body .issue-material-body .mr-record-panel #usageRecordOutstandingFilter{width:120px;flex-basis:120px}
  body .issue-material-body .mr-record-panel #usageRecordRequesterFilter{width:110px;flex-basis:110px}
}
/* The material rows now have six cells; keep the mobile card order aligned. */
.mr-date-error{color:#b42318;max-width:210px;white-space:normal;line-height:1.35}.mr-date-error[hidden]{display:none}.mr-pending-return{color:#8a570d}.mr-return-pending{grid-column:1/-1}.mr-pending-return-note{padding:8px 10px;background:#fff9ef;border-left:2px solid #d4a252;font-size:13px;line-height:1.5}.mr-pending-return-note p{margin:0 0 4px}.mr-pending-return-note summary{cursor:pointer;color:#175cd3}.mr-pending-return-note ul{margin:7px 0 0;padding-left:18px}.mr-pending-return-note li+li{margin-top:6px}
.material-return-switch-dialog{width:min(430px,calc(100vw - 32px));border:1px solid #dce5ef;border-radius:8px;padding:18px;color:#1d3553;box-shadow:0 18px 55px #172b4d33}.material-return-switch-dialog::backdrop{background:#132c4c55}.material-return-switch-dialog h3{font-size:15px;margin:0 0 12px}.material-return-switch-dialog p{font-size:14px;line-height:1.65;margin:0 0 18px}.material-return-switch-dialog>div{display:flex;justify-content:flex-end;gap:8px}.material-return-switch-dialog button{width:auto;min-width:80px}
@media(max-width:700px){
  body .mobile-system-shell .issue-material-body .mr-record-panel table{min-width:0}
  body .mobile-system-shell .issue-material-body :is(#material-usage-table-section,#material-return-table-section).mr-record-panel table tbody>tr:is(.material-usage-row,.material-return-row)>td:nth-child(n){grid-column:1/-1;grid-row:auto;background:transparent;padding:2px 0!important}
  body .mobile-system-shell .issue-material-body :is(#material-usage-table-section,#material-return-table-section).mr-record-panel table tbody>tr:is(.material-usage-row,.material-return-row)>td:nth-child(n)::before{content:none}
}
