/* Shared read-only workspaces. Panel geometry is independent of record content. */
.search-v2, .reports-v2 { min-width: 0; padding: 0; color: var(--text); }
:is(.search-v2, .reports-v2) * { letter-spacing: 0; }
:is(.search-v2, .reports-v2) .panel { border: 0; border-radius: 0; box-shadow: none; padding: 16px; background: var(--surface); }
:is(.search-v2, .reports-v2) h2 { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
:is(.search-v2, .reports-v2) .module-toolbar { gap: 12px; margin-bottom: 12px; }
:is(.search-v2, .reports-v2) .module-toolbar > div { min-width: 0; }
:is(.search-v2, .reports-v2) .inline-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; }
:is(.search-v2, .reports-v2) .inline-field > span { font-size: 12px; font-weight: 600; }
:is(.search-v2, .reports-v2) input, :is(.search-v2, .reports-v2) select { width: 100%; min-width: 0; }
:is(.search-v2, .reports-v2) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: normal; }
:is(.search-v2, .reports-v2) .btn-primary img { filter: invert(1); }
:is(.search-v2, .reports-v2) .btn img { flex-shrink: 0; }
:is(.search-v2, .reports-v2) .empty-state { display: grid; place-content: center; justify-items: center; gap: 16px; min-height: 180px; border: 0; font-size: 14px; font-weight: 500; }
:is(.search-v2, .reports-v2) .pager-row { flex-wrap: nowrap; font-variant-numeric: tabular-nums; }
:is(.search-v2, .reports-v2) .status-chip { white-space: normal; font-size: 12px; max-width: 110px; }
:is(.search-v2, .reports-v2) .detail-stack { display: block; }
:is(.search-v2, .reports-v2) .detail-row { display: grid; grid-template-columns: minmax(80px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f3; background: transparent; border-radius: 0; }
:is(.search-v2, .reports-v2) .detail-row span { color: var(--muted); font-size: 12px; text-transform: none; font-weight: 500; }
:is(.search-v2, .reports-v2) .detail-row strong { font-weight: 550; font-size: 13px; overflow-wrap: anywhere; white-space: normal; }
.record-detail-actions, .report-output-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.record-detail-actions > button { flex: 1; }
.record-feedback { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.record-feedback:empty { display: none; }
.search-v2 .search-filter-panel { margin-bottom: 1px; border-bottom: 1px solid var(--line); }
.search-filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 12px; }
.search-query-field { grid-column: span 2; }
.search-v2 .search-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, .38fr); align-items: stretch; gap: 1px; background: var(--line); }
.search-v2 .search-row-list { display: block; min-height: 320px; max-height: max(320px, calc(100dvh - 410px)); padding: 0; }
.search-v2 .search-row { border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 0; background: #fff; gap: 14px; padding: 14px 10px; grid-template-columns: minmax(95px, .28fr) minmax(0, 1fr) minmax(100px, auto); }
.search-v2 .search-row[aria-pressed=true] { background: #eef5fc; border-left-color: var(--blue); }
.search-v2 .search-row strong { font-size: 14px; font-weight: 650; }
.search-v2 .search-row small { font-weight: 450; line-height: 1.4; }
.search-v2 .search-row strong, .search-v2 .search-row small { overflow-wrap: anywhere; white-space: normal; }
.search-v2 .search-row-amount { font-variant-numeric: tabular-nums; }
.search-v2 .search-row:hover { background: #f4f8fc; }
.search-v2 .search-detail-panel { max-height: calc(100dvh - 130px); overflow-y: auto; }
.reports-v2 .reports-layout { grid-template-columns: 210px minmax(0, 1fr) 270px; gap: 1px; align-items: stretch; background: var(--line); }
.reports-v2 .reports-menu-list { min-height: 320px; max-height: calc(100dvh - 250px); padding: 0; gap: 22px; }
.reports-v2 .reports-menu-search { margin-bottom: 16px; }
.reports-v2 .reports-menu-section { gap: 2px; }
.reports-v2 .reports-menu-section h3 { padding: 0 8px 8px; font-size: 11px; }
.reports-v2 .reports-menu-button { min-height: 40px; border: 0; border-left: 3px solid transparent; border-radius: 0; padding: 10px 8px; gap: 4px; display: flex; flex-wrap: wrap; background: transparent; }
.reports-v2 .reports-menu-button span { white-space: normal; font-size: 13px; font-weight: 550; }
.reports-v2 .reports-menu-button small { font-size: 11px; font-weight: 500; color: #88600b; }
.reports-v2 .reports-menu-button.is-active { background: #eef5fc; border-left-color: var(--blue); }
.reports-v2 .reports-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.reports-v2 .reports-filter-grid .inline-field { grid-template-columns: minmax(0, 1fr); }
.reports-v2 .reports-query-field { grid-column: auto; }
.report-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.reports-v2 .reports-result-head { display: grid; gap: 14px; }
.reports-v2 .summary-chips { display: flex; flex-wrap: wrap; gap: 14px 20px; padding: 0; }
.reports-v2 .summary-chips[hidden] { display: none; }
.reports-v2 .chip { padding: 0; border: 0; background: transparent; border-radius: 0; min-width: 70px; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.reports-v2 .chip span { font-size: 11px; font-weight: 500; }
.reports-v2 .reports-pager { justify-content: space-between; margin: 0; }
.reports-v2 .reports-table-shell { border-radius: 0; border: 0; min-height: 320px; max-height: max(320px, calc(100dvh - 475px)); }
.reports-v2 .reports-table { min-width: 680px; width: 100%; }
.reports-v2 .reports-table th { position: sticky; top: 0; z-index: 1; font-size: 11px; background: #f1f5f8; color: #526176; text-transform: none; }
.reports-v2 .reports-table td { padding: 12px 10px; font-size: 13px; font-weight: 450; }
.reports-v2 .reports-table th, .reports-v2 .reports-table td { white-space: normal; min-width: 82px; }
.reports-v2 .reports-table td.numeric { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.reports-v2 .reports-cell-button { font-weight: 550; color: #184eb4; text-align: left; min-height: 32px; overflow-wrap: anywhere; }
.reports-v2 .reports-table tr.is-selected { background: #eef5fc; box-shadow: inset 3px 0 var(--blue); }
.reports-v2 .reports-table tbody tr { cursor: pointer; }
.reports-v2 .reports-table tbody tr:hover { background: #f4f8fc; }
.reports-v2 .reports-detail-panel { overflow-y: auto; max-height: calc(100dvh - 130px); }
.report-mobile-rows { display: none; }
@media screen and (min-width: 1081px) and (max-width: 1550px) {
  .reports-v2 .reports-layout { grid-template-columns: 180px minmax(0, 1fr) 235px; }
  :is(.search-v2, .reports-v2) .panel { padding: 12px; }
  .search-filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media screen and (max-width: 1080px) {
  .module-host :is(.search-v2, .reports-v2) { display: block; padding: 0; }
  .module-host :is(.search-layout, .reports-layout) { display: block; background: transparent; }
  .module-host :is(.search-v2, .reports-v2) .panel { width: 100%; padding: 12px 0; min-width: 0; max-height: none; overflow: visible; background: transparent; }
  .module-host :is(.search-v2, .reports-v2) .module-toolbar { display: flex; flex-direction: row; align-items: center; }
  .module-host :is(.search-filter-grid, .reports-filter-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .module-host .search-query-field, .module-host .reports-query-field { grid-column: 1 / -1; }
  .module-host #searchV2Find { grid-column: 1 / -1; }
  .module-host .reports-filter-grid .inline-field { grid-template-columns: minmax(0, 1fr); }
  .module-host :is(.search-row-list, .reports-menu-list, .reports-table-shell) { min-height: 160px; height: auto; max-height: none; overflow: visible; }
  .module-host .search-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 8px; }
  .module-host .search-row-party { grid-column: 1 / -1; grid-row: 2; }
  .module-host .search-row-amount { grid-column: 2; grid-row: 1; max-width: 150px; }
  .module-host .search-row-main { grid-column: 1; grid-row: 1; }
  .module-host .reports-menu-button { min-height: 48px; }
  .module-host .reports-menu-button span { font-size: 15px; }
  .module-host .reports-table { display: none; }
  .report-mobile-rows { display: grid; }
  .report-mobile-row { padding: 16px 10px; color: var(--text); font: inherit; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 0; background: #fff; min-width: 0; }
  .report-mobile-row[aria-pressed=true] { border-left-color: var(--blue); background: #eef5fc; }
  .report-mobile-row-title { display: flex; gap: 12px; justify-content: space-between; align-items: start; margin-bottom: 14px; }
  .report-mobile-row-title strong { font-size: 15px; overflow-wrap: anywhere; }
  .report-mobile-row-title small { font-size: 12px; color: #415366; }
  .report-mobile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .report-mobile-facts > span { display: grid; gap: 4px; min-width: 0; }
  .report-mobile-facts small { font-size: 11px; color: var(--muted); }
  .report-mobile-facts strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .module-host .record-detail-actions, .module-host .report-output-actions { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .module-host .reports-result-head { margin-top: 0; }
  .module-host :is(.search-v2, .reports-v2) .detail-row { padding: 14px 0; }
  .module-host :is(.search-v2, .reports-v2) .detail-row strong { font-size: 14px; }
}
.report-preview-dialog { width: min(1000px, 96vw); height: 90dvh; max-height: 90dvh; padding: 12px; border: 1px solid #cbd5df; border-radius: 6px; }
.report-preview-dialog::backdrop { background: #0007; }
.report-preview-dialog header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.report-preview-dialog h2 { margin: 0 auto 0 0; font-size: 18px; }
.report-preview-dialog iframe { width: 100%; height: calc(100% - 56px); border: 1px solid #dce3ea; }
