/* ==========================================================
   EMW Enterprise Portal
   Global Portal CSS
   ========================================================== */


/* ==========================================================
   GLOBAL
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    min-height: 100%;
}


body {

    font-family: 'Poppins', sans-serif;

    background: #f4f6f9;

    color: #333;

}


/* ==========================================================
   TOP BAR
   ========================================================== */

.portal-header {

    height: 70px;

    background: #0b5d35;

    color: #fff;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 20px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    z-index: 1000;

}


.portal-brand {

    display: flex;

    align-items: center;

}


.portal-brand img {

    height: 45px;

    width: auto;

    margin-right: 15px;

}


.portal-title {

    font-size: 24px;

    font-weight: 600;

}


.portal-subtitle {

    font-size: 13px;

    opacity: .85;

}


.portal-user {

    display: flex;

    align-items: center;

    gap: 10px;

}


.portal-user i {

    font-size: 28px;

}


/* ==========================================================
   MAIN WRAPPER
   ========================================================== */

.portal-wrapper {

    display: flex;

    margin-top: 70px;

    min-height: calc(100vh - 70px);

}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.portal-sidebar {

    width: 250px;

    flex: 0 0 250px;

    min-width: 250px;

    background: #083d25;

    color: #fff;

    min-height: calc(100vh - 70px);

    transition:
        width .25s ease,
        flex-basis .25s ease;

    position: relative;

    z-index: 900;

}


/* ==========================================================
   SIDEBAR HEADER
   ========================================================== */

.sidebar-header {

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 8px 0 14px;

    border-bottom: 1px solid rgba(255,255,255,.08);

}


.sidebar-header-title {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: .5px;

    white-space: nowrap;

    overflow: hidden;

}


.sidebar-header-title i {

    font-size: 15px;

    flex-shrink: 0;

}


/* ==========================================================
   SIDEBAR TOGGLE BUTTON
   ========================================================== */

.sidebar-toggle {

    width: 28px;

    height: 28px;

    border: none;

    border-radius: 5px;

    background: rgba(255,255,255,.08);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    flex-shrink: 0;

    transition:
        background .2s ease,
        transform .2s ease;

}


.sidebar-toggle:hover {

    background: rgba(255,255,255,.18);

}


.sidebar-toggle i {

    font-size: 13px;

}


/* ==========================================================
   SIDEBAR MENU
   ========================================================== */

.sidebar-menu {

    padding: 4px 0 10px;

}


/* ==========================================================
   SIDEBAR SECTION TITLE
   ========================================================== */

.sidebar-title {

    padding: 9px 14px 4px;

    margin: 0;

    font-size: 9.5px;

    font-weight: 600;

    letter-spacing: .5px;

    line-height: 1.2;

    color: #a9d8bf;

    white-space: nowrap;

    overflow: hidden;

}


/* ==========================================================
   SIDEBAR LINK
   ========================================================== */

.sidebar-link {

    display: flex;

    align-items: center;

    width: calc(100% - 10px);

    min-height: 31px;

    margin: 1px 5px;

    padding: 5px 9px;

    border-radius: 5px;

    background: transparent;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.2;

    white-space: nowrap;

    transition:
        background .18s ease,
        padding-left .18s ease;

}


/* ==========================================================
   SIDEBAR ICON
   ========================================================== */

.sidebar-link i {

    width: 20px;

    min-width: 20px;

    margin-right: 7px;

    font-size: 15px;

    text-align: center;

}


/* ==========================================================
   SIDEBAR LINK HOVER
   ========================================================== */

.sidebar-link:hover {

    background: #0f7345;

    color: #fff;

    padding-left: 12px;

}


/* ==========================================================
   ACTIVE LINK
   ========================================================== */

.sidebar-link.active {

    background: #198754;

    color: #fff;

    font-weight: 600;

}


/* ==========================================================
   SIDEBAR DIVIDER
   ========================================================== */

.sidebar-divider {

    height: 1px;

    background: rgba(255,255,255,.10);

    margin: 8px 10px;

}


/* ==========================================================
   LOGOUT
   ========================================================== */

.sidebar-link.sidebar-logout {

    color: #ffb3b3;

}


.sidebar-link.sidebar-logout:hover {

    background: rgba(220,53,69,.18);

    color: #fff;

}


/* ==========================================================
   COLLAPSED SIDEBAR
   ========================================================== */

