/*
 * This is the BuddyForms Front End CSS for the views:
 *
 * - My Posts (List View)
 * - My Posts (Table View)
 * - Form Submission Single View
 *
 */

/* --- BuddyForms View My Posts - LIST View --- */

ul.buddyforms-list {
    margin: 25px 0;
    padding: 0;
    list-style: none outside none;
}

ul.buddyforms-list li.bf-submission {
    height: auto;
    overflow: auto;
    min-height: 44px;
    position: relative;
    padding: 30px 20px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: 0px;
    list-style: none outside none;
}

ul.buddyforms-list li.bf-submission:hover {
    background: rgba(0, 0, 0, 0.03);
}

ul.buddyforms-list li .item {
    overflow: auto;
    padding: 0 0 10px 0;
    margin: 0;
}

ul.buddyforms-list li img.avatar {
    float: left;
    margin: 3px 10px 10px 2px;
}

ul.buddyforms-list.item-list li div.item-desc {
    font-size: 100%;
    margin: 10px 0 0 0px !important;
    width: 50%;
    margin: 5px 5px 5px 0;
    clear: right;
}

ul.buddyforms-list li div.action {
    clear: both;
    margin-bottom: 20px;
    font-size: 12px;
}

ul.buddyforms-list li div.meta {
    margin-top: 10px;
}

ul.buddyforms-list .item-status {
    font-size: 12px;
    line-height: 24px;
    letter-spacing: 0.2;
    display: inline-block;
    padding: 0 11px;
    margin: 0 5px 0 0;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    color: #fff;
    background-color: #1ec0ed;
    border: 1px solid #23a6cb;
    font-weight: normal;
    font-family: helvetica, arial, sans-serif;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
}

ul.buddyforms-list .draft .item-status,
ul.buddyforms-list .edit-draft .item-status,
ul.buddyforms-list .publish .draft .item-status,
ul.buddyforms-list .publish .edit-draft .item-status {
    color: #888;
    background-color: #e3e3e3;
    border: 1px solid #ccc;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
}

ul.buddyforms-list .bf-pending .item-status,
ul.buddyforms-list .publish .bf-pending .item-status {
    color: #fff;
    background-color: #f3a93c;
    border: 1px solid #d88f37;
}

ul.buddyforms-list .publish .item-status {
    color: #fff;
    background-color: #70d986;
    border: 1px solid #6abf6a;
}

/* Action Links - Edit and Delete */
.buddyforms-list .meta .edit_links {
    display: inline-block;
    padding: 0;
    margin: 0;
}

.buddyforms-list .meta .edit_links li {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: none;
    min-height: 0;
}

.buddyforms-list .meta .edit_links a {
    padding: 0;
    margin: 0;
    text-decoration: none;
    border: none;
    text-shadow: none;
    box-shadow: none;
}

.buddyforms-list .edit_links .dashicons {
    line-height: 1.2;
}

.dashicons.disabled {
    opacity: 0.5;
}

/* BuddyForms Sub List */
.buddyforms-list-sub {
    clear: both;
    padding: 0;
    margin: 20px 0 0 20px;
    list-style: none;
}

.buddyforms-list .buddyforms-list-sub .item {
    font-size: 85%;
    padding: 0;
}

.buddyforms-list-sub .item-avatar {
    width: 50px;
    height: auto;
}

.bf-submission-sub {
    padding: 15px 0;
}

@media (min-width: 768px) {
    ul.buddyforms-list li.bf-submission {
        padding: 20px 20px 0;
    }

    ul.buddyforms-list li .item {
        overflow: auto;
        width: calc(100% - 265px);
        float: left;
    }

    ul.buddyforms-list li div.action {
        max-width: 50px;
        width: auto;
        margin-bottom: 10px;
        float: right;
        text-align: left;
        min-width: 200px;
        font-size: 70%;
        clear: none;
    }

    .buddyforms-list-sub {
        margin: 0 0 0 20px;
        border-top: none;
    }

    .bf-submission-sub {
        padding: 10px 0;
        overflow: auto;
    }
}

/* --- BuddyForms View My Posts - TABLE View --- */

.table-striped > tbody > tr:nth-of-type(2n) {
    background-color: #f0f0f0;
}

.buddyforms_posts_table {
    margin-bottom: 25px;
}

.buddyforms_posts_table .table {
    width: 100%;
    max-width: 100%;
    border: 3px solid #e1e1e1;
    border-top: 0;
}

@media screen and (max-width: 767px) {
    .buddyforms_posts_table .table {
        border-top: 3px solid #e1e1e1;
    }

    .buddyforms_posts_table .table thead {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .buddyforms_posts_table table,
    .buddyforms_posts_table thead,
    .buddyforms_posts_table tbody,
    .buddyforms_posts_table th,
    .buddyforms_posts_table td,
    .buddyforms_posts_table tr {
        display: block;
    }
}

.buddyforms_posts_table .table .table-inner {
    border: 0;
    background-color: transparent;
    padding: 0;
}

.buddyforms_posts_table .table-inner tbody tr:first-child td {
    padding-top: 25px;
}

@media screen and (max-width: 767px) {
    .buddyforms_posts_table .table-inner tbody tr:first-child td {
        padding-top: 5px;
    }
}

.buddyforms_posts_table .table-inner thead th:first-child {
    min-width: 165px;
}

.buddyforms_posts_table .table th, .buddyforms_posts_table .table td {
    border-top: 0;
    border: 0;
}

.buddyforms_posts_table .table th {
    padding: 0;
}

.buddyforms_posts_table .table th + th {
    padding: 0 0 0 3px;
}

.buddyforms_posts_table .table th span {
    color: #000;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: left;
    letter-spacing: -0.025em;
    padding: 7px 10px;
    display: block;
    background-color: #e1e1e1;
}

.buddyforms_posts_table .table tbody td {
    color: #000;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.025em;
    padding: 25px 9px;
    vertical-align: top;
}

@media screen and (max-width: 767px) {
    .buddyforms_posts_table .table tbody td {
        position: relative;
        padding: 5px 9px;
        padding-left: 50%;
    }
}

#buddyforms-table-view .table tbody .table-wrapper {
    padding: 0;
}

