/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Html body response to dock
 */
html body
{

}

.float-to-page
{
    width: 100%;
}

/* HTML body margin for nav dock top */
html body.dock-top #dock-front,
html body.dock-top #dock-back,
html body.dock-top
{
    /*margin-top: calc(50px + var(--sync-offset, 0px)); This created overflow of 50px */
    padding-top: calc(50px + var(--sync-offset, 0px));
    min-height: calc(100% - 50px);
}
    html body.dock-top .float-to-page
    {
        margin-top: calc(50px + var(--sync-offset, 0px));
    }


/* HTML body margin for nav dock bottom */
html body.dock-bottom #dock-front,
html body.dock-bottom #dock-back,
html body.dock-bottom
{
    /*margin-bottom: 50px; This created overflow of 50px */
    padding-bottom: 50px;
    min-height: calc(100% - 50px);
}
    html body.dock-bottom .float-to-page
    {
        margin-bottom: 50px;
    }

/* HTML body adjust height for top and bottom panes */
html body.dock-top.dock-bottom #dock-front,
html body.dock-top.dock-bottom #dock-back,
html body.dock-top.dock-bottom
{
    min-height: calc(100% - 100px);
}

/* HTML body does not shift for left dock until screen is a laptop or larger */
@media only screen and (min-width: 1024px)
{
    /* HTML body margin for nav dock left */
    html body.dock-left .float-to-page,
    html body.dock-left #dock-front,
    html body.dock-left #dock-back,
    html body.dock-left
    {
        margin-left: 330px;
        width: calc(100% - 330px);
    }


    /* HTML body margin for nav dock left */
    html body.dock-right .float-to-page,
    html body.dock-right #dock-front,
    html body.dock-right #dock-back,
    html body.dock-right
    {
        margin-right: 330px;
        width: calc(100% - 330px);
    }

        /* Right dock cannot be open when left dock is unless on desktop+ */
        html body.dock-right.dock-left .float-to-page,
        html body.dock-right.dock-left #dock-front,
        html body.dock-right.dock-left #dock-back,
        html body.dock-right.dock-left
        {
            margin-right: 0;
            width: calc(100% - 330px);
        }

}

/* Right dock cannot be open when left dock is unless on desktop+ */
@media only screen and (min-width: 1366px)
{
    /* HTML body adjust height for left and right panes */
    html body.dock-right.dock-left .float-to-page,
    html body.dock-right.dock-left #dock-front,
    html body.dock-right.dock-left #dock-back,
    html body.dock-right.dock-left
    {
        margin-right: 330px;
        width: calc(100% - 660px);
    }
}

/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Dock lightbox
 */
#dock-lb
{
    z-index: 102;
}

/* position lightbox dependent on top dock */
html body.dock-top #dock-lb
{
    top: calc(50px + var(--sync-offset, 0px));
}

/* position lightbox dependent on bottom dock */
html body.dock-bottom #dock-lb
{
    bottom: 50px;
}

/* OUTER Lightbox only visible for mobile and tablet */
@media only screen and (max-width: 1023px)
{
    /* position lightbox dependent on left dock */
    html body.dock-left #dock-lb
    {
        left: 330px;
        opacity: 1;
        width: auto;
        height: auto;
    }

    /* position lightbox dependent on right dock */
    html body.dock-right #dock-lb
    {
        right: 330px;
        opacity: 1;
        width: auto;
        height: auto;
    }
}

/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Dock top
 */
html body ul#dock-top
{
    position: fixed;
    top: -50px;
    right: 50px;
    left: 50px;
    width: auto;
    height: 50px;
    background-color: var(--dialog-background-normal);
    border-bottom: 2px solid var(--dialog-border-fade);
    overflow: hidden;
    z-index: 103;
    -webkit-transition: top 1s ease-in-out;
    -moz-transition: top 1s ease-in-out;
    transition: top 1s ease-in-out;
}

    /* Shift top node into view */
    html body.dock-top ul#dock-top
    {
        top: 0;
        text-align: right;
    }

    body ul#dock-top li
    {
        margin: 3px;
        padding: 13px;
        width: 44px;
        height: 44px;
        text-align: center;
        font-size: 18px;
        cursor: pointer;
        display: inline-block;
    }

        ul#dock-top li:active
        {
            background-color: var(--dialog-background-highlight);
            border-radius: 5px;
        }


        ul#dock-top li::before
        {

        }

    body.dock-top ul#dock-top li.dock-top-history
    {
        float: left;
    }

        body.dock-top ul#dock-top li.dock-top-history::before
        {
            font-family: "Font Awesome 6 Pro", serif;
            font-weight: bold;
            content: "\f1da";
        }

