/**
 *
 * Responses
 *
 */
#adv-settings {
    display: flex;
    flex-flow: column wrap;
}

#adv-settings fieldset:first-child {
    order: 0;
}

#adv-settings fieldset.happyforms-analytics-settings {
    order: 1;
}

#adv-settings fieldset.happyforms-activity-settings-parts {
    order: 2;
}

#adv-settings fieldset.happyforms-activity-settings-pagination {
    order: 3;
}

#adv-settings .submit {
    order: 999;
}

.fixed .column-messages,
.fixed .column-poll_results {
    width: 5.5em;
    padding: 8px 0;
    text-align: left;
}

.fixed .column-messages {
    padding: 8px 0 7px;
}

.fixed .column-messages .dashicons {
    position: relative;
    top: -1px;
    width: 16px;
    height: 16px;
    padding-left: 0;
}

body.post-type-happyforms-message .happyforms-responses-count,
body.post-type-happyform .happyforms-responses-count {
    display: inline-block;
    vertical-align: top;
}

@media screen and (max-width: 782px) {
    body.post-type-happyforms-message .happyforms-responses-count,
    body.post-type-happyform .happyforms-responses-count {
        display: block;
    }
}

.fixed .column-messages .dashicons:before {
    position: relative;
    top: 1px;
    color: #444;
}

body.post-type-happyforms-message .fixed .column-contact {
    width: 20%;
}

body.post-type-happyforms-message .fixed .column-contact img,
body.post-type-happyforms-message .fixed .column-submission img {
    float: left;
    margin-top: 1px;
    margin-right: 10px;
}

body.post-type-happyforms-message .fixed .column-submission img {
    margin-bottom: 5px;
}

body.post-type-happyforms-message .fixed .column-submission .submission-data {
    margin: 0.6em 0;
}

@media screen and (min-width: 782px) {
    body.post-type-happyforms-message .fixed .column-submission .author-info {
        display: none;
    }

    body.post-type-happyforms-message .fixed .column-submission .submission-data:before,
    body.post-type-happyforms-message .fixed .row-actions:before {
        content: '';
        display: table;
        clear: both;
    }
}

@media screen and (max-width: 782px) {
    body.post-type-happyforms-message .column-contact,
    body.post-type-happyforms-message .column-contact .toggle-row {
        display: none !important;
    }
    body.post-type-happyforms-message th.column-submission {
        display: table-cell !important;
    }
    body.post-type-happyforms-message td.column-submission {
        display: block !important;
        min-height: 25px;
        padding: 10px 0 10px 15px !important;
    }
    body.post-type-happyforms-message td.column-submission:before {
        display: none !important;
    }
    body.post-type-happyforms-message .fixed td.column-submission .submission-data {
        margin-top: 25px;
    }
    body.post-type-happyforms-message .wp-list-table .is-expanded td.column-contact {
        display: none !important;
    }
    body.post-type-happyforms-message .wp-list-table .is-expanded td.column-form,
    body.post-type-happyforms-message .wp-list-table .is-expanded td.column-datetime {
        border-top: 1px solid rgba(0, 0, 0, 0.03);
    }
    body.post-type-happyforms-message #posts-filter {
        position: relative;
        padding-bottom: 110px;
    }
}

body.post-type-happyforms-message.edit-php .wrap {
    position: relative;
    top: -30px;
}

tr.happyforms-message-unread th,
tr.happyforms-message-unread td {
    background-color: #fef7f1;
}

tr.happyforms-message-unread th.check-column {
    border-left: 4px solid #d54e21;
}

tr.happyforms-message-unread th.check-column input {
    margin-left: 4px;
}

.post-type-happyforms-message .page-title-action {
    display: none;
}

.fixed .column-form {
    width: 15%;
}

.fixed .column-datetime {
    width: 14%;
}

.wp-list-table .happyforms-responses-column-label {
    display: none;
}

.happyforms-responses-count-wrapper {
    white-space: nowrap;
    word-wrap: normal;
}

.happyforms-responses-count-read {
    margin-top: 5px;
}

.responses-count-read {
    box-sizing: border-box;
    display: block;
    padding: 0 8px;
    min-width: 24px;
    height: 2em;
    border-radius: 5px;
    background-color: #72777c;
    color: #fff;
    font-size: 11px;
    line-height: 1.90909090;
    text-align: center;
}

