#next_payout_date {
    padding-top: 5px;
}

#payouts_bank_transfer_notice {
    display: none;
    margin-bottom: 0;
}

.admin_page_payout-review #wpcontent {
    padding-right: 10px;
}

#payout_review_wrapper {
    width: 675px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#payout_review_wrapper h1 {
    text-align: center;
}

#payout_review_wrapper > p {
    font-size: 16px;
}

.payout {
    background: white;
    margin: 15px 0;
}

.payout table {
    table-layout: fixed;
    width: 100%;
    text-align: left;
    border-spacing: 0;
    border: 1px solid #e1e1e1;
    float: none;
}

#payout_review_wrapper .payout-totals .payout-item-details .amount {
    font-weight: normal;
}

.payout table th, .payout table td {
    padding: 8px 10px;
}

#payout_review_buttons {
    text-align: center;
}

#payout_review_buttons a:first-child {
    margin-right: 10px;
}

.payout-item-details {
    display: none;
}

.payout .payout-item-details th {
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    font-weight: normal;
}

.payout-item-details-body:nth-child(even) {
    background-color: #f9f9f9;
}

.payout-item-details-body td {
    vertical-align: top;
}

#payout-item-details-foot td {
    border-bottom: 1px solid #e1e1e1;
    border-top: 1px solid #e1e1e1;
    text-align: center;
}

.payout-items-show {
    padding-left: 8px;
}

.post-type-payout #post-body-content {
    display: none;
}

.my-hndle {
    border-bottom: 1px solid #eee;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#create-payout-panel.woocommerce_options_panel {
    min-height: 0;
}

#create-payout-panel.woocommerce_options_panel .options_group {
    border: none;
}

#create-payout-panel .select2-search__field {
    width: 200px !important;
}

#create-payout-action {
    padding-top: 12px;
}

#create-payout-action .spinner {
    float: none;
}

#create-payout-panel [class*="show-if"] {
    display: none;
}

.woocommerce_options_panel p.panel-description {
    font-size: 13px;
    padding-left: 12px;
}

.white-popup {
    position: relative;
    background: #FFF;
    padding: 20px;
    width: auto;
    max-width: 500px;
    margin: 20px auto;
}

.white-popup h2 {
    margin-top: 0;
}

.mfp-bg {
    z-index: 9999 !important;
}

.mfp-wrap {
    z-index: 10000 !important;
}

.mfp-content {
    z-index: 10001 !important;
}

.refund_labels li {
    text-transform: uppercase;
}

.refund_labels li.error, .invoice_list .dashicons-no-alt {
    color: #dc3232;
}

.refund_labels li.success, .invoice_list .dashicons-yes {
    color: #46b450;
}

.refund_labels li.warning {
    color: #ffb900;
}

.invoice_list li.canceled {
    text-decoration: line-through;
}

.invoice_list li.canceled span {
    text-decoration: none;
}

.post-type-payout .widefat td {
    vertical-align: middle;
}

#has_unread_label {
    line-height: 28px;
    margin-right: 6px;
}

/* PAYOUT DETAIL SCREEN */
.order_data_column .payout-status {
    margin-top: 0.25em;
}

#payouts-payout-data .handlediv,
#payouts-payout-data .hndle,
#payouts-payout-data .handle-actions {
    display: none;
}

#payouts-payout-data .postbox-header {
    border-bottom: none;
}

#payouts-payout-data .inside,
#payouts-payout-actions .inside {
    margin: 0;
    padding: 0;
}

.order_data_column table.payout-item-status-table {
    margin-top: 1em;
}

.order_data_column table.payout-item-status-table th {
    font-size: 13px;
    font-weight: bold;
}

table.payout-items-table thead th {
    text-align: left;
    padding: 1em;
    font-weight: 400;
    color: #999;
    background: #f8f8f8;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

table.payout-items-table tbody td {
    padding: 8px 10px;
}

table.payout-items-table thead th:first-child,
table.payout-items-table tbody td:first-child {
    padding-left: 2em;
}

table.payout-items-table {
    width: 100%;
    background: #fff;
}

table.payout-items-table span.total-commission,
#payout_review_wrapper table span.total-commission {
    line-height: 28px;
}

table.payout-items-table .view-commissions,
#payout_review_wrapper table .view-commissions {
    float: right;
    width: 16px;
    padding: 20px 4px 4px 4px;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
}

table.payout-items-table .view-commissions:before,
#payout_review_wrapper table .view-commissions:before {
    font-family: WooCommerce;
    speak: none;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    margin: 0;
    text-indent: 0;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    content: "";
    line-height: 16px;
    font-size: 14px;
    vertical-align: middle;
    top: 4px;
}

