.table-responsive {
    float: left;
    width: 100%;
    overflow-y: hidden;

    @media all and (max-width: 767px) {
        margin-top: 10px;
        border: none;

        .table {
            @media all and (max-width: 767px) {
                margin-top: 0;
            }
        }
    }
}

.table {
    margin: 10px 0;
    @extend .table;

    > tbody,
    > tfoot,
    > thead {
        > tr {
            > th,
            > td {
                padding: 10px;
                vertical-align: middle;
                max-width: 300px;
                @media all and (max-width: 1400px) and (min-width: 1280px) {
                    max-width: 180px;
                }
                word-wrap: break-word;

                &.text-center {
                    text-align: center !important;
                }

                &.text-left {
                    text-align: left !important;
                }

                &.text-right {
                    text-align: right !important;
                }
            }
        }
    }

    &__in-modal {
        > tbody,
        > tfoot,
        > thead {
            > tr {
                > th,
                > td {
                    &:first-child {
                        text-align: left;
                    }
                }
            }
        }
    }

    .sorting {
        white-space: nowrap;
        a {
            display: block;
            position: relative;
            padding-right: 25px;
        }

        .sorting-icons {
            display: inline-block;
            position: relative;
            top: 1px;
        }

        .fa {
            font-size: 14px;
            float: right;
            color: rgba($default-color, 0.5);

            &:last-child {
                margin-left: 10px;
            }
        }
    }


    th a {
        font-weight: bold;
        text-decoration: none;
    }

    td a {
        text-decoration: none;
        font-weight: normal;

        &:hover {
            text-decoration: underline;
        }
    }

    .btn {
        color: #fff;
        font-weight: normal;

        &:hover {
            text-decoration: none;
        }
    }

    .cr-styled {
        position: relative;
        top: 4px;
    }

    .form-group {
        display: inline-block;
        width: 49%;
        position: relative;
        margin-bottom: 0;
    }

    .ion-close-circled {
        color: $btn-delete-bg;
        font-size: 16px;
        cursor: pointer;
    }

    &__languages {
        .translated {
            input {
                min-width: 200px;
            }
        }
    }

    .td-wide {
        min-width: 220px;
        @media all and (max-width: 1130px) and (min-width: 1024px) {
            min-width: 180px;
        }
    }
}

.table-bordered {
    @extend .table-bordered;

    > tbody {
        > tr {

            &.network-field-evenrow {
                td {
                    border: none !important;
                    background: #F7F7F7;
                    text-align: right;
                }
            }

            &:nth-of-type(odd) {
                background-color: $tr-odd-bg;
            }

            &:nth-of-type(even) {
                background-color: $tr-even-bg;
            }
        }
    }

    > tbody,
    > tfoot,
    > thead {
        > tr {
            &:hover {
                background: $tr-bg-hover;
            }
        }
    }
}

.table-striped {
    @extend .table-striped;

    tbody > tr {
        &:nth-of-type(odd) {
            background: none;
        }

        &:nth-of-type(odd):hover,
        &:hover {
            background: $tr-bg-hover;
        }

    }

    td.sortable-handle {
        width: 45px !important;
        text-align: center;
    }

    th,
    td {
        padding: 13px 10px !important;
    }

    td {
        text-align: left;
        border-top: 1px solid rgba(#ddd, 0.36) !important;
        white-space: normal !important;
    }
}

.custom-feed {
    &__form {
        td {
            white-space: nowrap;
        }
    }

    &__text {
        background-color: transparent;
        position: fixed;
        border: none !important;
        outline: none;
        box-shadow: none;
        left: -10000px;
    }

    &__copy {
        margin-bottom: 20px
    }
}

.table__export {
    > tbody > tr > td,
    > thead > tr > th {
        text-align: left;

        &:first-child {
            text-align: left;
        }
    }

    > thead > tr {
        background: $tr-odd-bg;
    }

    td:first-child {
        white-space: nowrap;
    }

    .cr-styled {
        padding-right: 15px;
        .fa {
            float: left;
            margin-top: 0;
        }
    }

    .ui-datepicker-trigger {
        right: 10px;
        top: 4px;
    }
}

.table__language {
    margin: 0;

    > tbody > tr {
        background: #fff !important;

        > td:first-child {
            white-space: nowrap;
            min-width: 150px;
        }
    }
}

.table__payment {
    > tbody,
    > thead {
        > tr {
            > th,
            > td {
                border-left: none;
                border-right: none;

                &:first-child {
                    white-space: nowrap;
                }

                &.required {
                    border-left: 1px solid #ddd;
                }
            }
        }
    }
}

.table__invoice {
    #complexFields_items td {
        white-space: normal !important;
    }

    tr {
        td:first-child {
            white-space: normal !important;
            min-width: 300px;
        }
    }

    td {
        vertical-align: top !important;
    }

    .invoice__th {
        border-bottom: 2px solid #ddd !important;
    }

    .total__td {
        border-top: 1px solid #ddd !important;
    }

    .invoice__td:last-child,
    .invoice__th:last-child {
        width: 220px;
    }

    hr {
        margin-top: 20px;
        margin-bottom: 20px;
        border: 0;
        border-top: 1px solid #ddd;
    }

    .label {
        position: relative;
        top: -2px;
    }
}

