:root {
    --gray-4d: #4D4D4D;
    --gray-8: #888;
    --danger: #DF3812;
}

.logs__row {
    position: relative;
    display: flex;
    min-height: 26px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-table .logs__row {
    overflow: hidden;
    text-overflow: ellipsis;
}

.logs__row--center {
    justify-content: center;
}

.logs__row--column {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.logs__row--icons {
    max-width: 180px;
    flex-flow: row wrap;
}

.logs__row .list-unstyled {
    margin-bottom: 0;
    overflow: hidden;
}

.logs__text,
.logs__row .list-unstyled li {
    padding: 0 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 1rem;
    font-family: var(--font-family-sans-serif);
    color: var(--gray-4d);
    letter-spacing: 0;
    line-height: 1.5rem;
}

.logs__text--bold {
    font-weight: bold;
}

.logs__text--full {
    width: 100%;
}

.logs__text--wrap {
    line-height: 1.4;
    white-space: normal;
}

.logs__text--nowrap {
    line-height: 1.4;
    white-space: nowrap;
}

.logs__text--whois {
    line-height: 1.2;
    color: #9aa0ac;
}

.logs__row .tooltip-custom {
    top: 0;
    margin-left: 0;
    margin-right: 5px;
}

.tooltip__option {
    height: 2.5rem !important;
    width: 10.5rem;
    padding: 0.3125rem 1.5rem 0.6875rem;
}

.tooltip__option:hover {
    background-color: var(--gray-f3);
    cursor: pointer;
}

.button__action {
    background-color: #fff;
    border-radius: 4px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    opacity: 0;
}

.table__action {
    position: absolute;
    top: 11px;
    right: 15px;
}

.logs__action {
    position: absolute;
    top: 0;
    right: 1rem;
}

.logs__action--detailed {
    top: 5px;
}

.logs__table .rt-td,
.clients__table .rt-td {
    position: relative;
}

.logs__table .rt-thead, .logs__table .rt-tbody {
    min-width: 100% !important;
}

.logs__table .rt-tr:hover .logs__action,
.clients__table .rt-tr:hover .table__action {
    visibility: visible;
    opacity: 1;
}

.logs__table .rt-tr-group:first-child .tooltip-custom:before {
    top: calc(100% + 12px);
    bottom: initial;
    z-index: 1;
}

.logs__table .rt-tr-group:first-child .tooltip-custom:after {
    top: initial;
    bottom: -4px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid #585965;
}

.logs__table .rt-tr-group:first-child .popover__body {
    top: calc(100% + 5px);
    bottom: initial;
    z-index: 1;
}

.logs__table .rt-tr-group:first-child .popover__body:after {
    top: -11px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid #585965;
}

.logs__table .rt-thead.-filters input,
.logs__table .rt-thead.-filters select {
    padding: 6px 7px;
    border-radius: 3px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #495057;
    border: 1px solid rgba(0, 40, 100, 0.12);
}

.logs__table .rt-thead.-filters select {
    background: #fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMCA1Jz48cGF0aCBmaWxsPScjOTk5JyBkPSdNMCAwTDEwIDBMNSA1TDAgMCcvPjwvc3ZnPg==") no-repeat right 0.75rem center;
    background-size: 8px 10px;
}

.logs__table .rt-thead.-filters input:focus,
.logs__table .rt-thead.-filters select:focus {
    border-color: #1991eb;
    box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25);
}

.logs__text-wrap {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.logs__list-wrap {
    display: flex;
    max-width: 100%;
}

.logs__list-item {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.logs__input-wrap {
    position: relative;
}

.logs__whois {
    display: inline;
    font-size: 12px;
    white-space: nowrap;
}

.logs__whois::after {
    content: "|";
    padding: 0 5px;
    opacity: 0.3;
}

.logs__whois:last-child::after {
    content: "";
}

.logs__whois-icon.icons {
    position: relative;
    top: -2px;
    width: 12px;
    height: 12px;
    margin-right: 1px;
    opacity: 0.5;
}

/* New logs */
.logs__table {
    background-color: #fff;
    border: 0;
    border-radius: 8px;
    min-height: 42rem;
    max-width: 100%;
}

.logs__table--detailed {
    min-height: 50rem;
}

.logs__table .rt-thead.-header {
    box-shadow: none;
    font-weight: bold;
}

.logs__table .rt-thead .rt-th {
    padding: 0.9375rem 0.9375rem 0.875rem 0;
    text-align: left;
    border-right: 0;
}

.logs__table .rt-tbody .rt-td {
    padding: 1rem 1rem 0.5rem 0;
    border-right: 0;
}

.logs__table .rt-thead .rt-th:last-child,
.logs__table .rt-tbody .rt-td:last-child {
    padding-right: 0;
}

.logs__table .rt-tbody .rt-tr-group {
    border-bottom: 0;
}

.logs__table .rt-tr {
    position: relative;
    padding: 0 24px;
}

.logs__table .rt-tr {
    position: relative;
    padding: 0 1.5rem;
}

.logs__table .rt-tr-group:not(:first-child) .rt-tr:before {
    content: "";
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 0;
    width: calc(100% - 3rem);
    height: 2px;
    background-color: rgba(216, 216, 216, 0.23);
}

.logs__table .rt-tr-group:last-child .rt-tr:after,
.logs__table .rt-thead .rt-tr:after {
    display: none;
}

.logs__time {
    font-size: 1rem;
    line-height: 1.5;
}

.detailed-info {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #888888;
}

.icon--selected {
    background-color: var(--gray-f3);
    border: solid 1px var(--gray-d8);
    border-radius: 4px;
}

/* Hide 3 and 4 column on mobile */
.logs__table .rt-thead .rt-th:nth-child(3),
.logs__table .rt-thead .rt-th:nth-child(4),
.logs__table .rt-tbody .rt-td:nth-child(3),
.logs__table .rt-tbody .rt-td:nth-child(4) {
    display: none;
}

@media screen and (min-width: 768px) {
    .logs__table .rt-thead .rt-th:nth-child(3),
    .logs__table .rt-thead .rt-th:nth-child(4),
    .logs__table .rt-tbody .rt-td:nth-child(3),
    .logs__table .rt-tbody .rt-td:nth-child(4) {
        display: block;
    }
}

.text-pre {
    white-space: pre-wrap !important;
    overflow-wrap: break-word;
    overflow: visible;
}

.custom-pagination {
    width: 11.875rem !important;
    background-color: transparent;
    box-shadow: none !important;
    border: none !important;
    align-items: center !important;
}

.custom-pagination--padding {
    padding: 2.5rem 0 2.5rem !important;
}

.custom-pagination .-btn {
    --side-size: 2rem;
    background-color: transparent !important;
    border: 1px solid var(--gray-d8) !important;
    border-radius: 4px !important;
    width: var(--side-size) !important;
    height: var(--side-size) !important;
}

.custom-pagination .-btn:enabled:hover {
    background-color: var(--gray-f3) !important;
}

.custom-pagination .-previous {
    flex: 0 1 !important;
}

.custom-pagination .-next {
    flex: 0 1 !important;
}

.custom-pagination .-btn {
    display: flex !important;
}

.logs__table .-pageInfo {
    --side-size: 2rem;
    font-variant-numeric: tabular-nums !important;
    background-color: transparent !important;
    border: 1px solid var(--gray-d8) !important;
    border-radius: 4px !important;
    width: var(--side-size) !important;
    height: var(--side-size) !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.logs__table .pagination-bottom {
    justify-content: center !important;
    display: flex !important;
}

.logs__table .-center:before {
    content: '...';
    transform: translateY(-0.25rem);
    margin: auto;
}

.logs__table .-center:after {
    content: '...';
    transform: translateY(-0.25rem);
    margin: auto;
}

.icon--detailed-info {
    position: absolute;
    right: 0;
    top: 0.5rem;
}

.link--green {
    color: var(--green79);
}

.row--detailed {
    height: 4.9rem
}

.w-90 {
    max-width: 90% !important;
}

.h-85 {
    height: 85% !important;
}

.pt-45 {
    padding-top: 1.25rem !important;
}

.pb-45 {
    padding-bottom: 1.25rem !important;
}

.py-45 {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

.mh-100 {
    max-height: 100% !important;
}

.cursor--pointer {
    cursor: pointer;
}

.custom-select__arrow--left {
    background: var(--white) url('../ui/svg/chevron-down.svg') no-repeat;
    background-position: 5px 9px;
    background-size: 22px;
}

.custom-select--logs {
    padding: 0.5rem 0.75rem 0.5rem 2rem !important;
}

.bg--danger {
    color: var(--danger);
}

.form-control--search {
    box-shadow: 0 1px 0 #ddd;
    padding: 0 2.5rem;
    height: 2.25rem;
    flex-grow: 1;
}

.form-control--transparent {
    border: 0 solid transparent !important;
    background-color: transparent !important;
}

.input-group-search {
    background-color: transparent;
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    top: 0.4rem;
}

.input-group-search__icon--magnifier {
    left: 2rem;
}

.input-group-search__icon--cross {
    left: -4.5rem;
    cursor: pointer;
}

.input-group-search__icon--tooltip {
    left: -4rem;
}

.form-control--container {
    flex: auto;
}

.field__search {
    display: flex;
    flex-grow: 1;
}

@media (max-width: 767.98px) {
    .rt-tr .logs__row .logs__text {
        max-width: calc(100% - 1.5rem);
    }

    .ml-small {
        margin-left: 1.5rem;
    }

    .form-control--container {
        width: 100%;
        flex-direction: column;
    }

    .form-control--search {
        width: 100%;
    }

    .field__select {
        margin-top: 1.5rem;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 575px) {
    .logs__table .rt-tr {
        height: 3.125rem;
    }

    .logs__table .rt-tbody .rt-td {
        padding: 0.625rem 1rem 0.875rem 0;
    }

    .logs__table {
        min-height: 42rem;
    }
}

.loading__container > .-loading-inner {
    top: 10rem !important;
    bottom: initial !important;
}

.loading__text {
    transform: translateY(3rem);
}

.logs__refresh {
    position: relative;
    top: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: 15px;
    background-color: transparent;
}
