.sweeppress-simulation-mode {
    background-color: #813E99;
    color: #FFF;
    text-align: center;
    padding: .75em .5em;
    margin: 0 0 1em;
    border-radius: 5px;
    line-height: 1.4;

    span {
        font-size: 1.2em;
        font-weight: bold;
    }

    em {
        font-size: 1em;
    }

    * {
        display: block;
    }
}

.d4p-with-table {
    .sweeppress-notice-group.sweeppress-notice-backups {
        max-width: 100%;
    }
}

.sweeppress-panel-inside {
    margin: -1em;

    h5 {
        background: var(--d4p-color-main-border);
        color: #000;
        margin: -2em -1em 1em;
        padding: .5em;
        font-size: 1em;
        font-weight: bold;
    }

    p:last-child {
        margin-bottom: 0;
    }
}

.sweeppress-item-wrapper {
    border: 1px solid #DDD;
    border-radius: 4px;
    margin: 0 0 1em;

    h5 {
        border-radius: 4px 4px 0 0;
        margin: 0;
        padding: 0.5em 0.75em;
        font-size: 1.1em;
        line-height: 1.5;
        background: #F4F4F4;

        input[type=checkbox] {
            float: right;
            margin: 1px 0 0 0;
            width: 22px;
            height: 22px;

            &:before {
                margin: -2px -3px;
                height: 24px;
                width: 24px;
            }
        }
    }

    .sweeppress-item-inside {
        border-radius: 0 0 4px 4px;
        border-top: 1px solid #DDD;
        padding: .5em 1em;

        .sweeppress-item-task {
            line-height: 2;

            .d4p-ui-warning {
                vertical-align: baseline;
                font-size: .9em;
                color: #700;
            }

            &.task-is-missing {
                span {
                    text-decoration: line-through;
                }
            }

            input {
                float: right;
                margin: 6px 0 0;
                width: 18px;
                height: 18px;

                &:before {
                    margin: -1px -2px;
                    height: 20px;
                    width: 20px;
                }
            }

            &.empty-task {
                opacity: .7;
            }
        }
    }
}

.sweeppress-item-task-stats {
    > span {
        &:not(:last-child):after {
            content: " · ";
        }
    }
}

.sweeppress-item-task-preview {
    margin-left: .5em;

    i {
        line-height: 1;
        vertical-align: middle;
    }
}

.sweeppress-results-loader {
    font-size: 1.2em;
}

.sweeppress-inner-content {
    p:first-of-type {
        margin-top: 0;
    }

    p:last-of-type {
        margin-bottom: 0;
    }

}

.sweeppress-dialog-hide-x {
    .ui-dialog-titlebar button {
        display: none;
    }
}

.sweeppress-cleanup-results {
    h5 {
        border-bottom: 1px solid #888;
        padding: 0 0 0.25em 0;
        margin: 0 0 0.5em 0;
        font-size: 1.4em;
    }

    h6 {
        border-bottom: 1px dotted #888;
        padding: 0 0 0.25em 0;
        margin: 0 0 0.5em 0;
        font-size: 1.2em;
    }

    .sweeppress-with-errors {
        color: #D00;
    }
}

.sweeppress-notice-group {
    &.sweeppress-notice-backups {
        border-color: #900;
    }

    h3 {
        color: #900;
        border-bottom-color: #900;
        background: #FFF1F1;

        a {
            float: right;
        }
    }

    .d4p-group-footer {
        text-align: left;
        padding: 1em;
        border-top: 1px solid #900;
    }
}

.sweeppress-about-counters {
    font-size: 1.4em;
    display: flex;
    gap: 2em;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--d4p-color-layout-accent);
    margin: 1em 0 0;
    padding: 1em 0 0;
    font-weight: 100;

    i {
        font-size: 1.4em;
        color: var(--d4p-color-layout-accent);
    }

    strong {
        font-size: 1.4em;
        font-weight: 900;
        color: var(--d4p-color-layout-accent);
    }
}