$white: #fff;
$gray-1: #f3f2f2;

.placeholder {
    .body {
        padding: 1.5rem;
        background-color: $white;
    }

    .icon {
        width: 2rem;
        height: 2rem;
        border-radius: .25rem;
        margin-right: .75rem;
        display: inline-block;
        background-color: $gray-1;

        &-round {
            border-radius: 50%;
        }

        &-square {
            border-radius: .125rem;
        }

        &-x-small {
            width: .75rem;
            height: .75rem;
        }

        &-small {
            width: 1.5rem;
            height: 1.5rem;
        }

        &-large {
            width: 3rem;
            height: 3rem;
        }

        &-huge {
            width: 110px;
            height: 110px;
        }

        &-xhuge {
            width: 160px;
            height: 160px;
        }
    }

    .text-body {
        display: inline-block;
        width: 50%;
        height: 100%;
    }

    .text {
        border-radius: 15rem;
        display: block;
        margin-bottom: .75rem;
        height: .5rem;
        background-color: $gray-1;

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

    .text-thick {
        height: 14px;
        margin: 10px 0;
    }

    .text-thin {
        height: 6px;
        border-radius: 15rem;
    }

    .text-thinner {
        height: 4px;
        margin: 10px 0;
        border-radius: .125rem;
    }

    .text-long {
        width: 100%;
    }

    .text-medium {
        width: 60%;
    }

    .text-short {
        width: 45%;
    }

    .text-shorter {
        width: 20%;
    }

    .text-tiny {
        width: 5%;
    }

    .multi-text-line {
        > div {
            float: left;
            margin-right: .75rem;
        }
    }

    .image {
        margin-right: .75rem;
    }

    .image-block {
        background: $gray-1;
        border-radius: .25rem;
        margin-bottom: .75rem;
    }

    .image-large {
        width: 132px;
        height: 103px;
    }

    .image-mega {
        width: 272px;
        height: 152px;
    }

    .image-full {
        width: 100%;
        height: 152px;
    }

    .anchor {
        background-color: $white;
    }

    .card {
        background-color: $white;
        border: 1px solid $gray-1;
        border-radius: .25rem;
    }

    .darker {
        .body {
            > .field {
                .text-secondary {
                    background-color: #ccd4e2;
                }
            }
        }

        .icon {
            background-color: #ccd4e2;
        }

        .text {
            background-color: #ccd4e2;
        }
    }

    .dark {
        background-color: $gray-1;

        .icon {
            background-color: #ecebea;
        }

        .text {
            background-color: #ecebea;
        }
    }

    .border-bottom {
        border-bottom: 1px solid #dddbda;
    }

    .text-body-col {
        display: flex;
        width: 100%;

        .text {
            border-radius: 14px;
            display: inline-block;
            margin-bottom: .75rem;
            height: .5rem;
            margin-right: .75rem;
        }
    }

    .text-body-no-col {
        display: flex;
        width: 100%;

        .text {
            border-radius: 14px;
            display: inline-block;
            margin-bottom: .75rem;
            height: .5rem;
            margin-right: .75rem;
        }
    }

    .input-field {
        height: 30px;
        border-radius: .25rem;
        display: inline-block;
        margin-right: .75rem;
    }

    .input-field.input-text-long {
        width: 80%;
    }

    .input-field.input-text-small {
        width: 10%;
    }

    .flex-grid {
        display: flex;
    }

    .flex-grow {
        flex: 1 1 auto;
    }

    .flex-none {
        flex: 0 0 auto;
    }

    .flex-stack {
        flex-wrap: wrap;
    }

    .flex-h-center {
        justify-content: center;
    }

    .flex-v-center {
        align-items: center;
    }

    .flex-v-start {
        align-items: flex-start;
        align-content: flex-start;
    }

    .button.button-small {
        height: 0;
        width: 70px;
        padding: 1rem;
        margin: .5rem 0;
    }

    .button.button-full-width-small {
        height: 0;
        padding: 1rem;
        margin: .5rem 0;
    }
}

.placeholder.split_view {
    .body {
        background-color: #fafaf9;
        padding: .125rem 0;

        > .field {
            .text {
                margin: 1rem 0;
            }

            padding: 0 1rem;

            .text-primary {
                max-width: 180px;
            }

            .text-secondary {
                max-width: 210px;
            }

            &:nth-child(odd) {
                .text-primary {
                    max-width: 265px;
                }

                .text-secondary {
                    max-width: 130px;
                }
            }
        }
    }
}

.placeholder.split_view_header {
    .anchor {
        background-color: #fafaf9;
    }

    padding-top: 1px;
    padding-bottom: .5rem;

    .text-thinner {
        margin-top: 1.5rem;
    }
}

.placeholder.list_view_header {
    .anchor {
        background-color: $gray-1;
    }

    padding-top: 1px;
    padding-bottom: .25rem;

    .text-thinner {
        margin-top: 2rem;
    }
}

.opacity95 {
    opacity: .95;
}

.opacity90 {
    opacity: .9;
}

.opacity85 {
    opacity: .85;
}

.opacity80 {
    opacity: .8;
}

.opacity75 {
    opacity: .75;
}

.opacity70 {
    opacity: .7;
}

.opacity65 {
    opacity: .65;
}

.opacity60 {
    opacity: .6;
}

.opacity55 {
    opacity: .55;
}

.opacity50 {
    opacity: .5;
}

.opacity45 {
    opacity: .45;
}

.opacity40 {
    opacity: .4;
}

.opacity35 {
    opacity: .35;
}

.opacity30 {
    opacity: .3;
}

.opacity25 {
    opacity: .25;
}

.opacity20 {
    opacity: .2;
}

.opacity15 {
    opacity: .15;
}

.opacity10 {
    opacity: .1;
}

.opacity5 {
    opacity: .05;
}

.opacity0 {
    opacity: 0;
}

.placeholder.highlight {
    background: $gray-1;
    border-bottom: .125rem solid #dddbda;
    width: 100%;

    .anchor {
        padding: 1rem .75rem;
        width: 100%;
    }

    .icon {
        margin: 0 auto;
    }

    .text-body {
        text-align: center;
        margin: 0 auto;
        padding: 0 .75rem;

        .text {
            margin: .75rem 0;
        }

        .text-primary {
            max-width: 175px;
        }

        .text-secondary {
            max-width: 225px;
        }
    }

    .tabs {
        background: $gray-1;
        padding: 1rem 0;
        margin: 0 auto;

        .tab {
            margin: 0 2rem;
            width: 20%;
            max-width: 60px;
            display: block;
        }
    }
}

.placeholder.record_home_anchor_vertical {
    .p-bottom--small {
        margin-bottom: .75rem;
    }

    .icon-medium {
        vertical-align: middle;
    }

    .text-thick {
        vertical-align: middle;
        margin-top: 0;
    }
}

.placeholder.app_detail {
    .text-body {
        vertical-align: top;
    }

    .sidebar {
        float: left;
        width: calc(208px + 2rem);
        margin: 2rem;
    }

    .main {
        float: right;
        width: calc(100% - 208px - (4 * 2rem));
        margin-top: calc(3 * 2rem);

        > div {
            border-top: 1px solid #dddbda;
            padding: 1.5rem 0 .5rem;
        }
    }
}

.placeholder.record_home_anchor {
    .icon {
        vertical-align: top;
    }

    .body {
        height: 144px;
        padding: 1.5rem 1.5rem 0;
        box-sizing: border-box;
        border-radius: .125rem;

        > .text-body {
            height: 2rem;
            margin-bottom: 0;
        }
    }

    .below-text-body {
        > .text-body {
            width: 10%;
        }

        margin: .75rem -1.25rem -.25rem;
        padding: 1rem 1rem .25rem;
        background-color: $white;
        border-bottom: 1px solid $gray-1;

        .text-body {
            margin: 0 2rem 0 0;
        }
    }
}

.placeholder.group_highlight {
    .container {
        position: relative;
        top: 50px;
        padding-bottom: 30px;
    }

    .anchor {
        padding: 1rem;
        height: 140px;
    }

    height: 230px;
}

.placeholder.detail {
    background-color: $white;

    .right-column {
        display: none;
    }

    .field {
        padding: 1.5rem 1rem;

        &:nth-child(even) {
            .text-secondary {
                width: 33%;
            }
        }
    }

    .text-secondary {
        background-color: #ecebea;
    }
}

.placeholder.detail.fieldMapping {
    .right-column {
        padding-left: 0;
    }
}

.placeholder.fieldMapping {
    > .right-column {
        > .anchor {
            padding-left: 2.5rem;
            border-left: 1px solid #d8dde6;
        }

        > .field {
            border-left: 1px solid #d8dde6;
            padding: 1.25rem 1rem 1.75rem 2.5rem;

            > .text {
                float: left;
                margin: 0;

                &:last-child {
                    float: right;
                }
            }

            > .text-action {
                width: .625rem;
                height: .625rem;
                border-radius: 50%;
            }
        }
    }

    > .left-column {
        > .field {
            padding: 1.25rem 1rem;
        }
    }

    .anchor {
        padding: .125rem 1rem;
        border-bottom: 1px solid #d8dde6;

        > .field {
            .text {
                max-width: 125px;
            }
        }
    }

    .body {
        > .field {
            .text {
                margin: 1rem 0;
            }

            padding: 0 1rem;

            .text-primary {
                max-width: 180px;
            }

            .text-secondary {
                max-width: 210px;
                background: #e0e5ee;
            }

            &:nth-child(odd) {
                .text-primary {
                    max-width: 265px;
                }

                .text-secondary {
                    max-width: 130px;
                }
            }
        }
    }

    .content-tabs {
        padding: 1.5rem 1rem 0;
    }

    .intro {
        padding: 1.5rem 1rem .75rem;
    }
}

.placeholder.list {
    .body {
        > .field {
            .text {
                margin: 1rem 0;
            }

            padding: 0 1rem;

            .text-primary {
                max-width: 180px;
            }

            .text-secondary {
                max-width: 210px;
                background: #ecebea;
            }

            &:nth-child(odd) {
                .text-primary {
                    max-width: 265px;
                }

                .text-secondary {
                    max-width: 130px;
                }
            }
        }

        padding: .125rem 0;
    }

    .anchor {
        padding: 1rem;

        > .field {
            .text {
                max-width: 125px;
            }
        }
    }
}

.placeholder.list_no_header {
    .body {
        > .field {
            .text {
                margin: 1rem 0;
            }

            padding: 0 1rem;

            .text-primary {
                max-width: 180px;
            }

            .text-secondary {
                max-width: 210px;
                background: #ecebea;
            }

            &:nth-child(odd) {
                .text-primary {
                    max-width: 265px;
                }
            }
        }

        padding: .125rem 0;
    }
}

.placeholder.listpreview {
    .body {
        > .field {
            .text {
                margin: 1rem 0;
            }

            padding: 0 1rem;

            .text-primary {
                max-width: 180px;
            }

            .text-secondary {
                max-width: 210px;
                background: #ecebea;
            }

            &:nth-child(odd) {
                .text-primary {
                    max-width: 265px;
                }

                .text-secondary {
                    max-width: 130px;
                }
            }
        }

        padding: .125rem 0;
    }
}

.placeholder.twitter_bird {
    .body {
        padding: .75rem;
    }
}

.placeholder.feed {
    height: 100%;
    width: 100%;
    padding: 1rem 1rem 0;

    .card {
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: .25rem;

        .text {
            margin: 1rem 0;
        }

        .text-body {
            &:nth-child(odd) {
                width: 100%;
            }
        }

        .actions {
            border-top: 1px solid $gray-1;
            padding: 1.5rem 0 1rem;

            .text {
                float: left;
                margin: 0;

                &:last-child {
                    float: right;
                }
            }
        }

        &:nth-child(even) {
            .text-shorter {
                width: 15%;
            }
        }
    }
}

.placeholder.related {
    .card {
        background: $white;
        height: calc(62px + 2rem + (2 * 1rem));
        padding: .75rem;
        margin: 1rem;
        border-radius: .25rem;

        .field {
            margin: 0;
        }

        .text {
            border-radius: 3px;
            max-width: 250px;
        }

        &:nth-child(odd) {
            .text {
                width: 60%;
                max-width: 175px;
            }
        }
    }
}

.placeholder.relatedInPreview {
    .card {
        background: $white;
        height: calc(62px + 2rem + (2 * 1rem));
        padding: .75rem;
        margin: 1rem;
        border-radius: .25rem;

        .field {
            margin: 0;
        }

        .text {
            border-radius: 3px;
            max-width: 250px;
        }
    }
}

.placeholder.map {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    background-repeat: no-repeat;
    background-size: cover;

    .messagebox {
        background-color: #061c3f;
        border-radius: .25rem;
        width: 60%;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-right: -50%;
        transform: translate(-50%, -50%);
        display: inline-block;
        text-align: center;

        .message {
            font-size: .8125rem;
            color: $white;
            font-weight: 700;
            padding: 1.5rem 0;
            display: inline-block;
        }

        .checkin {
            background-size: cover;
            width: 1rem;
            height: 1rem;
            float: left;
        }
    }
}

.placeholder.composer_tabs {
    background-color: $gray-1;
    border: 2px solid $gray-1;
    padding: 1rem;
    border-radius: .125rem;
    height: 124px;

    .composer {
        align-items: flex-end;
        padding: 0;
        height: 100%;

        .input {
            background: $white;
            border-radius: .125rem;
            margin-right: 1rem;
            height: 42px;
        }
    }

    .button {
        width: 70px;
        height: 42px;
        background: #ecebea;
        border-radius: .125rem;
    }
}

.placeholder.composer {
    .input {
        background: $white;
        border-radius: .125rem;
        margin-right: 1rem;
        height: 42px;
    }

    .button {
        width: 70px;
        height: 42px;
        background: #ecebea;
        border-radius: .125rem;
    }
}

.placeholder.path {
    display: flex;

    .pathStencil {
        width: 100%;
        z-index: 1;
    }

    div.chevron {
        width: 80%;
        padding-left: .5rem;
    }

    div {
        ul.list {
            width: 100%;
            white-space: nowrap;
            border-radius: .125rem 16px 16px .125rem;
            padding-left: 0;
            margin: 0;
            overflow: hidden;
        }
    }

    .chevronButton {
        width: 20%;
        margin: 0;
        max-width: 300px;
        padding-left: .75rem;
    }

    .chevronStep {
        &:after {
            background-color: $gray-1;
            content: '';
            position: absolute;
            width: 100%;
            height: 16px;
            left: -8px;
            z-index: -1;
            border: 1px solid transparent;
            border-top: 0;
            border-radius: 1px 1px .125rem .125rem;
            top: 16px;
            transform: skew(-45deg);
        }

        &:before {
            background-color: $gray-1;
            content: '';
            position: absolute;
            width: 100%;
            height: 16px;
            top: 0;
            left: -8px;
            z-index: -1;
            border: 1px solid transparent;
            border-bottom: 0;
            border-radius: .125rem .125rem 1px 1px;
            transform: skew(45deg);
        }

        height: 32px;
        width: 80px;
        position: relative;
        text-align: center;
        flex: 1 1 11%;
        min-width: 80px;
        margin-left: 5px;
        background-color: transparent;
        list-style: none;

        &:first-child {
            padding-left: 0;
            padding-right: 0;
            overflow: hidden;
            border-top-left-radius: 16px;
            border-bottom-left-radius: 16px;
        }

        &:last-child {
            padding-left: 0;
            padding-right: 0;
            border-top-right-radius: 16px;
            border-bottom-right-radius: 16px;

            &:after {
                width: 200%;
            }

            &:before {
                width: 200%;
            }
        }
    }
}

.placeholder.preview_panel_anchor {
    .body {
        padding: 1rem;

        > .text-body {
            height: 3rem;
        }
    }

    .text-body {
        width: 80%;
    }

    .below-text-body {
        > .text-body {
            width: 40%;
            margin-right: .75rem;
        }

        margin: .5rem 0 0 60px;
    }
}

.placeholder.related_record {
    .text-body {
        width: 90%;
    }
}

.placeholder.publisher {
    .body {
        padding: 28px 0 0 70px;
    }
}

.placeholder.table_list_line_item {
    .body {
        padding: 1rem 1.5rem .3rem;
    }
}

.placeholder.event_card {
    .body {
        > .text-body {
            width: 100%;
        }
    }

    .text-body-no-col {
        &:nth-child(even) {
            margin-top: 25px;
        }
    }
}

.placeholder.top_deals {
    .icon {
        width: 26px;
        height: 10px;
        vertical-align: top;
    }
}

.placeholder.stencil_account_news_compact {
    .image {
        max-width: 272px;
    }
}

.placeholder.setup_card {
    .body {
        width: 300px;
        padding: 18px;
    }

    .icon {
        margin: 5px auto 1rem;
    }

    .text-body {
        display: block;
        width: 80%;
        height: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;

        .text {
            margin-left: auto;
            margin-right: auto;
        }
    }
}

.placeholder.empty_chart {
    background: $white;
    margin-left: 39px;
    margin-right: 28px;

    .body {
        height: 275px;
        position: relative;
        width: 100%;
        background: repeating-linear-gradient(to right, transparent 0, transparent 250px, #eef1f6 251px), repeating-linear-gradient(to top, transparent 0, transparent 56px, #eef1f6 57px);

        &:before {
            content: "";
            display: block;
            width: 1px;
            height: 100%;
            background-color: #dddbda;
            position: absolute;
            top: 0;
            left: 3px;
        }

        &:after {
            content: "";
            display: block;
            width: 100%;
            height: 1px;
            background-color: #dddbda;
            position: absolute;
            bottom: 3px;
            right: 0;
        }
    }
}

.placeholder.dashboard_card {
    .body {
        width: 300px;
        height: 175px;
        padding: 18px;
    }

    .text-body {
        width: 100%;
    }

    .svg {
        height: 100%;
    }
}

.placeholder.pipelineView {
    padding-left: .5rem;
    padding-right: .5rem;

    .pipelineView-column {
        .stageHeader {
            position: relative;
            padding: 1.25rem .5rem;
            background: #ecebea;

            &:before {
                content: "";
                position: absolute;
                left: -1rem;
                top: .275rem;
                display: block;
                width: 1.85rem;
                height: 1.85rem;
                border: 2px solid $white;
                border-left: none;
                border-bottom: none;
                transform: rotate(45deg);
            }
        }

        &:first-of-type {
            .stageHeader {
                border-radius: 15rem 0 0 15rem;

                &:before {
                    content: none;
                }
            }
        }

        &:last-of-type {
            .stageHeader {
                border-radius: 0 15rem 15rem 0;
            }

            .listContent {
                border-right: #dddbda 1px solid;
            }

            .stageAggregateValue {
                border-right: #dddbda 1px solid;
            }
        }

        .stageAggregateValue {
            padding: .5rem 0;
            border-left: #dddbda 1px solid;
            height: 1.5rem;
        }

        .listContent {
            border-left: #dddbda 1px solid;

            ul {
                padding: 0;
                margin: 0;
                list-style-type: none;
            }
        }
    }

    .text-body {
        margin: .5rem;
        padding: .5rem;
        border: 1px solid #dddbda;
        border-radius: .25rem;
        width: 100%;
    }
}

.placeholder.object_home_list_anchor {
    .body {
        padding: 0;
    }

    .entity {
        padding-top: .25rem;
        padding-bottom: 1rem;
    }

    .title {
        padding-bottom: .75rem;
        margin-bottom: .125rem;

        .text-thick {
            margin: 0;
        }
    }
}

.placeholder.object_home_list_summary {
    .body {
        padding: 0;
    }

    .text-body-col {
        padding-top: .5rem;
        margin-bottom: 5px;
    }
}

.placeholder.lead_insights_hover {
    .slds-popover__header {
        height: 81px;
        background: #ecebea;
        border-bottom: 1px solid #dddbda;
    }

    .lead-insights-body {
        border: 1px solid #dddbda;
        border-radius: .25rem;
        margin: .75rem;

        .table-header {
            height: 31px;
            background: #ecebea;
            margin: 0;
        }

        .table-body {
            height: 167px;
        }
    }

    .lead-insights-footer {
        margin: 0 .75rem;

        .button {
            &:first-child {
                margin-right: 2px;
            }

            &:last-child {
                margin: 0 -1px;
            }
        }

        .slds-button {
            flex: 1 1 auto;
            background: #ecebea;
            margin-top: 0;
        }
    }
}

.placeholder.lead_insights_record_home {
    padding: .75rem 1rem;

    .score-container {
        height: 81px;
        background: #ecebea;
        border-bottom: 1px solid #dddbda;
    }

    .lead-insights-body {
        border: 1px solid #dddbda;
        border-radius: .25rem;
        margin: 0 1rem .5rem;

        .table-header {
            height: 31px;
            background: #ecebea;
            margin: 0;
        }

        .table-body {
            height: 167px;
        }
    }

    .lead-insights-footer {
        margin: 0 .75rem;

        .button {
            &:first-child {
                margin-right: 2px;
            }

            &:last-child {
                margin: 0 -1px;
            }
        }

        .slds-button {
            flex: 1 1 auto;
            background: #ecebea;
            margin-top: 0;
            border: 0;
        }
    }
}

.placeholder.metadata-info-card {
    height: 11rem;
    border-radius: .25rem;
    background-color: $gray-1;
}

@media only screen and (min-width: 48em) {
    .placeholder.highlight {
        .anchor {
            padding: 1rem;
            text-align: left;
        }

        .icon {
            vertical-align: middle;
        }

        .text-body {
            vertical-align: middle;
            margin-left: 1rem;

            > .text {
                margin: 0;
                width: 250px;
                height: 12px;
                border-radius: 6px;

                + {
                    .text {
                        margin: 1rem 0 0;
                        width: 325px;
                        height: 8px;
                        border-radius: .25rem;
                    }
                }
            }
        }

        .tabs {
            clear: both;
            padding: 2rem 0 1rem;
            margin: 0;
            justify-content: flex-start;
        }
    }
    .placeholder.detail {
        float: left;
        width: 100%;
        clear: both;

        .left-column {
            float: left;
            display: block;
            width: 50%;
        }

        .right-column {
            float: left;
            display: block;
            width: 50%;
            padding-left: 1.5rem;
        }
    }
}

@media only screen and (min-width: 64.0625em) {
    .placeholder.detail {
        .text {
            border-radius: 15rem;
            height: .5rem;
        }
    }
    .placeholder.fieldMapping {
        > .left-column {
            > .field {
                padding: 1.25rem 1rem;
            }
        }

        > .right-column {
            > .field {
                padding: 1.25rem 1rem 1.75rem 2.5rem;
            }
        }
    }
}
