/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Upload, crop avatar */
.users-av-wraper {
    position: relative;
    width: 630px;
    min-height: 100%;
    background: #f7f7f7;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 13px;
}

.users-av-wraper > form > div {
    position: relative;
    padding: 15px 0 0 15px;
}

.users-av-wraper > form > div:first-child {
    background-color: #efefef;
    min-height: 400px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.users-avupload {
    position: relative;
    width: 100%;
    height: 100%;
}

.users-avupload .upload-button {
    display: table;
    width: 100%;
    height: 380px;
    cursor: pointer;
}

.users-avupload .upload-button > div {
    display: table-row;
}

.users-avupload .upload-button > div > span {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.users-avupload .upload-button > div > span > em {
    display: inline-block;
    width: 100px;
    height: 100px;
    font-size: 40px;
    text-align: center;
    color: #fff;
    background-color: #1182c8;
    line-height: 100px;
    border-radius: 50px;
}

.users-avupload .upload-button:hover em {
    background-color: #205fa0;
}

.users-avupload .img-area {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.users-avupload .img-area img {
    width: 100%;
}

.users-av-wraper .guide {
    padding: 8px;
    background: #d8eaf8;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.users-av-wraper .exit-bt {
    position: fixed;
    top: 380px;
    right: 30px;
}

/* EDIT INFO */
#change-photo {
    display: none;
}

.users-menu > li > a {
    padding: 8px 10px !important;
}

/* LOGIN, REGISTER FORM BOX */
.login-box {
    width: 334px;
}

@media (max-width: 399px) {
    .login-box {
        width: 100%;
    }
}

.user-reg-form .form-detail .form-group > label {
    font-weight: 500;
}

.login-box img.logo {
    max-width: 100%;
    height: auto;
}

.openid-btns {
    border-top: 1px #fff solid;
    padding-top: 15px;
}

.openid-btns .btn-group {
    display: flex;
    width: 100%;
}

.openid-btns .btn-group button.btn {
    width: 40px;
    text-align: center;
}

.openid-btns .btn-group a.btn {
    flex-grow: 1;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.openid-google {
    color: #ffffff !important;
    background-color: #d9534f;
    border-color: #d43f3a;
}

.openid-google:focus {
    color: #ffffff;
    background-color: #c9302c;
    border-color: #761c19;
}

.openid-google:hover {
    color: #ffffff;
    background-color: #c9302c;
    border-color: #ac2925;
}

.openid-google:active {
    color: #ffffff;
    background-color: #c9302c;
    border-color: #ac2925;
}

.openid-google:active:hover,
.openid-google:active:focus {
    color: #ffffff;
    background-color: #ac2925;
    border-color: #761c19;
}

.openid-google:active {
    background-image: none;
}

.openid-google.disabled:hover,
.openid-google[disabled]:hover,
fieldset[disabled] .openid-google:hover,
.openid-google.disabled:focus,
.openid-google[disabled]:focus,
fieldset[disabled] .openid-google:focus {
    background-color: #d9534f;
    border-color: #d43f3a;
    cursor: inherit;
}

.openid-zalo {
    color: #ffffff !important;
    background-color: #0067ff;
    border-color: #0067ff;
}

.openid-zalo:focus,
.openid-zalo:hover,
.openid-zalo:active {
    color: #ffffff;
    background-color: #035adb;
    border-color: #035adb;
}

.openid-zalo:active {
    background-image: none;
}

.openid-zalo.disabled:hover,
.openid-zalo[disabled]:hover,
fieldset[disabled] .openid-zalo:hover,
.openid-zalo.disabled:focus,
.openid-zalo[disabled]:focus,
fieldset[disabled] .openid-zalo:focus {
    background-color: #035adb;
    border-color: #035adb;
    cursor: inherit;
}

.fa-zalo::before {
    font: normal normal bold 15px/1 Arial;
    content: "Z";
}

.openid-facebook {
    color: #ffffff !important;
    background-color: #428bca;
    border-color: #357ebd;
}

.openid-facebook:focus {
    color: #ffffff;
    background-color: #3071a9;
    border-color: #193c5a;
}

.openid-facebook:hover {
    color: #ffffff;
    background-color: #3071a9;
    border-color: #285e8e;
}

.openid-facebook:active {
    color: #ffffff;
    background-color: #3071a9;
    border-color: #285e8e;
}

.openid-facebook:active:hover,
.openid-facebook:active:focus {
    color: #ffffff;
    background-color: #285e8e;
    border-color: #193c5a;
}

.openid-facebook:active {
    background-image: none;
}

.openid-facebook.disabled:hover,
.openid-facebook[disabled]:hover,
.openid-facebook.disabled:focus,
.openid-facebook[disabled]:focus,
fieldset[disabled] .openid-facebook:focus {
    background-color: #428bca;
    border-color: #357ebd;
    cursor: inherit;
}

.openid-single-sign-on {
    color: #ffffff !important;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.openid-single-sign-on:focus {
    color: #ffffff;
    background-color: #449d44;
    border-color: #255625;
}

.openid-single-sign-on:hover {
    color: #ffffff;
    background-color: #449d44;
    border-color: #398439;
}

.openid-single-sign-on:active {
    color: #ffffff;
    background-color: #449d44;
    border-color: #398439;
}

.openid-single-sign-on:active:hover,
.openid-single-sign-on:active:focus {
    color: #ffffff;
    background-color: #398439;
    border-color: #255625;
}

.openid-single-sign-on:active {
    background-image: none;
}

.openid-single-sign-on.disabled:hover,
.openid-single-sign-on[disabled]:hover,
.openid-single-sign-on.disabled:focus,
.openid-single-sign-on[disabled]:focus,
fieldset[disabled] .openid-single-sign-on:focus {
    background-color: #5cb85c;
    border-color: #4cae4c;
    cursor: inherit;
}


/* ================================================================
   BUSINESS PRO - User Button: Compact Popup Redesign v2
   ================================================================ */

/* 1. USER BUTTON ICON - compact circle */
a.button.user, a.button.pa {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 34px !important; height: 34px !important; min-width: 34px;
    border-radius: 50% !important;
    background-color: #1a73e8 !important;
    background-size: cover; background-position: center;
    border: 2px solid rgba(255,255,255,0.4) !important;
    box-shadow: 0 2px 6px rgba(26,115,232,0.4) !important;
    transition: box-shadow .2s, transform .2s !important;
    overflow: hidden; text-decoration: none !important;
    vertical-align: middle;
}
a.button.user[style] { background-size: cover !important; background-position: center !important; }
a.button.user:hover, a.button.pa:hover { transform: scale(1.08) !important; }
a.button.pa em.fa-user, a.button.pa em.fa {
    font-size: 16px !important; color: #fff !important;
    display: inline-block !important;
}
a.button.user span.hidden { display: none !important; }

/* 2. POPUP CONTAINER - compact */
#tip {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 28px rgba(0,0,0,0.18) !important;
    border: 1px solid #e0e8f5 !important;
    width: 230px !important; min-width: 230px !important; max-width: 230px !important;
    overflow: hidden; padding: 0 !important;
}

/* 3. userBlock wrapper */
.userBlock { padding: 0 !important; margin: 0 !important; }

/* 4. HEADER - white text on blue gradient */
.userBlock > h3.text-center {
    background: linear-gradient(135deg,#1a73e8 0%,#0d47a1 100%) !important;
    color: #fff !important; margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important; font-weight: 700 !important;
    text-align: left !important;
}
.userBlock > h3.text-center .text-normal {
    color: rgba(255,255,255,0.7) !important; font-size: 10px !important;
    font-weight: 500 !important; display: inline !important;
    margin-right: 3px;
}

/* 5. BODY ROW - compact avatar + links */
.userBlock > .row {
    padding: 10px 12px 8px !important;
    background: #fff; margin: 0 !important;
}
.userBlock .row img.img-thumbnail {
    width: 46px !important; height: 46px !important;
    border-radius: 50% !important; border: 2px solid #e0e8f5 !important;
    box-shadow: 0 1px 6px rgba(26,115,232,0.15) !important;
    object-fit: cover; display: block; margin: 0 auto !important;
    background: #f0f4ff !important;
}

/* 6. MENU LINKS - icon inline with text, compact */
.userBlock .nv-list-item { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.userBlock .nv-list-item li {
    border-bottom: 1px solid #f3f4f6 !important;
    display: flex !important; align-items: center !important;
    padding: 0 !important;
}
.userBlock .nv-list-item li:last-child { border-bottom: none !important; }
.userBlock .nv-list-item li > em.fa {
    font-size: 12px !important; width: 28px; min-width: 28px;
    text-align: center; color: #6b7280 !important; flex-shrink: 0;
}
.userBlock .nv-list-item li a {
    flex: 1;
    padding: 7px 8px 7px 0 !important; font-size: 12px !important;
    font-weight: 600 !important; color: #374151 !important;
    text-decoration: none !important; transition: color .12s;
    line-height: 1.3;
}
.userBlock .nv-list-item li:hover a,
.userBlock .nv-list-item li.active a { color: #1a73e8 !important; }
.userBlock .nv-list-item li:hover { background: #eff6ff !important; }
.userBlock .nv-list-item li.active { background: #eff6ff !important; }
.userBlock .nv-list-item li.active a { font-weight: 700 !important; }

/* 7. ADMIN TOOLBAR - white text on blue header */
.userBlock .margin-top.boder-top {
    background: #f8faff !important;
    border-top: 1.5px solid #e0e8f5 !important;
    margin: 0 !important; padding: 0 !important;
}
.userBlock .margin-top.boder-top > p {
    background: linear-gradient(90deg,#1a73e8,#0d47a1) !important;
    margin: 0 !important; padding: 5px 12px !important;
}
.userBlock .margin-top.boder-top > p strong {
    color: #fff !important; font-size: 10px !important;
    font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.4px;
}
.userBlock .margin-top.boder-top .nv-list-item {
    padding: 2px 0 4px !important;
}
.userBlock .margin-top.boder-top .nv-list-item li {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}
.userBlock .margin-top.boder-top .nv-list-item li > em.fa {
    color: #1a73e8 !important; font-size: 12px !important;
    width: 28px; min-width: 28px; text-align: center;
    flex-shrink: 0;
}
.userBlock .margin-top.boder-top .nv-list-item li a {
    flex: 1;
    color: #374151 !important; font-size: 11px !important;
    padding: 6px 8px 6px 0 !important;
}
.userBlock .margin-top.boder-top .nv-list-item li a:hover { background: transparent !important; color: #1a73e8 !important; }
.userBlock .margin-top.boder-top .nv-list-item li:hover { background: #e8f0fe !important; border-radius: 6px; }

/* 8. TIP FOOTER - compact */
.tip-footer {
    background: #f8faff !important;
    padding: 7px 12px !important;
    border-top: 1px solid #e5e7eb !important;
    border-radius: 0 0 12px 12px;
}
.tip-footer .small { color: #9ca3af !important; font-size: 10px !important; }
.tip-footer em.button.btn-sm { color: #9ca3af !important; font-size: 10px; }
.tip-footer .btn.btn-default.btn-sm {
    background: #dc2626 !important;
    border: none !important; color: #fff !important;
    font-size: 11px !important; font-weight: 700 !important;
    padding: 4px 10px !important; border-radius: 6px !important;
    box-shadow: none !important; transition: background .15s !important;
}
.tip-footer .btn.btn-default.btn-sm:hover { background: #b91c1c !important; }
.tip-footer em.icon-exit { color: #fff !important; font-size: 11px; }

/* 9. GUEST POPUP */
#tip .log-area { padding: 14px 14px !important; min-width: 200px; }

/* 10. INFO BAR */
.userBlock .nv-info { margin: 0 !important; padding: 7px 12px !important; font-size: 12px !important; }
.userBlock .nv-info.success { background: #dcfce7 !important; color: #166534 !important; }
.userBlock .nv-info.error { background: #fee2e2 !important; color: #991b1b !important; }
