.model-tags {
  display: flex;
  flex-direction: row;
  gap:var(--sl-spacing-2x-small);
  flex-wrap: wrap;
}

/* Evaluation Overview */
.interface-img-wrapper {
  width: 100%;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--sl-color-neutral-50);
  border-radius: var(--sl-border-radius-medium);
  margin-top: var(--sl-spacing-small);
  margin-bottom: var(--sl-spacing-x-large);
  border: 1px solid var(--sl-color-neutral-100);
  padding: var(--sl-spacing-medium);
}

.interface-img-details .finding-details {
  margin-top: 0;
}

.interface-img {
  max-width: 100%;
}

/* Legacy ratings table styles - deprecated, use .data-table.simple instead */

/* Evaluation Ratings */
/* Ratings Table */
.dataTables_wrapper table.dataTable {
    border-bottom: none !important;
}

.ratings-datatable-wrapper {
  border: 1px solid var(--sl-color-neutral-200);
  border-radius: var(--sl-border-radius-medium);
  box-shadow: var(--sl-shadow-x-large);
}

.ratings-datatable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ratings-datatable thead {
  border-top-left-radius: var(--sl-border-radius-medium);
  border-top-right-radius: var(--sl-border-radius-medium);
}

.ratings-datatable th,
.ratings-datatable td {
    padding: var(--sl-spacing-large) var(--sl-spacing-medium);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--sl-color-neutral-100);
    border-right: 1px solid var(--sl-color-neutral-100);
}

.ratings-datatable th:first-child {
    border-top-left-radius: var(--sl-border-radius-medium);
    border-left: none;
}

.ratings-datatable th:last-child {
    border-top-right-radius: var(--sl-border-radius-medium);
    border-right: none;
}

.ratings-datatable tr:last-child td:first-child {
    border-bottom-left-radius: var(--sl-border-radius-medium);
}

.ratings-datatable tr:last-child td:last-child {
    border-bottom-right-radius: var(--sl-border-radius-medium);
    border-right: none;
}

.ratings-datatable tr:last-child td {
    border-bottom: none;
}

.ratings-datatable td:last-child,
.ratings-datatable th:last-child {
    border-right: none;
}

.ratings-datatable th {
    font-size: var(--sl-font-size-small);
    font-weight: var(--sl-font-weight-normal);
    color: var(--sl-color-neutral-600);
    background-color: var(--sl-color-neutral-50);
    padding: var(--sl-spacing-large) var(--sl-spacing-medium);
}

.ratings-datatable .model-cell {
    white-space: nowrap;
    width: 1%;
    padding: var(--sl-spacing-large) var(--sl-spacing-medium);
}

.ratings-datatable .rating-cell {
    white-space: nowrap;
    width: 1%;
    padding: var(--sl-spacing-large) var(--sl-spacing-medium);
}

.ratings-datatable .notes-cell {
    width: auto;
    min-width: 0;
    padding: var(--sl-spacing-large) var(--sl-spacing-medium);
}

.hexagon-rating {
    display: flex;
    gap: var(--sl-spacing-2x-small);
    align-items: center;
}

.rating-cell sl-tooltip {
  cursor: default;
}

.rating-hexagon {
    font-size: 1rem;
    flex-shrink: 0;
}

.rating-hexagon.filled {
    color: var(--sl-color-blue-600);
}

.rating-hexagon.empty {
    color: var(--sl-color-neutral-200);
}

.rating-label {
    font-style: italic;
    font-size: var(--sl-font-size-small);
    color: var(--sl-color-neutral-600);
    margin-top: var(--sl-spacing-2x-small);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

/* Table System */
.table-wrapper {
  position: relative;
  border: 1px solid var(--sl-color-neutral-200);
  border-radius: var(--sl-border-radius-medium);
  box-shadow: var(--sl-shadow-x-large);
  overflow: hidden;
}

/* Scrollable table wrapper with max height */
.table-wrapper.scrollable {
  max-height: 500px;
}

/* Simple table wrapper without scroll constraints */
.table-wrapper.simple {
  max-height: none;
}

.expand-table-btn {
  position: absolute;
  bottom: var(--sl-spacing-small);
  right: var(--sl-spacing-small);
  z-index: 20;
}

/* Base table styles */
.data-table {
  width: 100%;
  position: relative;
  border-collapse: collapse;
}

/* Comparison table for heuristic data (fixed layout, horizontal scroll) */
.data-table.comparison {
  table-layout: fixed;
  width: auto;
  min-width: 100%;
}

/* Simple table for ratings (auto layout, no horizontal scroll) */
.data-table.simple {
  table-layout: auto;
  width: 100%;
}

/* Base header styles */
.data-table thead th {
  background-color: var(--sl-color-neutral-100);
  border-right: 1px solid var(--sl-color-neutral-100);
  padding: var(--sl-spacing-medium);
}

/* Sticky headers for comparison tables */
.data-table.comparison thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset -1px -1px 0 0 var(--sl-color-neutral-200);
}

