@media screen and (max-width:1024px) {
    .bill-print .p-details {
        width: 50%;
    }

    .actions {
        position: absolute;
        top: 0;
        right: 0;
    }

    .gen_heading {
        padding-bottom: 35px;
    }

}

@media screen and (max-width:900px) {

    .vertical-menu {
        position: fixed;
        left: 0;
        top: 0;
        display: none;
        width: 100%;
    }

    .vertical-collpsed .vertical-menu {
        display: block;
        z-index: 999;
    }

    .dash-head,
    .dash-head .btn {
        margin: 20px 0;
    }

    .dash-head .btn {
        margin-top: 20px;
    }

    .vertical-collpsed .main-content {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding-right: 0;
        padding-left: 0;
        padding-top: 65px;
    }

    td:first-child,
    th:first-child {
        padding-left: 0 !important;
    }

    #full-table tr td:last-child,
    #test-tables tr td:last-child {
        width: auto;
        padding-right: 20px !important;
    }

    table {
        border: 0;
        border-collapse: collapse;
        margin: 0;
        padding: 0;
        width: 100%;
        table-layout: fixed;
    }

    table caption {
        text-align: left;
        font-size: 1.3em;
        margin: 0.5em 0 0.75em;
    }

    table thead {
        display: none;
    }

    table tr {
        display: block;
        border: 2px solid rgb(7, 81, 64);
        padding: 0;
        border-radius: 12px;
    }

    table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        font-weight: 700;
        padding: 6px 20px !important;
        font-size: 16px;
        line-height: 1.35em;
        transition: all 0.4s ease;
    }

    table td:before {
        text-transform: capitalize;
        font-size: 16px;
        content: attr(data-label) ':';
        display: table-cell;
        margin-right: 10px;
        font-weight: normal;
    }

    table td+td {
        margin-top: 0;
    }

    table td:last-child {
        border-bottom: 0;
    }

    .footer {
        left: 0;
    }

    tr td:first-child {
        padding-top: 20px !important;
        padding-left: 20px !important;
    }


    tr td:last-child::before {
        display: none;
    }

    tr td:first-child::before {
        font-size: 12px;
        position: absolute;
        top: 5px;
        content: attr(data-label);
    }

    tr td:first-child::after {
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        width: 10px;
        height: 10px;
        right: 20px;
        top: 20px;
        position: absolute;
    }

    tr td:last-child {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    tbody {
        display: grid;
        gap: 20px;
        grid-template-columns: auto auto;
    }

    tr {
        position: relative;
        height: 60px;
        overflow: hidden;
        transition: all 0.5s ease;
    }

    tr.tr-show {
        height: 300px;
    }

    tr.tr-show td:first-child {
        padding-bottom: 20px !important;
    }

    .status::before {
        display: none;
    }

    .status {
        position: absolute;
        right: 20px;
        top: 13px;
    }

    .action {
        position: absolute;
        bottom: 0;
        opacity: 0;
        visibility: none;
        transition: all 0.4s ease;
        z-index: -1;
    }

    tr.tr-show .action {
        display: block;
        opacity: 1;
        visibility: visible;
        z-index: 0;

    }

    /* custom */
    .dashboard-table tr td:first-child {
        display: none;
    }

    .dashboard-table tr td:nth-child(2)::after {
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        width: 10px;
        height: 10px;
        right: 20px;
        top: 20px;
        position: absolute;
    }

    .dashboard-table tr td:nth-child(2)::before {
        font-size: 12px;
        position: absolute;
        top: 5px;
        content: attr(data-label);
    }

    .dashboard-table tr.tr-show td:nth-child(2) {
        padding-bottom: 20px !important;
    }

    .dashboard-table tr td:last-child::before {
        display: none;
    }

    .dashboard-table tr td:nth-child(2) {
        padding-top: 20px !important;
    }

    .dashboard-table tr td:last-child {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .testlist-wrap {
        position: unset;
    }

    .test-list-popup {
        transition: all 0.5s ease-in;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #ffffffed;
        height: 100%;
    }

    .order-inner tr {
        height: auto;
        padding-top: 20px !important;
    }

    .order-inner tr td:first-child {
        display: none;
    }



    .print-table thead {
        display: table-header-group;
    }

    .print-table tr {
        display: table-row;
        border: 0;
    }

    .print-table th,
    .print-table td {
        text-align: center;
    }

    .print-table th {
        font-size: 0.85em;
        text-transform: uppercase;
    }

    .print-table td {
        display: table-cell;
        font-weight: normal;
        font-size: inherit;
    }

    .print-table td:before {
        display: none;
    }

    .print-table td:last-child {
        border-bottom: 1px solid #eee;
    }

    .print-table tbody {
        display: contents;
    }

    .print-table tr td:first-child::after {
        display: none;
    }


    .resulttable tr {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        position: relative;
        height: auto;
    }

    .resulttable tr td::before,
    .resulttable tr td::after {
        display: none;
    }

    .resulttable tr td {
        font-weight: normal;
        font-size: 14px;
        width: 100%;
    }

    .resulttable tr td:last-child {
        padding-top: 0 !important;

    }

    .resulttable tr td input {
        border-color: #000;
    }

    .resulttable .result-input {
        width: 100%;
    }

    .resulttable tr td:last-child {
        display: flex;
        flex-direction: column;
    }

    /*************************************/
    #bill-tables {
        border: 0;
        border-collapse: collapse;
        margin: 0;
        padding: 0;
        width: 100%;
        table-layout: fixed;
    }

    #bill-tables caption {
        text-align: left;
        font-size: 1.3em;
        margin: 0.5em 0 0.75em;
    }

    #bill-tables thead {
        display: none;
    }

    #bill-tables tr {
        display: block;
        border: 2px solid rgb(7, 81, 64);
        padding: 0;
        border-radius: 12px;
    }

    #bill-tables td {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        font-weight: 700;
        padding: 6px 20px !important;
        font-size: 16px;
        line-height: 1.35em;
        transition: all 0.4s ease;
    }

    #bill-tables td:before {
        text-transform: capitalize;
        font-size: 16px;
        content: attr(data-label) ':';
        display: table-cell;
        margin-right: 10px;
        font-weight: normal;
    }

    #bill-tables td+td {
        margin-top: 0;
    }

    #bill-tables td:last-child {
        border-bottom: 0;
    }

    #bill-tables tr {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        position: relative;
        height: auto;
    }

    #bill-tables tr td::before,
    #bill-tables tr td::after,
    .slno {
        display: none !important;
    }

    #bill-tables tr td {
        font-weight: normal;
        font-size: 14px;
        width: 100%;
    }

    #bill-tables tr td:first-child {
        padding-top: 20px !important;
    }

    #bill-tables tr td:last-child {
        padding-top: 20px !important;
        padding-bottom: 20px !important;

    }

    #bill-tables tr td input {
        border-color: #000;
    }

    #bill-tables .result-input {
        width: 100%;
    }

    #bill-tables tr td:last-child {
        display: flex;
        flex-direction: column;
    }

    h4 {
        text-align: left;
    }

    #bill-tables tr+tr {
        margin: 20px 0;
    }

    #test-price {
        position: absolute;
        right: 0;
        top: -14px;
    }

    #amount-table tr td:last-child::before {
        text-transform: capitalize;
        font-size: 16px;
        content: attr(data-label) ':';
        display: table-cell !important;
        margin-right: 10px;
        font-weight: normal;
    }

    .order-h {
        margin-top: 20px;
    }

    

}


@media screen and (max-width: 767px) {

    div.dataTables_wrapper div.dataTables_length,
    div.dataTables_wrapper div.dataTables_filter,
    div.dataTables_wrapper div.dataTables_info,
    div.dataTables_wrapper div.dataTables_paginate {
        text-align: left !important;
        margin-bottom: 20px;
    }

    .date-live {
        display: none !important;
    }

    .re-head {
        position: relative;
    }

}

@media screen and (max-width: 567px) {
    tbody {

        grid-template-columns: auto;
    }

    .bill-print .p-details {
        width: 100%;
    }

    .gen_heading .ms-4,
    .gen_heading .ms-5 {
        margin: 0 !important;
        position: absolute;
        bottom: 6px;
        left: 0;
    }

    .gen_heading .ms-5 {
        bottom: -15px;
    }

    .bill-print {
        margin-top: 40px;
    }

    .order-h {
        display: block !important;
    }

    .btn-pill {
        margin-bottom: 10px;
    }




}