.view-options-dropdown, .view-filter-dropdown {
    position: absolute;
}

.icon.path {
    transform: rotate(-90deg);
    padding: 0px 8px;
}

.table-container {
    height: auto;
    overflow: auto;
    background-color: transparent;
    cursor: grab;
    position: relative;
    min-height: calc(100vh - 460px - var(--kpi-panel-height));
    -webkit-user-select: none;
    user-select: none;
    flex: 1;
}

.table-container:active {
    cursor: grabbing;
}

.row {
    display: flex;
    border-bottom: var(--border);
    background-color: transparent;
    width: fit-content;
    min-width: 100%;
    gap: min(2vw, 16px);
}

.row.header {
    background-color: transparent;
    position: sticky;
    top: 0px;
    z-index: 1;
    font-weight: 600;
}

.row.header .cell .filter-icon{
    display: none;
}

.row.header:hover {
    background-color: var(--background);
}

.row.header .cell:hover {
    border-bottom: 2px solid var(--boardPrimary);
}

.row.header .cell.active-filter {
    border-bottom: 2px solid var(--boardPrimary);
}

.row.header .cell.active-filter .filter-icon {
    display: block;
    width: 14px;
    height: unset;
    margin-left: auto;
}

.cell {
    min-width: 100px;
    padding: min(2vw, 16px) 8px;
    text-align: left;
    overflow: hidden;
    display: flex;
    gap: 8px;
    max-width: 400px;
    word-break: break-word;
    white-space: break-spaces;
}

.cell.sticky-cell {
    background-color: #fafafa !important;
    position: sticky !important;
    left: 0;
    z-index: 1;
    box-shadow: 0 0 8px rgb(0 0 0 / 13%);
    clip-path: inset(0 -10px 0 0);
}

.cell .dropdown, .cell .dropdown-filters{
    min-width: 180px;
}

.table-container .row:not(.row.header) .cell a .icon {
    position: absolute;
    width: 12px;
    margin-top: 2px;
    margin-left: 2px;
    z-index: 0;
    padding: 0;
}

.row.header .cell {
    cursor: pointer;
    border-bottom: 2px solid transparent;
    position: relative;
    overflow: unset;
    gap: 4px;
}

.row.header .cell > p > .icon {
    margin-left: 2px;
}

.row:hover {
    position: relative;
    background-color: var(--rowHover);
}

.dropdown-filters {
    background-color: var(--white);
    border: var(--border);
    border-radius: var(--borderRadius);
    box-shadow: 0px 8px 16px 0px rgb(0 0 0 / 3%);
    position: absolute;
    top: 48px;
    left: 0px;
    padding: 8px;
    z-index: 2;
    cursor: auto;
    font-weight: normal;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-filters.larger {
    width: 350px;
}

.filter-options input {
    height: 32px;
    min-height: unset !important;
    padding: 10px !important;
    user-select: all;
}

/* Chrome, Edge, Safari */
.filter-options input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Firefox (because Firefox) */
.filter-options input[type="search"] {
  appearance: textfield;
}

.dropdown-filters a {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown a:hover, .dropdown-filters a:hover{
    background-color: var(--background);
}

table .dropdown, table .dropdown-filters{
    top: 53px;
    min-width: 220px;
}

.dropdown .filter-clear {
    padding: 8px 12px 12px 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: var(--border);
    margin-bottom: 8px;
}

.dropdown-filters .filter-clear {
    width: 100%;
}

.filter-order a {
    display: flex;
    justify-content: space-between;
}

.filter-order > a > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-options {
    background-color: var(--background);
    max-height: 180px;
    overflow-y: auto;
    border: var(--border);
    border-radius: var(--borderRadius);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-options > p {
    color: var(--darkgrey);
    font-weight: 300;
}

.filter-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-board-selector .filter-options {
    gap: 16px;
    max-height: 50vh;
}

.mobile-board-selector .filter-options input {
    height: 50px;
    margin-bottom: 4px;
}

.user-profile-action-menu,
.user-profile-menu-trigger {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 8px;
}

.board-selector-popover {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-selector-popover p {
    margin: 0;
}

.board-selector-header {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: baseline;
}

.board-selector-header p {
    font-size: 0.8rem;
    color: var(--darkgrey);
}

.new-help-center-dropdown {
    min-width: 200px !important;
    max-width: 300px !important;
}

.new-help-center-popover {
    display: flex;
    flex-direction: column;
}

.new-help-center-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 16px;
    cursor: pointer;
    border-radius: var(--borderRadius);
}

.new-help-center-item:hover {
    background-color: var(--background);
}

.new-help-center-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.new-help-center-item-text h4 {
    margin: 0;
}

.new-help-center-item-text p {
    margin: 0;
    color: var(--darkgrey);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.3;
}

.new-help-center-item .new-help-center-switch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 16px;
    margin-bottom: 0;
}

.new-help-center-item .new-help-center-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.new-help-center-item .new-help-center-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--lightgrey);
    transition: 0.2s;
    border-radius: 999px;
}

.new-help-center-item .new-help-center-switch-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    top: 2px;
    background-color: var(--white);
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
}

.new-help-center-item .new-help-center-switch input:checked + .new-help-center-switch-slider {
    background-color: var(--boardPrimary);
}

.new-help-center-item .new-help-center-switch input:focus + .new-help-center-switch-slider {
    box-shadow: 0 0 1px var(--boardPrimary);
}