.happyforms-responses-count-read:hover .responses-count-read {
    background: #0073aa;
}

.happyforms-responses-count-read:after {
    content: '';
    display: block;
    margin-left: 8px;
    width: 0;
    height: 0;
    border-top: 5px solid #72777c;
    border-right: 5px solid transparent;
}

.happyforms-responses-count-read:hover:after {
    border-top-color: #0073aa;
}

.happyforms-responses-count-unread .responses-count-unread,
.happyforms-responses-count-unread:hover .responses-count-unread {
    position: relative;
    left: -3px;
    display: inline-block;
    padding: 0 5px;
    min-width: 7px;
    height: 17px;
    border: 2px solid #fff;
    border-radius: 11px;
    background: #ca4a1f;
    color: #fff;
    font-size: 9px;
    line-height: 1.88888888;
    text-align: center;
}

@media screen and (max-width: 782px) {
    .happyforms-responses-count .responses-count-read,
    .happyforms-responses-count .responses-count-unread,
    .happyforms-responses-count:after,
    .happyforms-responses-count-unread:hover .responses-count-unread {
        display: none;
    }

    .happyforms-responses-count-unread,
    .happyforms-responses-count-unread:hover {
        color: #d98500;
    }

    .happyforms-responses-count .screen-reader-text {
        position: static;
        -webkit-clip-path: none;
        clip-path: none;
        width: auto;
        height: auto;
        margin: 0;
    }
}

.happyforms-activity-title {
    position: relative;
    top: -20px;
    font-size: 23px;
    font-weight: 400;
    margin: 0;
    padding: 9px 0 4px 0;
    line-height: 1.3;
}

.happyforms-activity-title ~ .wrap > h1 {
    display: none;
}

body.post-type-happyforms-message .row-actions .mark_read a,
body.post-type-happyforms-message .row-actions .untrash a,
body.post-type-happyforms-message .row-actions .mark_not_spam a {
    color: #006505;
}

body.post-type-happyforms-message .row-actions .mark_spam a,
body.post-type-happyform .row-actions .archive a {
    color: #a00;
}

body.post-type-happyforms-message .row-actions .mark_spam a:hover,
body.post-type-happyform .row-actions .archive a:hover {
    border: none;
    color: #dc3232;
}

body.post-type-happyforms-message .row-actions .mark_unread a {
    color: #d98500;
}

body.post-type-happyforms-message .wp-list-table tbody th,
body.post-type-happyforms-message .wp-list-table tbody td {
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.1);
}

body.post-type-happyforms-message.edit-php #wpbody-content {
    display: flex;
    flex-flow: column;
}

body.post-type-happyforms-message.edit-php #screen-meta-links {
    position: relative;
    z-index: 99;
    align-self: flex-end;
}

body.post-type-happyforms-message.edit-php .happyforms-stats__wrap {
    order: 2;
}

#menu-management .menu-item-happyform label[for^="edit-menu-item-target"] {
    display: none;
}

.customize-control.menu-item-happyform p.field-link-target {
  display: none;
}

#available-menu-items-post_type-happyform .new-content-item {
  display: none !important;
}

#available-menu-items-post_type-happyform .available-menu-items-list {
  margin-bottom: 0 !important;
}

/**
 *
 * Stats
 *
 */
.happyforms-stats__wrap {
    margin-bottom: 25px;
}

.happyforms-stats__nav {
    margin-top: 50px;
    margin-bottom: 10px;
}

.happyforms-stats__nav .alignright.actions {
    padding-top: 10px;
}

#happyforms-stats__reset {
    font-size: 14px;
    text-decoration: none;
    color: #a00;
    text-transform: capitalize;
}

#happyforms-stats__reset:hover {
    color: #dc3232;
}

.happyforms-stats-panel {
    display: flex;
    flex-flow: row wrap;
    width: calc(100% + 16px);
    margin-left: -8px;
    justify-content: center;
}

@media screen and (max-width: 782px) {
    body.post-type-happyforms-message .happyforms-stats-panel {
        position: relative;
        top: 20px;
    }
}

