/* Reuse the same inset heading and action treatments on the approved walkthrough surfaces. */
#applicationMain {
    --walkthrough-heading-face: linear-gradient(180deg, #264654, #132d3e 18%, #091d2a 88%, #1c3645);
    --walkthrough-heading-relief: inset 0 1px #dceff32b, inset 0 -2px #020e1c99, 0 2px 4px #020c1580;
    --walkthrough-gold-rim: linear-gradient(115deg, #9c7948, #f4d79e 30%, #c6a46b 76%, #9f7f49);
    --walkthrough-panel-rim: #466579;
    --walkthrough-setup-well: #0e2433;
    --walkthrough-setup-card: linear-gradient(155deg, #193747, #122a3a 55%, #102634);
    --walkthrough-setup-relief: inset 0 1px #c4e4f329, inset 0 -2px #06132075;
    --walkthrough-champagne: linear-gradient(180deg, #f2d699, #c6924e);
    --walkthrough-champagne-hover: linear-gradient(180deg, #f9e1ab, #d5a363);
    --walkthrough-navy: linear-gradient(180deg, #142f40, #0b2030);
    --walkthrough-navy-hover: linear-gradient(180deg, #204356, #102d3e);
    --walkthrough-navy-text: #e9f5fa;
    --walkthrough-dark-text: #172332;
    --walkthrough-status-text: #d0e4ef;
    --walkthrough-status-face: #132d3c;
    --walkthrough-status-edge: #4c7186;
}

/* The filter console keeps ownership of the register grid, controls and rows. */
@layer eco-register-material {
    #applicationMain :is(
        .eco-console-dg26,
        [data-eco-register-bevel="header"]:not(.eco-console-dg26 *),
        #equipment-records > .eq-panel-heading
    ),
    #applicationMain :is([data-facility-manage-setup], .eco-treatment-collection) > .eco-work-records-panel > .eco-work-records-heading,
    #applicationMain .eco-facility-setup-entry > .fo02-checklist > .fo02-summary {
        position: relative;
        background: var(--walkthrough-heading-face) !important;
        border-color: var(--walkthrough-panel-rim) !important;
        box-shadow: var(--walkthrough-heading-relief) !important;
    }

    #applicationMain :is(
        .eco-console-dg26,
        [data-eco-register-bevel="header"]:not(.eco-console-dg26 *),
        #equipment-records > .eq-panel-heading
    )::before,
    #applicationMain :is([data-facility-manage-setup], .eco-treatment-collection) > .eco-work-records-panel > .eco-work-records-heading::before,
    #applicationMain .eco-facility-setup-entry > .fo02-checklist > .fo02-summary::before {
        content: "";
        display: block !important;
        position: absolute;
        inset: 0 auto auto 0;
        z-index: 1;
        inline-size: 5.25rem;
        block-size: 1.45rem;
        clip-path: polygon(10px 0, 100% 0, 100% 2px, 11px 2px,
            2px 11px, 2px 100%, 0 100%, 0 10px);
        background: var(--walkthrough-gold-rim);
        pointer-events: none;
    }

    #applicationMain :is(.eco-console-dg26, [data-eco-register-bevel="header"])
        > :is(.eco-register-bevel-frame, .eco-register-meander) {
        display: none !important;
    }

    #applicationMain [data-eco-walkthrough-action] {
        --walkthrough-action-face: var(--walkthrough-champagne);
        --walkthrough-action-hover: var(--walkthrough-champagne-hover);
        --walkthrough-action-edge: #f1d092;
        --walkthrough-action-text: var(--walkthrough-dark-text);
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: .6rem;
        min-block-size: 44px !important;
        inline-size: fit-content !important;
        max-inline-size: 100% !important;
        padding: .5rem .78rem !important;
        border: 1px solid var(--walkthrough-action-edge) !important;
        border-radius: 5px !important;
        background: var(--walkthrough-action-face) !important;
        box-shadow: inset 0 1px #fff7db3d, 0 2px 4px #020c155c !important;
        color: var(--walkthrough-action-text) !important;
        font: 700 .875rem/1.35 var(--eco-header-font-dg48, "Chakra Petch", "Segoe UI", sans-serif) !important;
        letter-spacing: normal !important;
        text-align: start !important;
        text-decoration: none !important;
        text-transform: none !important;
        white-space: normal !important;
        clip-path: none !important;
        filter: none !important;
    }

    #applicationMain [data-eco-walkthrough-action="secondary"] {
        --walkthrough-action-face: var(--walkthrough-navy);
        --walkthrough-action-hover: var(--walkthrough-navy-hover);
        --walkthrough-action-edge: #53758b;
        --walkthrough-action-text: var(--walkthrough-navy-text);
        box-shadow: inset 0 1px #d0f0f51a, 0 2px 4px #020c155c !important;
    }

    #applicationMain [data-eco-walkthrough-action="utility"] {
        --walkthrough-action-face: transparent;
        --walkthrough-action-hover: transparent;
        --walkthrough-action-text: #99e4ec;
        padding-inline: .2rem !important;
        border-color: transparent !important;
        box-shadow: none !important;
        text-decoration: underline !important;
        text-underline-offset: .22em;
    }
    #applicationMain [data-eco-walkthrough-action][hidden] { display: none !important; }
    #applicationMain [data-eco-walkthrough-action] {
        box-sizing: border-box;
        line-height: 1.35 !important;
        overflow-wrap: anywhere;
    }
    #applicationMain [data-eco-walkthrough-action] > :is([data-eco-body-label-dg52], .eco-button__label, [data-an01-label], [data-play-icon]) {
        color: inherit !important;
        text-transform: inherit !important;
    }
    #applicationMain [data-eco-walkthrough-action]:is([aria-pressed="true"],[aria-expanded="true"]):not(:disabled,[aria-disabled="true"]) {
        border-color: #efd094 !important;
        box-shadow: inset 0 -3px #d8b675 !important;
    }
    #applicationMain .an01-phases > [data-eco-walkthrough-action] {
        inline-size: 100% !important;
        min-inline-size: 0 !important;
        padding-inline: .4rem !important;
    }

    #applicationMain [data-eco-walkthrough-action]::before,
    #applicationMain [data-eco-walkthrough-action]::after {
        content: none !important;
        display: none !important;
    }

    #applicationMain [data-eco-walkthrough-action]:not(:disabled, [aria-disabled="true"]):is(:hover, :focus-visible) {
        background: var(--walkthrough-action-hover) !important;
        color: var(--walkthrough-action-text) !important;
    }

    #applicationMain [data-eco-walkthrough-action]:is(:disabled, [aria-disabled="true"]) {
        opacity: .6 !important;
        cursor: default;
    }

    #applicationMain [data-eco-walkthrough-action]:focus-visible {
        outline: 2px solid #a5edf7 !important;
        outline-offset: 3px !important;
    }

    #applicationMain .eco-treatment-collection .eco-collection-connect select[name="units"] {
        color-scheme: dark;
        min-block-size: 44px;
        border: 1px solid #7697aa !important;
        border-radius: 4px !important;
        background: linear-gradient(180deg, #091d2a, #0c2536) !important;
        box-shadow: inset 0 2px 4px #04101aa6, inset 0 -2px #34546780 !important;
        color: #eef7fc !important;
        appearance: auto !important;
    }

    #applicationMain .eco-treatment-collection .eco-collection-connect select[name="units"]:focus-visible {
        outline: 2px solid #9ee7f3 !important;
        outline-offset: 2px;
    }

    #applicationMain :is(.eco-facility-setup-entry, [data-eco-workflow-actions]) [data-eco-setup-status] {
        display: inline-flex !important;
        align-items: center;
        gap: .38rem;
        max-inline-size: 100%;
        width: fit-content;
        padding: .12rem .48rem !important;
        border: 1px solid var(--walkthrough-status-edge) !important;
        border-radius: 4px;
        background: var(--walkthrough-status-face) !important;
        color: var(--walkthrough-status-text) !important;
        font-size: .75rem !important;
        font-weight: 650;
        line-height: 1.45;
        letter-spacing: normal;
        text-transform: none;
        overflow-wrap: anywhere;
    }

    #applicationMain [data-eco-setup-status]::before {
        content: "";
        flex: none;
        inline-size: .38rem;
        block-size: .38rem;
        border-radius: 50%;
        background: currentColor;
    }
}