.new-help-center-item .new-help-center-switch input:checked + .new-help-center-switch-slider:before {
    transform: translateX(12px);
}

.new-help-center-divider {
    border-bottom: var(--border);
    margin: 0 12px;
}

.mobile-board-selector-backdrop {
    z-index: 102;
}

.mobile-board-selector-dropdown {
    z-index: 103;
}

.board-selector-options {
    position: relative;
}

.board-selector-options .checkbox.disabled {
    cursor: wait;
}

.board-selector-options input:disabled,
.filter-clear:disabled {
    cursor: wait;
    opacity: 0.7;
}

.filter-clear:disabled {
    pointer-events: none;
}

.board-selector-refresh-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid color-mix(in srgb, var(--boardPrimary) 22%, transparent);
    border-top-color: var(--boardPrimary);
    border-radius: 50%;
    box-sizing: border-box;
    animation: board-selector-refresh-spin 0.8s linear infinite;
    flex: none;
}

.secondary-btn .board-selector-refresh-spinner {
    border: 2px solid color-mix(in srgb, var(--white) 22%, transparent);
    border-top-color: var(--white);
}

@keyframes board-selector-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

/*** Novo sub-menu ***/
.sub-menu-container {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 100;
    height: 100%;
    width: 100%;
    background-color: rgb(0 0 0 / 8%);
    display: none;
}

.sub-menu-content {
    background-color: var(--background);
    position: absolute;
    bottom: 0px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    width: calc(100% - 48px);
    padding: 16px 24px 24px 24px;
    border-top: var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-radius: 4px 4px 0px 0px;
    box-shadow: 0px 0px 56px rgb(0 0 0 / 10%);
}

.sub-menu-content.open{
    transform: translateY(0%);
}

.sub-menu-content > img {
    position: absolute;
    right: 17px;
    top: 8px;
    width: 10px!important;
    cursor: pointer;
    padding: 8px;
}

.sub-menu-content .line {
    background-color: var(--border);
    width: 40px;
    height: 2.5px;
}

.sub-menu-content button {
    width: 100%;
    justify-content: center;
}

.sub-menu-content .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-menu-content button, .sub-menu-content .select {
    width: 100%;
    justify-content: center;
    padding: 16px 0px;
    flex-wrap: wrap;
}

.sub-menu-content button p {
    margin-top: 0px;
}

.sub-menu-content .dropdown, .sub-menu-content .dropdown-filters {
    position: static;
    width: 100%;
    margin-bottom: -16px;
    margin-top: 8px;
    border-top: var(--border);
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.grey-text {
    color: var(--mediumgrey);
}

/* view boards list */
.view-boards-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.view-boards-list .board {
    background-color: var(--white);
    border: var(--border);
    border-radius: var(--borderRadius);
    overflow: hidden;
}

.view-boards-list .board-header,
.view-boards-list .meetings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
}

.view-boards-list .meetings-header {
    align-items: flex-start;
}

.view-boards-list .meetings-header .icon-component {
    margin-top: 4px;
}

.view-boards-list .board-header p,
.view-boards-list .meetings-header p{
    flex: 1;
}

.view-boards-list .board-header p {
    flex: 1;
}

.view-boards-list .board-header:hover p:not(.proposals-counter) {
    opacity: 0.8;
}

.view-boards-list img.board-logo {
    height: 32px;
    margin-left: 32px;
}

.view-boards-list .proposals-counter {
    font-size: 0.8em;
    color: var(--darkgrey);
    margin-left: 12px;
}

.view-boards-list .board-content {
    padding: 0 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.view-boards-list .meeting {
    border: var(--border);
    border-radius: var(--borderRadius);
    border-left: 2px solid var(--lightgrey);
}

.view-boards-list .meeting:hover {
    border-left: 2px solid var(--boardPrimary);
}

.view-boards-list .meeting.selected {
    border-left: 2px solid var(--boardPrimary);
}

.view-boards-list .meetings-content {
    padding-left: 35px;
}

.view-boards-list .table-container {
    min-height: unset;
    max-height: 500px;
}

.view-boards-list .table-container .row:last-child {
    border-color: transparent;
}

.view-boards-list .table-container .row.header .cell {
    padding-bottom: 4px;
}

.view-boards-list .table-container:not(.meetings-content .table-container)::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.view-boards-list .board.selected .board-header p,
.view-boards-list .meeting.selected .meetings-header p {
    font-weight: 600;
}

.view-boards-list .board.selected .board-header p span,
.view-boards-list .meeting.selected .meetings-header p span {
    font-weight: normal;
}

.view-boards-list .table-container .row.header {
    background-color: var(--white);
}

.view-boards-list .table-container .row.header:hover {
    z-index: 2!important;
    position: sticky;
}

.proposal-export-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background-color: var(--background);
  border: var(--border);
  border-radius: var(--borderRadius);
}

.proposal-export-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* How many identical notifications are queued behind the one being shown - without it, dismissing a
   batch looks like nothing happened until the last one goes. */
.proposal-export-banner-count {
  margin-left: 8px;
  padding: 2px 8px;
  border: var(--border);
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width:750px) {
    .cell.sticky-cell {
        background-color: #fafafa !important;
        position: static !important;
        left: 0;
        z-index: 1;
        box-shadow: none;
        clip-path: none;
    }
}

/* new list overlay */
.list-wrapper {
    position: relative;
}

.list-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.list-filter-overlay .dropdown-filters {
    right: -30px;
    top: 50px;
    left: unset;
    background-color: lightgreen;
}
