.d4p-group-dashboard-card {
    &.d4p-group-dashboard-queue {
        ul.d4p-items-list {
            margin-bottom: 0;

            li {
                width: 100%;
                padding: 2px 0;

                &.liner {
                    border-bottom: 1px solid #DDD;
                    padding-bottom: 5px;
                    margin-bottom: 7px;
                }

                span {
                    float: right;
                    font-weight: bold;

                    &.gdmaq-label {
                        border-radius: 2px;
                        margin-left: 5px;
                        color: #FFF;
                        display: inline-block;
                        padding: 0 6px 2px;
                        line-height: 1.5;

                        &.gdmaq-pause {
                            background: #900;
                        }

                        &.gdmaq-waiting {
                            background: #039;
                        }

                        &.gdmaq-working {
                            background: #090;
                        }

                        &.gdmaq-engine {
                            background: #0A63A5;
                        }

                        &.gdmaq-service {
                            background: #8E0676;
                        }
                    }
                }
            }

            h4 {
                font-size: 1.2em;
            }
        }
    }
}

.d4p-section-toggle {
    &.d4p-free-height {
        .form-table {
            > tbody > tr > * {
                line-height: 22px;
                padding-bottom: 0;
            }

            code {
                font-style: normal;
            }
        }
    }
}

.gdmaq-result-ok,
.gdmaq-result-error {
    line-height: 1.6em;
    padding: 10px;
    overflow: auto;

    h4 {
        font-size: 1.5em;
        margin: 0 0 .75em;
    }

    hr {
        margin: .75em 0;
    }
}

.gdmaq-result-ok {
    background-color: #E8FFEA;
    border: 1px solid #0C0;
}

.gdmaq-result-error {
    background-color: #FFEBE8;
    border: 1px solid #C00;
}

.gdmaq-emails-log {
    td {
        h3 {
            margin: 5px 0 0;
            padding: 0;
            font-weight: bold;
            font-size: 1em;

            &:first-child {
                margin-top: 0;
            }
        }

        h4 {
            margin: 5px 0 0;
            padding: 0;
            font-weight: bold;
            font-size: 1em;
            border-bottom: 1px solid #999;
        }

        .gdmaq-single-email {
            &.gdmaq-email-to,
            &.gdmaq-email-from {
                font-weight: 500;
            }
        }
    }

    .column-log_id {
        width: 90px;
    }

    .column-logged {
        width: 120px;
    }

    .column-basic,
    .column-status,
    .column-from,
    .column-to {
        width: 15%;
    }

    .gdmaq-item-tag {
        border-radius: 2px;
        margin: 0 5px 5px 0;
        padding: 0 6px 1px;
        color: #FFF;
        display: inline-block;
        background: #0073AA;
        line-height: 1.5;

        &.gdmaq-tag-ok,
        &.gdmaq-tag-toqueue,
        &.gdmaq-tag-plain {
            background: #10AD3A;
        }

        &.gdmaq-tag-fail,
        &.gdmaq-tag-html {
            background: #DC3232;
        }

        &.gdmaq-tag-engine {
            background: #8E0676;
        }
    }

    .gdmaq-subject {
        margin-bottom: 5px;
    }

    .gdmaq-log-row-fail {
        background: #FEE !important;
    }

    .gdmaq-log-row-queue {
        background: #EEF7FF !important;
    }

    p {
        &:first-of-type {
            margin-top: 0;
        }

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

.gdmaq-dialog-hidex .ui-dialog-titlebar button {
    display: none;
}

#gdmaq-view-entry-inner {
    height: 100%;

    .d4p-ctrl-tabs.gdmaq-entry-log-tabs {
        height: 100%;

        div[role="tablist"] {
            height: 24px;

            button[role="tab"] {
                line-height: 20px;
            }
        }

        .d4p-ctrl-tabs-content {
            [role="tabpanel"] {
                height: 355px;
                overflow: auto;
            }
        }
    }

    .gdmaq-email-element {
        margin: 0 0 15px;

        h3 {
            margin: 0 0 5px;
        }

        h4 {
            margin: 5px 0 0;
        }
    }

    pre {
        margin: 0;
    }
}

.d4p-group-inner {
    .gdmaq-inner-element {
        margin-bottom: 8px;

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

.d4p-panel-addons {
    .d4p-group-inner {
        padding: 15px 0 0;
    }

    .d4p-front-title {
        vertical-align: top;
        height: auto;
        width: calc(50% - 19px);
        display: inline-block;
        text-align: left;
        font-size: 18px;
        font-weight: bold;
        margin: 0 7.5px 15px
    }

    .d4p-group-inner {
        padding: 15px;
    }
}

.d4p-table-help {
    th, td {
        vertical-align: top;
    }
}

.gdmaq-button-control {
    float: right;
}

.d4p-group-separator {
    h3 {
        text-align: center;
        margin: 0 0 50px;

        span {
            background: none;
            top: 30px;
        }
    }
}

.d4p-toggle-content {
    .form-table {
        th {
            font-weight: normal;
            font-style: normal;

            strong {
                display: none;
            }
        }
    }
}
