/*=========================================================
  MRFO TENDER VENDOR PORTAL
=========================================================*/

:root{
    --tender-primary:#0B3C78;
    --tender-primary-dark:#072E5D;
    --tender-primary-light:#EAF3FF;
    --tender-accent:#E39B18;
    --tender-success:#198754;
    --tender-danger:#DC3545;
    --tender-body:#F5F7FA;
    --tender-card:#FFFFFF;
    --tender-white:#FFFFFF;
    --tender-text:#1F2937;
    --tender-muted:#6B7280;
    --tender-border:#D9E2EC;
    --tender-sidebar:#072E5D;
    --tender-sidebar-hover:rgba(255,255,255,.08);
    --tender-sidebar-active:#0D6EFD;
    --tender-shadow-sm:0 2px 8px rgba(7,46,93,.05);
    --tender-shadow:0 5px 18px rgba(7,46,93,.07);
    --tender-radius:9px;
    --tender-transition:.22s ease;
}


/*=========================================================
  RESET
=========================================================*/

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--tender-body);
    color:var(--tender-text);
    font-family:'Inter',sans-serif;
    font-size:15px;
    line-height:1.55;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
}

body.tender-sidebar-open{
    overflow:hidden;
}

a{
    color:inherit;
    text-decoration:none;
    transition:var(--tender-transition);
}

button,
input,
select,
textarea{
    font-family:inherit;
}

button{
    cursor:pointer;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}


/*=========================================================
  PORTAL HEADER
=========================================================*/

.tender-header{
    position:sticky;
    top:0;
    z-index:1000;
    width:100%;
    height:72px;
    background:#fff;
    border-bottom:1px solid var(--tender-border);
    box-shadow:0 2px 8px rgba(7,46,93,.04);
}

.tender-header-inner{
    width:100%;
    height:100%;
    padding:0 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.tender-header-left,
.tender-header-right{
    display:flex;
    align-items:center;
}

.tender-header-left{
    min-width:0;
}

.tender-brand{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
}

.tender-brand-icon{
    width:43px;
    height:43px;
    flex:0 0 43px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:var(--tender-primary-light);
    color:var(--tender-primary);
    overflow:hidden;
}

.tender-brand-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:5px;
}

.tender-brand-icon i{
    font-size:20px;
}

.tender-brand-text{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.tender-brand-text strong{
    color:var(--tender-primary-dark);
    font-size:18px;
    font-weight:800;
    line-height:1.1;
}

.tender-brand-text span{
    margin-top:3px;
    color:var(--tender-muted);
    font-size:11px;
    font-weight:600;
    line-height:1.2;
}


/*=========================================================
  MOBILE MENU
=========================================================*/

.tender-mobile-menu{
    display:none;
    width:40px;
    height:40px;
    margin-right:9px;
    align-items:center;
    justify-content:center;
    border:1px solid var(--tender-border);
    border-radius:7px;
    background:#fff;
    color:var(--tender-primary-dark);
    font-size:21px;
}

.tender-mobile-menu:hover{
    background:var(--tender-primary-light);
}


/*=========================================================
  PROFILE BUTTON
=========================================================*/

.tender-profile-wrapper{
    position:relative;
}

.tender-profile-button{
    min-height:44px;
    padding:4px 7px 4px 5px;
    display:flex;
    align-items:center;
    gap:9px;
    border:1px solid var(--tender-border);
    border-radius:8px;
    background:#fff;
    color:var(--tender-text);
    transition:var(--tender-transition);
}

.tender-profile-button:hover,
.tender-profile-button.active{
    border-color:#b9cde1;
    background:var(--tender-primary-light);
}

.tender-profile-avatar{
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:var(--tender-primary);
    color:#fff;
    flex:0 0 34px;
}

.tender-profile-avatar i{
    font-size:17px;
}

.tender-profile-name{
    max-width:170px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--tender-primary-dark);
    font-size:13px;
    font-weight:700;
}

.tender-profile-chevron{
    color:var(--tender-muted);
    font-size:10px;
    transition:transform .2s ease;
}

.tender-profile-button.active .tender-profile-chevron{
    transform:rotate(180deg);
}


/*=========================================================
  PROFILE DROPDOWN
=========================================================*/

.tender-profile-menu{
    position:absolute;
    top:calc(100% + 9px);
    right:0;
    width:285px;
    padding:9px;
    display:none;
    background:#fff;
    border:1px solid var(--tender-border);
    border-radius:10px;
    box-shadow:0 12px 35px rgba(7,46,93,.14);
}

