.f13-table-page-button {
    position: absolute;
    width: 120px;
    cursor: pointer;
    padding: 5px;
    background: #efefef;
    border: 1px solid #aaa;
    margin: 0;
    margin-top: -12px;
    line-height: 42px;
    font-weight: bold;
}

.f13-table-page-button-previous {
    left: 0px;
    border-left: 0;
}

.f13-table-page-button-next {
    right: 0px;
    border-right: 0;
}

.f13-table-page-button-disabled {
    cursor: default;
    color: #ccc;
    display: none;;
}

.f13-table-page-button:not(.f13-table-page-button-disabled):hover, 
.f13-table-page-button:not(.f13-table-page-button-disabled):focus {
    background: #d9e7ff;
}

.dark .f13-table-page-button:not(.f13-table-page-button-disabled):hover,
.dark .f13-table-page-button:not(.f13-table-page-button-disabled):focus {
    background: #323d4e;
}

.f13-table-page-button-disabled:hover {
    color: #ccc;
}

.f13-data-table {
    background: #fff;
    width: 100%;
}

.dark .f13-data-table {
    background: #444;
    color: #fff;
}

.f13-data-table tfoot p {
    padding:0;
    margin:0;
    padding-top: 5px;
}

.f13-data-table tbody tr:nth-child(even), .f13-row-even {
    background: #efefef;
}

.dark .f13-data-table tbody tr:nth-child(even), .dark .f13-row-even {
    background: #555;
}

.f13-data-table tbody tr:hover > td, .f13-row-hover:hover {
    background: #d9e7ff;
}

.dark .f13-data-table tbody tr:hover > td, .dark .f13-row-hover:hover {
    background: #323d4e !important;
}

.f13-data-table tbody a {
    color: #003387;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .f13-data-table tbody a {
    color: #fff;
}

.f13-data-table tbody a:hover {
    text-decoration: underline;
    color: #222;
}

.dark .f13-data-table tbody a:hover {
    color: #fff;
}

.f13-data-table tfoot tr:hover > td, .f13-data-table thead tr:hover > th {
    background: unset;
}

.f13-data-table .f13-contracted-row {
    max-height: 20px;
    overflow: hidden;
}

.f13-data-table tr.f13-table-expand-row .f13-contracted-row {
    max-height: unset;
    overflow: visible;
}

.f13-data-table tbody td {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
    min-width: 0;
    white-space: nowrap;
    vertical-align: top;
    cursor: context-menu;
}

.f13-data-table-zoom tbody td {
    cursor: zoom-in;
}

.f13-data-table-zoom tbody tr.f13-table-expand-row td {
    cursor: zoom-out;
}

.f13-data-table tbody tr.f13-table-expand-row td, .f13-data-table tbody tr.f13-table-expand-row td a {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

.f13-data-table tbody a {
    cursor: pointer;
}

.f13-data-table input:focus, .f13-data-table select:focus {
    outline: none;
}

.f13-data-table input, .f13-data-table select {
    border: 1px solid #aaa;
    border-radius: 0px;
    border-right: 0px;
    font-weight: 500;
}

#f13-table-page {
    border: 1px solid #aaa;
}

#f13-table-page:focus {
    background: #D9E7FF;
}

.f13-data-table td, .f13-data-table th {
    padding: 6px;
}

.f13-data-table tfoot p {
    min-height: 35px;
}

.f13-data-table-head {
    float: right;
}

.f13-data-table-filter {
    border-radius: 0;
    border: 1px solid #aaa;
    min-width: 100% !important;
    box-sizing: border-box !important;;
    border-left: 0;
    height: 31px;
    width: 100%;
    margin: 0 !important;
    background-color: #eee; 
    border-top: 0px;
}

.dark .f13-data-table-filter {
    background: #222;
    color: #fff;
}

.f13-data-table tfoot td {
    text-align: center;
}

.f13-table-page {
    display: inline-block;
    min-width: 50px;
    max-width: 50px;
}

.f13-data-table select {
    cursor: pointer;
}

.f13-data-loading {
    position: absolute;
    /*background: rgb(240, 240, 240, 0.9);*/
    top: 0px;
    bottom: 0px;
    left: -10px;
    right: -10px;
    /*background-image: url('../images/loading.gif');
    background-repeat: no-repeat;
    background-position: center;*/
    /*border: 1px solid #aaa;*/
    z-index: 99;
    /*backdrop-filter: blur(2px);*/
}

