:root {
    --gray: #A0A7B1;
    --gray-mid: #F1F2F6;
    --sticky-z-index: 1;
    --sticky-top: 0;
    --gradient-color-start: rgba(107, 107, 107, 0);
    --gradient-color-end: rgba(255, 255, 255, 18);
}
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar
}

.table,
.jsgrid .jsgrid-table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: white
}

.table thead th,
.jsgrid .jsgrid-table thead th {
    border-top: 0;
    border-bottom-width: 1px;
    font-weight: 500;
    font-size: .875rem;
    text-transform: uppercase
}

.table td,
.jsgrid .jsgrid-table td {
    font-size: 0.875rem;
    padding: .875rem 0.9375rem
}


tbody tr {
    border: none;
}

tbody td {
    border: none;
}

table tbody>tr>td,
table tbody>tr>th {
    background-color: white !important;
}

thead {
    z-index: 1;
    border-bottom: 1px solid #cfcfcf !important;
    border-top: 0px solid #dddddd;
}


thead th {
    border-top: 0px !important;
}

tfoot {
    background-color: white !important;
    border-top: 1px solid #cfcfcf;
    box-shadow: 0px 5px 5px -5px #acacac;
}

.shadow-custom {
    box-shadow: 0px -5px 5px -6px #acacac;
}

table {
    table-layout: auto;
    width: 100%;
}


th td {
    padding: 8px;
    text-align: left;
}

.d {
    text-align: right;
    padding-right: 10px;
}

.table-wrapper::-webkit-scrollbar {
    height: 12px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--ast-global-color-4);
    border-radius: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--ast-global-color-8);
    border-radius: 5px;
}

.table-wrapper p {
    font-size: 0.875rem;
    margin-bottom: .5rem;
    line-height: 1.5rem
}

.card-body .container {
    padding-left: 0px;
    padding-left: 0px;
}




/* How do like table in the page : tramite */

.table-widget {
    /* border-radius: 16px;
    padding: 24px; */
    width: 100%;
    /* max-width: auto;
    border: 1px solid #666;
    box-shadow: 0px 4px 16px 0px rgba(148, 156, 169, 0.15); */
}

.caption-container {
    font-size: 1.12rem;
    font-weight: 600;
    text-align: left;
    padding-bottom: 16px;
    border-bottom: 1px solid #f7f7f7;
}

.badge-custom {
    display: inline-block;
    padding: 0px .5em 4px .5em;
    font-size: 75%;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 8px;
    margin-top: -4px;
    padding-top: 8px;

}

.inside-badge {
    font-size: 80% !important;
    font-weight: 500;
    padding: 6px .6em 6px .6em;
}


.badge-table {
    margin-left: -10px;
    display: inline-block;
    padding: 6px .8em 6px .8em;
    font-size: 90%;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}

@media (min-width: 275px) and (max-width: 343px) {
    .badge-custom {
        margin-top: 4px;
    }
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-row-count {
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--gray-mid);
    padding: 8px;
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
    border-radius: 8px;
}

.caption-container {
    display: flex;
    width: 100%;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 370px) {
    .caption-container {
        white-space: wrap !important; 
    }
}
@media (max-width: 400px) {

    .badge-custom {
        /* margin-top: 8px; */
        padding: 8px .4em 6px .4em;
    }
    .inside-badge {
        padding: 6px .6em 6px .6em;
        margin-top: 0px;
    }
    
}

@media (min-width: 414px) {
    .table-title {
        display: flex;
        gap: 10px;
        flex-direction: row;
    }
}

.sticky-left,
.sticky-right {
    position: sticky;
    z-index: var(--sticky-z-index);
    top: var(--sticky-top);
}

.sticky-left {
    left: 0;
    width: 2rem !important;
    background: linear-gradient(to left, var(--gradient-color-start) 0%, var(--gradient-color-end) 45%);
}

.sticky-right {
    right: 0;
    background: linear-gradient(to right, var(--gradient-color-start) 0%, var(--gradient-color-end) 10%);
}

.medium-thead{
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight) !important;
}