.users-header-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.filter-presents-wrapper {
  display: flex;
  gap: 0.25rem;
}

.users-table-wrapper {
  width: 100%;
  position: relative;
  padding-top: 0.5rem;
  overflow-x: scroll;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  color: #353a44;
  font-size: 13px;
  min-height: 100px;
}

.users-table th {
  background-color: white;
  z-index: 1;
  border-bottom: 1px solid #d8dee4;
  font-weight: 700;
  text-align: left;
  font-size: 13px;
  padding: 0.5rem 0.25rem;
  letter-spacing: -0.5px;
  cursor: pointer;
  position:relative;
  white-space: nowrap;
}

.users-table th.sortable {
  padding-right: 30px;
}

.users-table th.sortable::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  opacity: 0.3;
  right: 1em;
  content: '↑';
  color: black;
  text-shadow: 0 0 black;
}

.users-table th.sortable::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  opacity: 0.3;
  right: 0.5em;
  content: '↓';
  color: black;
  text-shadow: 0 0 black;
}

.users-table th.sort-asc::before {
  opacity: 1;
}
.users-table th.sort-desc::after {
  opacity: 1;
}

.users-table th[data-prop="name"] {
  min-width: 200px;
}
.users-table th[data-prop="email"] {
  min-width: 250px;
}

.users-table tr:first-of-type td {
  padding-top: 0.5rem;
}

.users-table .fixed-column {
  position: sticky;
  left: 0;
  box-shadow: inset -1px 0px 1px #d8dee4;
  background-color: white;
  opacity: 1;
  z-index: 2;
}

.users-table .fixed-column-right {
  position: sticky;
  right: 0;
  box-shadow: inset 1px 0px 1px #d8dee4;
  background-color: white;
  opacity: 1;
  z-index: 2;
}

#subscriptions-table td {
  white-space: nowrap;
}

.users-table tr:hover {
  background-color: #f5f6f8;
}

.users-table td {
  border-bottom: 1px solid #ebeef1;
  opacity: 0.8;
  padding: 0.25rem;
}

.users-table td.hidden, .users-table th.hidden {
  display: none;
}


.users-table td.copyable {
  cursor: copy;
}

.users-table td.copyable:hover {
  opacity: 1;
  text-decoration: underline;
}


.users-table td[data-prop="name"] {
  font-weight: 700;
  opacity: 1;
}

.users-table td.right-floating-button {
  position: sticky;
  right: 0;
  opacity: 1;
  cursor: pointer;
  width: 50px;
  min-width: unset;
  z-index: 1;
}

.users-table td.right-floating-button sl-icon-button {
  box-shadow: 0px 0px 5px 0px rgba(161,161,161,1);
  background-color: white;
}

.users-filter-dropdown-content {
  min-width: 300px;
  max-width: 300px;
}

.users-filter-dropdown sl-option {
  font-size: 12px;
}

.users-table-controls {
  display: flex;
  justify-content: space-between;
}

sl-menu-item[value*="delete"]::part(base) {
  color: #dc2626;
  font-weight: 500;
}

.users-pagination-wrapper {
  position: fixed;
  bottom: 0px;
  left: 21px;
  width: calc(100% - 42px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 30px;
  background-color: white;
  box-sizing: border-box;
  z-index: 2;
  border-top: 1px solid #d8dee4;
}

.users-filter-button::part(base) {
  border-style: dotted;
  font-size: 11px;
}

.filters-action-button {
  display: none;
}

.users-filter-dropdown-content sl-option::part(base) {
  font-size: 12px;
}


#mode-wrapper-users form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.form-section-header {
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
}

.input-error-notification {
  display:none;
  position: relative;
  padding: 1rem 1rem;
  border: 1px solid #f5c2c7;
  border-radius: .25rem;
  color: #842029;
  background-color: #f8d7da;
}

#delete-users-progress-wrapper, #delete-subscriptions-progress-wrapper {
  display: none;
}

#delete-user, #delete-subscription {
  display: none;
}

.users-table a {
  color: #353a44;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.users-table a:hover {
  text-decoration: underline;
}

.autocomplete-content-box {
  display: block;
  position: relative;
  background: var(--sl-panel-background-color);
  border-radius: var(--sl-border-radius-medium);
  overflow: auto;
  overscroll-behavior: none;
  box-shadow: var(--sl-shadow-large);
}

.autocomplete-menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
  font-family: var(--sl-font-sans);
  font-size: var(--sl-font-size-small);
  font-weight: var(--sl-font-weight-normal);
  line-height: var(--sl-line-height-normal);
  letter-spacing: var(--sl-letter-spacing-normal);
  color: var(--sl-color-neutral-700);
  padding: var(--sl-spacing-2x-small) var(--sl-spacing-2x-small);
  transition: var(--sl-transition-fast) fill;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  cursor: pointer;
}

.autocomplete-menu-item:hover {
  background-color: #f5f6f8;
}

#add-subscription-user-input-popup[hascontent] .autocomplete-content-box {
  border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
}

#save-filters-selected-filters {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.table-loader-wrapper {
  position: absolute;
  width: 100%;
  height: calc(100% - 56px);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  top: 56px;
  background-color: rgba(255, 255, 255, 0.5);
}

.user-live-status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: gray;
  text-align: center;
  display: inline-block;
}

.user-live-status[activenow] {
  background-color: green;
}
.user-live-status[activelastday] {
  background-color: orange;
}
.user-live-status[activelastweek] {
  background-color: orangered;
}
.user-live-status[activelastmonth] {
  background-color: darkred;
}

.clear-table-selection {
  display: none;
  align-items: center;
  margin-left: 1rem;
}

.clear-table-selection > div {
  opacity: 0.8;
  font-size: 14px;
}

.clear-table-selection > sl-button::part(base) {
  min-height: unset;
  line-height: 18px;
}

.clear-table-selection > sl-button::part(label) {
  padding: 0;
  border-bottom: 1px dotted;
}

.edit-columns sl-tag {
  display: block;
}

.edit-columns .column-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height:300px;
  overflow-y:auto;
  background-color:white;
  min-width:200px;
  padding:0.5rem;
}

.edit-columns sl-tag::part(base) {
  justify-content: space-between;
  cursor: grab;
}

.edit-columns .column-list-header {
  font-weight: 600;
  font-size: 12px;
}

.edit-columns sl-divider {
  margin: 6px 0;
}

td[data-prop="subscription"] {
  white-space: nowrap;
}