#applicationMain [data-eco-setup-status="recorded"] {
    --walkthrough-status-text: #9cecc5;
    --walkthrough-status-face: #102f2c;
    --walkthrough-status-edge: #437b69;
}

#applicationMain [data-eco-setup-status="waiting"] {
    --walkthrough-status-text: #f3d398;
    --walkthrough-status-face: #302921;
    --walkthrough-status-edge: #896c46;
}

#applicationMain .eco-checklist-mobile-summary {
    display: grid;
    gap: .2rem;
    min-inline-size: 0;
    color: #c5deea;
    overflow-wrap: anywhere;
}

#applicationMain .eco-checklist-mobile-summary strong {
    color: #edf7fc;
}

#applicationMain .eco-checklist-mobile > [data-eco-walkthrough-action] {
    align-self: center;
}

#applicationMain .eco-facility-setup-entry > .fo02-checklist {
    border: 1px solid #426072;
    border-radius: 4px;
    background: var(--walkthrough-setup-well);
}

#applicationMain .eco-facility-setup-entry .fo02-summary {
    margin: 0;
    padding-block: .7rem;
    border-radius: 3px 3px 0 0;
}

#applicationMain .eco-facility-setup-entry .fo02-toggle {
    border: 0;
    background: transparent;
    box-shadow: none;
}

