/**
 *  Modus Light Theme Variables
 *
 *  These variables are specific to the Light Theme of Modus
 */
/**
 *  Modus Variables
 *
 *  Variables should follow the `$component-state-property-size` formula for
 *  consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
 *
 *  Theme specific variables (light vs dark) are defined in _light-theme.scss
 *  and _dark-theme.scss
 */
/** Common */
/** Table */
/** Header */
/** Body */
/** Pagination */
/** Menu dropdown */
/** Drag Header */
/** Scrollbar */
/** Cell link */
.cell-contents {
  align-items: center;
  display: flex;
  gap: 0.25rem;
  justify-content: space-between;
  overflow: hidden;
}

.column-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sort-icon {
  flex-shrink: 0;
}

.table-container {
  border: 0.0625rem var(--modus-table-border-color, #b7b9c3) solid;
  display: flex;
  overflow: auto;
  position: relative;
  z-index: 0;
}
.table-container::-webkit-scrollbar {
  height: 0.75em;
  width: 0.75em;
}
.table-container::-webkit-scrollbar-track {
  background-color: var(--modus-table-scrollbar-track-color, #b7b9c3);
}
.table-container::-webkit-scrollbar-thumb {
  background-color: var(--modus-table-scrollbar-thumb-color, #6a6e79);
  border-radius: 0.25em;
}

.borderless {
  border: none !important;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.875rem;
  height: fit-content;
  width: 100%;
}
table.cell-borderless th,
table.cell-borderless td,
table.cell-borderless tr {
  border: none !important;
  box-shadow: none !important;
}
table.cell-vertical-borderless th,
table.cell-vertical-borderless td {
  border-right: none !important;
  box-shadow: none !important;
}
table th,
table td {
  box-sizing: border-box;
}
table th.row-checkbox,
table td.row-checkbox {
  padding: 0.5rem;
  width: 46px;
}
table th.row-checkbox.small,
table td.row-checkbox.small {
  width: 38px;
}
table th:last-child,
table td:last-child {
  border-right: none;
}
table th.row-checkbox + th.sticky-left,
table td.row-checkbox + td.sticky-left {
  left: 46.25px;
}
table td.error {
  border: 2px solid var(--modus-input-validation-error-color, #da212c) !important;
  border-radius: unset;
  box-shadow: 0 0 0 1px var(--modus-input-validation-error-color, #da212c);
}
table thead {
  position: sticky;
  top: 0;
  z-index: 99;
}
table thead.show-resize-cursor th {
  cursor: e-resize;
}
table thead.show-resize-cursor th .can-sort {
  cursor: e-resize;
}
table thead.show-resize-cursor th .can-sort .sort-icon-container {
  cursor: e-resize;
}
table thead.show-column-reorder-cursor:not(.show-resize-cursor) th:not(.sticky-left):hover {
  cursor: grab;
}
table thead.show-column-reorder-cursor:not(.show-resize-cursor) th:not(.sticky-left):active {
  cursor: grabbing;
}
table thead tr {
  color: var(--modus-table-header-color, #464b52);
  height: 3rem;
}
table thead tr th {
  background-color: var(--modus-table-header-bg, #f1f1f6);
  border-bottom: 1px solid transparent;
  border-right: 0.0625rem var(--modus-table-border-color, #b7b9c3) solid;
  box-shadow: inset 0 -0.5px 0 var(--modus-table-border-color, #b7b9c3);
  font-weight: 600;
  overflow: hidden;
  padding: 0.375rem 0.5rem 0.375rem 1rem;
  position: relative;
}
table thead tr th.row-checkbox {
  padding: 0.25rem 0.5rem;
}
table thead tr th.row-checkbox > modus-checkbox {
  justify-content: center;
}
table thead tr th.header-base {
  outline: -webkit-focus-ring-color auto 1px;
}
table thead tr th:nth-last-child(1) .resize-handle {
  position: absolute;
  right: 0;
  width: 6px;
}
table thead tr th .can-sort {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
table thead tr th .can-sort .sorted {
  font-weight: bold;
}
table thead tr th .can-sort .header-text,
table thead tr th .can-sort .sort-icon {
  cursor: pointer;
  padding: 0;
}
table thead tr th .can-sort .sort-icon-container {
  margin-left: 8px;
  padding: 0.125rem 0.125rem 0;
}
table thead tr th .can-sort .sort-icon-container .sort-icon svg {
  fill: var(--modus-table-header-color, #464b52);
}
table thead tr th .can-sort .sort-icon-container .sort-icon:focus {
  outline-style: auto;
}
table thead tr th .can-sort .sort-icon-container .sort-icon:focus:not(:focus-visible) {
  outline-style: none;
}
table thead tr th .can-sort .sort-icon-container .disabled {
  opacity: 0.5;
}
table thead tr th .can-sort .sort-icon-container .hidden {
  visibility: hidden;
}
table thead tr th .can-sort .sort-icon-container:focus .hidden {
  visibility: visible;
}
table thead tr th .can-sort:hover .hidden {
  visibility: visible;
}
table thead tr th .resize-handle {
  cursor: e-resize;
  height: 100%;
  position: absolute;
  right: -7px;
  top: 0;
  touch-action: none;
  user-select: none;
  width: 13px;
  z-index: 11;
}
table thead tr th .resize-handle:focus-visible {
  outline: none;
}
table thead tr th:not(.active-resize) .resize-handle:focus-visible + .resize-handle-border {
  border-right: 2px solid var(--modus-table-header-color, #464b52);
  height: 100%;
  position: absolute;
  right: -1px;
  top: 0;
}
table thead tr th:has(modus-tooltip) {
  overflow: visible;
}
table tbody tr:first-child td {
  border-top: none;
}
table tbody tr:last-child td {
  border-bottom: none;
}
table tbody tr {
  color: var(--modus-table-body-color, #252a2e);
}
table tbody tr .truncate-text,
table tbody tr .truncate-text .cell-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table tbody tr .wrap-text {
  overflow-wrap: break-word;
  word-break: break-word;
}
table tbody tr td {
  background-color: var(--modus-table-bg, #fff);
  border-top: 0.0625rem var(--modus-table-border-color, #b7b9c3) solid;
  padding-bottom: 0.875rem;
  padding-top: 0.875rem;
}
table tbody tr td.row-checkbox {
  padding-bottom: 0.75rem;
  padding-top: 0.75rem;
}
table tbody tr td.row-checkbox > modus-checkbox {
  justify-content: center;
}
table tbody tr td.edit-mode {
  box-sizing: border-box;
  padding: 0;
}
table tbody tr td.edit-mode div {
  box-sizing: border-box;
}
table tbody tr td.edit-mode div input {
  background-color: inherit;
  border: none;
  color: inherit;
  font: inherit;
  outline: none;
  padding: 0.25rem 1rem;
  width: calc(100% - 2rem);
}
table tbody tr td.edit-mode div input.text-align-right {
  text-align: right;
}
table tbody tr td.edit-mode div modus-select,
table tbody tr td.edit-mode div modus-autocomplete,
table tbody tr td.edit-mode div modus-date-picker {
  background-color: inherit;
  color: inherit;
  outline: none;
  width: 100%;
}
table tbody tr td .cell-content {
  align-items: center;
  display: flex;
}
table tbody tr td .cell-content .cell-link {
  color: var(--modus-table-cell-link-color, #217cbb);
  cursor: pointer;
  font-weight: 600;
}
table tbody tr td .cell-content .cell-link:hover {
  text-decoration: underline;
}
table tbody tr td .cell-content.text-align-right {
  justify-content: flex-end;
}
table tbody tr td .cell-content .expand-icon-container {
  width: 24px;
}
table tbody tr td .cell-content .expand-icon-container .expand-icon {
  cursor: pointer;
  display: flex;
}
table tbody tr.enable-hover:hover td:not(.edit-mode) {
  background-color: var(--modus-table-hover-bg, #dcedf9);
}
table tbody tr.row-disabled {
  pointer-events: none;
}
table tbody tr.row-disabled .row-checkbox modus-checkbox {
  pointer-events: none;
}
table tfoot tr.summary-row {
  background-color: var(--modus-table-header-bg, #f1f1f6);
  bottom: 0;
  box-shadow: 1px -1px var(--modus-table-border-color, #b7b9c3);
  position: sticky;
  z-index: 2;
}
table tfoot tr.summary-row td {
  background-color: var(--modus-table-header-bg, #f1f1f6);
  border: none;
  font-weight: 700;
}
table tfoot tr.summary-row td.text-align-right {
  text-align: right;
}
table tr {
  height: 3rem;
}
table tr th,
table tr td {
  border-right: 0.0625rem var(--modus-table-border-color, #b7b9c3) solid;
  /* The box-sizing property is set to border-box to include padding and border in the element's total width.
  However, in the context of setting the width for the row selection column, the border-box property is causing issues.
  If removing this property doesn't negatively impact the table's layout, it can be safely removed. */
  min-height: 3rem;
  padding: 0.25rem 1rem;
  text-align: left;
}
table tr th.text-align-center,
table tr td.text-align-center {
  text-align: center;
}
table tr th.sticky-left,
table tr td.sticky-left {
  border-right: 0.125rem var(--modus-table-border-color, #b7b9c3) solid;
  left: 0;
  position: sticky;
  z-index: 1;
}
table tr th.hide-text-selection,
table tr td.hide-text-selection {
  user-select: none;
}
table tr th.active-resize,
table tr td.active-resize {
  border-right: 2px var(--modus-primary, #019aeb) solid !important;
}
table tr th {
  position: relative;
}
table tr th div {
  overflow: hidden;
  text-overflow: ellipsis;
}
table tr.row-selected {
  background-color: var(--modus-table-selected-bg, #dcedf9);
}
table tr.row-selected th,
table tr.row-selected td {
  background-color: var(--modus-table-selected-bg, #dcedf9);
}
table .sticky-right {
  border-left: 0.125rem var(--modus-table-border-color, #b7b9c3) solid;
  position: sticky;
  right: 0;
  z-index: 1;
}
table td.sticky-right {
  z-index: 99;
}
table.density-relaxed thead tr {
  height: 3rem;
}
table.density-relaxed thead tr th {
  padding-bottom: 0.375rem;
  padding-top: 0.375rem;
}
table.density-relaxed thead tr th.row-checkbox {
  padding: 0.25rem 0.5rem;
}
table.density-relaxed thead tr th .can-sort .sort-icon-container {
  padding: 0;
}
table.density-relaxed tbody tr {
  height: 3rem;
}
table.density-relaxed tfoot .summary-row {
  height: 3rem;
}
table.density-comfortable thead tr {
  height: 32px;
}
table.density-comfortable thead tr th {
  padding-bottom: 0.375rem;
  padding-top: 0.375rem;
}
table.density-comfortable thead tr th.row-checkbox {
  padding: 0.25rem 0.5rem;
}
table.density-comfortable thead tr th .can-sort .sort-icon-container {
  padding: 0;
}
table.density-comfortable tbody tr {
  height: 2rem;
}
table.density-comfortable tbody tr td {
  padding-bottom: 0.375rem;
  padding-top: 0.375rem;
}
table.density-comfortable tbody tr td.row-checkbox {
  padding: 0.25rem 0.5rem;
}
table.density-comfortable tfoot .summary-row {
  height: 2rem;
}
table.density-comfortable tfoot .summary-row td {
  padding-bottom: 0.375rem;
  padding-top: 0.375rem;
}
table.density-comfortable tfoot .summary-row td.row-checkbox {
  padding: 0.25rem 0.5rem;
}
table.density-compact thead tr {
  height: 1.5rem;
}
table.density-compact thead tr th {
  padding-bottom: 0.125rem;
  padding-top: 0.125rem;
}
table.density-compact thead tr th.row-checkbox {
  padding: 0.125rem 0.5rem;
}
table.density-compact thead tr th .can-sort .sort-icon-container {
  padding: 0;
}
table.density-compact tbody tr {
  height: 1.5rem;
}
table.density-compact tbody tr td {
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}
table.density-compact tbody tr td.row-checkbox {
  padding: 0.125rem 0.5rem;
}
table.density-compact tfoot .summary-row {
  height: 24px;
}
table.density-compact tfoot .summary-row td {
  padding-bottom: 0.125rem;
  padding-top: 0.125rem;
}
table.density-compact tfoot .summary-row td.row-checkbox {
  padding: 0.25rem 0.5rem;
}

modus-table-filler-column {
  width: 100%;
}

.pagination-container {
  align-items: center;
  color: var(--modus-table-color, #6a6976);
  display: flex;
  flex-wrap: wrap;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.875rem;
  font-weight: 400;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.pagination-container .items-per-page {
  align-items: center;
  display: flex;
}
.pagination-container .items-per-page modus-select {
  margin-right: 0.3125rem;
  min-width: 60px;
  /* Prevent the select from shrinking */
}
.pagination-container .items-per-page span {
  margin-right: 0.3125rem;
}
.pagination-container .pagination-and-count {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}
.pagination-container .pagination-and-count .total-count {
  margin-right: 0.3125rem;
}
.pagination-container .pagination-and-count .total-count span {
  margin-right: 0.3125rem;
}
.pagination-container .pagination-and-count .total-count span:last-child {
  margin: 0;
}

.drag-content {
  background: var(--modus-table-bg, #fff);
  border: 0.0625rem var(--modus-table-border-color, #b7b9c3) solid;
  cursor: grabbing !important;
  display: flex;
  left: 0;
  opacity: 0.75;
  position: fixed;
  top: 0;
  z-index: 9;
}
.drag-content th {
  align-self: center;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 600;
  padding: 0.25rem 1rem;
  text-align: left;
}
.drag-content th div {
  font-size: 0.875rem;
}
.drag-content .sort-icon-container,
.drag-content svg {
  display: none;
}

.drop-allow-arrows {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  left: 0;
  position: fixed;
  top: -1px;
  z-index: 9;
}
.drop-allow-arrows svg {
  fill: var(--modus-table-header-drop-color, #019aeb);
}