/* Keep the response card within the viewport; long locations wrap locally. */
#worklogContent .worklog-dashboard:has([data-response-table-scope="responses"]),
#worklogContent .worklog-list-card:has(>[data-response-table-scope="responses"]) {
  width:100%!important; min-width:0!important; max-width:100%!important;
  box-sizing:border-box;
}

/* v169: keep navigation inside the clipping card, content-sized columns */
#worklogContent .excel-response-module{padding-left:76px!important;box-sizing:border-box;min-width:0}
#worklogContent .excel-response-module > .response-department-tabs{right:auto!important;left:2px!important;width:64px;box-sizing:border-box;z-index:2}
#worklogContent .excel-response-table{min-width:0!important;max-width:none!important;width:max-content;table-layout:fixed!important}
#worklogContent .excel-response-table th,#worklogContent .excel-response-table td{width:auto!important;min-width:0!important;max-width:none!important;padding:4px 7px!important;overflow:hidden;overflow-wrap:anywhere;white-space:normal!important;box-sizing:border-box}
#worklogContent .excel-response-table th{position:sticky}
.excel-width-handle{position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:5;background:transparent;border:0;padding:0}
.excel-width-handle:hover{background:#93c5fd80}

/* v168: left-side case detail filters */
.excel-response-module{position:relative}
.excel-response-module > .response-department-tabs{position:absolute;right:calc(100% + 6px);top:0;display:flex;flex-direction:column;gap:6px;width:66px;margin:0;padding:4px;background:#fff;border:1px solid #cbd5e1;border-radius:6px}
.excel-response-module > .response-department-tabs button{width:100%;min-height:36px;padding:6px 2px;font-size:11px}
.excel-response-module > .response-department-tabs button.active{background:#1d4e89;color:white}
.excel-response-table tr[hidden]{display:none!important}
@media(max-width:1350px){.excel-response-module{padding-left:76px;box-sizing:border-box}.excel-response-module > .response-department-tabs{right:auto;left:2px;width:64px}}
#worklogContent [data-response-table-scope="responses"] .response-table-scroll > table.filterable-response-table {
  width:max-content!important; min-width:0!important; max-width:none!important;
  table-layout:auto!important;
}
#worklogContent [data-response-table-scope="responses"] .filterable-response-table .response-location-column {
  width:240px!important; min-width:0!important; max-width:240px!important;
  white-space:normal!important; overflow-wrap:anywhere!important;
  text-align:center!important;
}
#worklogContent [data-response-table-scope="responses"] .response-location-column .response-inline-input {
  width:100%!important; min-width:0!important; max-width:100%!important;
  box-sizing:border-box;
}
#worklogContent [data-response-table-scope="responses"] .filterable-response-table .response-tight-column {
  width:auto!important;
}
#worklogContent [data-response-table-scope="responses"] .filterable-response-table .response-note-cell {
  width:180px!important; max-width:180px!important;
  white-space:normal!important; overflow-wrap:anywhere!important;
}
