// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
// ┃ ██████ ██████ ██████       █      █      █      █      █ █▄  ▀███ █       ┃
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█  ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄  ▀█ █ ▀▀▀▀▀ ┃
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄   █ ▄▄▄▄▄ ┃
// ┃ █      ██████ █  ▀█▄       █ ██████      █      ███▌▐███ ███████▄ █       ┃
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// ┃ 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). ┃
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

regular-table {
    tbody {
        tr:hover
            th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),
        tr:hover
            th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),
        tr:hover td:not(.psp-row-selected):not(.psp-row-subselected),
        tr:hover:after {
            border-color: var(--rt-hover--border-color, #c5c9d080) !important;
            background-color: transparent;
            box-shadow: 0px 1px 0px var(--rt-hover--border-color, #c5c9d080),
                0px 3px 0px rgba(0, 0, 0, 0.05), 0px 5px 0px rgba(0, 0, 0, 0.01);

            &.psp-menu-open {
                box-shadow: inset -2px 0px 0px var(--icon--color),
                    inset 2px 0px 0px var(--icon--color),
                    0px 1px 0px var(--rt-hover--border-color, #c5c9d080),
                    0px 3px 0px rgba(0, 0, 0, 0.05),
                    0px 5px 0px rgba(0, 0, 0, 0.01);
            }
        }

        tr:last-child:hover
            td:not(.psp-row-selected):not(.psp-row-subselected).psp-menu-open {
            box-shadow: inset -2px 0px 0px var(--icon--color),
                inset 2px 0px 0px var(--icon--color),
                inset 0px -2px 0px var(--icon--color),
                0px 1px 0px var(--rt-hover--border-color, #c5c9d080),
                0px 3px 0px rgba(0, 0, 0, 0.05), 0px 5px 0px rgba(0, 0, 0, 0.01);
        }

        tr:hover
            + tr
            th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),
        tr:hover
            + tr
            th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),
        tr:hover + tr td:not(.psp-row-selected):not(.psp-row-subselected) {
            border-top-color: transparent;
        }

        tr {
            th:first-child:not(:empty),
            th:first-child:empty + th:not(:empty),
            th:first-child:empty ~ th:empty + th:not(:empty),
            td:first-child {
                border-left-width: 1px;
                border-left-color: transparent;
            }

            th:last-child,
            td:last-child {
                border-right-width: 0px;
                border-right-color: transparent;
            }
        }

        tr:hover {
            color: inherit;
            th:first-child:not(:empty),
            th:first-child:empty + th:not(:empty),
            th:first-child:empty ~ th:empty + th:not(:empty),
            td:first-child {
                border-left-color: var(
                    --rt-hover--border-color,
                    #c5c9d080
                ) !important;
            }

            th:last-child,
            td:last-child {
                border-right-color: var(
                    --rt-hover--border-color,
                    #c5c9d080
                ) !important;
            }
        }
    }
}
