@import url(../variables.css);
.productTable_length{
    max-width: 50%;
    width: 200px;
}

.dataTables_wrapper .dataTables_length{
    max-width: 100%;
    width: 200px;
    font-family: var(--common-family);
    font-size: 13px;
    padding: 10px 0;
}

.dataTables_wrapper .dataTables_length label, .dataTables_wrapper .dataTables_filter label{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: flex-start;
}

.dataTables_filter{
    max-width: 100%;
    width: 200px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    float: right;
}

.dataTables_wrapper .dataTables_filter input{
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 2px;
    
}

.dataTables_wrapper .dataTables_length select{
    max-width: 50%;
    padding: 13px;
}


table.dataTable>tbody>tr.child ul.dtr-details>li:last-child .actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.action-btns{
    height: 100%;
}

.action-btns .actions{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tbl-actions{
    padding: 14px;
    border-radius: 2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    border: none;
}

.tbl-actions.delete{
    background-color: var(--error);
}

.tbl-actions{
    position: relative;
}

.tbl-actions::before{
    position: absolute;
    top: -120%;
    border-radius: 3px;
    pointer-events: none;
    right: -100%;
    padding: 5px 3px;
    height: 17px;
    background-color: #000;
    text-align: center;
    width: 80px;
    text-wrap: wrap;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
}


.tbl-actions:hover::before{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.tbl-actions.edit::before{
    content: 'Edit';
}
.tbl-actions.delete::before{
    content: 'Delete';
}
.tbl-actions.update::before{
    content: 'Update';
}

.tbl-actions.edit, .tbl-actions.update{
    background-color: var(--success);
}


@media (max-width: 768px) {
  div.dataTables_wrapper div.dataTables_length,
  div.dataTables_wrapper div.dataTables_filter {
    width: 100%;
  }

  div.dataTables_wrapper div.dataTables_length,
  div.dataTables_wrapper div.dataTables_filter {
    display: inline-block;
    vertical-align: top;
    width: 49%;
    margin-bottom: 10px;
  }

  div.dataTables_wrapper div.dataTables_filter input {
    width: 100%;
    box-sizing: border-box;
  }
}
