/* ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 * ┃ ██████ ██████ ██████       █      █      █      █      █ █▄  ▀███ █       ┃
 * ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█  ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄  ▀█ █ ▀▀▀▀▀ ┃
 * ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄   █ ▄▄▄▄▄ ┃
 * ┃ █      ██████ █  ▀█▄       █ ██████      █      ███▌▐███ ███████▄ █       ┃
 * ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
 * ┃ Copyright (c) 2017, the Perspective Authors.                              ┃
 * ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
 * ┃ This file is part of the Perspective library, distributed under the terms ┃
 * ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
 * ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 */

.psp-header-border:not(.psp-is-top):not(.psp-header-leaf) {
    /* right */
    box-shadow: 1px 0px var(--psp-inactive--border-color, #8b868045);
}

.psp-header-group {
    /* bottom */
    box-shadow: 0px 10px 0 -9px var(--psp-inactive--border-color, #8b868045);
}

.psp-is-top {
    /* top-miter-right */
    box-shadow: 5px 4px 0px -4px var(--psp-inactive--border-color, #8b868045);
}

.psp-is-top.psp-header-group:not(.psp-header-group-corner) {
    /* top-miter-right and bottom */
    box-shadow:
        5px 4px 0px -4px var(--psp-inactive--border-color, #8b868045),
        0px 10px 0 -9px var(--psp-inactive--border-color, #8b868045);
}

.psp-header-border.psp-header-group {
    &:not(.psp-is-top):not(.psp-header-group-corner) {
        /* right and bottom */
        box-shadow:
            1px 0px var(--psp-inactive--border-color, #8b868045),
            0px 10px 0 -9px var(--psp-inactive--border-color, #8b868045);
    }
}

perspective-viewer[settings]
    tr.rt-autosize
    .psp-header-leaf.psp-header-border:not(.psp-menu-enabled) {
    box-shadow: 1px 0px var(--psp-inactive--border-color, #8b868045);
}

:host-context(perspective-viewer[settings])
    tr.rt-autosize
    .psp-header-leaf.psp-header-border:not(.psp-menu-enabled) {
    box-shadow: 1px 0px var(--psp-inactive--border-color, #8b868045);
}

.psp-header-leaf.psp-header-border {
    /* bottom-miter-right */
    box-shadow: 5px -4px 0px -4px var(--psp-inactive--border-color, #8b868045);
}

tr:only-child th {
    box-shadow: none !important;
}