.table__user-products {
    th:first-child {
        min-width: 220px;
        white-space: normal;
    }
}

.table__products {
    tr {
        &:hover {
            background: $tr-bg-hover;
        }
    }

    th,
    td {
        padding: 13px 10px !important;
        line-height: 1.42857;
        vertical-align: middle;
    }

    th {
        border-bottom: 2px solid #ddd;
    }

    td {
        text-align: left;
        border-top: 1px solid rgba(221, 221, 221, 0.36) !important;
        white-space: normal !important;
    }

    .ion-close-circled {
        color: $btn-delete-bg;
        font-size: 16px;
        cursor: pointer;
    }

    .sortable-handle {
        position: relative;
        top: 5px;
    }
    &-name {
        .label {
            line-height: 1.6;
        }
    }
}

.comment-td {
    vertical-align: top !important;
}

.table__email-templates {
    td:first-child {
        white-space: nowrap;
    }
}

.table__pagination {
    .resultsnumber {
        line-height: 34px;
        margin: 2px 15px 10px 0;
        display: inline-block;
    }
}

.table__pagination--header,
.table__pagination--footer {
    .pagination__right {
        display: inline-block;
        margin-top: 8px;

        @media all and (min-width: 992px) {
            float: right;
        }

        @media all and (max-width: 992px) {
            float: left;
            width: 100%;
        }
    }

    .pagination {
        display: block;


        @media all and (min-width: 767px) {
            float: right;
            margin: 0 0 0 25px;
        }

        @media all and (max-width: 767px) {
            display: inline-block;
            vertical-align: middle;
            margin: 0 0 5px 0;
        }
    }
}
.table__pagination--header {
    float: left;
    width: 100%;
    line-height: 40px;
    min-height: 40px;
}

.table__pagination--footer {
    margin-top: 10px;

    .numberPerPage__discounts {
        margin-top: 3px;
    }
}

.numberPerPage {
    margin-bottom: 10px;
    display: inline-block;

    @media all and (max-width: 767px) {
        margin-right: 25px;
    }
}

.pagination {
    margin-top: 0;
    margin-bottom: 0;

    > li {
        position: relative;

        > a,
        > span {
            color: #373e4a;
            background-color: #fff;
            border: 1px solid #ddd;
            display: block;
            text-align: center;
            min-width: 41px;
            position: relative;
            padding: 7px 15px;
            height: 34px;
        }

        &:not(:first-child),
        &:not(:last-child) {
            > a,
            > span {
                min-width: initial;
            }
        }

        &.active {
            > a,
            > span,
            > a:hover,
            > span:hover,
            > a:focus,
            > span:focus {
                background-color: #1c2b36;
                border-color: #1c2b36;
                color: #fff !important;
            }

            .fa {
                position: absolute;
                right: 4px;
                top: 8px;
            }
        }
    }

    .page-field {
        border: 1px solid #1c2b36;
        position: absolute;
        margin: 20px 0 0 -35px;
        width: 85px;
        top: 13px;
        right: 0;

        .content-current,
        .title-current {
            padding: 5px;
        }

        .content-current {
            height: 40px;
            background: #fff ;
            text-align: center;

            .page-input {
                margin: 5px 0;
                position: relative;
                float: left;
            }

            input[type="text"] {
                width: 45px;
                height: 24px;
            }

            .page-enter-button {
                margin: 5px 0;
                position: relative;
                float: right;
                height: 24px;
            }

            #enterButton_header {
                height: 24px;
                background: none;
                border: none;

                .fa {
                    color: #1c2b36;
                    top: 4px;
                }
            }
        }

        .title-current {
            background: #1c2b36 ;
            color: #fff;
            text-align: center;
        }
    }

    &.pagination__discounts {
        margin-left: 0 !important;
    }
}

.numberPerPage__discounts {
    margin-right: 15px !important;
}

.panel--accordion {

    &:not(.panel--max) {
        max-width: 600px;
    }

    .panel-heading {
        margin: 0;
        padding: 0;
        border: none;
    }

    .table {
        margin-top: 0;
    }
}