.tender-profile-menu.show{
    display:block;
    animation:tenderProfileIn .16s ease;
}

@keyframes tenderProfileIn{
    from{
        opacity:0;
        transform:translateY(-5px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.tender-profile-menu-head{
    padding:9px;
    display:flex;
    align-items:center;
    gap:10px;
}

.tender-profile-large-avatar{
    width:44px;
    height:44px;
    flex:0 0 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:var(--tender-primary-light);
    color:var(--tender-primary);
}

.tender-profile-large-avatar i{
    font-size:21px;
}

.tender-profile-info{
    min-width:0;
    display:flex;
    flex-direction:column;
}

.tender-profile-info strong{
    color:var(--tender-primary-dark);
    font-size:14px;
    font-weight:800;
    line-height:1.3;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.tender-profile-info span{
    margin-top:3px;
    color:var(--tender-muted);
    font-size:11px;
    font-weight:500;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.tender-profile-menu-divider{
    width:100%;
    height:1px;
    margin:5px 0;
    background:#e7edf3;
}

.tender-profile-menu-item{
    width:100%;
    min-height:42px;
    padding:0 10px;
    display:flex;
    align-items:center;
    gap:10px;
    border-radius:7px;
    background:transparent;
    color:#34475a;
    font-size:13px;
    font-weight:700;
    text-align:left;
}

.tender-profile-menu-item i{
    width:18px;
    color:var(--tender-primary);
    font-size:15px;
    text-align:center;
}

.tender-profile-menu-item:hover{
    background:var(--tender-primary-light);
    color:var(--tender-primary-dark);
}

.tender-logout-button{
    color:var(--tender-danger);
}

.tender-logout-button i{
    color:var(--tender-danger);
}


/*=========================================================
  PAGE LAYOUT
=========================================================*/

.tender-page-layout{
    width:100%;
    min-height:calc(100vh - 72px);
    display:flex;
    align-items:stretch;
}

.tender-main-content{
    min-width:0;
    flex:1;
    padding:18px;
}


/*=========================================================
  SIDEBAR
=========================================================*/

.tender-sidebar{
    width:235px;
    flex:0 0 235px;
    min-height:calc(100vh - 72px);
    background:var(--tender-sidebar);
    color:#fff;
}

.tender-sidebar-inner{
    min-height:100%;
    padding:12px 9px 18px;
}


/* SIDEBAR BRAND */

.tender-sidebar-brand{
    min-height:62px;
    margin-bottom:9px;
    padding:8px 9px;
    display:flex;
    align-items:center;
    gap:10px;
    border-radius:8px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
}

.tender-sidebar-brand-icon{
    width:37px;
    height:37px;
    flex:0 0 37px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:rgba(255,255,255,.12);
    color:#fff;
}

.tender-sidebar-brand-icon i{
    font-size:17px;
}

.tender-sidebar-brand div:last-child{
    min-width:0;
    display:flex;
    flex-direction:column;
}

.tender-sidebar-brand strong{
    color:#fff;
    font-size:13px;
    font-weight:800;
    line-height:1.2;
}

.tender-sidebar-brand span{
    margin-top:3px;
    color:rgba(255,255,255,.62);
    font-size:9.5px;
    font-weight:500;
    line-height:1.2;
}


/* LABEL */

.tender-sidebar-label{
    padding:12px 10px 6px;
    color:rgba(255,255,255,.48);
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.7px;
}

.tender-sidebar-label-account{
    margin-top:5px;
}


/* MENU */

.tender-side-item{
    width:100%;
    min-height:44px;
    margin-bottom:3px;
    padding:0 11px;
    display:flex;
    align-items:center;
    gap:11px;
    border:0;
    border-radius:7px;
    background:transparent;
    color:rgba(255,255,255,.88);
    font-size:13px;
    font-weight:650;
    line-height:1.2;
    text-align:left;
    transition:var(--tender-transition);
}

.tender-side-item i{
    width:18px;
    flex:0 0 18px;
    text-align:center;
    font-size:15px;
}

.tender-side-item:hover{
    background:var(--tender-sidebar-hover);
    color:#fff;
}

.tender-side-item.active{
    background:var(--tender-sidebar-active);
    color:#fff;
    box-shadow:0 3px 9px rgba(0,0,0,.16);
}

.tender-sidebar-logout-form{
    width:100%;
}

.tender-side-logout{
    color:rgba(255,255,255,.75);
    cursor:pointer;
}

.tender-side-logout:hover{
    color:#fff;
}


/* SIDEBAR INFO */

.tender-sidebar-info{
    margin:20px 4px 0;
    padding:10px;
    display:flex;
    align-items:flex-start;
    gap:9px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:7px;
    background:rgba(255,255,255,.045);
}

.tender-sidebar-info > i{
    color:#8fc4ff;
    font-size:15px;
    margin-top:1px;
}

.tender-sidebar-info div{
    min-width:0;
    display:flex;
    flex-direction:column;
}

.tender-sidebar-info strong{
    color:rgba(255,255,255,.9);
    font-size:10px;
    font-weight:800;
}

.tender-sidebar-info span{
    margin-top:2px;
    color:rgba(255,255,255,.5);
    font-size:9px;
    line-height:1.35;
}


/*=========================================================
  SIDEBAR OVERLAY
=========================================================*/

.tender-sidebar-overlay{
    display:none;
}


/*=========================================================
  FOOTER
=========================================================*/

.tender-footer{
    width:100%;
    background:#041f3f;
    color:#fff;
    border-top:1px solid rgba(255,255,255,.04);
}

.tender-footer-inner{
    min-height:54px;
    padding:9px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.tender-footer-inner p{
    margin:0;
    color:rgba(255,255,255,.68);
    font-size:10.5px;
    font-weight:600;
    line-height:1.4;
}

.tender-footer-links{
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
}

.tender-footer-links a{
    color:rgba(255,255,255,.68);
    font-size:10.5px;
    font-weight:600;
}

.tender-footer-links a:hover{
    color:#fff;
}

.tender-footer-links span{
    color:rgba(255,255,255,.3);
    font-size:10px;
}


/*=========================================================
  RESPONSIVE — TABLET
=========================================================*/

@media(max-width:991.98px){

    .tender-header-inner{
        padding:0 16px;
    }

    .tender-sidebar{
        width:220px;
        flex-basis:220px;
    }

    .tender-main-content{
        padding:15px;
    }

}


/*=========================================================
  RESPONSIVE — MOBILE
=========================================================*/

@media(max-width:767.98px){

    .tender-header{
        height:64px;
    }

    .tender-header-inner{
        padding:0 10px;
        gap:8px;
    }

    .tender-mobile-menu{
        display:flex;
    }

    .tender-brand{
        gap:8px;
    }

    .tender-brand-icon{
        width:38px;
        height:38px;
        flex-basis:38px;
    }

    .tender-brand-icon i{
        font-size:17px;
    }

    .tender-brand-text strong{
        font-size:15px;
    }

    .tender-brand-text span{
        font-size:9px;
    }

    .tender-profile-name,
    .tender-profile-chevron{
        display:none;
    }

    .tender-profile-button{
        min-height:40px;
        padding:3px;
        border:0;
        background:transparent;
    }

    .tender-profile-button:hover,
    .tender-profile-button.active{
        background:var(--tender-primary-light);
    }

    .tender-profile-avatar{
        width:35px;
        height:35px;
        flex-basis:35px;
    }

    .tender-profile-menu{
        position:fixed;
        top:59px;
        right:9px;
        width:calc(100vw - 18px);
        max-width:330px;
    }

    .tender-page-layout{
        min-height:calc(100vh - 64px);
    }

    .tender-sidebar{
        position:fixed;
        top:0;
        left:-285px;
        width:270px;
        height:100vh;
        min-height:100vh;
        overflow-y:auto;
        z-index:1200;
        transition:left .24s ease;
        box-shadow:7px 0 24px rgba(0,0,0,.2);
    }

    .tender-sidebar.show{
        left:0;
    }

    .tender-sidebar-overlay{
        position:fixed;
        inset:0;
        z-index:1150;
        display:none;
        background:rgba(0,0,0,.48);
    }

    .tender-sidebar-overlay.show{
        display:block;
    }

    .tender-main-content{
        width:100%;
        padding:10px;
    }

    .tender-footer-inner{
        min-height:auto;
        padding:11px 10px;
        flex-wrap:wrap;
        justify-content:center;
        gap:5px 12px;
        text-align:center;
    }

    .tender-footer-inner p{
        font-size:9.5px;
    }

    .tender-footer-links{
        gap:6px;
    }

    .tender-footer-links a{
        font-size:9.5px;
    }

}


/*=========================================================
  VERY SMALL DEVICES
=========================================================*/

@media(max-width:380px){

    .tender-brand-text strong{
        font-size:14px;
    }

    .tender-brand-text span{
        font-size:8.5px;
    }

    .tender-profile-menu{
        right:7px;
        width:calc(100vw - 14px);
    }

    .tender-main-content{
        padding:8px;
    }

}