﻿

@media ( max-width: 786px ) {
    .form-control {
        padding: 6px !important;
    }
}

.toClass:hover {
    cursor: default;
}

.exportButtons {
    display: flex;
    justify-content: space-between;
    width: 300px;
}


#pl-report-table th,
#pl-report-table td {
    padding: 0.5rem 0.5rem;
    width: 6.67%;
    text-align: right;
}

#pl-report-table td {
    vertical-align: middle !important;
}

    #pl-report-table td p {
        margin: 0 !important;
    }

    #pl-report-table td.text-left {
        text-align: left;
    }

.toggleable-tr {
    display: none;
}

    .toggleable-tr.show {
        display: table-row !important;
    }

#pl-report-table thead tr, #pl-report-table thead tr th {
    border: hidden !important;
    background-color: white;
}
#pl-report-table thead tr, #pl-report-table tfoot tr th {
    border: hidden !important;
    background-color: white;
}

    #pl-report-table thead tr th:hover {
        background-color: #f1f1f1 !important;
    } 
    #pl-report-table tfoot tr th:hover {
        background-color: #f1f1f1 !important;
    }

.table-general-header-column {
    background-color: #f3f3f3 !important;
    border: 1px solid #e7eaec;
}

#pl-report-table > tbody + tbody {
    border: 1px solid #e7eaec !important;
}

.bg-\[\#f3f3f3\] {
    background-color: #f3f3f3 !important;
}

.table-general-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

    .table-general-header > svg {
        width: 24px;
        height: 24px;
        position: -webkit-sticky;
        position: sticky;
        left: 7px;
    }

.table-general-header-title {
    position: -webkit-sticky;
    position: sticky;
    left: 40px;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    vertical-align: middle !important;
}

.collapseButton {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

    .collapseButton > svg {
        width: 16px;
        height: 16px;
        vertical-align: middle !important;
    }

.datepickerCollapse {
    padding: 0px !important;
}

    .datepickerCollapse > button {
        border: 0px !important;
    }

        .datepickerCollapse > button > svg {
            width: 16px;
            height: 16px;
            vertical-align: middle !important;
        }

.input-group-addon {
    width: 40px !important;
    border: hidden !important;
}

#pl-report-table .active-bg td {
    background-color: #f4f4f4 !important;
}

#pl-report-table tr:hover {
    background-color: #e6e6e6 !important;
}

    #pl-report-table tr:hover td {
        background-color: #e6e6e6 !important;
    }

#pl-report-table tr#refund-cost-tr.active-bg button svg {
    transform: rotate(180deg);
}

#pl-report-table tr#otherIncome-tr.active-bg button svg {
    transform: rotate(180deg);
}

#pl-report-table tr#fulfilment-tr.active-bg button svg {
    transform: rotate(180deg);
}

#pl-report-table tr#advert-tr.active-bg button svg {
    transform: rotate(180deg);
}

#pl-report-table tr#inventory-tr.active-bg button svg {
    transform: rotate(180deg);
}

#pl-report-table tr#other-tr.active-bg button svg {
    transform: rotate(180deg);
}

#pl-report-table tr#ads-cost-tr.bg-gray-200 button svg {
    transform: rotate(180deg);
}

#pl-report-table tr#shipping-cost-tr.bg-gray-200 button svg {
    transform: rotate(180deg);
}


.datepickerCollapse button.active svg {
    transform: rotate(180deg);
}

#pl-report-table .headcol {
    position: -webkit-sticky;
    position: sticky;
    background-color: white;
    top:0;
    left: 0;
    width: 10%;
    min-width: 140px !important;
}

#pl-report-table tr td:first-child:before {
    content: '';
    position: absolute;
    height: 100%;
    top: 0;
    left: -2px;
    border-left: 3px solid #e7eaec;
}
#pl-report-table tr td:first-child:after {
    content: '';
    position: absolute;
    height: 100%;
    top: 0;
    right: -1px;
    border-right: 2px solid #e7eaec;
}

button.collapseButton {
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    margin: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    outline: none;
}

.data-table-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    padding-top: 20px;
    overflow-x: scroll;
    margin-bottom: 40px;
    font-family: "Inter", sans-serif;
}

.datatable-right-top-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
}

#rangeTypeDatePicker {
    height: 40px !important;
}

    #rangeTypeDatePicker input {
        height: 40px !important;
    }

#plReportForm {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#datePickerDropdownMenu {
    width: inherit !important;
    max-width: 400px !important;
    margin-top: 5px !important;
}

.rangeTypeChild {
    padding: 5px 10px 5px 10px;
}

.dropdown-menu > li.active {
    background-color: #337ab7 !important;
    color: #fff !important;
}

.dropdown-menu > li:hover {
    background-color: #E6F1FB !important;
}

@media (max-width:1200px) {
    .datatable-right-top-actions {
        align-items: flex-start !important;
    }
    .data-table-section{
        margin-right:-10px;
        margin-left:-10px;
    }
}