.panel {
    position: relative;

    > .panel-heading {
        color: $default-color;
    }

    .panel-title {

    }
}

.panel .panel-heading+.panel-collapse .panel-body {
    border-top: 1px solid #DDDDDD;
    margin-top: 15px;
    padding-top: 20px;
}

.panel .panel-heading a {
    display: block;
    text-decoration: none;
    &:hover {
        color: #2A3542;
        text-decoration: none;
    }
}

.panel .panel-heading a[data-toggle=collapse].collapsed:before, .panel-group .panel .panel-heading .accordion-toggle.collapsed:before {
    content: '\f067';
}

.panel .panel-heading a[data-toggle=collapse]:before, .panel-group .panel .panel-heading .accordion-toggle:before {
    float: right;
    display: block;
    content: '\f068';
    font-family: 'FontAwesome';
    font-size: 14px;
    width: 25px;
    text-align: right;
}

.panel-collapse {
    tr:first-child td {
        border-top: none;
    }
}

.nav.nav-tabs+.tab-content,.tabs-vertical-env .tab-content {
    background: #FFF;
    padding: 30px;
    margin-bottom: 30px;
}

.nav.nav-tabs>li.active>a,.tabs-vertical-env .nav.tabs-vertical li.active>a {
    border: 0;
    background-color: #fff;
    border-top: 2px solid #D8D6D6;
}

.nav.nav-tabs>li>a {
    border: none;
    background-color: #eee;
    margin-right: 5px;
    padding-left: 20px;
    padding-right: 20px;
    cursor: pointer;
    border-radius: 0;
    border-top: 2px solid #eee;
}

.nav.nav-tabs>li:last-of-type a {
    margin-right: 0px;
}

.nav.nav-tabs {
    border-bottom: 0;
}

.nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:hover, .nav-tabs.nav-justified>.active>a:focus ,.tabs-vertical-env .nav.tabs-vertical li.active>a {
    border: none;
    border-top: 2px solid #D8D6D6;
}

.table-clear .ui-datepicker-trigger {
    top: 4px;
    z-index: 9;
}

.ui-datepicker {
    z-index: 1001 !important;
}

.dropdown--filter {
    width: 280px;
    display: inline-block;
    margin-top: 20px;
    margin-right: 15px;

    @media all and (max-width: 480px) {
        text-align: left;
        margin-bottom: 10px;
    }

    .table .cr-styled {
        top: 0;
    }

    .btn-dropdown {
        width: 100%;
        height: 34px;

        @extend .btn;
        @include button-variant($default-color, #fafafa, #ccc);

        &:hover,
        &:focus {
            background: #fff;
            outline: none;
        }
    }

    .btn-group {
        .btn:not(.btn--bordered) {
            &.active,
            &:hover,
            &:focus,
            &:active,
            &:active:focus {
                outline: none;
                color: $link-color;
                background: #e6eaed;
                border-color: #8c8c8c;
                @include prefix(box-shadow, none, moz webkit ms o);
            }
        }
    }

    .caret {
        position: absolute;
        right: 15px;
        top: 14px;
        color: #b3b3be;
    }

    .fa-search {
        position: absolute;
        left: 15px;
        color: #b3b3be;
    }

    .dropdown-menu {
        width: 310px;
        padding-top: 20px;
        @media all and (min-width: 767px) {
            left: -15px;
        }

        @media all and (max-width: 480px) {
            left: 0;
            width: 280px;
        }

        .ui-datepicker-trigger {
            right: 10px;
            left: initial;
            position: absolute;
            z-index: 9;
            top: 8px;
        }
    }
}

.items-count {
    display: inline-block;
    margin: 6px 10px 0 5px;
    min-height: 34px;
}

.label {
    color: #fff;

    &--pending {
        background-color: #f13c6e;
    }

    &--active {
        background-color: #2eb398;
    }

    &--inactive {
        background-color: #a1a1a1;
    }

    &--expired {
        background-color: #777;
    }
}

.enable-discount {
    .cr-styled {
        line-height: 34px;
        height: 34px;
    }
}

.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 13px !important;
    font-weight: normal;
    color: #ffffff;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
    text-align: center;
    background-color: #a1a1a1;
    border-color: #a1a1a1;
    border-radius: 12px;

    &-success {
        background-color: rgba(0, 150, 136, 0.8);
        font-size: 11px !important;
    }
}

