.reference-daily-report{display:grid!important;grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:auto minmax(400px,1fr);gap:3px;background:#bdbdbd!important;direction:ltr;min-height:calc(100vh - 175px)}
.reference-daily-report>.page-head{grid-column:1/-1;direction:rtl;margin:0!important}.reference-daily-report .rd-sidebar{grid-column:2;grid-row:2;display:block!important;width:180px!important;max-width:180px!important;margin:0!important;padding:5px!important;box-sizing:border-box;background:#efefef;direction:rtl;border:1px solid #bbb}
.rd-sidebar [hidden]{display:none!important}.rd-controls{display:flex;flex-direction:column;gap:6px;font:12px Arial,sans-serif}.rd-controls label{display:flex;flex-direction:column;gap:4px}.rd-controls input,.rd-controls select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #9ca3a7;border-radius:0;background:#e1edc6;padding:4px;font:12px Arial,sans-serif}.rd-controls .btn{min-height:25px!important;padding:3px!important;border-radius:0!important;font:12px Arial!important}.rd-days,.rd-print{display:grid;grid-template-columns:1fr 1fr;gap:3px}.rd-spacer{min-height:130px}.rd-controls output{white-space:pre-wrap;border:1px solid #c1c1c1;padding:5px;max-height:130px;overflow:auto;background:#ffffe9}.rd-controls output[hidden]{display:none}
.reference-daily-report .rd-result{grid-column:1;grid-row:2;direction:rtl;min-width:0;background:#bdbdbd;overflow:auto}.rd-result th{background:#246ea9!important;color:#fff!important;font:12px Arial!important;white-space:nowrap;padding:3px 5px!important}.rd-result td{font:12px Arial!important;padding:2px 5px!important}.rd-result .rd-selected td{background:#087dbe!important;color:white!important}.rd-result .table-wrap{background:#bdbdbd;min-height:calc(100vh - 240px)}
@media(max-width:700px){.reference-daily-report{grid-template-columns:minmax(0,1fr) 155px}.reference-daily-report .rd-sidebar{width:155px!important;max-width:155px!important}.rd-spacer{min-height:30px}}
@media print{.reference-daily-report{display:block!important;background:#fff!important}.reference-daily-report .rd-sidebar{display:none!important}.reference-daily-report .rd-result,.rd-result .table-wrap{background:#fff!important;overflow:visible;min-height:0}.rd-result .rd-selected td{background:white!important;color:black!important}}

/* The desktop shell wraps reports after rendering; span both outer columns. */
.reference-daily-report>.vp-workspace{grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:minmax(0,1fr) 180px!important;gap:4px!important;direction:ltr!important;width:100%;min-width:0}
.reference-daily-report>.vp-workspace>.vp-main{grid-column:1;grid-row:1;min-width:0;width:100%;padding:0!important;direction:rtl}
.reference-daily-report>.vp-workspace>.vp-sidebar{grid-column:2;grid-row:1;min-width:0;width:180px!important;padding:0!important;direction:rtl}
.reference-daily-report .vp-sidebar .rd-sidebar{display:block!important;margin:0!important;width:100%!important}
body.vertex-desktop #content.reference-daily-report .rd-result table{width:100%!important;min-width:100%!important}
body.vertex-desktop #content.reference-daily-report .rd-result tfoot th{background:#fff8ca!important;color:#111!important}

.rd-result tfoot{position:sticky;bottom:0;z-index:4}.rd-result tfoot th{background:#fff8ca!important;color:#111!important}.rd-scope-note{background:#fff8ca;padding:6px;font:12px Arial;direction:rtl}
/* A stable scrollable grid preserves legible amounts when all reference fields show. */
body.vertex-desktop #content.reference-daily-report .rd-result.rd-reference-mode table{table-layout:fixed!important;min-width:1300px!important}
.rd-result.rd-reference-mode table :is(th,td):nth-child(3),.rd-result.rd-reference-mode table :is(th,td):nth-child(4),.rd-result.rd-reference-mode table :is(th,td):nth-child(5){width:110px;font-variant-numeric:tabular-nums;direction:ltr}
.rd-result.rd-reference-mode table :is(th,td):nth-child(7),.rd-result.rd-reference-mode table :is(th,td):nth-child(8),.rd-result.rd-reference-mode table :is(th,td):nth-child(9){width:170px}
/* Fixed-width report columns must never paint descriptions over amounts. */
body.vertex-desktop #content.reference-daily-report .rd-result table :is(td,th){overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap}
@media print{body.vertex-desktop #content.reference-daily-report .rd-result table :is(td,th){white-space:normal;overflow-wrap:anywhere}}
@media print{body.vertex-desktop #content.reference-daily-report .rd-result.rd-reference-mode table{min-width:0!important;table-layout:auto!important}.rd-result.rd-reference-mode table :is(th,td){width:auto!important}}