.happyforms-stats-widget {
    width: 100%;
    max-width: 100%;
    margin: 0 8px 16px;
    padding: 25px 20px 20px;
    box-sizing: border-box;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

@media screen and (min-width: 640px) {
    .happyforms-stats-widget {
        width: 22.5%;
        min-width: 140px;
        max-width: 100%;
    }
}

@media screen and (min-width: 1280px) {
    .happyforms-stats-widget {
        flex: 1;
    }
}

.happyforms-stats-widget h2 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.happyforms-stats-widget h2 .happyforms-stats-widget__trend {
    color: #8F98A1;
}

.happyforms-stats-widget.positive h2 .happyforms-stats-widget__trend,
.happyforms-stats-widget.happyforms-stats-widget-responses_abandoned.negative h2 .happyforms-stats-widget__trend,
.happyforms-stats-widget.happyforms-stats-widget-validation_errors.negative h2 .happyforms-stats-widget__trend {
    color: #46B450;
}

.happyforms-stats-widget.positive h2 .happyforms-stats-widget__trend:before {
    content: '⬆︎';
}

.happyforms-stats-widget.negative h2 .happyforms-stats-widget__trend,
.happyforms-stats-widget.happyforms-stats-widget-responses_abandoned.positive h2 .happyforms-stats-widget__trend,
.happyforms-stats-widget.happyforms-stats-widget-validation_errors.positive h2 .happyforms-stats-widget__trend {
    color: #DC3232;
}

.happyforms-stats-widget.negative h2 .happyforms-stats-widget__trend:before {
    content: '⬇︎';
}

ul.happyforms-stats-widget__bars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 50px;
    list-style: none;
}

ul.happyforms-stats-widget__bars li {
    min-width: 3px;
    background: #8F98A1;
    margin: 0 4px;
}

.happyforms-stats-widget.positive ul.happyforms-stats-widget__bars li,
.happyforms-stats-widget.happyforms-stats-widget-responses_abandoned.negative ul.happyforms-stats-widget__bars li,
.happyforms-stats-widget.happyforms-stats-widget-validation_errors.negative ul.happyforms-stats-widget__bars li {
    background-color: #46B450;
}

.happyforms-stats-widget.negative ul.happyforms-stats-widget__bars li,
.happyforms-stats-widget.happyforms-stats-widget-responses_abandoned.positive ul.happyforms-stats-widget__bars li,
.happyforms-stats-widget.happyforms-stats-widget-validation_errors.positive ul.happyforms-stats-widget__bars li {
    background-color: #DC3232;
}

.post-type-happyforms-poll .page-title-action {
    display: none;
}

.happyforms-poll-data-table {
    margin-top: 10px !important;
    margin-bottom: 25px;
}

.happyforms-poll-screen__poll:first-child .happyforms-poll-data-table {
    margin-top: 0px !important;
}

.happyforms-poll-screen__poll {
    margin-bottom: 50px;
}

/**
 *
 * Export Screen
 *
 */

/* media uploader */
#happyforms-export-section p.upload-flash-bypass {
    display: none;
}

#happyforms-export-section a.toggle.describe-toggle-on,
#happyforms-export-section a.toggle.describe-toggle-off {
    display: none;
}

/* select form dropdown */
#happyforms-export-select-form {
    display: none;
}

#happyforms-export-select-action,
#happyforms-export-select-form {
    margin-bottom: 0.25em;
}

#happyforms-export-section form.doing-action-export_form #happyforms-export-select-form,
#happyforms-export-section form.doing-action-export_responses #happyforms-export-select-form,
#happyforms-export-section form.doing-action-export_form_responses #happyforms-export-select-form {
    display: block;
}

#happyforms-export-section form.doing-action-export_responses #happyforms-export-select-form option,
#happyforms-export-section form.doing-action-export_form_responses #happyforms-export-select-form option {
    display: none;
}

#happyforms-export-section form.doing-action-export_responses #happyforms-export-select-form option[data-has-responses],
#happyforms-export-section form.doing-action-export_form_responses #happyforms-export-select-form option[data-has-responses] {
    display: block;
}

/* submit button */
#happyforms-export-section button[type=submit] {
    display: none;
}

#happyforms-export-section form.import-submit button,
#happyforms-export-section form.file-upload-error button {
    display: none;
}

