/* Shared report presentation: complaint results and inline journeys. */
.report-workspace > .d-flex .mud-typography-h4 { font-size:30px; line-height:1.25; font-weight:700; letter-spacing:-.4px; }
.report-workspace > .d-flex .mud-typography-body2 { color:var(--mud-palette-text-secondary)!important; font-size:13px; margin-top:5px; }
.report-workspace .mud-button { text-transform:none; letter-spacing:0; }
.rp-filters,.rp-results { background:var(--mud-palette-surface); border:1px solid var(--mud-palette-lines-default); border-radius:12px; }
.rp-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) minmax(150px,.85fr); gap:22px; align-items:end; padding:20px; margin:24px 0 20px; }
.rp-field { min-width:0; }
.rp-field>label { display:block; margin-bottom:6px; font-size:13px; font-weight:600; }
.rp-field>label>span { color:var(--mud-palette-error); }
.rp-field .mud-input-control { margin:0; width:100%; }
.rp-field .mud-input,.rp-search .mud-input { font-size:13px; }
.rp-field .mud-input-outlined,.rp-search .mud-input-outlined { border-radius:7px; }
.rp-filters>.mud-button { min-height:38px; }
.rp-results { overflow:hidden; }
.rp-results-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 20px; }
.rp-results-header h2 { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin:0; font-size:18px; font-weight:700; }
.rp-results-header h2 span { font-size:12px; font-weight:400; color:var(--mud-palette-text-secondary); border-left:1px solid var(--mud-palette-lines-default); padding-left:14px; }
.rp-result-tools { display:flex; align-items:center; gap:14px; }
.rp-search { width:300px; max-width:100%; }
.rp-search .mud-input-control { margin:0; }
.rp-grid .mud-table-container { overflow-x:auto; }
.rp-grid .mud-table-root { table-layout:fixed; }
.rp-grid .mud-table-head .mud-table-cell { padding:12px 16px; background:var(--mud-palette-background-gray,#edf2f8); color:var(--mud-palette-text-primary); font-size:12px; font-weight:600; vertical-align:middle; }
.rp-grid .mud-table-body .mud-table-cell { padding:14px 16px; font-size:13px; line-height:1.5; vertical-align:middle; border-bottom:1px solid var(--mud-palette-lines-default); overflow-wrap:anywhere; }
.rp-grid .mud-table-head .mud-table-cell:nth-child(1) { width:14%; }
.rp-grid .mud-table-head .mud-table-cell:nth-child(2) { width:16%; }
.rp-grid .mud-table-head .mud-table-cell:nth-child(3) { width:30%; }
.rp-grid .mud-table-head .mud-table-cell:nth-child(4) { width:22%; }
.rp-grid .mud-table-head .mud-table-cell:nth-child(5),.rp-grid .mud-table-head .mud-table-cell:nth-child(6) { width:9%; }
.rp-number,.rp-customer { font-weight:600; }
.rp-date { display:inline-block; font-weight:500; white-space:nowrap; }
.rp-time { display:inline-block; font-size:12px; color:var(--mud-palette-text-secondary); margin-left:7px; white-space:nowrap; }
.rp-status { display:inline-block; padding:4px 10px; border-radius:7px; font-size:11px; line-height:1.4; font-weight:600; max-width:100%; overflow-wrap:anywhere; }
.rp-open { background:var(--mud-palette-warning-hover,#fff3dc); color:var(--mud-palette-warning-darken,#865b00); }
.rp-closed { background:var(--mud-palette-success-hover,#eaf7ee); color:var(--mud-palette-success-darken,#216b40); }
.rp-assigned { background:var(--mud-palette-primary-hover,#eaf2fc); color:var(--mud-palette-primary); }
.rp-grid .mud-table-pagination { padding:10px 16px; font-size:12px; }
/* Journey keeps its inline expansion, with the same grid hierarchy and tools. */
.report-workspace .cj-filters { padding:20px; }
.report-workspace .cj-field>label { font-size:13px; font-weight:600; }
.report-workspace .cj-results-heading { padding:18px 20px; }
.report-workspace .cj-results-heading h2 { font-size:18px; font-weight:700; }
.report-workspace .cj-results-heading h2 span { padding-left:14px; border-left:1px solid var(--mud-palette-lines-default); }
.rp-journey-tools { display:flex; align-items:center; justify-content:flex-end; gap:16px; }
.rp-journey-tools>small { font-size:11px; color:var(--mud-palette-text-secondary); }
.report-workspace .cj-table>thead>tr>th,.report-workspace .cj-events th { background:var(--mud-palette-background-gray,#edf2f8); color:var(--mud-palette-text-primary); font-size:12px; font-weight:600; padding:12px; }
.report-workspace .cj-table>tbody>tr:not(.cj-expanded)>td { padding:14px 12px; font-size:13px; line-height:1.5; vertical-align:middle; }
.report-workspace .cj-table>tbody>tr:not(.cj-expanded)>td:first-child .mud-link { font-weight:600; }
.report-workspace .cj-customer { font-weight:600; }
.report-workspace .cj-status { border-radius:7px; padding:4px 10px; }
.report-workspace .cj-events td { font-size:12px; padding:12px; }
@media(max-width:1100px) { .rp-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .rp-results-header { align-items:flex-start; flex-wrap:wrap; } .rp-result-tools { flex:1; justify-content:flex-end; } .rp-search { width:260px; } }
@media(max-width:750px) { .report-workspace > .d-flex .mud-typography-h4 { font-size:26px; } .rp-result-tools { width:100%; flex:initial; justify-content:space-between; } .rp-search { flex:1; width:auto; min-width:0; } .rp-journey-tools { width:100%; justify-content:space-between; } .rp-grid .mud-table-root { table-layout:auto; } .rp-grid .mud-table-head .mud-table-cell { width:auto!important; } }
@media(max-width:480px) { .rp-filters { grid-template-columns:1fr; gap:16px; padding:16px; } .rp-results-header { padding:16px; gap:14px; } .rp-result-tools { flex-wrap:wrap; } .rp-search { flex-basis:100%; } .rp-time { margin-left:0; display:block; } .rp-journey-tools { flex-wrap:wrap; } }

/* OTP reports retain the shared report hierarchy with five data columns. */
.rp-otp-filters { grid-template-columns:repeat(2,minmax(0,1fr)) minmax(160px,.7fr); }
.rp-otp-grid .mud-table-head .mud-table-cell:nth-child(1) { width:17%; }
.rp-otp-grid .mud-table-head .mud-table-cell:nth-child(2) { width:18%; }
.rp-otp-grid .mud-table-head .mud-table-cell:nth-child(3) { width:32%; }
.rp-otp-grid .mud-table-head .mud-table-cell:nth-child(4) { width:23%; }
.rp-otp-grid .mud-table-head .mud-table-cell:nth-child(5) { width:10%; }
.rp-otp { display:inline-block; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; font-weight:600; letter-spacing:.5px; padding:4px 9px; border-radius:6px; color:var(--mud-palette-primary); background:var(--mud-palette-primary-hover,#eaf2fc); overflow-wrap:anywhere; }
.rp-otp-page .rp-number { color:var(--mud-palette-primary); }
@media(max-width:850px) { .rp-otp-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .rp-otp-filters>.mud-button { grid-column:1/-1; justify-self:end; min-width:160px; } }
@media(max-width:480px) { .rp-otp-filters { grid-template-columns:1fr; } .rp-otp-filters>.mud-button { grid-column:auto; width:100%; } }
