/* ---------- Ẩn theo thiết bị ---------- */
@media (min-width: 768px) {
    .nt-mobile { display: none !important; }
    .nt-hide-desktop { display: none !important; }
}
@media (max-width: 767px) {
    .nt-dock { display: none !important; }
    .nt-hide-mobile { display: none !important; }
}

/* ---------- Nút mobile: nổi (mặc định) ---------- */
.nt-fab {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 9990;
}

/* ---------- Nút mobile: đặt trong theme bằng [nt_fab] ---------- */
.nt-fab-inline {
    cursor: pointer;
}

/* ---------- Kiểu chung cho nút mở bảng ---------- */
.nt-fab, .nt-fab-inline {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font: 700 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .4);
}

/* ---------- Mobile: lớp phủ và bảng ---------- */
.nt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 9991;
}
.nt-overlay.open { opacity: 1; visibility: visible; }

.nt-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 26px 26px 0 0;
    padding: 16px 16px 24px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.32, .72, 0, 1);
    z-index: 9992;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.nt-sheet.open { transform: translateY(0); }

.nt-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 10px;
}
.nt-close {
    width: 32px; height: 32px;
    border: 0; border-radius: 50%;
    background: #f1f5f9; color: #475569;
    font-size: 20px; line-height: 1; cursor: pointer;
}

.nt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