.manage-phrases {
    .items-count {
        @media all and (max-width: 767px) {
            float: left;
            width: 100%;
        }
    }

    .number-per-page {
        margin-right: 15px;
    }

    .pagination {
        @media all and (max-width: 767px) {
            display: inline-block;
            vertical-align: middle;
        }
    }

    .pagination__right {
        float: left;

        @media all and (min-width: 992px) {
            float: right;
        }
    }
}

.table__job-import {
    .table {
        margin: 0;
        background: none;
    }

    tr:hover {
        background: none !important;
    }

    .draggableuser,
    .draggable {
        white-space: nowrap;
        height: 34px;
        line-height: 34px;
        padding: 0;
        text-align: center;
        width: 100%;
        max-width: 188px;
        cursor: pointer;
    }

    .droppable2Username,
    .droppableusername,
    .droppableuser,
    .droppable,
    .droppable2user,
    .droppable2 {
        height: 44px;
    }

    #expiration_date {
        display: block;
    }

    td {
        border: none !important;

        &.td-header {
            padding: 0 10px!important;
        }
    }
}

.active-theme {
    &:before,
    &:after {
        display: table;
        content: " ";
    }

    &:after {
        clear: both;
    }

    &__left {
        float: left;
        width: 100%;
        @media all and (min-width: 767px) {
            width: 150px;
        }
    }

    &__right {
        float: left;
        width: calc(100% - 150px);
        max-width: 700px;
        padding-left: 30px;

        @media all and (max-width: 767px) {
            width: 100%;
            padding-left: 0;
            margin-top: 30px;
        }

        img {
            max-width: 100%;
        }
    }
}


.theme-name {
    margin-bottom: 15px;
    font-size: 20px;
}

.theme-tools {
    .theme-tools__btn {
        display: block;
        text-align: center;
        max-width: 150px;

        @media all and (max-width: 767px) {
            display: inline-block;
            margin-bottom: 15px;
        }

        &:first-child {
            @media all and (min-width: 767px) {
                margin-bottom: 15px;
            }

            @media all and (max-width: 767px) {
                margin-right: 15px;
            }
        }
    }
}

.theme__lists__title {
    margin: 25px 0;
    padding-top: 25px;
    border-top: 2px solid #e0dfdf;
    font-size: 26px;
}

.theme__link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
}

.theme__item {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    width: 250px;
    margin-right: 40px;
    overflow: hidden;

    img {
        max-width: 100%;
        border-radius: 6px;
    }

    &:hover {
        .theme__center .btn--primary {
            visibility: visible;
        }
    }

    .theme-img__wrapper {
        position: relative;
        display: block;
    }

    &.current {
        .theme-img__wrapper {
            position: relative;
        }

        .btn--primary {
            display: none !important;
        }

        .btn--primary,
        .theme__link {
            pointer-events: none;
        }
    }

    &.current .theme-img__wrapper:before,
    &:hover .theme-img__wrapper:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.6);
    }

    &:hover .theme-img__wrapper:before {
        z-index: 0;
    }

    &__name {
        font-size: 18px;
        margin-bottom: 5px;
        display: block;
        text-align: center;

        strong {
            text-transform: lowercase;
            font-size: 16px;
        }
    }
}

.theme__center {
    display: inline-block;
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    font-size: 24px;
    margin-top: -5px;
    padding: 5px;
    left: 0;

    .btn--primary {
        display: inline-block;
        visibility: hidden;
        margin-top: 0 !important;
        text-align: center;
    }
}

.table-responsive__list-editing {
    width: 100%;

    @media all and (max-width: 767px) {
        overflow-x: auto;
    }

    .table > tbody + tbody {
        border-top: none;
    }

    .tbody--sort .td-wide {
        width: 100% !important;
    }
}

.table__refine-search {
    tr:first-child td {
        border-top: none !important;
    }
}

.list-widget {
    .panel-heading {
        background-color: #fff;
        border-color: rgba(0, 0, 0, 0.08);
    }

    &__status {
        min-height: 38px;
    }

    &__tools {
        @media all and (min-width: 992px) {
            text-align: right;
        }
    }

    .btn {
        @media all and (min-width: 360px) {
            margin-right: 10px;
        }
    }

    &__img {
        max-width: 100%;
        max-height: 32px;
    }

    .inactive {
        opacity: 0.5;
        pointer-events: none;
    }

    .label {
        position: relative;
        top: 10px;
    }

    &__caption {
        display: inline-block;
        line-height: 38px;
        vertical-align: bottom;
    }

    .listing-feeds a {
        display: inline-block;
    }

    .panel-title .fa {
        font-size: 32px;
    }

    .ion-ios7-locked {
        font-size: 42px;
    }
}

.table__fields-list {
    .ui-sortable {
        .td-wide {
            width: 100% !important;
        }
    }
}