td.payout-recipient > a {
    font-weight: bold;
    text-decoration: none;
}

.payout-totals-wrapper {
    padding: 1.5em 2em;
    background: #f8f8f8;
    line-height: 2em;
    text-align: right;
    zoom: 1;
}

.payout-totals-wrapper::before,
.payout-totals-wrapper::after {
    content: ' ';
    display: table;
}

.payout-totals-wrapper::after {
    clear: both;
}

.payout-totals {
    float: right;
    width: 50%;
    margin: 0;
    padding: 0;
    text-align: right;
}

.payout-totals .amount {
    font-weight: 700;
}

.payout-totals .negative .amount {
    color: #a00;
}

.payout-totals .label {
    vertical-align: top;
}

.payout-totals .total {
    font-size: 1em !important;
    width: 10em;
    margin: 0 0 0 0.5em;
    box-sizing: border-box;
}

.post-type-payout #order_data {
    padding: 23px 24px;
}

#payouts-payout-progress .inside,
#payouts-payout-items .inside {
    padding: 23px 24px;
    margin: 0;
}

#payout_detail_toggle_wrapper {
    margin-bottom: 15px;
    text-align: right;
}

#payout_detail_toggle_wrapper span:first-child {
    color: #777;
    margin-right: 5px;
    vertical-align: middle;
}

#payout_detail_toggle {
    text-decoration: none;
}

#payments_wrapper {
    border: 1px solid #eee;
}

#payouts-payout-details p {
    color: #777;
}

#payouts-payout-details p strong {
    display: block;
}

#payouts-payout-data .payout-actions {
    padding-top: 1em;
    border-top: 1px solid #ddd;
    margin-top: 1em;
}

p.payout-meta {
    margin: 0;
    font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    line-height: 1.6em;
    font-size: 16px;
    color: #777;
}

#payout_details_table_wrapper {
    width: 100%;
    overflow-x: auto;
}

/* PROGRESS BARS - BORROWED FROM BOOTSTRAP */
.payout-progress {
    display: -ms-flexbox;
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.payout-progress .progress-bar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #0073aa;
    transition: width .6s ease;
}

/* PAYOUTS LIST TABLE (WP ADMIN) */
th.sortable a span.woocommerce-help-tip {
    float: none;
}

.post-type-payout .column-status {
    position: relative;
}

.column-status .payouts-tip {
    position: absolute;
    right: 4px;
    top: 50%;
    margin-top: -10px;
}

.post-type-payout .column-actions {
    text-align: right;
}

.post-type-payout .column-actions a {
    display: inline-block;
    vertical-align: middle;
    color: #6f6f6f;
    margin-right: 3px;
}

.post-type-payout .column-actions a:last-child {
    margin-right: 0;
}

.wp-core-ui .button-approve {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.wp-core-ui .button-approve:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

.wp-core-ui .button-approve:before {
    font-family: Dashicons;
    content: "\f147";
    vertical-align: middle;
}

.wp-core-ui .button-decline:before {
    font-family: Dashicons;
    content: "\f158";
    vertical-align: middle;
}

.post-type-payout .column-id {
    width: 12ch;
}

.post-type-payout td.column-id a {
    font-weight: bold;
}

.post-type-payout .column-date_created {
    width: 25ch;
}

.post-type-payout .column-count {
    width: 10ch
}

.post-type-payout .column-actions {
    width: 5ch;
}

.post-type-payout .column-total {
    width: 15ch
}

.post-type-payout .column-type {
    width: 20ch;
}

.post-type-payout .column-status {
    width: 35ch;
}

.post-type-payout th.column-total .woocommerce-help-tip {
    margin-left: 5px;
}

.post-type-payout th.sorted.column-total a span.woocommerce-help-tip {
    float: none;
}

.toplevel_page_payouts .bulkactions {
    display: none;
}

.payout-progress.bg-error .progress-bar {
    background-color: #ca4a1f;
}

.payout-progress-popover p:first-child {
    margin-top: 0;
}

.payout-progress-popover h4 {
    margin: 0;
}

.payout-progress-popover h4 svg, .payout-progress-popover h4 span {
    display: inline-block;
    vertical-align: middle;
}

.payout-progress-popover h4 span {
    padding-left: 5px;
}

.payout-progress-popover table.widefat {
    border: none;
    box-shadow: none;
    margin-bottom: 5px;
}

.payout-progress-popover table.widefat {
    border: none;
    box-shadow: none;
    margin-bottom: 5px;
}

.payout-progress-popover table.widefat th {
    border-bottom: 1px solid #ccc;
    padding-top: 0;
    font-weight: bold;
    font-size: 13px;
}

.payout-progress-popover table.widefat th, .payout-progress-popover table.widefat td {
    padding-left: 0;
}

.edit-php.post-type-payout .wrap {
    position: relative;
    margin-top: 30px;
}

button#payout_notifications {
    margin: 9px 3px 0 0;
    position: absolute;
    top: 0;
    right: 0;
}