#happyforms-export-section select {
    min-width: 100%;
    margin-bottom: 10px;
}

/* import elements */
#happyforms-export-section-import {
    display: none;
    margin-top: -10px;
}

#happyforms-export-section form.doing-action-import #happyforms-export-section-import {
    display: block;
}

#happyforms-export-section form {
    padding-bottom: 15px;
}

#happyforms-export-section-import.file-added #plupload-upload-ui,
#happyforms-export-section-import.file-added .max-upload-size,
#happyforms-export-section #happyforms-import-status {
    display: none;
}

#happyforms-export-section-import p.max-upload-size {
    margin-bottom: -5px;
}

#happyforms-export-section form.import-submit #happyforms-import-status {
    display: block;
}

.happyforms-export-message {
    margin: 0 0 15px;
}

#happyforms-import-result #happyforms-import-messages {
    display: none;
}

#happyforms-export-section form.import-success #happyforms-import-messages,
#happyforms-export-section form.import-error #happyforms-import-messages {
    display: block;
}

#happyforms-export-section .reset,
#happyforms-export-section .import-more {
    display: none;
}

#happyforms-export-section .import-more {
    margin-bottom: 0;
}

#happyforms-export-section form.import-error .reset,
#happyforms-export-section form.import-success .import-more {
    display: block;
}

/* Message edit screen */
#namediv.stuffbox .editcomment.happyforms-edit-message-table .quicktags-toolbar input {
    width: auto;
}

#namediv.stuffbox .happyforms-edit-message-table {
    table-layout: fixed;
}

@media screen and (min-width: 782px) {
    #namediv.stuffbox .happyforms-edit-message-table td {
        width: 75%;
    }
}

#namediv.stuffbox .happyforms-edit-message-table td.first {
    width: auto;
    white-space: normal;
}

body.post-type-happyforms-message .meta-box-sortables {
    display: flex;
    flex-flow: column wrap;
    min-height: 0 !important;
}

body.post-type-happyforms-message .meta-box-sortables h2 {
    cursor: default !important;
}

body.post-type-happyforms-message #post-body .misc-pub-comment-status:before {
    display: none;
    content: '';
}

.post-type-happyforms-message #visibility,
.post-type-happyforms-message .misc-pub-post-status,
.post-type-happyforms-message #misc-publishing-actions .misc-pub-curtime {
    display: none;
}

.post-type-happyforms-message #minor-publishing-actions {
    padding-left: 0;
    text-align: left;
}

.post-type-happyforms-message #minor-publishing-actions #save-action {
    display: none;
}

.happyforms-message-edit-field-multi_line_text textarea,
.happyforms-message-edit-field-table textarea {
    width: 100%;
    padding: 6px 8px;
}

#happyforms-message-send-email .inside {
    padding: 0;
}

.happyforms-metabox-content {
    margin: 6px 0 0 0;
    padding: 0 12px 12px;
}

.happyforms-metabox-content :last-child {
    margin-bottom: 0;
}

.happyforms-metabox-actions {
    padding: 10px;
    clear: both;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
    text-align: right;
}

.happyforms-metabox-actions .spinner {
    float: none;
}

.happyforms-metabox-actions input[type="submit"] {
    float: right;
}

/**
 *
 * Settings
 *
 */
.happyforms-settings-screen__row {
    margin-bottom: 10px;
}
.happyforms-settings-screen__row:last-child {
    margin-bottom: 0;
}
#happyforms-settings-screen .happyforms-settings-section h2.hndle {
    cursor: default;
}
body.version-5-5 .happyforms-settings-section h2.hndle {
    padding-right: 0;
}
.happyforms-settings-section button.handlediv {
    order: 2;
}

#happyforms-settings-screen .widgets-holder-wrap.closed .sidebar-content {
    display: none;
}
#happyforms-register-section form {
    margin-top: 2px;
}
#happyforms-register-section form p:first-of-type {
    margin-top: 0;
}
#happyforms-register-section label,
#happyforms-export-section label {
    display: inline-block;
    margin-bottom: 2px;
}
#happyforms-register-section input[type=email],
#happyforms-register-section input[type=password] {
    display: block;
    margin-bottom: 10px;
}
#happyforms-register-section .description {
    margin-top: -3px;
}
.happyforms-register-section__reset svg {
    width: 10px;
}