.portal-sidebar.collapsed {

    width: 68px;

    flex-basis: 68px;

    min-width: 68px;

}


/* ==========================================================
   COLLAPSED HEADER
   ========================================================== */

.portal-sidebar.collapsed
.sidebar-header {

    padding: 0 8px;

    justify-content: center;

}


.portal-sidebar.collapsed
.sidebar-header-title span {

    display: none;

}


.portal-sidebar.collapsed
.sidebar-header-title {

    display: none;

}


/* ==========================================================
   COLLAPSED MENU SECTION
   ========================================================== */

.portal-sidebar.collapsed
.sidebar-title {

    display: none;

}


/* ==========================================================
   COLLAPSED LINKS
   ========================================================== */

.portal-sidebar.collapsed
.sidebar-link {

    width: 46px;

    height: 36px;

    min-height: 36px;

    margin: 2px auto;

    padding: 0;

    justify-content: center;

}


.portal-sidebar.collapsed
.sidebar-link:hover {

    padding-left: 0;

}


/* ==========================================================
   COLLAPSED TEXT
   ========================================================== */

.portal-sidebar.collapsed
.sidebar-link span {

    display: none;

}


/* ==========================================================
   COLLAPSED ICON
   ========================================================== */

.portal-sidebar.collapsed
.sidebar-link i {

    width: auto;

    min-width: 0;

    margin-right: 0;

    font-size: 17px;

}


/* ==========================================================
   COLLAPSED DIVIDER
   ========================================================== */

.portal-sidebar.collapsed
.sidebar-divider {

    margin: 8px 14px;

}


/* ==========================================================
   CONTENT
   ========================================================== */

.portal-content {

    flex: 1;

    min-width: 0;

    padding: 25px;

    transition:
        padding .25s ease;

}


/* ==========================================================
   CARD
   ========================================================== */

.card {

    border: none;

    border-radius: 10px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.08);

}


.card-header {

    font-weight: 600;

}


/* ==========================================================
   TABLE
   ========================================================== */

.table {

    font-size: 13px;

}


.table thead {

    background: #198754;

    color: #fff;

}


.table th {

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;

}


.table td {

    vertical-align: middle;

}


/* ==========================================================
   BADGE
   ========================================================== */

.badge-active {

    background: #198754;

}


.badge-draft {

    background: #ffc107;

    color: #000;

}


.badge-obsolete {

    background: #dc3545;

}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 992px) {


    .portal-title {

        font-size: 18px;

    }


    .portal-subtitle {

        display: none;

    }


    .portal-sidebar {

        width: 220px;

        flex-basis: 220px;

        min-width: 220px;

    }


    .portal-sidebar.collapsed {

        width: 60px;

        flex-basis: 60px;

        min-width: 60px;

    }


    .portal-content {

        padding: 18px;

    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 576px) {


    .portal-header {

        padding: 0 12px;

    }


    .portal-brand img {

        height: 36px;

        margin-right: 8px;

    }


    .portal-title {

        font-size: 16px;

    }


    .portal-content {

        padding: 12px;

    }


    .portal-sidebar {

        width: 210px;

        flex-basis: 210px;

        min-width: 210px;

    }


    .portal-sidebar.collapsed {

        width: 55px;

        flex-basis: 55px;

        min-width: 55px;

    }

}
/* ==========================================================
   USER ACCOUNT DROPDOWN
   ========================================================== */

.portal-user {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 6px 10px;
    margin: 0;
}

.portal-user:hover,
.portal-user:focus {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.portal-user::after {
    margin-left: 6px;
}

.portal-user i {
    font-size: 28px;
}

.portal-user strong {
    font-size: 14px;
    font-weight: 600;
}

.portal-user small {
    font-size: 11px;
    opacity: .85;
}

.dropdown-menu {
    min-width: 220px;
    border: none;
    border-radius: 10px;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
}

.dropdown-item i {
    width: 20px;
}

.dropdown-item:hover {
    background-color: #f1f3f5;
}

.dropdown-item.text-danger:hover {
    background-color: #f8d7da;
}
/* =========================================================
   NAA / REGULATORY AUTHORITY LINKS
   ========================================================== */

.naa-link {
    font-size: 0.85rem;
    color: inherit !important;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.naa-link:hover {
    color: inherit !important;
}