html,
body {
    padding: 0;
    margin: 0;
}

:root {
    --color-flash-edit: #dba617;
    --color-flash-delete: #00ba37;
    --color-flash-add: #00ba37;
    --color-edit-button: #135e96;
    --color-delete-user-icon: #d63638;
    --color-global-button: #d63638;
    --color-global-button-active: #be272a;
}

* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
}

.fs-7 {
    font-size: 0.85rem !important;
}

.fs-8 {
    font-size: 0.7rem !important;
}


.contentArea a:hover {
    text-decoration: underline;
}

td {
    font-size: 14px;
}

tr:hover {
    background: rgba(34, 113, 177, 0.1) !important;
}

.sorting_1,
.sorting_2,
.sorting_3 {
    background-color: transparent !important;
}

a.paginate_button {
    transition: 300ms ease;
}

body {
    display: flex;
    background-color: #fff;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    display: flex;
    flex-direction: row;
}

.topBar {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    top: 0;
    height: 50px;
    width: 100%;
    background-color: #101517;
    z-index: 100;
}

.mainContent {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.leftMenu {
    background-color: #1d2327;
    min-width: fit-content;
    display: flex;
    flex-wrap: nowrap;
    min-height: 100vh;
    height: -webkit-fill-available;
    max-height: 100vh;
    /*overflow-x: auto;
    overflow-y: hidden;*/
    position: sticky;
    top: 0px;
    padding-top: 50px;
    transition: width 300ms ease;
}

.contentArea {
    flex-grow: 1;
    background-color: #f6f7f7;
    position: relative;
    padding-top: 50px;
}

@media screen and (max-width:576px) {
    .contentArea {
        padding: 50px 0 0 0 !important;
    }

    .dataTables_wrapper {
        padding: 0 !important;
    }

    .card-body {
        padding: 0 8px 0 8px;
    }

    a {
        word-break: break-word;
    }
}

table#main {
    width: 100% !important;
}

thead>tr>th {
    border-bottom: 1px solid black;
    font-size: 0.9em;
    padding-top: 10px;
    padding-bottom: 10px;
}

table.dataTable>thead>tr>th.dt-center:not(.sorting_disabled) {
    padding-left: 30px;
}

tbody>tr:not(:last-child)>td {
    border-bottom: 1px solid #e6e6e6;
}

tbody>tr>td:not(:last-child) {
    border-right: 1px solid #f2f2f2;
}

tbody>tr>td {
    padding-top: 7px;
    padding-bottom: 7px;
    background: transparent !important;
}



@media only screen and (min-width: 1101px) {
    ul.dtr-details {
        display: flex !important;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }
}

@media only screen and (min-width: 1200px) {
    div.menu-item-tooltip {
        display: none !important;
    }
}

ul.dtr-details li {
    border: none !important;
    display: flex !important;
    align-items: center;
}

ul.dtr-details li>span:first-child {
    padding-right: 10px;
}
/*
#main_wrapper {
    padding: 0 20px;
}
*/
.global-button {
    outline: none;
    color: var(--color-global-button);
    border-radius: 4px;
    border: 1px solid var(--color-global-button);
    background-color: transparent;
    transition: 200ms ease;
    padding: 7px 15px;
    cursor: pointer;
    font-size: 0.85em;
    margin: 0 5px;
    text-decoration: none;
}

.global-button:hover {
    color: #fff;
    text-decoration: none;
    background-color: var(--color-global-button);
}

.global-button:active {
    color: #fff;
    background-color: var(--color-global-button-active);
    box-shadow: 0px 0px 5px var(--color-global-button-active);
}



/* Order statuses - begin */

span[class^="order-status-"] {
    color: #fff;
    padding: 1px 4px;
    border-radius: 4px;
}

span.order-status-processing,
span.order-status-waitingforcustomer,
span.order-status-processing-service,
span.order-status-customer-service-review,
span.order-status-admin-service-review {
    background-color: #dba617;
}

span.order-status-waitingforpayment {
    background-color: gray;
}

span.order-status-publishing {
    background-color: #8be78b;
}

span.order-status-complete {
    background-color: #00ba37;
}

span.order-status-canceled,
span.order-status-paymentdeclined {
    background-color: #f86368;
}

/* Order statuses - end */

span.number-green,
span.number-dark,
span.number-yellow,
span.number-red,
span.number-light-green {
    padding: 1px 4px;
    border-radius: 4px;
}

span.number-green {
    background-color: var(--color-flash-add);
    color: #fff;
}

span.number-yellow {
    background-color: var(--color-flash-edit);
    color: #fff;
}