/* ---------- Dùng chung: ảnh, thông tin, nút ---------- */
.nt-info, .nt-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nt-txt { min-width: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.nt-name { font-weight: 600; font-size: 14px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-role { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nt-av {
    width: 40px; height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
}
.nt-av-init {
    display: flex; align-items: center; justify-content: center;
    background: #dbeafe; color: #0D3270;
    font: 700 12px/1 system-ui, sans-serif;
}

.nt-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.nt-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 12px;
    border-radius: 10px;
    font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-decoration: none; white-space: nowrap;
}
.nt-zalo { background: #E6F2FF; color: #0068FF; }
.nt-call { background: #0D3270; color: #fff; }

/* ---------- Desktop: dải cố định ---------- */
.nt-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9980;
    display: flex;
    padding: 10px 16px;
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}
.nt-align-left { justify-content: flex-start; }
.nt-align-center { justify-content: center; }
.nt-align-right { justify-content: flex-end; }

.nt-dock-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}
.nt-track {
    display: flex;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nt-track::-webkit-scrollbar { display: none; }

.nt-card {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.nt-card .nt-btn { height: 30px; font-size: 12px; }

.nt-arrow {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    border: 1px solid #cbd5e1; border-radius: 50%;
    background: #fff; color: #334155;
    font-size: 18px; line-height: 1;
    cursor: pointer;
}
.nt-arrow[hidden] { display: none; }

/* ---------- Thanh handle kéo để đóng bảng mobile ---------- */
.nt-handle-bar {
    width: 40px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 99px;
    background: #cbd5e1;
    cursor: grab;
    touch-action: none;
}

/* ---------- Desktop: thẻ nhân viên (tên + chức danh cùng hàng, số Zalo bên dưới) ---------- */
.nt-dcol { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.nt-namerow { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; }
.nt-namerow .nt-name { font-size: 16px; font-weight: 800; color: #0f172a; }
.nt-namerow .nt-role { font-size: 12px; color: #64748b; flex: 0 1 auto; }

.nt-dz {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    background: #E6F2FF;
    color: #0068FF;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.nt-dz svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.nt-dz-num { letter-spacing: .2px; }

/* =========================================================
 * THIẾT KẾ MỚI: avatar có chấm xanh nhấp nháy
 * ========================================================= */
.nt-av-wrap {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    isolation: isolate;
}
.nt-av-wrap .nt-av { width: 40px; height: 40px; }

.nt-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-sizing: content-box;
    z-index: 2;
}
.nt-dot::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .55);
    z-index: -1;
    animation: nt-pulse 1.8s ease-out infinite;
}
.nt-dot-tr { top: -2px; right: -2px; }
.nt-dot-br { bottom: -2px; right: -2px; }

@keyframes nt-pulse {
    0%   { transform: scale(1); opacity: .9; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Desktop: thẻ ---------- */
.nt-card { padding: 8px 12px; border-radius: 14px; }
.nt-namerow .nt-name { font-size: 16px; font-weight: 800; color: #0f172a; }

/* Nút Zalo desktop: icon chứa chữ Zalo + số */
.nt-dz {
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 800;
}
.nt-zicon { width: 32px; height: 32px; flex: 0 0 32px; display: block; }
.nt-dz .nt-zicon { width: 30px; height: 30px; flex-basis: 30px; }

/* ---------- Mobile: bảng theo mẫu ---------- */
.nt-sheet {
    padding: 0 0 0;
    background: #fff;
}
.nt-handle-bar { margin: 12px auto 0; }

.nt-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #e8edf3;
    margin-bottom: 0;
}
.nt-sheet-title {
    font-size: 20px;
    font-weight: 800;
    color: #0D3270;
    line-height: 1.25;
}
.nt-sheet-sub {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #64748b;
}
.nt-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 24px;
    cursor: pointer;
}

.nt-sheet-list { padding: 16px 16px 8px; }

.nt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.nt-row:last-child { margin-bottom: 0; }

.nt-mtxt { flex: 1 1 auto; min-width: 0; }
.nt-mname {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 16px;
    color: #0f172a;
}
.nt-mname-text {
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nt-sep { color: #cbd5e1; font-size: 12px; }
.nt-online {
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.nt-mrole {
    margin-top: 4px;
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nt-macts {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}
.nt-mbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.nt-mzalo { background: #EAF2FF; color: #0068FF; }
.nt-mcall { background: #0D3270; color: #fff; }
.nt-mzalo .nt-zicon { width: 28px; height: 28px; flex-basis: 28px; }
.nt-picon { width: 18px; height: 18px; flex: 0 0 18px; }

.nt-sheet-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px 22px;
    border-top: 1px solid #eef2f6;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}
.nt-ficon { width: 18px; height: 18px; flex: 0 0 18px; color: #94a3b8; }

/* =========================================================
 * THANH ĐIỀU HƯỚNG ĐÁY MOBILE: Trang chủ · Tư vấn nhanh · Danh mục
 * ========================================================= */
.nt-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9985;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    box-sizing: border-box;
    height: calc(76px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 14px rgba(15, 23, 42, .06);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.nt-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}
.nt-bar-item svg { width: 24px; height: 24px; display: block; }
.nt-bar-item.active { color: #16a34a; }

.nt-bar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding-bottom: 6px;
}

.nt-bar-circle {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
    min-height: 60px;
    margin: -24px 0 0 !important;
    padding: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    border: 4px solid #fff !important;
    border-radius: 50% !important;
    overflow: visible;
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
    background-clip: padding-box;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nt-bar-circle svg { width: 28px; height: 28px; stroke: #fff; }
.nt-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    white-space: nowrap;
}

/* Chừa chỗ để nội dung trang không bị thanh đáy che */
@media (max-width: 767px) {
    body.nt-has-bar {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

/* =========================================================
 * SỬA: tên không bị cắt trên màn hình hẹp
 * ========================================================= */
.nt-mname {
    flex-wrap: wrap;
    row-gap: 2px;
}
.nt-mname-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    min-width: 0;
    overflow-wrap: anywhere;
}
.nt-mrole {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Màn hình hẹp (điện thoại nhỏ): thu nhỏ nút và avatar để còn chỗ cho tên */
@media (max-width: 430px) {
    .nt-row { gap: 8px; padding: 12px; }
    .nt-av-wrap, .nt-av-wrap .nt-av { width: 38px; height: 38px; flex: 0 0 38px; }
    .nt-mbtn { height: 38px; padding: 0 10px; font-size: 13px; gap: 4px; border-radius: 10px; }
    .nt-mzalo .nt-zicon { width: 22px; height: 22px; flex-basis: 22px; }
    .nt-picon { width: 16px; height: 16px; flex-basis: 16px; }
    .nt-macts { gap: 6px; }
    .nt-mname { font-size: 15px; }
    .nt-online { font-size: 13px; }
}

/* =========================================================
 * KHUNG CHAT ZALO (nhân viên đứng đầu)
 * ========================================================= */
@media (min-width: 768px) { .nt-zbox-mobile { display: none !important; } }
@media (max-width: 767px) { .nt-zbox-desktop { display: none !important; } }

.nt-zbox {
    position: fixed;
    z-index: 9975;
    box-sizing: border-box;
    width: 335px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    box-shadow: 0 10px 28px rgba(0, 55, 140, .12);
    cursor: pointer;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-align: left;
}
.nt-zbox * { box-sizing: border-box; }
.nt-zbox-desktop { left: 16px; bottom: 100px; }
.nt-zbox-desktop::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 36px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-right: 1px solid #dbe4f0;
    border-bottom: 1px solid #dbe4f0;
    transform: rotate(45deg);
}
.nt-zbox-mobile { left: 0; right: 0; margin: 0 auto; width: min(335px, calc(100vw - 24px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

.nt-zclose {
    position: absolute;
    top: -8px;
    right: -6px;
    z-index: 3;
    box-sizing: border-box;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.nt-zclose:hover { background: #f1f5f9; }
.nt-zclose svg { width: 9px !important; height: 9px !important; min-width: 9px; flex: 0 0 9px; display: block; }

.nt-zhead {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #0068ff, #0052cc);
    color: #fff;
    border-radius: 15px 15px 0 0;
}
.nt-zhead-av { position: relative; width: 40px; height: 40px; flex: 0 0 40px; }
.nt-zhead-av img, .nt-zhead-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .9); display: block; }
.nt-zhead-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    border: 2px solid #0058db;
    animation: nt-pulse 2s infinite;
}
.nt-zhead-txt { flex: 1; min-width: 0; }
.nt-zhead-title { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: #fff; }
.nt-zhead-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-zbadge { background: rgba(255, 255, 255, .2); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.nt-zhead-sub { font-size: 11px; color: #dbeafe; margin-top: 2px; }

.nt-zbody {
    background: #e4e8f0;
    padding: 14px;
    height: 265px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nt-zday {
    align-self: center;
    background: rgba(255, 255, 255, .75);
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 2px;
}
.nt-zrow { display: flex; align-items: flex-end; gap: 8px; animation: nt-zmsg .25s ease-out; }
.nt-zslot { width: 28px; height: 28px; flex: 0 0 28px; }
.nt-zslot img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid #fff; display: block; }
.nt-zbubble {
    background: #fff;
    color: #1e293b;
    padding: 8px 12px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 82%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.nt-zdots { display: flex; align-items: center; gap: 5px; }
.nt-zdots i { width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; display: inline-block; animation: nt-dot 1.2s infinite ease-in-out; }
.nt-zdots i:nth-child(2) { animation-delay: .15s; }
.nt-zdots i:nth-child(3) { animation-delay: .3s; }
.nt-ztext { font-size: 11px; color: #94a3b8; margin-left: 4px; font-weight: 500; }

.nt-zfoot {
    background: #fff;
    padding: 10px 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 0 15px 15px;
}
.nt-zinput {
    flex: 1;
    min-width: 0;
    background: #f2f4f8;
    color: #1e293b;
    font-size: 13.5px;
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 999px;
    border: 0;
    outline: none;
    cursor: pointer;
}
.nt-zinput::placeholder { color: #94a3b8; }
.nt-zsend {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    border: 0;
    background: #0068ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.nt-zsend svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

/* Nút thu nhỏ: tròn xanh, icon máy bay giấy, đặt sát thẻ nhân viên đầu tiên */
.nt-zmini {
    position: fixed;
    z-index: 9976;
    box-sizing: border-box;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0068ff;
    box-shadow: 0 6px 16px rgba(0, 104, 255, .35);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}
.nt-zmini svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; display: block; }
.nt-zmini-desktop { left: 52px; bottom: 100px; }
.nt-zmini-mobile { left: 0; right: 0; margin: 0 auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

@keyframes nt-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes nt-zmsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
 * BONG BÓNG CHAT (không khung, không link)
 * ========================================================= */
.nt-bub {
    position: fixed;
    z-index: 9975;
    box-sizing: border-box;
    max-width: 280px;
    min-width: 120px;
    padding: 10px 30px 10px 14px;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 55, 140, .12);
    color: #1e293b;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.45;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    animation: nt-zmsg .3s ease-out;
}
.nt-bub::before {
    content: "";
    position: absolute;
    left: var(--nt-tail, 22px);
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #dbe4f0;
}
.nt-bub::after {
    content: "";
    position: absolute;
    left: calc(var(--nt-tail, 22px) + 1px);
    bottom: -9px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #fff;
}
.nt-bub .nt-zclose { top: -8px; right: -6px; }
.nt-bub-text { margin: 0; }
.nt-bub-dots { display: none; align-items: center; gap: 5px; padding: 2px 0; }
.nt-bub-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; display: inline-block; animation: nt-dot 1.2s infinite ease-in-out; }
.nt-bub-dots i:nth-child(2) { animation-delay: .15s; }
.nt-bub-dots i:nth-child(3) { animation-delay: .3s; }

/* Mobile: bong bóng nằm trong bảng, trên người đầu tiên */
.nt-bub-inline {
    position: relative;
    display: none;
    max-width: none;
    margin: 4px 16px 16px;
    padding: 10px 14px;
}
.nt-bub-inline::before { left: 26px; }
.nt-bub-inline::after { left: 27px; }
.nt-bub-inline .nt-zclose { display: none; }

/* ---- Bảng mobile: bớt khoảng trống, nút × căn giữa ---- */
.nt-sheet-head { padding: 14px 18px 12px; }
.nt-sheet-list { padding: 8px 16px 8px; }
.nt-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
}
.nt-close svg { width: 14px !important; height: 14px !important; display: block; }

.nt-bub-dtxt { font-size: 11px; color: #94a3b8; margin-left: 4px; font-weight: 500; white-space: nowrap; }

/* =========================================================
 * TÙY CHỈNH: font, avatar, nút Tư vấn nhanh, màu bong bóng
 * ========================================================= */
#nt-root, #nt-root * { font-family: "Be Vietnam Pro", sans-serif !important; }

/* Avatar: desktop 52px, mobile 50px */
@media (min-width: 768px) {
    #nt-root .nt-av-wrap, #nt-root .nt-av, #nt-root .nt-av-init {
        width: 52px !important; height: 52px !important; flex: 0 0 52px !important;
    }
}
@media (max-width: 767px) {
    #nt-root .nt-av-wrap, #nt-root .nt-av, #nt-root .nt-av-init {
        width: 50px !important; height: 50px !important; flex: 0 0 50px !important;
    }
}

/* Nút Tư vấn nhanh */
.nt-bar-circle {
    background: var(--nt-fab-bg, #22c55e) !important;
    border: var(--nt-fab-bw, 4px) solid var(--nt-fab-border, #fff) !important;
}
.nt-bar-circle svg:not(.nt-zicon), .nt-bar-circle svg:not(.nt-zicon) * {
    stroke: var(--nt-fab-icon, #fff) !important;
}
.nt-bar-circle .nt-zicon { width: 34px !important; height: 34px !important; flex-basis: 34px; }
.nt-fab-img { width: 30px; height: 30px; object-fit: contain; display: block; }
.nt-bar-label { color: var(--nt-fab-label, #15803d) !important; }

/* Bong bóng: màu riêng cho desktop và mobile */
.nt-bub-desktop {
    background: var(--nt-bub-desk-bg, #fff) !important;
    border-color: var(--nt-bub-desk-border, #dbe4f0) !important;
    color: var(--nt-bub-desk-text, #1e293b) !important;
}
.nt-bub-desktop::before { border-top-color: var(--nt-bub-desk-border, #dbe4f0) !important; }
.nt-bub-desktop::after { border-top-color: var(--nt-bub-desk-bg, #fff) !important; }
.nt-bub-mobile {
    background: var(--nt-bub-mob-bg, #fff) !important;
    border-color: var(--nt-bub-mob-border, #dbe4f0) !important;
    color: var(--nt-bub-mob-text, #1e293b) !important;
}
.nt-bub-mobile::before { border-top-color: var(--nt-bub-mob-border, #dbe4f0) !important; }
.nt-bub-mobile::after { border-top-color: var(--nt-bub-mob-bg, #fff) !important; }

/* MŨI TÊN Bong bóng trên Desktop hiện lên trên thanh thông tin nhân viên và kéo sát nhân viên */
.nt-bub.nt-bub-desktop {
    z-index: 9999;
    bottom: 92px !important;
}