.f13-data-progress {
    width: 100%;
    border-bottom: 1px solid #aaa !important;
}

.f13-data-progress-text {
    padding: 5px;
    text-align: center;
    position: absolute;
    width: 100%;
}

.f13-data-progress-bar {
    background: #ccffcc;
    height: 26px;
}

.f13-data-table-change-order {
    cursor: pointer;
}

@media screen and (max-width: 750px) {
        /**
      * Data tables
      */
      table.f13-data-table { border: 0; }

      table.f13-data-table caption { font-size: 1.3em; }
      
      table.f13-data-table thead { display: none; }
      
      table.f13-data-table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
        margin-bottom: 0;
      }

      table.f13-data-table tr.f13-data-table-totals {
        border-bottom: 0;
      }
      
      table.f13-data-table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
        min-height: 14px;
      }

      table.f13-data-table td .f13-data-actions-hover {
        position: unset;
        margin: -6px -6px -6px 10px;
        padding: 6px;
      }
      
      table.f13-data-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
      }

      table.f13-data-table td.empty_total {
        display: none;
      }
      
      table.f13-data-table td:last-child { border-bottom: 0; }  

}

@media screen and (max-width: 690px) {
    .f13-table-page-button {
        width: 50%;
        margin-top:46px;
    }

    .f13-table-page-button-next:after {
        clear: both;
    }

    .f13-data-table tfoot p {
        margin-bottom: 53px;
    }

    .f13-data-table tbody td, .f13-data-table tbody td a {
        text-overflow: unset;
        white-space: unset;
    }
}

#f13-data-popup-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 99999;
}

.f13-data-popup-contain {
    position: fixed;
    top: 10%;
    bottom: 10%;
    left: 20%;
    right: 20%;
    background: #fff;
    border: 3px solid #aaa;
    max-width: 800px;
    margin: auto;
}

#f13-data-popup-head {
    line-height: 40px;
    font-size: 18px;
    padding: 0px 10px;
    border-bottom: 3px solid #aaa;
    background: #eee;
}

.dark #f13-data-popup-head {
    background: #000;
    color: #fff;
}

.f13-data-popup-close:after {
    content: "\f153";
    font-family: "dashicons";
    float: right;
    color: #aa0000;
    cursor: pointer;
    font-size: 28px;
}

.f13-data-popup-close {
    float: right;
}

.f13-data-popup-close:hover:after {
    color: #ee0000;
}

#f13-data-popup-body {
    position: absolute;
    top: 43px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    overflow-y: auto;
}

.dark #f13-data-popup-body {
    background: #222;
    color: #fff;
}

#f13-data-popup-body {
    padding: 10px;
    overflow-x: clip;
}

.f13-data-tabs {
    border: 1px solid #aaa;
    background: #eee;
    padding: 10px 0px 9px 0px;
    margin-bottom: -1px;
    margin-top: 20px;
}

.dark .f13-data-tabs {
    background: #222;
    color: #fff;
}

