.inventory-auditor-comment {
  margin-top: 8px;
}

.inventory-auditor-comment [data-auditor-comment-preview] {
  display: block;
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-auditor-comment-dialog {
  width: min(32rem, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
}

.inventory-auditor-comment-dialog .dialog-body {
  padding: 16px;
}

.inventory-auditor-comment-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.inventory-auditor-comment-dialog [data-auditor-comment-position] {
  overflow-wrap: anywhere;
}

.inventory-auditor-comment-dialog .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Six position actions: three balanced rows, two equal buttons per row. */
.inventory-position-table .inventory-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 40px;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin: 8px 0;
}
.inventory-position-table .inventory-row-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.inventory-auditor-comment:empty { display: none; }
