/* hotfix23: fixed summary rows, contained legends and responsive data tables. */
.dashboard-page .dashboard-tables .summary-table{min-width:0;min-height:0;overflow:hidden}
.dashboard-page .dashboard-tables .summary-table h3{height:40px;min-height:40px;display:flex;align-items:center;justify-content:center;margin:0}
.dashboard-page .dashboard-tables .summary-table .table-scroll{flex:1;min-height:0}
.dashboard-page .dashboard-tables .summary-table .v44-table tbody tr{height:34px}
.dashboard-page .dashboard-tables .summary-table .v44-table td{
  height:34px!important;min-height:34px;padding:3px!important;line-height:13px;
  text-align:center!important;vertical-align:middle;overflow:hidden;
}
.dashboard-cell{
  height:26px;min-height:26px;max-height:26px;line-height:13px;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;overflow-wrap:anywhere;white-space:normal;text-indent:0;
}
.dashboard-cell:empty::before{content:'\00a0'}
.v44-kpi b [data-quality-source]{font:inherit;color:inherit}

/* All four calendar edges use the same input/grid border token in both themes. */
.qms-date-field{border-color:var(--strict-line,#c8dbe8)}
.v44-calendar-popover{border-color:var(--strict-line,#c8dbe8);max-width:calc(100vw - 20px)}
.calendar-week,.calendar-days,.calendar-day{border-color:var(--v44-cell-line,#d9e5ee)}
:root[data-theme=dark] .calendar-week,
:root[data-theme=dark] .calendar-days,
:root[data-theme=dark] .calendar-day{border-color:#405767}

/* A long defect name wraps inside its own column; its percentage has reserved space. */
.donut-panel .v44-donut-layout,
.inspection-page .inspection-charts .donut-panel .v44-donut-layout{
  display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);
  align-items:center;gap:12px;min-width:0;max-width:100%;padding:5px 12px 10px;overflow:hidden;
}
.donut-panel .v44-donut,
.inspection-page .inspection-charts .donut-panel .v44-donut{
  width:min(100%,clamp(90px,14vh,170px))!important;height:auto!important;
  aspect-ratio:1;min-width:0;justify-self:center;
}
.donut-panel .v44-legend{min-width:0;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:thin}
.donut-panel .legend-row{min-width:0;max-width:100%;align-items:start}
.donut-panel .legend-copy{
  display:grid;grid-template-columns:minmax(0,1fr) max-content;
  gap:8px;min-width:0;max-width:100%;white-space:normal;align-items:start;
}
.donut-panel .legend-label{min-width:0;width:auto;white-space:normal;overflow-wrap:anywhere;overflow:hidden;line-height:1.35}
.donut-panel .legend-copy b{margin:0;text-align:right;white-space:nowrap;line-height:1.35}

/* The complete inspection table is fitted by relative column widths on desktop. */
.inspection-detail-panel>.main-table .v44-table.fit-inspection-table{max-width:100%;min-width:0!important}
.inspection-detail-panel>.main-table .fit-inspection-table th,
.inspection-detail-panel>.main-table .fit-inspection-table th.resizable-column{
  white-space:normal!important;overflow-wrap:anywhere;word-break:normal;
  height:auto;min-height:38px;line-height:1.25;text-overflow:clip;padding:6px 5px;
}
.inspection-detail-panel>.main-table .fit-inspection-table td{
  white-space:normal;overflow-wrap:anywhere;word-break:normal;
  max-width:none;height:auto;line-height:1.35;text-overflow:clip;padding:5px 4px;
}

/* Raw Data keeps a fixed one-line row while allowing every value its full width. */
.content:has(>.raw-page){overflow:hidden;padding-bottom:10px}
.raw-page{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.raw-page>.v44-title{flex:none;margin:0}
.raw-page>.raw-toolbar{
  flex:none;grid-template-columns:minmax(95px,.7fr) minmax(145px,1.4fr) minmax(110px,3fr) auto auto;
  min-width:0;margin:0;padding:10px;align-items:center;
}
.raw-toolbar input,.raw-toolbar select{min-width:0;max-width:100%;padding-block:0;line-height:normal}
.raw-toolbar .v44-btn{width:auto!important;min-width:72px!important;padding-inline:12px;white-space:nowrap}
.raw-toolbar #raw-export{min-width:96px!important}
.raw-page>.raw-data-section{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
.raw-data-section h3{flex:none;min-width:0;white-space:normal;overflow-wrap:anywhere}
.raw-data-section>.raw-main-table{flex:1 1 0;min-height:0;height:auto;max-height:none;overflow:auto;scrollbar-width:thin}
.raw-main-table .v44-table{table-layout:auto;width:max-content;min-width:100%}
.raw-main-table .v44-table th,.raw-main-table .v44-table td{
  max-width:none!important;white-space:nowrap!important;overflow:visible;text-overflow:clip;
  padding:6px 10px;line-height:18px;height:32px;
}
.raw-main-table .v44-table th{height:38px}
@media(max-width:700px){
  .raw-page>.raw-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .raw-toolbar #raw-search{grid-column:1/-1}
}