.f13-data-tabs::-webkit-scrollbar { width: 5px; height: 4px; background-color: #fff; }
.f13-data-tabs::-webkit-scrollbar-thumb { background: #aaa; cursor: pointer; }
.f13-data-tabs::-webkit-scrollbar-track { border-top: 1px solid #aaa; background: #eee; }
.dark .f13-data-tabs::-webkit-scrollbar-track { border-top: 1px solid #eee; background: #222; }

.f13-data-tabs .f13-data-ajax-link {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    border-right: 1px solid #aaa;
}

.f13-data-tabs .f13-data-ajax-link:last-of-type {
    margin-right: 20px;
}
.f13-data-tabs .f13-data-ajax-link:hover {
    background: #fff;
}

.f13-data-tabs .f13-data-tabs-current {
    padding-bottom: 11px;
    background: #fff;
}

.dark .f13-data-tabs .f13-data-tabs-current {
    background: #222;
    color: #fff;
}

.dark .f13-data-tabs .f13-data-ajax-link:hover {
    background: #343D4E;
    color: #fff;
}

@media screen and (max-width: 900px) {
    .f13-data-popup-contain {
        right: 5%;
        left: 5%;
    }
}

@media screen and (max-width: 736px) {
    .f13-data-table {
        overflow: hidden;
    }

    .f13-data-table td a:not(.f13-data-actions a) {
        position: absolute;
        display: inline-block;
    }
}

@media screen and (max-width: 690px) {
    .f13-data-popup-contain {
        top: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: unset !important;
        height: unset !important;
    }
    .f13-data-tabs {
        overflow-y: hidden;
        overflow-x: auto;
    }
}

.f13-notice-success, .f13-notice-warning, .f13-notice-error {
    display: block;
    padding: 10px;
    margin: 10px 0px;
    text-align: center;
    box-sizing: border-box;
    color: #222;
    border: 1px solid #aaa;
    font-weight: 500;
}

.f13-notice-success {
    background-color: #ccffcc;
}

.f13-notice-warning {
    background-color: #ffe6cc;
}

.f13-notice-error {
    background-color: #ffcccc;
}

.f13-notice-close:before {
    content: "\f153";
    font-family: "dashicons";
    float: right;
    font-size: 1.5em;
    margin-right: -4px;
    margin-top: -4px;
    color: #aaa;
    box-sizing: border-box;
    cursor: pointer;
}

.f13-notice-close:hover:before {
    /*color: #ee0000;*/
    color: #aa0000;
}

.f13-data-table-headder {
    background: #eee !important;
    border: 1px solid #aaa !important;
    border-bottom: 0px !important;
    padding: 10px !important;
    margin-bottom: 0px !important;
    font-size: 20px !important;
    font-family: sans-serif !important;
    font-weight: 500 !important;
    color: #444 !important;
    line-height: 1em !important;
    margin-top: 20px !important;
}

.dark .f13-data-table-headder {
    background: #222 !important;
    color: #fff !important;
}

.f13-data-table-head {
    margin-top: 8px;
}

.f13-data-table-head-orphan a {
    position: absolute;
    margin-left: -32px;
    margin-top: -27px;
}

.f13-data-table-notice-container {
    position: relative;
}

.f13-data-table-notice-container .f13-notice {
    margin: 0;
    border-bottom: 0;
}

.f13-form-field input, .f13-form-field select, .f13-form-field textarea {
    display: block;
    width: 100%;
    border-radius: 0;
    padding: 10px;
    max-width: unset;
    background-color: #f7f7f7;
    border: 2px solid #aaa;
    cursor: pointer;
    box-sizing: border-box;
}

.dark .f13-form-field input, .dark .f13-form-field select, .dark .f13-form-field textarea {
    background-color: #323d4e;
    color: #fff;
}

.f13-form-field select {
    padding: 9px 10px;
}

.f13-form-submit input {
    background-color: #f7f7f7;
    margin-top: 15px;
    border: 2px solid #aaa;
    border-radius: 0;
    padding: 7px;
    width: 100%;
    display: block;
    cursor: pointer;
    font-weight: 500;
    line-height: 22px;
}

.dark .f13-form-submit input {
    background-color: #323d4e;
    color: #fff;
}

.f13-form-submit input:hover {
    background-color: #efefff;
}

.f13-form-field textarea {
    min-height: 150px;
}

.f13-form-field label, .f13-form-field-checkbox label {
    font-size: 16px;
    margin: 10px 0px 5px 0px;
}

.f13-data-table-contain label {
    cursor: pointer;
}

.f13-form-field-checkbox {
    margin-top: 15px;
}

.f13-form-field-checkbox label {
    position: relative;
    top: -2px;
    left: 5px;
}

.f13-form-field label {
    display: block;
}

.f13-data-actions {
    position: absolute;
    z-index: 1;
    width: 150px;
    margin-left: -125px;
    background: #fff;
    margin-top: 24px;
    border: 0px;
    height: 0px;
    overflow: hidden;
}

.dark .f13-data-actions {
    background: #323d4e;
    color: #fff;
}

.f13-data-actions a {
    padding: 5px 10px;
    text-decoration: none;
    display: block;
}

.dark .f13-data-actions a {
    color: #fff;
}

.f13-data-actions a span {
    margin-right: 5px;
}

.f13-data-actions a:hover {
    text-decoration: none !important;
    background: #eee;
}

.dark .f13-data-actions a:hover {
    background: #444;
    color: #fff;
}

.f13-data-actions a:hover span {
    text-decoration: none !important;
}

.f13-data-actions-hover {
    position: absolute;
    padding: 6px;
    margin: -6px 0 0 -6px;
    cursor: pointer;
}

.f13-data-actions-hover:hover + .f13-data-actions, .f13-data-actions:hover, .f13-data-actions-active {
    height: unset;
    overflow: unset;
    border: 1px solid #aaa;
}

.f13-data-actions-hover:hover:before, .f13-data-actions-hover + .f13-data-actions:hover {
    content: "\f347";
}

.f13-green {
    color: #009900;
}

.f13-red {
    color: #990000;
}

.dark .f13-data-table-totals {
    background: #222 !important;
    color: #fff;
}

.dark .f13-data-table tbody .f13-data-table-totals:hover > td, .dark .f13-data-table-totals:hover {
    background: #555 !important;
}

.f13-data-table-responsive-container {
    /*overflow-y: hidden;*/
    /*overflow-x: auto;*/
    width: 100%;
    border: 1px solid #aaa;
    box-sizing: border-box;
    padding-right:1px;
}

.reflow-table-mobile-mode tbody tr td {
    overflow: visible;
    padding-left: 150px;
    border-left: 0 !important;
}

.reflow-table-mobile-mode tbody tr td, .reflow-table-mobile-mode tbody tr td a {
    white-space: nowrap;
}

.reflow-table-mobile-mode tbody tr td:before {
    margin-left: -143px;
    display: inline-block;
    width: 145px;
    text-align: right;
    padding-right: 10px;
}

.reflow-table-mobile-mode .f13-data-actions {
    border: 1px solid #aaa;
    margin-left: -81px;
    margin-top: 6px;
    width: calc(100% + 1px);
}

.reflow-table-mobile-mode tbody tr.f13-table-expand-row td, .reflow-table-mobile-mode tbody tr.f13-table-expand-row td a {
    white-space: nowrap;
}

.f13-data-actions a span {
    float: right;
    margin: 0 0 0 8px;
}

.f13-data-actions {
    text-align: right;
}

.f13-data-header-btn {
    float: right;
    margin-right: 7px;
    font-size: 24px;
    margin-top: 8px;
}
/* auto shift header btns after tabs */
.f13-data-tabs + .f13-data-header-btn, .f13-data-tabs + *.f13-data-header-btn {
    margin-top: -33px;
}
.f13-data-header-btn a {
    text-decoration: none;
    margin-left: 5px;
    float: right;
}
.f13-data-header-btn a::before {
    font-family: "dashicons";
}
.f13-data-header-btn-new::before {
    content: "\f502";
}

.f13-data-header-btn-edit::before {
    content: "\f327";
}

.f13-data-table thead input:focus, .f13-data thead select:focus {
    background: #D9E7FF;
}

.dark .f13-data-table thead input:focus, .dark .f13-data thead select:focus {
    background: #323d4e;
}

.f13-data-table-sort {
    text-decoration: none;
}

.f13-data-table-sort:focus .dashicons {
    background: #D9E7FF;
}

.dark .f13-data-table-sort:focus .dashicons {
    background: #323d4e;
}

.f13-data-table-asc {
    position: absolute; left: 0; top: 0; font-size: 28px; height: 30px; width: 30px; display: inline-block;
}

.f13-data-table-asc:before {
    position: inherit; margin-top: 1px; margin-left: -15px;
}

.f13-data-table-desc {
    position: absolute; right: 0; top: 0; font-size: 28px; height: 30px; width: 30px; display: inline-block; 
}

.f13-data-table-desc:before {
    margin-left: -2px;
}

.f13-data-tabs-toggle, .f13-data-tabs-toggle-label {
    display: none;
}

@media screen and (max-width: 730px) {
    .f13-data-tabs {
        padding: 0px !important;
    }

    .f13-data-tabs .f13-data-ajax-link {
        margin-right: 0px !important;
        border-right: 0px;
        border-top: 1px solid #ccc;
        display: none;
    }  
    .f13-data-tabs:first-child {
        border-bottom: 0px !important;
    }

    .f13-data-tabs .f13-data-tabs-current {
        display: block;
    }  
    
    .f13-data-tabs .f13-data-tabs-toggle:checked ~ .f13-data-ajax-link {
        display: block;
    }

    .f13-data-tabs-toggle-label {
        display: inline-block;
        position: absolute;
        right: 0px; 
        font-size: 1.3em;
        padding: 10px 10.5px 6px;
    }

    .f13-data-tabs-toggle-label::before {
        content: "\f349";
        font-family: "dashicons";
        cursor: pointer;
    }

    .f13-data-tabs + .f13-data-header-btn, .f13-data-tabs + *.f13-data-header-btn {
        float: none;
        margin: 0px;
        position: unset;
        display: block;
        border: 1px solid #aaa;
        border-bottom: 0px;
        height: 32px;
        padding: 5px 7px 1px;
    }
}

.highlight {
    background: #d9e7ff;
}

.dark .highlight {
    background: #323d4e;
}