#applicationMain .eco-facility-setup-entry .fo02-content {
    margin: 0;
    padding: .8rem;
    border: 0;
    background: var(--walkthrough-setup-well);
    box-shadow: none;
}

#applicationMain .eco-facility-setup-entry .fo01-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
    margin-block: 0;
    border: 0;
    background: transparent;
}

#applicationMain .eco-facility-setup-entry .fo01-steps > li {
    gap: .65rem;
    padding: .7rem .8rem;
    border: 1px solid var(--walkthrough-panel-rim);
    border-radius: 4px;
    background: var(--walkthrough-setup-card);
    box-shadow: var(--walkthrough-setup-relief);
    overflow-wrap: anywhere;
}

@container facility-setup-entry (min-width: 35rem) {
    #applicationMain .eco-facility-setup-entry .fo01-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container facility-setup-entry (min-width: 44rem) {
    #applicationMain .eco-facility-setup-entry .fo02-summary {
        align-items: center;
        flex-wrap: nowrap;
        padding-inline-end: 12rem;
    }
    #applicationMain .eco-facility-setup-entry > .eco-facility-setup-link {
        inset-block-start: .9rem;
    }
}

#applicationMain [data-facility-manage-setup] .eco-guide-card {
    gap: .65rem;
    padding: .85rem 1rem;
    border: 1px solid var(--walkthrough-panel-rim);
    border-radius: 4px;
    background: var(--walkthrough-setup-card);
    box-shadow: var(--walkthrough-setup-relief);
}

#applicationMain [data-facility-manage-setup] .eco-guide-card > .dg54-card-frame {
    display: none;
}

#applicationMain [data-facility-manage-setup] .eco-guide-heading {
    grid-template-columns: 3.35rem minmax(0, 1fr);
    gap: .7rem;
}

#applicationMain [data-facility-manage-setup] .eco-guide-art {
    inline-size: 3.35rem;
    block-size: 3.35rem;
    place-items: center;
}

#applicationMain [data-facility-manage-setup] .eco-guide-status {
    gap: .4rem .75rem;
    padding-block: .4rem .2rem;
    border-block-start: 1px solid #365668;
}

#applicationMain [data-facility-manage-setup] .eco-guide-status-item {
    border: 0;
    background: transparent;
    padding: .3rem 0;
}

#applicationMain [data-facility-manage-setup] .eco-guide-next {
    padding: .45rem 0 0;
    border: 0;
    border-block-start: 1px solid #365668;
    background: transparent;
}

#applicationMain [data-facility-manage-setup] .eco-guide-actions {
    gap: .25rem .85rem;
    padding: 0;
    border: 0;
}

@layer eco-register-material {
    #applicationMain [data-facility-manage-setup] .eco-guide-actions a.eco-guide-action:not([data-eco-walkthrough-action]) {
        min-block-size: 40px !important;
        padding: .2rem 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #b0e3ef !important;
    }

    #applicationMain [data-facility-manage-setup] .eco-guide-actions a.eco-guide-action:not([data-eco-walkthrough-action]):is(:hover, :focus-visible) {
        text-decoration: underline !important;
        text-underline-offset: .2em;
    }
}

