﻿#accountWidget {
    padding: 25px;
    background-color: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    position: fixed;
    width: 250px;
    height: auto;
    max-height: 400px;
    top: 55px;
    z-index: 99999;
    right: 10px;
    display: none;
}

.accountWidget-container {
    display: flex;
    flex-direction: column;
}

.accountWidget-avatarBadge {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.accountWidget-avatarBadge img {
    width: auto;
    height: 50px;
    aspect-ratio: 1/1;
    border-radius: 50px;
    margin-bottom: 10px;
}

.accountWidget-avatarBadge span {
    font-size: 11px;
    display: block; 
    color: rgb(51, 51, 51);
}

.accountWidget-datalist {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgb(197, 197, 197);
    border-bottom: 1px solid rgb(197, 197, 197);
    margin-top: 5px;
    margin-bottom: 5px;
}

.accountWidget-logout {
    display: flex;
    flex-direction: column;
}

account-widget-datalist {
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

account-widget-datalist span {
    padding-left: 5px;
    color: #454545;
}

account-widget-datalist:first-child {
    margin-top: 5px;
}

account-widget-datalist:last-child {
    margin-bottom: 5px;
}

account-widget-datalist:hover {
    background-color: var(--form-input-background-color-focus);
    transition: all 0.2s;
    border-radius: 8px;
}

account-widget-logout {
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;   
    display: flex;
    align-items: center;
}

account-widget-logout span {
    padding-left: 5px;
    color: #454545;
}

account-widget-logout:hover {
    background-color: var(--default-primary-red-color);
    color: var(--default-primary-white-color);
    transition: all 0.2s;
    border-radius: 8px;
    & span {
        color: #fff;
    }
}

#pathDirectoryContainer a, #pathDirectoryContainer span {
    color: var(--default-background-color-invert);
}

#pathDirectoryContainer a.special-theme {
    color: var(--default-hyperlink-color);
}

.banner-logo{
    width: 262px;
}
nav {
    padding: 8px 42px 8px 0px;
}

ul.bullet-list {
    list-style-type: disc;
}

.mx-menu {
    margin-left: 8px;
    margin-right: 8px;
}

.ml-menu {
    margin-left: 0.7rem;
}

.mr-menu {
    margin-left: 0.7rem;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 10px 14px 10px 14px;
    width: 279px;
    border-radius: 8px;
    border: none;
}


.primary-container {
    flex-direction: row;
    padding: 24px 20px 24px 20px;
}

.box-primary {
    padding: 10px;
    background-color: white;
    border-radius: 0.5rem;
    border: none;
    width: 100%;
}

.width-40 {
    width: 40%;
}

.notifPop {
    padding: 4px;
    background-color: rgb(235, 67, 67);
    word-wrap: 15;
    color: white;
    font-weight: 600;
    border-radius: 20px;
    position: absolute;
    min-width: 20px;
    height: 20px;
    max-width: 40px;
    font-size: 10px;
    left: 10px;
    bottom: 12px;
}

#panelOfAccount {
    position: absolute;
    border-radius: 0.5rem;
    background-color: antiquewhite;
    top: 95px;
    right: 20px;
    width: 270px;
    padding: 10px 20px 10px 20px;
    display: none;
    z-index: 99;
}

#btnShowAccount {
    position: relative;
    line-height: 20px;
    font-size: 14px;
}

#btnShowAccount > div {
    display: flex;
    flex-direction: column;
    text-align: start;
    margin-left: 12px;
}

#btnShowAccount > div > span:first-child {
    color: #F58323;
    font-weight: 600;
}

#btnShowAccount > div > span:last-child {
    font-weight: 400;
    color: #000000;
}

button.btn-menu {
    background-color: transparent; 
    border: none; 
    position: relative;
    height: auto;
    width: auto;
    min-width: auto;
    padding: 0;
}

ul > li.menu-dropdown-ls:nth-child(1) {
    padding-top: 5px; 
    padding-bottom: 10px;
    border: none;
}

li.menu-dropdown-ls {
    padding-top: 10px; 
    padding-bottom: 10px;
    border-top: 1.5px solid rgb(227, 219, 168);
}

.accountAvatar { 
    height: 40px;
    width: 40px; 
    border-radius: 100%;
}

#panelOfSearch {
    position: absolute;
    border-radius: 0.5rem;
    background-color: #fff;
    border: 1px solid #e6dfcb;
    top: 28px;
    width: 294px;
    min-height: 200px;
    padding: 10px;
}

#panelOfNotifList {
    position: absolute;
    margin-left: 18px;
    border-radius: 0.5rem;
    background-color: antiquewhite;
    font-size: 12px; 
    color: black;
    top: 95px;
    right: 125px;
    width: 250px;
    padding: 25px;
    display: none;
    z-index: 100;
}

#panelOfTaskList {
    position: absolute;
    border-radius: 0.5rem;
    font-size: 12px; 
    color: black;
    background-color: antiquewhite;
    top: 95px;
    right: 85px;
    width: 250px;
    padding: 25px;
    display: none;
    z-index: 100;
}

#panelOfDirectory {
    font-size: 12px;
    line-height: 24px;
}

#btnShowConnectionList {
    font-size: 12px;
    line-height: 24px;
}


/*================================================== 
## DIALOG VIEWER STYLE
==================================================*/

.dialog-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #000000b3;
    z-index: 99999;
    top: 0;
}

.dialog-card {
    position: relative;
    background-color: #FFFFFF;
    width: 572px;
    max-width: 90%;
    height: auto;
    max-height: 90%;
    padding: 18px 30px 20px;
    border-radius: 12px;
    margin: 0;
    z-index: 150;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 20px;
}

