/*
 * The shell - sidebar, main panel, footer, mobile menu, sidebar-mini - and the few base classes the
 * markup uses: `.nav`, `.caret`, `.pager`, `.loader`, and `.show`, which Tempus Dominus puts on its DOM.
 *
 * It lives in the `components` layer: above the elements, below the project CSS (`app`) and the
 * utilities. sidebar.css adjusts these rules from `app`.
 *
 * Derived from Bootstrap 3.4.1 (MIT, Copyright 2011-2019 Twitter, Inc.) and Paper Dashboard PRO 1.3.1
 * (Creative Tim).
 */

@layer components {
    @media print {
        a[href^='#']:after,
        a[href^='javascript:']:after {
            content: '';
        }
    }

    .caret {
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 2px;
        vertical-align: middle;
        border-top: 4px dashed;
        border-top: 4px solid \9;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
    }

    .nav {
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
    }

    .nav > li {
        position: relative;
        display: block;
    }

    .nav > li > a {
        position: relative;
        display: block;
        padding: 10px 15px;
    }

    .nav > li > a:focus,
    .nav > li > a:hover {
        text-decoration: none;
        background-color: #eee;
    }

    .nav > li.disabled > a {
        color: #777;
    }

    .nav > li.disabled > a:focus,
    .nav > li.disabled > a:hover {
        color: #777;
        text-decoration: none;
        cursor: not-allowed;
        background-color: transparent;
    }

    .nav > li > a > img {
        max-width: none;
    }

    .pager {
        padding-left: 0;
        margin: 20px 0;
        text-align: center;
        list-style: none;
    }

    .pager li {
        display: inline;
    }

    .pager li > a,
    .pager li > span {
        display: inline-block;
        padding: 5px 14px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 15px;
    }

    .pager li > a:focus,
    .pager li > a:hover {
        text-decoration: none;
        background-color: #eee;
    }

    .pager .next > a,
    .pager .next > span {
        float: right;
    }

    .pager .previous > a,
    .pager .previous > span {
        float: left;
    }

    .pager .disabled > a,
    .pager .disabled > a:focus,
    .pager .disabled > a:hover,
    .pager .disabled > span {
        color: #777;
        cursor: not-allowed;
        background-color: #fff;
    }

    .nav:after,
    .nav:before,
    .pager:after,
    .pager:before {
        display: table;
        content: ' ';
    }

    .nav:after,
    .pager:after {
        clear: both;
    }

    .show {
        display: block !important;
    }

    .loader {
        border: 16px solid #f3f3f3;
        border-radius: 50%;
        border-top: 16px solid #000000;
        width: 60px;
        height: 60px;
        -webkit-animation: spin 2s linear infinite;
        animation: spin 2s linear infinite;
    }
    @-webkit-keyframes spin {
        0% {
            -webkit-transform: rotate(0deg);
        }

        100% {
            -webkit-transform: rotate(360deg);
        }
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }
    [class^='swal2'] {
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar {
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 3;
        overflow: hidden;
    }

    .sidebar .sidebar-wrapper > .nav {
        margin-top: 10px;
    }
    .sidebar .sidebar-wrapper > .nav li > a {
        margin: 10px 0 0;
        padding-left: 25px;
        padding-right: 25px;
        opacity: 0.7;
        white-space: nowrap;
    }

    .sidebar .sidebar-wrapper > .nav li:hover > a {
        opacity: 1;
    }

    .sidebar .sidebar-wrapper > .nav li.active > a {
        font-weight: bold;
        opacity: 1;
    }

    .sidebar .sidebar-wrapper > .nav li.separator {
        margin: 15px 0;
    }

    .sidebar .sidebar-wrapper > .nav li.separator:after {
        content: '';
        position: absolute;
        height: 1px;
        right: 10%;
        width: 80%;
        background-color: rgba(255, 255, 255, 0.3);
    }

    .sidebar .sidebar-wrapper > .nav li.separator + li {
        margin-top: 31px;
    }

    .sidebar .sidebar-wrapper > .nav p {
        margin: 0;
        line-height: 30px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        position: relative;
        -webkit-transform: translate3d(0px, 0, 0);
        -moz-transform: translate3d(0px, 0, 0);
        -o-transform: translate3d(0px, 0, 0);
        -ms-transform: translate3d(0px, 0, 0);
        transform: translate3d(0px, 0, 0);
        opacity: 1;
        display: block;
        height: auto;
        white-space: nowrap;
    }

    .sidebar .sidebar-wrapper > .nav .caret {
        margin-top: 12px;
        position: absolute;
        right: 0;
    }

    .sidebar:after,
    .sidebar:before {
        display: block;
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 2;
        background: #050505;
    }

    .sidebar:after,
    .sidebar:before {
        background-color: #050505;
    }

    .sidebar .nav li:not(.active) > a {
        color: #0a0a0a;
    }

    .sidebar[data-background-color='brown']:after,
    .sidebar[data-background-color='brown']:before {
        background-color: #f7f7f7;
    }

    .sidebar[data-background-color='brown'] .nav li:not(.active) > a {
        color: #050505;
    }

    .sidebar[data-active-color='primary'] .nav li.active > a {
        opacity: 1;
    }

    .main-panel {
        background: rgb(106, 168, 79, 0.4);
        position: relative;
        z-index: 2;
        float: right;
        width: calc(100% - 252px);
    }

    .main-panel:not(.logged-in):has(.hamamelis-fullscreen-page) {
        width: 100%;
    }
    .main-panel > .content {
        padding: 30px 15px 0 15px;
        min-height: calc(100vh - 53px);
    }

    .main-panel > .footer {
        border-top: 1px solid #f8fede;
    }

    .sidebar,
    .main-panel,
    .sidebar-wrapper {
        -webkit-transition-property: top, bottom, width;
        transition-property: top, bottom, width;
        -webkit-transition-duration: 0.2s, 0.2s, 0.35s;
        transition-duration: 0.2s, 0.2s, 0.35s;
        -webkit-transition-timing-function: linear, linear, ease;
        transition-timing-function: linear, linear, ease;
        -webkit-overflow-scrolling: touch;
    }

    @media (min-width: 992px) {
        .sidebar-mini .sidebar,
        .sidebar-mini .sidebar .sidebar-wrapper {
            width: 80px;
        }

        .sidebar-mini .main-panel {
            width: calc(100% - 72px);
        }

        .sidebar-mini .sidebar {
            display: block;
            font-weight: 200;
            z-index: 3;
        }

        .sidebar-mini .sidebar .sidebar-wrapper > .nav li > a p {
            -webkit-transform: translate3d(-25px, 0, 0);
            -moz-transform: translate3d(-25px, 0, 0);
            -o-transform: translate3d(-25px, 0, 0);
            -ms-transform: translate3d(-25px, 0, 0);
            transform: translate3d(-25px, 0, 0);
            opacity: 0;
        }

        .sidebar-mini .sidebar:hover {
            width: 252px;
        }

        .sidebar-mini .sidebar:hover .sidebar-wrapper {
            width: 252px;
        }

        .sidebar-mini .sidebar:hover .sidebar-wrapper > .nav li > a p {
            -webkit-transform: translate3d(0px, 0, 0);
            -moz-transform: translate3d(0px, 0, 0);
            -o-transform: translate3d(0px, 0, 0);
            -ms-transform: translate3d(0px, 0, 0);
            transform: translate3d(0px, 0, 0);
            opacity: 1;
        }

        .sidebar-mini .sidebar:hover .sidebar-wrapper > .nav li.active > a:before,
        .sidebar-mini .sidebar:hover .sidebar-wrapper > .nav li.active > a:after {
            opacity: 0;
        }
    }
    .sidebar .nav a,
    .sidebar .sidebar-wrapper > .nav p,
    .caret {
        -webkit-transition: all 150ms ease-in;
        -moz-transition: all 150ms ease-in;
        -o-transition: all 150ms ease-in;
        -ms-transition: all 150ms ease-in;
        transition: all 150ms ease-in;
        white-space: normal;
    }
    .nav > li > a:hover,
    .nav > li > a:focus {
        background-color: transparent;
    }

    .footer {
        background-attachment: fixed;
        position: relative;
        line-height: 20px;
    }

    @media (min-width: 992px) {
        .close-layer {
            display: none;
        }

        .sidebar .sidebar-wrapper li.active > a:before {
            border-right: 17px solid #cfcfca;
            border-top: 17px solid transparent;
            border-bottom: 17px solid transparent;
            content: '';
            display: inline-block;
            position: absolute;
            right: 0;
            opacity: 1;
            top: 3px;
            transition: opacity 150ms ease-in;
        }

        .sidebar .sidebar-wrapper li.active > a:after {
            border-right: 17px solid #f5f5f5;
            border-top: 17px solid transparent;
            border-bottom: 17px solid transparent;
            content: '';
            display: inline-block;
            position: absolute;
            right: -1px;
            opacity: 1;
            top: 3px;
            transition: opacity 150ms ease-in;
        }
    }

    @media (max-width: 992px) {
        .main-panel {
            -webkit-transform: translate3d(0px, 0, 0);
            -moz-transform: translate3d(0px, 0, 0);
            -o-transform: translate3d(0px, 0, 0);
            -ms-transform: translate3d(0px, 0, 0);
            transform: translate3d(0px, 0, 0);
            -webkit-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -moz-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -o-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -ms-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            left: 0;
            width: 100%;
        }

        .main-panel {
            -webkit-transform: translate3d(0px, 0, 0);
            -moz-transform: translate3d(0px, 0, 0);
            -o-transform: translate3d(0px, 0, 0);
            -ms-transform: translate3d(0px, 0, 0);
            transform: translate3d(0px, 0, 0);
            -webkit-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -moz-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -o-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -ms-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            left: 0;
        }

        .sidebar {
            position: fixed;
            display: block;
            top: 0;
            height: 100%;
            width: 230px;
            right: 0;
            left: auto;
            z-index: 9999;
            visibility: visible;
            overflow-y: visible;
            border-top: none;
            text-align: left;
            padding-right: 0;
            padding-left: 0;
            -webkit-transform: translate3d(230px, 0, 0);
            -moz-transform: translate3d(230px, 0, 0);
            -o-transform: translate3d(230px, 0, 0);
            -ms-transform: translate3d(230px, 0, 0);
            transform: translate3d(230px, 0, 0);
            -webkit-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -moz-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -o-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -ms-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
        }

        .sidebar .sidebar-wrapper {
            width: 230px;
            box-shadow: inset 1px 0 0 0 #cfcfca;
        }

        .sidebar .sidebar-wrapper li.active > a:before {
            border-left: 12px solid #cfcfca;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            content: '';
            display: inline-block;
            position: absolute;
            left: 0;
            top: 8px;
        }

        .sidebar .sidebar-wrapper li.active > a:after {
            border-left: 12px solid #f5f5f5;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            content: '';
            display: inline-block;
            position: absolute;
            left: -1px;
            top: 8px;
        }

        .sidebar .nav {
            margin-top: 0;
            position: relative;
            z-index: 4;
        }

        .sidebar .nav > li > a:hover,
        .sidebar .nav > li > a.active {
            color: #0a0a0a;
        }

        .nav-open .main-panel {
            left: 0;
            -webkit-transform: translate3d(-230px, 0, 0);
            -moz-transform: translate3d(-230px, 0, 0);
            -o-transform: translate3d(-230px, 0, 0);
            -ms-transform: translate3d(-230px, 0, 0);
            transform: translate3d(-230px, 0, 0);
        }

        .nav-open .sidebar {
            -webkit-transform: translate3d(0px, 0, 0);
            -moz-transform: translate3d(0px, 0, 0);
            -o-transform: translate3d(0px, 0, 0);
            -ms-transform: translate3d(0px, 0, 0);
            transform: translate3d(0px, 0, 0);
        }

        .close-layer {
            height: 100%;
            width: 100%;
            position: absolute;
            opacity: 0;
            top: 0;
            left: auto;
            display: block;
            content: '';
            z-index: 9999;
            overflow-x: hidden;
            -webkit-transition: all 300ms ease-in;
            -moz-transition: all 300ms ease-in;
            -o-transition: all 300ms ease-in;
            -ms-transition: all 300ms ease-in;
            transition: all 300ms ease-in;
        }

        .close-layer.visible {
            opacity: 1;
        }

        .main-panel > .content {
            padding-left: 0;
            padding-right: 0;
        }
    }

    .sidebar {
        overflow: hidden;
        scrollbar-gutter: auto;
    }

    @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
        .sidebar {
            right: 0;
            left: auto;
            -webkit-transform: translate3d(252px, 0, 0);
            -moz-transform: translate3d(252px, 0, 0);
            -o-transform: translate3d(252px, 0, 0);
            -ms-transform: translate3d(252px, 0, 0);
            transform: translate3d(252px, 0, 0);
        }

        .close-layer {
            height: 100%;
        }

        .sidebar,
        .main-panel {
            -webkit-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -moz-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -o-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            -ms-transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
            transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
        }

        .main-panel {
            width: 100%;
        }

        .nav-open .sidebar {
            -webkit-transform: translate3d(0px, 0, 0);
            -moz-transform: translate3d(0px, 0, 0);
            -o-transform: translate3d(0px, 0, 0);
            -ms-transform: translate3d(0px, 0, 0);
            transform: translate3d(0px, 0, 0);
        }

        .nav-open .main-panel {
            -webkit-transform: translate3d(-252px, 0, 0);
            -moz-transform: translate3d(-252px, 0, 0);
            -o-transform: translate3d(-252px, 0, 0);
            -ms-transform: translate3d(-252px, 0, 0);
            transform: translate3d(-252px, 0, 0);
        }

        .close-layer {
            width: 100%;
            position: absolute;
            opacity: 0;
            top: 0;
            left: auto;
            display: block;
            content: '';
            z-index: 9999;
            overflow-x: hidden;
            -webkit-transition: all 300ms ease-in;
            -moz-transition: all 300ms ease-in;
            -o-transition: all 300ms ease-in;
            -ms-transition: all 300ms ease-in;
            transition: all 300ms ease-in;
        }

        .sidebar .sidebar-wrapper li.active > a:before,
        .sidebar .sidebar-wrapper li.active > a:after {
            left: 0;
            right: auto;
            border-right: 0;
            border-top: 0;
            border-bottom: 0;
            top: 8px;
        }

        .sidebar .sidebar-wrapper li.active > a:before {
            border-left: 12px solid #cfcfca;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
        }

        .sidebar .sidebar-wrapper li.active > a:after {
            border-left: 12px solid #f5f5f5;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
        }
    }
}