/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Dock right
 */
html body div#dock-right
{
    position: fixed;
    top: calc(50px + var(--sync-offset, 0px));
    bottom: 50px;
    right: -280px;
    width: 280px;
    background-color: var(--dialog-background-normal);
    border-left: 1px solid var(--dialog-border-normal);
    z-index: 103;
    -webkit-transition:1s ease-in-out;
    -moz-transition:1s ease-in-out;
    -o-transition:1s ease-in-out;
    transition:1s ease-in-out;
}

/* Shift right node into view */
html body.dock-right div#dock-right
{
    top: 0;
    bottom: 0;
    right: 50px;
}

/* Shift right node into view according to top dock */
html body.dock-right.dock-top div#dock-right
{
    top: calc(50px + var(--sync-offset, 0px));
}

/* Shift right node into view according to bottom dock */
html body.dock-right.dock-bottom div#dock-right
{
    bottom: 50px;
}

    /* Right dock cannot be open when left dock is unless on desktop+ */
    @media only screen and (max-width: 1366px)
    {
        html body.dock-left.dock-right div#dock-right
        {
            right:-280px;
        }

        html body.dock-left.dock-right ul#dock-right-tabs
        {
            height: 50px;
            background: none;
            border: none;
            overflow: hidden;
        }

    }

html body.dock-right div#dock-right > form
{
    margin: 0;
    border-radius: 0;
}

/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Dock bottom
 */
html body ul#dock-bottom
{
    position: fixed;
    bottom: -50px;
    right: 0;
    left: 0;
    height: 50px;
    z-index: 103;
    background-color: var(--dialog-background-normal);
    border-top: 2px solid var(--dialog-border-fade);
    -webkit-transition: bottom 1s ease-in-out;
    -moz-transition: bottom 1s ease-in-out;
    transition: bottom 1s ease-in-out;
}

    /* Shift bottom node to the right when left-dock is open */
    html body.dock-bottom.dock-left ul#dock-bottom
    {
        left: 50px;
    }

    /* Shift bottom node into view */
    html body.dock-bottom ul#dock-bottom
    {
        bottom: 0;
        padding: 0;
        margin: 0;
        text-align: center;
        justify-content: space-between;
        display: flex;
        list-style: none;
    }

        ul#dock-bottom li
        {
            margin: 3px;
            padding: 13px;
            width: 44px;
            height: 44px;
            text-align: center;
            font-size: 18px;
            cursor: pointer;
            flex: 1; /* Ensures all `<li>` elements take equal width */
        }

            ul#dock-bottom li:active
            {
                background-color: var(--dialog-background-highlight);
                border-radius: 5px;
            }


            ul#dock-bottom li::before
            {
                /* font: var(); */
            }

/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Dock left
 */
html body div#dock-left
{
    position: fixed;
    top: calc(50px + var(--sync-offset, 0px));
    bottom: 50px;
    left: -280px;
    width: 280px;
    background-color: var(--dialog-background-normal);
    border-right: 1px solid var(--dialog-border-normal);
    z-index: 103;
    -webkit-transition:1s ease-in-out;
    -moz-transition:1s ease-in-out;
    -o-transition:1s ease-in-out;
    transition:1s ease-in-out;
}

/* Style bottom dock _List node */
html body.dock-left div#dock-left
{
    top: 0;
    bottom: 0;
    left: 50px;
}


/* Shift left node into view according to top dock */
html body.dock-left.dock-top div#dock-left
{
    top: calc(50px + var(--sync-offset, 0px));
}

