﻿/* ==========================================
   GLOBAL
   ========================================== */

/*html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}*/
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
}

.wrapper {
    width: 100%;
}


/* ==========================================
   MAIN LAYOUT
   ========================================== */

/*.layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 100px);
}*/

.layout {
    display: flex;
    width: 100%;
    height: calc(100vh - 65px);
    overflow: hidden;
}

/* ==========================================
   SIDEBAR
   ========================================== */

/*.sidebar {
    width: 250px;
    min-width: 250px;
    min-height: calc(100vh - 100px);
    background: #2c3e50;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.25s ease;
}*/
.sidebar {
    width: 250px;
    min-width: 250px;
    height: 100%;
    min-height: 0;
    background-color: #2c3e50 !important;
    overflow-x: hidden;
    overflow-y: auto;
    flex-shrink: 0;
    transition: width 0.25s ease;
}

/* ==========================================
   SIDEBAR TOGGLE
   ========================================== */

.sidebar-toggle {
    width: 100%;
    height: 45px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: right;
    padding: 0 15px;
    cursor: pointer;
    font-size: 18px;
}

    .sidebar-toggle:hover {
        background: #34495e;
    }


/* ==========================================
   COLLAPSED SIDEBAR
   ========================================== */

.sidebar.collapsed {
    width: 70px !important;
    min-width: 70px !important;
}

    .sidebar.collapsed .menu-text {
        display: none;
    }

    .sidebar.collapsed .menu-arrow {
        display: none;
    }

    .sidebar.collapsed .nav-link {
        justify-content: center;
    }

    .sidebar.collapsed .menu-icon {
        width: 100%;
        min-width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .sidebar.collapsed .sidebar-search {
        display: none;
    }

    .sidebar.collapsed .sidebar-submenu {
        display: none !important;
    }


/* ==========================================
   SIDEBAR MENU
   ========================================== */

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 10px 8px;
}

    .sidebar-nav li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sidebar-nav .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        color: #ddd !important;
        text-decoration: none !important;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .sidebar-nav .nav-link:hover {
            background: #34495e;
            color: #fff !important;
        }


/* ==========================================
   MENU ICON
   ========================================== */

.menu-icon {
    width: 22px;
    min-width: 22px;
    margin-right: 10px;
    text-align: center;
}

.menu-text {
    flex: 1;
}


/* ==========================================
   MENU ARROW
   ========================================== */

.menu-arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-arrow {
    transform: rotate(180deg);
}


/* ==========================================
   SUB MENUS
   ========================================== */

.sidebar-submenu {
    padding-left: 15px !important;
    margin: 0;
}

    .sidebar-submenu .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }


    /* Bootstrap 4 collapse */

    .sidebar-submenu.collapse.show {
        display: block;
    }


/* ==========================================
   ACTIVE MENU
   ========================================== */

/*.sidebar-nav .sidebar-menu-item.active > .nav-link {
    background: #34495e;
    color: #fff !important;
    font-weight: 600;
}*/
.sidebar-nav .sidebar-menu-item.active > .nav-link {
    background: #34495e !important;
    color: #fff !important;
    font-weight: 600;
    border-left-color: #fff;
}

/* ==========================================
   SIDEBAR SEARCH
   ========================================== */

.sidebar-search {
    padding: 10px;
}

.sidebar-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #34495e;
    border-radius: 5px;
}

    .sidebar-search-box > i {
        margin-left: 10px;
        color: #bdc3c7;
    }

.sidebar-search-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    padding: 9px 35px 9px 8px;
}

    .sidebar-search-input::placeholder {
        color: #bdc3c7;
    }

.sidebar-search-clear {
    position: absolute;
    right: 5px;
    border: 0;
    background: transparent;
    color: #bdc3c7;
    cursor: pointer;
    display: none;
}

    .sidebar-search-clear:hover {
        color: #fff;
    }


/* ==========================================
   MAIN CONTENT
   ========================================== */

/*.content {
    flex: 1;
    min-width: 0;
    padding: 15px;
    background: #fff;
    overflow-x: auto;
}*/
.content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 15px;
    background-color: #fff;
    overflow-x: auto;
    overflow-y: auto;
}

#divmain {
    width: 100%;
}


/* ==========================================
   ORIGINAL ASP.NET MENU
   ========================================== */

.hidden-original-menu {
    display: none !important;
}


/* ==========================================
   MOBILE MENU BUTTON
   ========================================== */

.mobile-menu-button {
    display: none;
}


/* ==========================================
   MOBILE CLOSE BUTTON
   ========================================== */

.sidebar-mobile-close {
    display: none;
}


/* ==========================================
   FLOATING ACTION BUTTONS
   ========================================== */

