.be-wrapper {
    min-height: 100vh;
}

.be-content {
    padding: 0;
}

.layout-mobile {
    display: none;
}

.layout-desktop {
    display: block;
}

@media (max-width: 991px) {
    .page-home-mobile .layout-mobile {
        display: block;
    }

    .page-home-mobile .layout-desktop {
        display: none !important;
    }
}

/* Login modal */
.login-modal-ov {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(10, 18, 36, .55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.login-modal-ov.open {
    opacity: 1;
    pointer-events: all;
}

.login-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 26px 24px;
    box-shadow: 0 20px 50px rgba(10, 18, 36, .22);
    transform: translateY(12px) scale(.98);
    transition: transform .22s cubic-bezier(.32, 1.1, .37, .98);
}

.login-modal-ov.open .login-modal {
    transform: none;
}

.login-modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid #c8d3ea;
    background: #fff;
    color: #7a88aa;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.login-modal-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.login-modal-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #1a2340;
    text-align: center;
    margin: 0 0 4px;
}

.login-modal-sub {
    font-size: 12.5px;
    color: #7a88aa;
    text-align: center;
    margin: 0 0 18px;
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-modal-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-modal-lbl {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #7a88aa;
}

.login-modal-inp {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #c8d3ea;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1a2340;
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}

.login-modal-inp:focus {
    border-color: #1a56ff;
    box-shadow: 0 0 0 3px rgba(26, 86, 255, .1);
}

.login-modal-remember {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 2px 0;
    cursor: pointer;
    user-select: none;
}

.login-modal-check-wrap {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.login-modal-remember-inp {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.login-modal-check {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    border: 2px solid #c8d3ea;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.login-modal-remember-inp:checked + .login-modal-check {
    background: linear-gradient(135deg, #1a56ff, #1340d4);
    border-color: #1a56ff;
    box-shadow: 0 2px 8px rgba(26, 86, 255, .28);
}

.login-modal-remember-inp:checked + .login-modal-check::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translateY(-1px);
}

.login-modal-remember-inp:focus-visible + .login-modal-check {
    box-shadow: 0 0 0 3px rgba(26, 86, 255, .22);
}

.login-modal-remember:active .login-modal-check {
    transform: scale(.94);
}

.login-modal-remember-txt {
    font-size: 13px;
    font-weight: 600;
    color: #5a6a8a;
    line-height: 1.3;
}

.login-modal-error {
    display: none;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.login-modal-error.show {
    display: block;
}

.login-modal-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #1a56ff, #1340d4);
    color: #fff;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26, 86, 255, .3);
    transition: transform .12s;
}

.login-modal-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.login-modal-submit:not(:disabled):active {
    transform: scale(.98);
}

/* Menu chuột phải dòng bảng (portal ra body — tt-management-common.js) */
.mgmt-row-ctx-menu {
    position: fixed;
    z-index: 12000;
    background: #fff;
    border: 1.5px solid #dde4f0;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(26, 35, 64, .2);
    min-width: 150px;
    padding: 4px;
    display: block;
    pointer-events: auto;
}

.mgmt-row-ctx-menu .pact-item,
.mgmt-row-ctx-menu .tt-act-item,
.mgmt-row-ctx-menu .tour-act-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .1s;
    white-space: nowrap;
    border: none;
    background: transparent;
    text-align: left;
    color: #1a2340;
    font-family: inherit;
}

.mgmt-row-ctx-menu .pact-item:hover,
.mgmt-row-ctx-menu .tt-act-item:hover,
.mgmt-row-ctx-menu .tour-act-item:hover {
    background: #f4f7fc;
}

.mgmt-row-ctx-menu .pact-item.pi-xoa,
.mgmt-row-ctx-menu .tt-act-item-del {
    color: #dc2626;
}

/* ── Sidebar avatar chip + modal đổi ảnh ── */
.user-avatar-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 0;
}

.user-avatar-chip:focus-visible {
    outline: 2px solid #1a56ff;
    outline-offset: 3px;
}

.user-avatar-chip__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
}

.user-avatar-chip__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    padding: 2px;
}

.user-avatar-chip__initial {
    line-height: 1;
}

.user-avatar-chip__camera {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(15, 23, 42, .58);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .16s ease;
    pointer-events: none;
    z-index: 3;
}