/* Comparison table column widths */
.data-table.comparison th:first-child,
.data-table.comparison td:first-child {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.data-table.comparison th:not(:first-child),
.data-table.comparison td:not(:first-child) {
  width: 460px;
  min-width: 460px;
  max-width: 460px;
}

/* Sticky first column for comparison tables */
.data-table.comparison th:first-child,
.data-table.comparison td:first-child {
  position: sticky;
  left: 0;
  background-color: var(--sl-color-neutral-100);
  z-index: 10;
}

.data-table.comparison td:first-child {
  box-shadow: inset -1px 0 0 0  var(--sl-color-neutral-200);
}

.data-table.comparison thead th:first-child {
  z-index: 20;
}

.data-table.comparison thead th {
  z-index: 15;
}

.data-table.comparison tbody tr {
  min-height: 200px;
}

/* Base cell styling */
.data-table th,
.data-table td {
  border-right: 1px solid var(--sl-color-neutral-100);
  padding: var(--sl-spacing-medium);
  background-color: var(--sl-color-neutral-0);
}

.data-table th {
  background-color: var(--sl-color-neutral-100);
}

.data-table tbody td {
  border-bottom: 1px solid var(--sl-color-neutral-100);
  vertical-align: top;
}

.data-table tbody td:hover {
  background-color: var(--sl-color-neutral-50);
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: none;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Make the table cell a positioned container */
.heuristic-cell {
  position: relative;
}

.heuristic-cell:hover {
  background-color: var(--sl-color-neutral-50) !important;
}

/* Position the tag absolutely in the center */
.heuristic-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.heuristic-name sl-tag::part(base) {
  transform: rotate(-90deg);
}

.table-modal::part(body) {
  overflow-y: auto;
  max-height: calc(95vh - 80px); /* dialog height minus footer */
  border-radius: var(--sl-border-radius-medium);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: transparent;
  overflow-y: hidden;
  align-content: start;
}

sl-dialog::part(footer) {
  border-top: 1px solid var(--sl-color-neutral-200);
}

.table-modal {
  --width: 95vw;
  --footer-spacing: var(--sl-spacing-x-small);
}

.table-container {
  overflow: auto;
  background: transparent;
  max-height: 500px;
}

.table-modal .table-container {
  max-height: 98vh;
  padding-bottom: 100px;
}

/* Content wrapping */
.model-result .finding-details {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.model-result.empty {
  color: var(--sl-color-neutral-600);
  min-height: 100px;
  height: 100px;
}

.model-header {
  text-align: left;
  font-size: var(--sl-font-size-small);
  justify-content: space-between;
}

.model-header-content {
  font-weight: var(--sl-font-weight-semibold);
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.heuristic-header {
  font-size: var(--sl-font-size-2x-small);
  font-weight: var(--sl-font-weight-normal);
  color: var(--sl-color-neutral-1000);
}

.keyboard-key {
  display: inline-block;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #ced4da;
  border-bottom: 2px solid #adb5bd;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--sl-font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #495057;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.1);
  min-width: 28px;
  text-align: center;
  user-select: none;
  cursor: pointer;
}

/* CURRENTLY Too Noisy - Severity Tag Component Variants */
sl-tag[variant="severity-1"]::part(base) {
    background-color: #FAEEC6;
    border: transparent;
    color: var(--sl-color-neutral-800);
}

sl-tag[variant="severity-2"]::part(base) {
    background-color: #F1D67E;
    border: transparent;
    color: var(--sl-color-neutral-800);
}

sl-tag[variant="severity-3"]::part(base) {
    background-color: #FCC192;
    border: transparent;
    color: var(--sl-color-neutral-800);
}

sl-tag[variant="severity-4"]::part(base) {
    background-color: #F9AE77;
    border: transparent;
    color: var(--sl-color-neutral-800);
}

sl-tag[variant="severity-5"]::part(base) {
    background-color: #FDB2A2;
    border: transparent;
    color: var(--sl-color-neutral-800);
}

sl-drawer::part(panel) {
  border-top-right-radius: var(--sl-border-radius-x-large);
  border-top-left-radius: var(--sl-border-radius-x-large);
}


/* Responsive styles */
@media (max-width: 768px) {
    .interface-img-wrapper {
        padding: var(--sl-spacing-small);
        gap: var(--sl-spacing-medium);
    }

    .interface-img-details {
      padding: var(--sl-spacing-x-small);
    }

    .expand-table-btn {
      display: none;
    }
  }
  
  @media (max-width: 500px) {
    .ratings-datatable .notes-cell,
    .ratings-datatable .ratings-datatable-header:nth-child(3) {
      display: none;
    }
    
    .ratings-datatable .rating-cell,
    .ratings-datatable .ratings-datatable-header:nth-child(2) {
      border-right: none;
    }
  }