/* Shift left node into view according to bottom dock */
html body.dock-left.dock-bottom div#dock-left
{
    bottom: 50px;
}

    div#dock-left div#dock-left-search,
    div#dock-left div#dock-left-active-members,
    div#dock-left div#dock-left-explore,
    div#dock-left div#dock-left-page,
    div#dock-left div#dock-left-inbox,
    div#dock-left div#dock-left-member,
    div#dock-left div#dock-left-printers
    {
        display: none;
    }

    div#dock-left.search div#dock-left-search,
    div#dock-left.active div#dock-left-active-members,
    div#dock-left.explore div#dock-left-explore,
    div#dock-left.page div#dock-left-page,
    div#dock-left.inbox div#dock-left-inbox,
    div#dock-left.member div#dock-left-member,
    div#dock-left.printers div#dock-left-printers
    {
        display: block;
    }

/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Dock front and back
 */
#dock-front,
#dock-back
{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: none;
    -webkit-transition: margin 1s ease-in-out, width 1s ease-in-out, height 1s ease-in-out, opacity 2s ease-in-out;
    -moz-transition: margin 1s ease-in-out, width 1s ease-in-out, height 1s ease-in-out, opacity 2s ease-in-out;
    transition: margin 1s ease-in-out, width 1s ease-in-out, height 1s ease-in-out, opacity 2s ease-in-out;
}

/* Front page will be for common users to rate, comment, subscribe, author, copy write */
#dock-front
{
    background-color: var(--body-background-normal);
    z-index: 100;
}

/* Backpage will be for admin toggling page settings that are saved in databases */
#dock-back
{
    background-color: var(--dialog-background-normal);
    z-index: 101;
}

/* Display the page */
html body.dock-front #dock-front,
html body.dock-back #dock-back
{
    display: block;
}

/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Dock left tabs
 */
ul#dock-left-tabs
{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-right: none;
    color: var(--dialog-color-normal);
    overflow: hidden;
    z-index: 104;
}

        html body.dock-left ul#dock-left-tabs
        {
            height: auto;
            background-color: var(--dialog-background-normal);
            border-right: 2px solid var(--dialog-border-fade);
            overflow: auto;
        }

            /* Remove radius when dock-top is open */
            html body.dock-top ul#dock-left-tabs
            {
                background-color: var(--dialog-background-normal);
                border-bottom: 2px solid var(--dialog-border-fade);
            }

        /* Overflow for phones that are horizontal */
        @media only screen and (max-height: 400px)
        {
            ul#dock-left-tabs
            {
                overflow: scroll;
            }
        }

    /* Dock left tab _List items */
    ul#dock-left-tabs li
    {
        position: relative;
        margin: 5px auto;
        width: 40px;
        height: 40px;
        line-height: 40px;
        background-color: var(--dialog-background-highlight);
        border: 2px solid var(--dialog-border-fade);
        border-radius: 5px;
        font-size: 18px;
        text-align: center;
        display: block;
        cursor: pointer;
    }

        /* Dock left tab _List items when active or hovered */
        ul#dock-left-tabs li:active,
        ul#dock-left-tabs li:hover
        {
            border: 1px solid var(--dialog-border-highlight);
            color: var(--dialog-color-highlight);
        }

        /* Explore tab ON */
        ul#dock-left-tabs.search li#dock-left-tab-search,
        ul#dock-left-tabs.explore li#dock-left-tab-explore,
        ul#dock-left-tabs.page li#dock-left-tab-page,
        ul#dock-left-tabs.inbox li#dock-left-tab-inbox,
        ul#dock-left-tabs.member li#dock-left-tab-member
        {
            border: 2px solid var(--dialog-border-highlight);
            color: var(--dialog-color-highlight);
            font-weight: bold;
        }

/**
 *
 * ██╗  ██╗██╗███╗   ██╗ ██████╗ ██████╗  ██████╗ ███╗   ███╗
 * ██║ ██╔╝██║████╗  ██║██╔════╝ ██╔══██╗██╔═══██╗████╗ ████║
 * █████╔╝ ██║██╔██╗ ██║██║  ███╗██║  ██║██║   ██║██╔████╔██║
 * ██╔═██╗ ██║██║╚██╗██║██║   ██║██║  ██║██║   ██║██║╚██╔╝██║
 * ██║  ██╗██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║
 * ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝
 *
 * Dock right tabs
 */