.floating-actions {
    position: fixed;
    right: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1100;
}

.floating-action {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .floating-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

.plan-action {
    background-color: #4b6c9e;
}

.notification-action {
    background-color: gray;
}

.approval-action {
    background-color: bisque;
}

.floating-action span {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 768px) {

    /* .layout {
        position: relative;
        display: block;
        min-height: calc(100vh - 100px);
    }*/
    .layout {
        display: block;
        width: 100%;
        height: auto;
        min-height: calc(100vh - 100px);
        overflow: visible;
    }
    /* Mobile menu button */

    .mobile-menu-button {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 8px 10px;
        padding: 8px 14px;
        border: 0;
        border-radius: 5px;
        background: #2c3e50;
        color: #fff;
        cursor: pointer;
    }


    /* Mobile sidebar */

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px !important;
        min-width: 260px !important;
        height: 100vh;
        min-height: 100vh;
        z-index: 1050;
        transition: left 0.25s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.25);
    }
        /* .sidebar {
        height: 100vh;
        max-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }*/

        .sidebar.mobile-open {
            left: 0;
        }


    /* Mobile close */

    .sidebar-mobile-close {
        display: block;
        position: absolute;
        top: 8px;
        right: 10px;
        width: 35px;
        height: 35px;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: #fff;
        cursor: pointer;
        z-index: 2;
    }

        .sidebar-mobile-close:hover {
            background: #34495e;
        }


    /* No desktop toggle on mobile */

    .sidebar-toggle {
        display: none;
    }


    /* Sidebar must always be expanded on mobile */

    .sidebar.collapsed {
        width: 260px !important;
        min-width: 260px !important;
    }

        .sidebar.collapsed .menu-text {
            display: inline;
        }

        .sidebar.collapsed .menu-icon {
            width: 22px;
            min-width: 22px;
            margin-right: 10px;
        }

        .sidebar.collapsed .menu-arrow {
            display: block;
        }


    /* Content */

    /* .content {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }*/
    .content {
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
    }

    /* Floating buttons */

    .floating-actions {
        right: 10px;
        bottom: 10px;
        gap: 5px;
    }

    .floating-action {
        width: 40px;
        height: 40px;
    }
}
/* ==========================================
   REDIKA MASTER SIDEBAR - FINAL OVERRIDE
   ========================================== */

.layout > aside.sidebar {
    background-color: #2c3e50 !important;
    color: #fff;
}

    .layout > aside.sidebar .sidebar-nav {
        background-color: #2c3e50 !important;
    }

    .layout > aside.sidebar .nav-link {
        color: #ddd !important;
    }

        .layout > aside.sidebar .nav-link:hover {
            background-color: #34495e !important;
            color: #fff !important;
        }
/* ==========================================
   PARENT MENU
   ========================================== */

.sidebar-nav > li > .nav-link {
    background: #243447;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
    border-left: 3px solid transparent;
}

    .sidebar-nav > li > .nav-link:hover {
        background: #34495e;
    }


/* ==========================================
   CHILD MENU
   ========================================== */

.sidebar-nav .sidebar-submenu {
    padding-left: 12px !important;
    margin-bottom: 4px;
}

    .sidebar-nav .sidebar-submenu > li > .nav-link {
        background: transparent;
        font-size: 14px;
        font-weight: 400;
        padding: 8px 12px;
        border-left: 2px solid #526779;
    }

        .sidebar-nav .sidebar-submenu > li > .nav-link:hover {
            background: #34495e;
            border-left-color: #fff;
        }


    /* ==========================================
   SUB-CHILD MENU
   ========================================== */

    .sidebar-nav .sidebar-submenu
    .sidebar-submenu {
        padding-left: 12px !important;
    }

        .sidebar-nav .sidebar-submenu
        .sidebar-submenu > li > .nav-link {
            font-size: 13px;
            padding: 7px 10px;
            color: #bdc3c7 !important;
            border-left: 1px solid #526779;
        }

            .sidebar-nav .sidebar-submenu
            .sidebar-submenu > li > .nav-link:hover {
                background: #34495e;
                color: #fff !important;
            }
/* Child menu indentation */
.sidebar-submenu .sidebar-menu-item > .nav-link {
    padding-left: 18px;
}

/* Sub-child indentation */
.sidebar-submenu .sidebar-submenu
.sidebar-menu-item > .nav-link {
    padding-left: 16px;
}

.layout.no-sidebar .content {
    width: 100%;
    flex: 1;
}

.menu-mode-toggle {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 10px;
    background: #34495e;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}

    .menu-mode-toggle:hover {
        background: #2c3e50;
        color: #fff !important;
    }