@media screen and (max-width: 767px) {
    .buddyforms_posts_table .table.table-inner .tr-sub {
        padding: 5px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.buddyforms_posts_table .table.table-inner td {
    padding: 5px 9px;
    width: 40%;
}

@media screen and (max-width: 767px) {
    .buddyforms_posts_table .table.table-inner {
        padding-top: 0;
    }

    .buddyforms_posts_table .table.table-inner td {
        position: relative;
        padding: 10px 9px 0 50%;
        width: auto;
    }
}

.buddyforms_posts_table .table .mobile-th {
    display: none;
    width: 50%;
    position: absolute;
    top: 7px;
    left: 10px;
}

@media screen and (max-width: 767px) {
    .buddyforms_posts_table .table .mobile-th {
        display: block;
    }
}

.buddyforms_posts_table .table-item-status {
    font-size: 12px;
    line-height: 24px;
    letter-spacing: 0.2;
    display: inline-block;
    padding: 0 11px;
    margin: 0 5px 0 0;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    color: #fff;
    background-color: #1ec0ed;
    border: 1px solid #23a6cb;
    font-weight: normal;
    font-family: helvetica, arial, sans-serif;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 768px) {
    .buddyforms_posts_table .table-item-status {
        margin: 0 0 0 3px;
    }
}

.buddyforms_posts_table .draft .table-item-status,
.buddyforms_posts_table .edit-draft .table-item-status,
.buddyforms_posts_table .publish .draft .table-item-status,
.buddyforms_posts_table .publish .edit-draft .table-item-status {
    color: #888;
    background-color: #e3e3e3;
    border: 1px solid #ccc;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
}

.buddyforms_posts_table .bf-pending .table-item-status,
.buddyforms_posts_table .publish .bf-pending .table-item-status {
    color: #fff;
    background-color: #f3a93c;
    border: 1px solid #d88f37;
}

.buddyforms_posts_table .publish .table-item-status {
    color: #fff;
    background-color: #70d986;
    border: 1px solid #6abf6a;
}

.buddyforms_posts_table .item-status-action {
    line-height: 1.5;
    padding: 5px 0;
    letter-spacing: 0;
    font-weight: inherit;
    opacity: 0.6;
    font-size: 12px;
}

@media screen and (min-width: 768px) {
    .buddyforms_posts_table .item-status-action {
        margin: 0 0 0 10px;
    }
}

.buddyforms_posts_table .edit_links {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

@media screen and (max-width: 767px) {
    .buddyforms_posts_table .edit_links {
        text-align: left;
        min-height: 30px;
        min-width: 50px;
    }
}

.buddyforms_posts_table .edit_links li,
.buddyforms_posts_table .edit_links a {
    float: left;
}

.buddyforms_posts_table .edit_links a {
    margin: 0;
    text-decoration: none;
    box-shadow: none;
    text-shadow: none;
}

/* --- Submissions Frontend - SINGLE View --- */
/* only applicable for Registration & Contact Forms, otherwise it's a post ;) --- */

.bf-submission-single .settings-input {
    display: block;
}

.bf-submission-single .bf-input {
    margin-bottom: 20px;
}

.bf-submission-single textarea,
.bf-submission-single .standard-form input[type=url],
.bf-submission-single .standard-form input[type=link],
.bf-submission-single .standard-form input[type=text],
.bf-submission-single .standard-form input[type=email],
.bf-submission-single .standard-form input[type=date],
.bf-submission-single .standard-form input[type=password] {
    width: 100%;
    border: 1px solid #ccc;
    background: #f1f1f1;
    color: #999;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font: inherit;
    font-size: 15px;
    padding: 10px;
}

.bf-submission-single .standard-form input[type=date] {
    width: auto;
}

.bf-submission-single .bf-input .radio {
    display: block;
}

.bf-submission-single .bf-input textarea,
.bf-submission-single .bf-input .form-control {
    display: block;
    width: 100%;
    background: #f1f1f1;
}

/* ----------------------------------------- */
/* ------------ Helper Classes ------------- */
/* ----------------------------------------- */

.bf-alignleft {
    text-align: left;
}

.bf-aligncenter {
    text-align: center;
}

.bf-alignright {
    text-align: right;
}

.bf-box {
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.dashicons {
    line-height: inherit;
    font-size: inherit;
    width: auto;
    height: auto;
}

/* Quick Column Grid for BuddyForms Frontend */
.bf-row {
    margin: 30px -15px;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: auto;
    display: block;
}

.bf-col-50 {
    padding: 0 15px 15px;
}

@media (min-width: 768px) {
    .bf-col-50 {
        width: 50%;
        float: left;
        padding: 0 15px 15px;
    }
}