.dialog-card img {
    margin-right: 10px;
}

.dialog-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0em;
    text-align: left;
    color: #000000;
}

.dialog-msg {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0em;
    margin-top: 8px;
    text-align: left;
    color: #000000;
    max-width: 100%;
    max-height: 200px;
    overflow: auto;
    margin-bottom: 10px;
}

.dialog-action-button {
    gap: 12px 4px;
    margin-top: 10px;
}

.dialog-action-button > .dialog-cancel {
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0em;
    text-align: center;
    padding: 10px 18px !important;
    border: 1px solid #D0D5DD;
    background-color: #FFFFFF;
    color: #000000;
}

.dialog-action-button > .dialog-approve {
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    text-align: center;
}

@media only screen and (max-width: 768px) {

    .dialog-card {
        position: fixed;
        background-color: #FFFFFF;
        width: calc(100% - 40px);
        height: auto;
        padding: 24px;
        border-radius: 12px;
        margin: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 150;
        backdrop-filter: blur(10px);
    }

    .dialog-msg {
        font-size: 12px;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: 0em;
        margin-top: 8px;
        text-align: left;
        color: #667085;
        width: 100% !important;
        max-height: 200px;
        overflow: auto;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .dialog-title, .dialog-msg {
        text-align: center;
    }

    .dialog-action-button > .dialog-cancel, .dialog-action-button > .dialog-approve {
        width: 100%;
    }
}

/* SPECIAL CASE FOR BANNER ICON */
@media only screen and (max-width: 495px) {
    .banner-logo {
        width: calc(100% - 20px) !important;
    }
    
    .accountAvatar {
        width: 30px !important;
        height: 30px !important;
    }
}

/* MEDIA QUERY FOR LOWER TABLET SIZE */
@media only screen and (max-width: 640px) {
    nav ul {
        gap: 8px !important; 
    }

    #searchBar > img {
        left: 0 !important;
        position: relative;
    }
}

/* MEDIA QUERY FOR LOWER TABLET SIZE */
@media only screen and (max-width: 768px) {

    /* FLEX */
    .flex.max-md-flex-row {
        flex-direction: row;
    }

    .flex.max-md-flex-col {
        flex-direction: column;
    }

    .flex.max-md-justify-center {
        justify-content: center;
    }

    .flex.max-md-justify-start {
        justify-content: start;
    }

    .flex.max-md-justify-end {
        justify-content: end;
    }

    .flex.max-md-justify-between {
        justify-content: space-between;
    }

    .flex.max-md-justify-evenly {
        justify-content: space-evenly;
    }

    .flex.max-md-justify-around {
        justify-content: space-around;
    }

    /* COL */

    .flex.max-md-items-center {
        align-items: center;
    }

    .flex.max-md-items-start {
        align-items: start;
    }

    .flex.max-md-items-end {
        align-items: end;
    }

    
    .detailSalesOrderBody {
        flex-direction: column !important;
        justify-content: center;
    }

    .detailSalesOrderBody > ul > li {
        display: flex;
        flex-direction: column;
        align-items: start !important;
        width: 100% !important;
    }

    
    .detailSalesOrderBody > ul > li > div:first-child {
        padding: 4px 16px;
    }

    .detailSalesOrderBody > ul > li > div:last-child {
        width: 100% !important;
    }

    .detailSalesOrderBody > ul > li > div:last-child > input {
        width: 100% !important;
    }

    .detailSalesOrderBody > ul > li > div:last-child > select {
        width: 100% !important;
    }

    .detailSalesOrderBody > ul > li > div:last-child > textarea {
        margin-top: 10px;
        width: 100% !important;
    }

    input[type="text"].order-szProductId {
        font-size: 14px !important;
    }

    .createdByContent {
        font-size: 14px !important;
    }

    .createdByContent > span {
        font-size: 14px !important;
    }
}



/* MEDIA QUERY FOR TABLET UNTIL MINIMUM LAPTOP SIZE */
@media screen and (max-width: 1024px) {

    #panelOfTaskList {
        position: absolute;
        border-radius: 0.5rem;
        font-size: 12px; 
        color: black;
        background-color: antiquewhite;
        top: 95px;
        right: 75px;
        width: 250px;
        padding: 25px;
        display: none;
        z-index: 100;
    }

    .flex.max-lg-flex-col {
        display: flex;
        flex-direction: column;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    #panelOfAccount {
        position: absolute;
        border-radius: 0.5rem;
        background-color: antiquewhite;
        top: 95px;
        right: 20px;
        width: auto;
        padding: 10px 20px 10px 20px;
        display: none;
        z-index: 99;
    }

    nav {
        padding: 8px 0 !important;
    }

    .max-lg-hide {
        display: none !important;
    }

    .actionButtonBody > li {
        margin-right: 0px !important;
        margin-block-start: 4px;
        margin-block-end: 4px;
        margin-inline-end: 6px;
        margin-inline-start: 6px;
    }

    input[type="text"].order-szProductId {
        width: 100% !important;
        font-size: 18px !important;
    }

    .FSoFormBox {
        padding: 7px 0px 7px 0px !important;
    }
    /* .flex.max-md-flex-col {
        display: flex;
        flex-direction: column;
    } */

}


/* LAYOUT */
.portal-menu-list {
    display: flex;
    align-items: center;
    justify-content: start;
    width: auto;
    cursor: pointer;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 12px;
    transition: 0.3s all;
    text-decoration: none;
}

.portal-menu-list:hover {
    background-color: var(--form-input-background-color-focus);
    transition: 0.3s all;
}