#applicationMain .eco-treatment-collection .eco-treatment-system {
    background: var(--walkthrough-setup-card);
    border: 1px solid var(--walkthrough-panel-rim);
    border-radius: 4px;
    box-shadow: var(--walkthrough-setup-relief);
    clip-path: none;
}

#applicationMain .eco-treatment-collection .eco-treatment-system::before {
    content: none;
}

#applicationMain .eco-treatment-system [data-treatment-journey] > [data-tank-reference][data-eco-journey-form="tank"] {
    padding: .75rem 0 0;
    border: 0;
    border-block-start: 1px solid #3b5d70;
    background: transparent;
    box-shadow: none;
}

@container (min-width: 44rem) {
    #applicationMain .eco-treatment-system [data-treatment-journey][data-meter-first] {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }

    #applicationMain .eco-treatment-system [data-treatment-journey] > [data-tank-reference][data-eco-journey-form="tank"] {
        padding: .1rem 0 0 1.1rem;
        border-block-start: 0;
        border-inline-start: 1px solid #3b5d70;
    }
}

#applicationMain .eco-treatment-system [data-treatment-journey] .eco-journey-scene {
    inline-size: clamp(3.55rem, 7cqw, 4.75rem);
    block-size: clamp(3.55rem, 7cqw, 4.75rem);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#applicationMain .eco-treatment-system [data-treatment-journey] .eco-journey-scene img {
    object-fit: contain;
    object-position: center;
}

#applicationMain .eco-treatment-system [data-treatment-journey] [data-eco-journey-form="tank"] .eco-journey-title h3 {
    color: #d8e8ef;
}

#applicationMain .eco-treatment-system [data-treatment-journey] [data-tank-reference] {
    grid-template-rows: auto auto auto;
    align-content: start;
}

@media (forced-colors: active), print {
    @layer eco-register-material {
        #applicationMain :is(
            .eco-console-dg26,
            [data-eco-register-bevel="header"],
            #equipment-records > .eq-panel-heading,
            .eco-work-records-heading,
            .eco-facility-setup-entry > .fo02-checklist > .fo02-summary
        ) {
            background: Canvas !important;
            border-color: CanvasText !important;
            box-shadow: none !important;
        }

        #applicationMain :is(
            .eco-console-dg26,
            [data-eco-register-bevel="header"],
            #equipment-records > .eq-panel-heading,
            .eco-work-records-heading,
            .eco-facility-setup-entry > .fo02-checklist > .fo02-summary
        )::before {
            display: none !important;
        }

        #applicationMain [data-eco-walkthrough-action]:is([aria-pressed="true"],[aria-expanded="true"]) {
            border: 3px double Highlight !important;
            box-shadow: none !important;
        }
        #applicationMain [data-eco-walkthrough-action] {
            background: ButtonFace !important;
            border-color: ButtonText !important;
            color: ButtonText !important;
            box-shadow: none !important;
        }

        #applicationMain :is(.eco-facility-setup-entry, [data-eco-workflow-actions]) [data-eco-setup-status] {
            background: Canvas !important;
            border-color: CanvasText !important;
            color: CanvasText !important;
        }

        #applicationMain .eco-treatment-collection .eco-collection-connect select[name="units"] {
            background: Field !important;
            border-color: FieldText !important;
            color: FieldText !important;
            box-shadow: none !important;
        }
    }

    #applicationMain .eco-treatment-system [data-treatment-journey] [data-eco-journey-form="tank"] .eco-journey-title h3,
    #applicationMain .eco-checklist-mobile-summary,
    #applicationMain .eco-checklist-mobile-summary strong {
        color: CanvasText;
    }

    #applicationMain :is(
        .eco-facility-setup-entry > .fo02-checklist,
        .eco-facility-setup-entry .fo02-content,
        .eco-facility-setup-entry .fo01-steps > li,
        [data-facility-manage-setup] .eco-guide-card,
        .eco-treatment-collection .eco-treatment-system
    ) {
        background: Canvas;
        border-color: CanvasText;
        box-shadow: none;
    }
}