button#payout_notifications.has-unread:after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    background: #ca4a1f;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    right: -1px;
}

div#notifications_list_wrapper {
    max-height: 300px;
    overflow: auto;
}

ul#notifications_list {
    margin: 0;
}

div#payout_notifications_list {
    width: 100% !important;
}

ul#notifications_list li {
    padding: 15px 30px 15px 15px;
    margin: 0;
    border-bottom: 1px solid #f2f2f2;
    position: relative;
}

ul#notifications_list li:last-child {
    border-bottom: none;
}

ul#notifications_list li a {
    text-decoration: none;
    color: #72777c;
}

button.hide-notification {
    position: absolute;
    right: 15px;
    top: 10px;
    display: none;
    font-size: 24px;
    text-decoration: none;
    color: #72777c;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    cursor: pointer;
}

button.hide-notification:hover {
    color: #32373c;
}

ul#notifications_list li:hover {
    background: #f9f9f9;
}

ul#notifications_list li:hover a {
    color: #32373c;
}

ul#notifications_list li:hover button.hide-notification {
    display: inline-block;
}

div#notifications_list_actions {
    padding: 8px 14px;
    border-top: 1px solid #f2f2f2;
}

div#notifications_list_actions button.button-link {
    text-decoration: none;
}

#notifications_list_wrapper p.blank-state {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    color: #72777c;
}

.scheduled-payout {
    border: 1px solid #e1e1e1;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    font-size: 0;
}

.scheduled-payout-meta-wrapper, .scheduled-payout-actions {
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
}

.scheduled-payout-meta-wrapper {
    border-right: 1px solid #e1e1e1;
    width: 75%;
    padding: 20px 0;
}

.scheduled-payout-meta {
    display: inline-block;
    width: 33%;
    font-size: 14px;
    vertical-align: top;
    padding: 0 20px;
    box-sizing: border-box;
}

.scheduled-payout-meta h4 {
    margin: 0 0 12px 0;
}

.scheduled-payout-actions {
    width: 25%;
    padding: 20px;
}

.scheduled-payout-actions a.button {
    display: block;
    text-align: center;
}

.payout-breakdown-popover .widefat {
    box-shadow: none;
    border: none;
    margin: 0;
}

.payout-breakdown-popover .widefat th, .payout-breakdown-popover .widefat td {
    font-size: 14px;
    padding: 8px;
}

.payout-breakdown-popover .widefat th {
    font-weight: bold;
    min-width: 140px;
    padding-left: 0;
}

.payout-breakdown-popover .widefat td {
    padding-right: 0;
}

.payout-breakdown-popover .widefat td.negative, .row-payout-fees td {
    color: #aa0000;
}

.widefat td.column-payment_method, .widefat th.column-payment_method {
    text-align: center;
}

.tablenav #payment_method {
    margin-top: 1px;
}

.wp-admin input[type="text"].payouts-datepicker {
    min-height: 28px;
    height: 28px;
}

#_wcv_commissions_status_input {
    margin-right: 0;
}

#commissions_update_button {
    margin-top: 1px;
}

.toplevel_page_commissions .bulkactions {
    display: none;
}

.payouts-commission-breakdown td, .payouts-commission-breakdown th {
    padding: 3px 5px;
}

@media only screen and (max-width: 1200px) {
    .edit-php.post-type-payout table.fixed {
        table-layout: auto;
    }
}

@media only screen and (max-width: 782px) {
    .edit-php.post-type-payout .wrap {
        margin-top: 9px;
    }

    .scheduled-payout-meta-wrapper, .scheduled-payout-actions {
        width: 100%;
    }

    .scheduled-payout-meta-wrapper {
        border-right: 0;
    }

    .scheduled-payout-actions {
        padding-top: 10px;
        text-align: center;
    }

    .scheduled-payout-actions a.button {
        display: inline-block;
        width: 100%;
        max-width: 300px;
    }

    .widefat td.column-payment_method, .widefat th.column-payment_method {
        text-align: left;
    }
}
