/* V117.3.20 — unified scroll inside every table; CSS only affects presentation. */
#dcmiApp .dcmi-table-viewport,
.dcmi-table-viewport{
  box-sizing:border-box;
  display:block;
  width:100%;
  max-width:100%;
  max-height:min(58vh,540px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#c8b9a4 #f8f6f2;
}
.dcmi-table-viewport:not(.tablewrap):not(.v117-tablebox):not(.directory-table-wrap):not(.dcmi-exp-table-scroll):not(.v74-scroll){border:1px solid #eee7db;border-radius:12px;background:#fff}
.dcmi-table-viewport>table{width:100%;border-collapse:collapse}
.dcmi-table-viewport table thead th{position:sticky;top:0;z-index:2;background:#fbf8f3;box-shadow:0 1px 0 #e9e1d5}
.dcmi-table-viewport:focus-visible{outline:2px solid #d18a31;outline-offset:2px}
.dcmi-table-viewport::-webkit-scrollbar{width:8px;height:8px}
.dcmi-table-viewport::-webkit-scrollbar-track{background:#f8f6f2}
.dcmi-table-viewport::-webkit-scrollbar-thumb{background:#c8b9a4;border-radius:7px}
/* The realization grid has a floating calendar; keep its calendar visible when rows are edited. */
#realizationRows .tablewrap.dcmi-table-viewport{overflow:auto!important;max-height:min(58vh,540px)!important}
/* Avoid clipping within the existing custom invoice/expense tables. */
@media(max-width:700px){.dcmi-table-viewport{max-height:min(52vh,440px)}}