.happyforms-settings-section form {
    padding-bottom: 5px;
}
.happyforms-settings-section textarea {
    vertical-align: top;
}

.happyforms-settings-section .control .control__line {
    display: block;
    margin-left: 24px;
    padding-top: 6px;
}

.happyforms-settings-section .control .control__line label {
    vertical-align: top;
}

.happyforms-settings-section .control .control__line > input[type=checkbox] {
    margin-right: 4px;
    margin-left: -24px;
}

.happyforms-settings-section .nested-input .control:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

.happyforms-settings-section .controls {
    margin-bottom: 1em;
}

.happyforms-settings-section .control {
    margin: 0.5em 0;
}

.happyforms-settings-section .control:first-of-type {
    margin-top: -0.25em;
}

.happyforms-settings-section .control .nested-input {
    display: none;
    margin: 5px 0 -0.5em -17px;
    padding: 5px 0 5px 15px;
    border-left: 1px solid #ccc;
}

.happyforms-settings-section section.control.happyforms-nested-settings {
    display: none;
}

.happyforms-settings-section .control .control__line.inner {
    margin: 0.5em 0;
    display: none;
}

.happyforms-settings-section .control .control__line input[type=checkbox]:checked ~ .control__line.inner {
    display: block;
}
.happyforms-settings-section .controls .control:last-of-type .nested-input {
    margin-bottom: 0;
    padding-bottom: 0;
}

#happyforms-validation-messages-section input[type=checkbox]:checked ~ .nested-input,
#happyforms-blocklist-section input[type=checkbox]:checked ~ .nested-input,
#happyforms-role_permissions-section input[type=checkbox]:checked ~ .nested-input,
#happyforms-privacy-section input[type=checkbox]:checked ~ .nested-input {
    display: block;
}



#happyforms-role_permissions-section .nested-input p:first-of-type {
    margin-top: 0;
}

#happyforms-role_permissions-section .nested-input p:last-child {
    margin-bottom: 0;
}

.happyforms-integrations-section .enabled .nested-block {
    display: block;
}

#happyforms-blocklist-section .nested-input p:last-child {
    margin-bottom: 0;
}

.nested-input label.widefat {
    display: inline-block;
    margin-bottom: 2px;
}

.happyforms-settings-section .notice {
    margin: 0 0 15px;
}

.hf-pwd {
    position: relative;
    margin: 0 0 1em;
}

.hf-pwd:last-of-type {
    margin: 0;
}

.hf-pwd:last-child {
    margin: 0 0 1em;
}

.wp-core-ui .happyforms-integrations-section form .hf-pwd + p {
    margin-top: 1em !important;
}

.hf-pwd input.happyforms-credentials-input {
    padding-right: 2.5rem;
}

.hf-pwd > button.hf-hide-pw {
    position: absolute;
    right: 0;
    top: 1px;
    display: flex;
    align-items: center;
    border: 1px solid transparent !important;
    width: 2.1rem;
    min-width: 25px;
    min-height: auto;
    height: calc(100% - 2px);
    margin: 0;
    padding: 5px 9px 5px 7px;
    font-size: 14px;
    line-height: 2;
    box-shadow: none;
    background: transparent !important;
    vertical-align: middle;
}

button.hf-hide-pw:focus {
    background: transparent !important;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba !important;
    outline: 2px solid transparent !important;
}

button.hf-hide-pw .dashicons {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 18px;
}

#happyforms-register-section .hf-pwd:last-of-type {
    margin: 0 0 1em;
}

#happyforms-export-import-form .drag-drop #drag-drop-area {
    border: 0;
    height: auto;
}

#happyforms-export-section .drag-drop .drag-drop-inside {
    margin: 0;
    width: auto;
}

#happyforms-export-section .drag-drop .drag-drop-inside p {
    display: none;
}

#happyforms-export-section .drag-drop .drag-drop-inside p.drag-drop-buttons #plupload-browse-button {
    display: none;
}

#happyforms-export-section .media-upload-form {
    margin-top: 0;
}

#happyforms-export-section .media-upload-form .max-upload-size {
    display: none;
}

#happyforms-settings-screen .postbox-header .spinner {
    margin: 0;
}