/* Reset the old horizontal toolbar's flex basis in the report selector layout. */
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-toolbar {
  display: grid !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto;
  align-items: start; justify-content: stretch; gap: 16px; min-height: 0;
  padding: 18px 16px !important;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-toolbar > div:first-child {
  flex: none !important; width: 100%; min-height: 0; margin: 0;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-toolbar > div:first-child > p {
  margin: 5px 0 0; line-height: 1.5;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-selection {
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  width: 100%; min-width: 0; gap: 12px; flex: none !important;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-selectors {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 12px;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-actions {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%; min-width: 0; gap: 12px; align-items: stretch;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-format {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 42px !important;
  width: 100%; min-width: 0; gap: 6px; flex: none !important;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-format > .btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 100% !important; min-width: 0 !important; height: 42px !important; margin: 0 !important;
  gap: 7px; padding: 8px 12px !important; border-radius: 8px; white-space: normal;
  background: #1572e8 !important; border: 1px solid #1572e8 !important; color: #fff !important;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-format:nth-child(2) > .btn {
  background: #6861ce !important; border-color: #6861ce !important;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-format > .btn:last-child { padding: 0 !important; }
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-format > .btn svg {
  display: block !important; color: #fff !important; width: 17px; height: 17px; flex: 0 0 17px;
}
html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-format > .btn:disabled { opacity: .5 !important; cursor: not-allowed; }
@media (max-width: 700px) {
  html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-selectors,
  html body #kai-workspace.kai-theme .kitty-closed-tables-container .kitty-report-actions { grid-template-columns: minmax(0, 1fr); }
}
