﻿.table-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    position: relative;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
}

.table-wrapper table {
    border-collapse: collapse;
    font-size: 14px;
    width: 100%;
}

.table-wrapper table thead tr th {
    white-space: nowrap;
    text-align: start;
    position: relative;
    padding: 17px 16px;
    color: #324053;
}

.table-wrapper table thead tr th::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--btn-yellow-light);
    border-radius: 10px;
    z-index: -1;
    border: 1px solid #0000001a;
    margin-left: 3px;
    margin-right: 3px;
    max-width: calc(100% - 3px - 3px);
}

.table-wrapper table thead tr th.clickable::after {
    background-color: var(--btn-blue-light);
    border: 1px solid var(--btn-bo-blue-deep);
}

.table-wrapper table thead tr th:first-child::after {
    margin-right: 3px;
    max-width: calc(100% - 3px - 3px);
}

.table-wrapper table thead tr th:last-child::after {
    margin-left: 3px;
    max-width: calc(100% - 3px - 3px);
}

.table-wrapper table tbody tr {
    position: relative;
}

.table-wrapper table tbody tr::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: calc(100% - 3px - 3px);
    background-color: #ffffff;
    border-radius: 10px;
    z-index: -1;
    border: 1px solid #0000001a;
}

.table-wrapper table tbody tr:hover::after {
    background-color: var(--btn-blue-light);
}

.table-wrapper table tbody tr td {
    padding: 20px 16px 14px 16px;
    color: #324053;
}

.table-wrapper table tbody tr td:empty::after {
    content: '-';
    user-select: none;
    -moz-user-select: none;
    opacity: 0.5;
}

.table-wrapper.nowrap table thead tr th,
.table-wrapper.nowrap table tbody tr td {
    white-space: nowrap !important;
}

.table-wrapper .align-start {
    text-align: start;
}

.table-wrapper .align-end {
    text-align: end;
}

.table-wrapper .align-center {
    text-align: center;
}

.table-wrapper .fit-content {
    width: 1%;
}

.table-wrapper .table-func {
    width: max-content;
    height: auto;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.table-wrapper .table-func button {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    padding: 5px 10px;
}

.table-wrapper .table-func button:active {
    opacity: 0.8;
}

.table-wrapper .table-func button:disabled {
    opacity: 0.5;
    cursor: default;
}

.table-wrapper .table-func button.default-primary {
    background-color: var(--bluedeep-new);
    color: #fff;
    border-color: var(--bluedeep-new);
}

.table-wrapper .table-func button.default-secondary {
    background-color: transparent;
    color: var(--bluedeep-new);
    border-color: var(--bluedeep-new);
}

.table-wrapper .table-func button.danger-primary {
    background-color: var(--btn-red-deep);
    color: #fff;
    border-color: var(--btn-red-deep);
}

.table-wrapper .table-func button.danger-secondary {
    background-color: transparent;
    color: var(--btn-red-deep);
    border-color: var(--btn-red-deep);
}

.tableRowSelect {
    accent-color: var(--bluedeep-new);
    width: 18px;
    height: 18px;
    cursor: pointer;
    transform: translateY(2px);
}

@media only screen and (max-width: 767px) {}

@media only screen and (min-width: 768px) and (max-width: 1024px) {}

@media only screen and (min-width: 1025px) and (max-width: 1600px) {
    .table-wrapper .table-func button:not(:disabled):hover {
        opacity: 0.9;
    }
}