.user-avatar-chip__camera svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.user-avatar-chip:hover .user-avatar-chip__camera,
.user-avatar-chip:focus-visible .user-avatar-chip__camera {
    opacity: 1;
}

.user-avatar-chip__online {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: radial-gradient(circle at 32% 28%, #86efac 0%, #22c55e 42%, #15803d 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .28),
        0 2px 5px rgba(34, 197, 94, .45),
        inset 0 1px 1px rgba(255, 255, 255, .65);
    z-index: 2;
    pointer-events: none;
}

.user-avatar-chip__online::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 4px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
}

.avatar-modal-ov {
    position: fixed;
    inset: 0;
    z-index: 13000;
    background: rgba(10, 18, 36, .55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.avatar-modal-ov.open {
    opacity: 1;
    pointer-events: all;
}

.avatar-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow: 0 20px 50px rgba(10, 18, 36, .22);
    transform: translateY(10px) scale(.98);
    transition: transform .22s cubic-bezier(.32, 1.1, .37, .98);
}

.avatar-modal-ov.open .avatar-modal {
    transform: none;
}

.avatar-modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid #c8d3ea;
    background: #fff;
    color: #7a88aa;
    cursor: pointer;
    font-size: 14px;
}

.avatar-modal-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #1a2340;
    margin: 0 0 4px;
}

.avatar-modal-sub {
    font-size: 12px;
    color: #7a88aa;
    margin: 0 0 14px;
}

.avatar-modal-drop {
    border: 2px dashed #c8d3ea;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    background: #f8faff;
    transition: border-color .15s, background .15s;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-modal-drop input[type="file"],
#sidebarAvatarFile {
    display: none !important;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.avatar-modal-drop.drag {
    border-color: #1a56ff;
    background: #eef3ff;
}

.avatar-modal-drop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #5a6a8a;
}

.avatar-modal-drop-icon {
    font-size: 28px;
}

.avatar-modal-drop-hint {
    font-size: 11px;
    color: #94a3b8;
}

.avatar-modal-drop-preview {
    position: relative;
    width: 140px;
    height: 140px;
}

.avatar-modal-drop-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .15);
}

.avatar-modal-preview-clear {
    position: absolute;
    top: 0;
    right: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.avatar-modal-presets {
    margin-top: 14px;
}

.avatar-modal-presets-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.avatar-modal-presets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avatar-modal-preset {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .12s, transform .12s;
}

.avatar-modal-preset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-modal-preset.is-selected,
.avatar-modal-preset:hover {
    border-color: #1a56ff;
}

.avatar-modal-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .78);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    z-index: 3;
}

.avatar-modal-loading[hidden] {
    display: none !important;
}

.avatar-modal-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #1a56ff;
    border-radius: 50%;
    animation: avatarModalSpin .7s linear infinite;
}

@keyframes avatarModalSpin {
    to { transform: rotate(360deg); }
}

.avatar-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.avatar-modal-btn {
    padding: 9px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.avatar-modal-btn-ghost {
    background: #fff;
    border-color: #c8d3ea;
    color: #5a6a8a;
}

.avatar-modal-btn-primary {
    background: linear-gradient(135deg, #1a56ff, #1340d4);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26, 86, 255, .28);
}

.avatar-modal-btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.sidebar-pw-modal {
    max-width: 420px;
}

.sidebar-pw-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.sidebar-pw-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-pw-label {
    font-size: 12px;
    font-weight: 700;
    color: #3d4d6e;
}

.sidebar-pw-label .req {
    color: #dc2626;
}

.sidebar-pw-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #c8d3ea;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: #1a2340;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.sidebar-pw-input:focus {
    outline: none;
    border-color: #1a56ff;
    box-shadow: 0 0 0 3px rgba(26, 86, 255, .12);
}

.sidebar-pw-modal .pw-input-wrap .sidebar-pw-input {
    padding-right: 40px;
}

.sidebar-pw-modal .avatar-modal-actions {
    margin-top: 14px;
}

/* Toast phải nổi trên modal avatar (z-index 13000) */
#gritter-notice-wrapper {
    z-index: 15000 !important;
}

/* Booking detail modal — HTML luôn có trong admin layout; ẩn mặc định kể cả khi chưa load booking-detail.css */
#bkDetailOv.bk-detail-ov {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12550;
    box-sizing: border-box;
}

#bkDetailOv.bk-detail-ov.open {
    display: flex;
}