ul#dock-right-tabs
{
    position: fixed;
    top: 0;
    bottom: 50px;
    right: 0;
    width: 50px;
    height: 50px;
    border-right: none;
    color: var(--dialog-color-normal);
    overflow: hidden;
    z-index: 104;
        -webkit-transition: top 1s ease-in-out;
        -moz-transition: top 1s ease-in-out;
        transition: top 1s ease-in-out;
}

    html body.dock-right ul#dock-right-tabs
    {
        height: auto;
        background-color: var(--dialog-background-normal);
        border-left: 2px solid var(--dialog-border-fade);
        overflow: auto;
    }

    /* Remove radius when dock-top is open */
    html body.dock-top ul#dock-right-tabs
    {
        background-color: var(--dialog-background-normal);
        border-bottom: 2px solid var(--dialog-border-fade);
    }

/* Overflow for phones that are horizontal */
@media only screen and (max-height: 400px)
{
    ul#dock-right-tabs
    {
        overflow: scroll;
    }
}

    /* Dock right tab _List items */
    ul#dock-right-tabs li
    {
        position: relative;
        margin: 5px auto;
        padding: 10px;
        width: 40px;
        height: 40px;
        background-color: var(--dialog-background-highlight);
        border: 2px solid var(--dialog-border-fade);
        border-radius: 5px;
        font-size: 18px;
        text-align: center;
        display: block;
        cursor: pointer;
    }

        /* Dock right tab _List items when active or hovered */
        ul#dock-right-tabs li:active,
        ul#dock-right-tabs li:hover
        {
            border: 1px solid var(--dialog-border-highlight);
            color: var(--dialog-color-highlight);
        }

/* Hide tabs if screen is too small to have a side menu open */
@media only screen and (max-width: 390px)
{
    html body.dock-left ul#dock-right-tabs
    {
        display: none;
    }

    html body.dock-right ul#dock-left-tabs
    {
        display: none;
    }

    html body.dock-right.dock-top ul#dock-left-tabs
    {
        display: block;
    }

}

/* Keep account controls at the foot of the open rail; short screens can scroll. */
html body.dock-left ul#dock-left-tabs
{
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
}
ul#dock-left-tabs > li
{
    flex-shrink: 0;
}
html body.dock-left ul#dock-left-tabs > .dock-account-anchor
{
    margin-top: auto;
}
ul#dock-left-tabs.printers #dock-left-tab-printers,
ul#dock-left-tabs.member #dock-left-tab-login
{
    border-color: var(--dialog-border-highlight);
    color: var(--dialog-color-highlight);
}
#dock-left-printers
{
    padding: 20px 16px;
    box-sizing: border-box;
    text-align: left;
    overflow-wrap: anywhere;
}
#dock-left-printers h2 { margin: 0 0 16px; }
#dock-left-printers p { margin: 12px 0; line-height: 1.5; }
#dock-left-printers label { display: block; margin-top: 24px; }
#dock-left-printers select,
#dock-left-printers button
{
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 10px 0;
}
#dock-left-printers .printer-panel-note { font-size: 13px; }

/* Each side pane owns its vertical scroll, including short landscape viewports. */
html body div#dock-left,
html body div#dock-right
{
    max-width: calc(100vw - 50px);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    overflow-wrap: anywhere;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
html body.dock-left ul#dock-left-tabs,
html body.dock-right ul#dock-right-tabs
{
    overflow-x: hidden;
    overscroll-behavior-y: contain;
}
ul#dock-left-tabs > .dock-account-anchor:focus-visible
{
    outline: 2px solid var(--dialog-border-highlight);
    outline-offset: -4px;
}

/* Center the decorative icon independently of Font Awesome's inline baseline. */
ul#dock-left-tabs > li.dock-account-anchor
{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}
ul#dock-left-tabs > li.dock-account-anchor > i
{
    position: static;
    margin: 0;
    padding: 0;
    line-height: 1;
    pointer-events: none;
}
