table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #172b4d;
  font-size: 12px;
  table-layout: auto;
}

table > thead > tr > th,
table > tbody > tr > td,
table > tfoot > tr > td {
  border: 1px solid #cbd5e1;
  vertical-align: middle;
}

table > thead > tr > th {
  height: 32px;
  padding: 6px 8px;
  background: #eaf0f8;
  color: #09265f;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

table > tbody > tr > td,
table > tfoot > tr > td {
  height: 32px;
  padding: 5px 8px;
}

table > tbody > tr:nth-child(even) {
  background-color: #f7f9fc;
}

table > tbody > tr:hover {
  background-color: #edf4ff;
}

table > tbody > tr > td {
  overflow-wrap: anywhere;
}

table > tbody > tr > td input[data-table-edit-locked="true"] {
  cursor: cell;
}

table > tbody > tr > td input[data-table-editing="true"] {
  cursor: text;
  z-index: 1;
  color: #000 !important;
  background: #fff !important;
  outline: 1px solid #9aabc4 !important;
  outline-offset: -2px !important;
  box-shadow: none !important;
}

table[data-table-editable]:not([aria-readonly="true"]) td[data-editable-field] {
  cursor: cell;
}

table[data-table-editable]:not([aria-readonly="true"]) td[data-editable-field]:hover {
  box-shadow: inset 0 0 0 1px #8aa8d8;
}

table[data-table-editable]:not([aria-readonly="true"]) td[data-editable-field]:focus-within {
  box-shadow: inset 0 0 0 2px #2855d9;
}

table .app-table-add-cell {
  width: 34px;
  min-width: 34px;
  padding: 0;
  text-align: center;
}

table .add-row-button {
  display: block;
  width: 100%;
  min-width: 26px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #09265f;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

table .add-row-button:hover,
table .add-row-button:focus-visible {
  background: #dbe4f3;
  outline: 0;
}

table .remove-row,
table .foam-guide-delete {
  display: inline-flex;
  width: 28px;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

table .remove-row:hover,
table .remove-row:focus-visible,
table .foam-guide-delete:hover,
table .foam-guide-delete:focus-visible {
  background: transparent;
  color: #b42318;
  outline: none;
}

table .foam-guide-delete:disabled {
  color: #9aa5b5;
  cursor: not-allowed;
}

table:has(> tbody > tr > td > .remove-row, > tbody > tr > td > .foam-guide-delete) th:last-child,
table > tbody > tr > td:has(> .remove-row),
table > tbody > tr > td:has(> .foam-guide-delete) {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
  text-align: center;
}

table > tbody > tr > td:has(> .remove-row) > .remove-row,
table > tbody > tr > td:has(> .foam-guide-delete) > .foam-guide-delete {
  margin: 0 auto;
}

table > tbody > tr > td:has(> input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):only-child),
table > tbody > tr > td:has(> select:only-child),
table > tbody > tr > td:has(> textarea:only-child) {
  position: relative;
  padding: 0;
}

table > tbody > tr > td:has(> input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):only-child)::before,
table > tbody > tr > td:has(> select:only-child)::before,
table > tbody > tr > td:has(> textarea:only-child)::before {
  content: "";
  display: block;
  min-height: 30px;
}

table > tbody > tr > td input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]),
table > tbody > tr > td select,
table > tbody > tr > td textarea {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: var(--table-cell-padding, 3px 6px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  font: inherit;
}

table > tbody > tr > td > input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]):only-child,
table > tbody > tr > td > select:only-child,
table > tbody > tr > td > textarea:only-child {
  position: absolute;
  inset: 0;
  height: 100%;
}

table > tbody > tr > td input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]):focus,
table > tbody > tr > td select:focus,
table > tbody > tr > td textarea:focus {
  z-index: 1;
  outline: 1px solid #9aabc4;
  outline-offset: -2px;
  background: #f4f8ff;
}