span.number-red {
    background-color: var(--color-flash-delete);
    color: #fff;
}

span.number-light-green {
    background-color: #8be78b;
    color: #fff;
}

span.number-dark {
    background-color: #343a40;
    color: #fff;
}

a {
    text-decoration: none;
}

/* Anims */

@keyframes flash-edited {
    0% {
        background-color: var(--color-flash-edit);
    }

    100% {
        background-color: transparent;
    }
}

@-webkit-keyframes flash-edited {
    0% {
        background-color: var(--color-flash-edit);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes flash-delete {
    0% {
        background-color: var(--color-flash-delete);
    }

    100% {
        background-color: transparent;
    }
}

@-webkit-keyframes flash-delete {
    0% {
        background-color: var(--color-flash-delete);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes flash-added {
    0% {
        background-color: var(--color-flash-add);
    }

    100% {
        background-color: transparent;
    }
}

@-webkit-keyframes flash-added {
    0% {
        background-color: var(--color-flash-add);
    }

    100% {
        background-color: transparent;
    }
}

.flash-edited {
    animation-name: flash-edited;
    animation-duration: 450ms;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    -webkit-animation-name: flash-edited;
    -webkit-animation-duration: 450ms;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease-in-out;
}

.flash-delete {
    animation-name: flash-delete;
    animation-duration: 450ms;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    -webkit-animation-name: flash-delete;
    -webkit-animation-duration: 450ms;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease-in-out;
}

.flash-added {
    animation-name: flash-added;
    animation-duration: 450ms;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    -webkit-animation-name: flash-added;
    -webkit-animation-duration: 450ms;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease-in-out;
}

tr.selected>td>a {
    color: #fff !important;
}

tr.selected>td>.dt-delete-button:not(:hover),
tr.selected>td>.dt-edit-button:not(:hover) {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Collapsible menu */

div.leftMenuCollapsed li.nav-item span, div.leftMenuCollapsed a.collapseLeftMenu span.collapseLabel {
    display: none !important;
}

div.leftMenuCollapsed li.nav-item a.nav-link {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

div.leftMenuCollapsed a.nav-link.collapseLeftMenu {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    justify-content: center !important;
}

a.collapseLeftMenu:hover {
    background-color: #2c3338;
}

a.collapseLeftMenu:active {
    background-color: #3c434a;
}

a.collapseLeftMenu span,
a.collapseLeftMenu span:before,
a.collapseLeftMenu span:after {
    transition: all 150ms ease;
}

a.collapseLeftMenu span.hideMenu {
    display: block;
    height: 1px;
    background-color: #fff;
    width: 30px;
}

a.collapseLeftMenu:hover span.hideMenu {
    height: 2px;
    width: 24px;
    margin-right: 6px !important;
}

a.collapseLeftMenu span.hideMenu:before {
    content: '';
    height: 1px;
    background-color: #fff;
    width: 19px;
    position: absolute;
    top: 5px;
}

a.collapseLeftMenu:hover span.hideMenu:before {
    background-color: #fff;
    width: 15px;
    height: 3px;
    top: 12px;
    transform: rotate(-30deg);
}

a.collapseLeftMenu span.hideMenu:after {
    content: '';
    height: 1px;
    background-color: #fff;
    width: 25px;
    position: absolute;
    bottom: 4px;
}

a.collapseLeftMenu:hover span.hideMenu:after {
    background-color: #fff;
    width: 15px;
    height: 3px;
    bottom: 12px;
    transform: rotate(30deg);
}

div.leftMenu.leftMenuCollapsed a.collapseLeftMenu:hover span.hideMenu {
    width: 22px;
    margin-right: 0px !important;
}

div.leftMenu.leftMenuCollapsed a.collapseLeftMenu span.hideMenu:before, div.leftMenu.leftMenuCollapsed a.collapseLeftMenu span.hideMenu:after {
    right: 0px;
}

div.leftMenu.leftMenuCollapsed a.collapseLeftMenu:hover span.hideMenu:before {
    transform: rotate(30deg) !important;
}

div.leftMenu.leftMenuCollapsed a.collapseLeftMenu:hover span.hideMenu:after {
    transform: rotate(-30deg) !important;
}

/* Select2 bootstrap */

textarea.select2-search__field {
    margin: 0 !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
}

span.select2-selection__arrow b {
    display: none;
}

span.select2-selection__arrow {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    width: 30px !important;
}

.select2-selection.select2-selection--multiple,
.select2-selection.select2-selection--single {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select2-selection {
    height: 100% !important;
    display: flex !important;
    align-items: center;
}

.select2-selection__arrow {
    top: unset !important;
}