/* Daily summary and its report actions share the full content width. */
#workspace#workspace#workspace#workspace#workspace[data-br283-view="daily"] #body>.br963-store-summary,
#workspace#workspace#workspace#workspace#workspace[data-br283-view="daily"] #body .br1048-summary-row,
#workspace#workspace#workspace#workspace#workspace[data-br283-view="daily"] #body>.br963-table-heading {
  width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;
  margin-inline:0!important;
}
#workspace#workspace#workspace#workspace#workspace[data-br283-view="daily"] #body .br1048-summary-row {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important;
}
#workspace#workspace#workspace#workspace#workspace[data-br283-view="daily"] #body>.br963-table-heading {
  justify-content:space-between!important;gap:12px 16px!important;align-items:center!important;
}
#workspace#workspace#workspace#workspace#workspace[data-br283-view="daily"] #body>.br963-table-heading>.br306-report-actions {
  margin:0 0 0 auto!important;gap:8px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;
}
#workspace#workspace#workspace#workspace#workspace[data-br283-view="daily"] .br306-report-actions>button {
  min-height:36px!important;white-space:nowrap!important;margin:0!important;
}

/* This dialog belongs to the daily report only; existing popups are unchanged. */
dialog#br-daily-report-r12 {
  position:fixed!important;inset:0!important;margin:auto!important;box-sizing:border-box!important;
  width:calc(100vw - 28px)!important;max-width:1480px!important;min-width:0!important;
  height:calc(100dvh - 28px)!important;max-height:960px!important;padding:0!important;
  border:1px solid #2f7892!important;border-radius:8px!important;color:#e9f8ff!important;
  background:#061827!important;overflow:hidden!important;box-shadow:0 18px 60px #0009!important;
  transform:none!important;
}
dialog#br-daily-report-r12[open] {display:flex!important;flex-direction:column!important;}
dialog#br-daily-report-r12::backdrop {background:rgb(0 8 16 / 65%);}
#br-daily-report-r12>.br-report-r12-header {
  flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 14px;border-bottom:1px solid #245268;background:#0a2334;
}
#br-daily-report-r12 .br-report-r12-header>h2 {margin:0;color:#66e8ee;font-size:18px;line-height:1.4;white-space:nowrap;}
#br-daily-report-r12 .br-report-r12-header>button {margin:0;min-height:34px;padding:6px 12px;white-space:nowrap;font-size:13px;}
#br-daily-report-r12>.br-report-r12-stage {position:relative;flex:1;min-height:0;min-width:0;}
#br-daily-report-r12 .br-report-r12-frame {display:block;border:0;width:100%;height:100%;min-width:0;background:#061827;}
#br-daily-report-r12 .br-report-r12-status {position:absolute;inset:0;margin:0;padding:28px;color:#c6e5ef;}
#br-daily-report-r12 .br-report-r12-status[hidden] {display:none;}

/* A same-origin report fills the dialog; no duplicate header, menus or alert rail. */
html[data-br-report-embed="r12"],html[data-br-report-embed="r12"] body {margin:0!important;min-width:0!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;}
html[data-br-report-embed="r12"] body {display:flex!important;flex-direction:column!important;}
html[data-br-report-embed="r12"] body>header,
html[data-br-report-embed="r12"] #workspace>aside,
html[data-br-report-embed="r12"] #rightSidebar,
html[data-br-report-embed="r12"] #br442-top-alerts,
html[data-br-report-embed="r12"] #seedApprovalAlert,
html[data-br-report-embed="r12"] #workspace>.content>.heading {display:none!important;}
html[data-br-report-embed="r12"] #notice:empty {display:none!important;}
html[data-br-report-embed="r12"] #workspace#workspace#workspace#workspace#workspace:not([hidden]) {
  display:block!important;flex:1 1 0!important;grid-template-columns:minmax(0,1fr)!important;
  margin:0!important;padding:0!important;min-width:0!important;width:100%!important;max-width:none!important;
  height:auto!important;min-height:0!important;max-height:none!important;border:0!important;
}
html[data-br-report-embed="r12"] #workspace#workspace#workspace#workspace#workspace>.content {
  display:block!important;grid-column:auto!important;grid-row:auto!important;box-sizing:border-box!important;
  width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:12px 8px!important;overflow-y:auto!important;overflow-x:hidden!important;
}
@media(max-width:600px) {
  #workspace#workspace#workspace#workspace#workspace[data-br283-view="daily"] #body .br1048-summary-row {grid-template-columns:minmax(0,1fr)!important;}
  dialog#br-daily-report-r12 {width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;}
  #br-daily-report-r12>.br-report-r12-header {padding:8px;gap:8px;}
  #br-daily-report-r12 .br-report-r12-header>h2 {font-size:16px;}
  #br-daily-report-r12 .br-report-r12-header>button {padding:6px 8px;font-size:12px;}
}

/* The current central workspace is used for both reports. */
#workspace#workspace#workspace>.content>#br-daily-report-return-r13 {
 display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 12px!important;
 padding:0!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;
}
#br-daily-report-return-r13>button {
 margin:0!important;min-height:36px!important;padding:7px 12px!important;white-space:nowrap!important;
 color:#a5f5e7!important;background:#123d3a!important;border:1px solid #2a9c8d!important;
}
