/* HK Dashboard — chat FAB, WhatsApp drawer, top-bar inbox */
  /* ===== chat FAB ===== */
  .fab{position:fixed;bottom:24px;inset-inline-start:24px;background:var(--wa);color:#fff;
    border:none;border-radius:999px;padding:13px 20px;font-family:inherit;font-size:14px;font-weight:600;
    cursor:pointer;box-shadow:0 8px 24px rgba(37,211,102,.4);display:flex;align-items:center;gap:10px;z-index:50}
  .fab:hover{background:#1fbe5a}
  .fab .fbadge{background:#fff;color:var(--wa);font-size:12px;font-weight:700;
    min-width:20px;height:20px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 6px}

  /* ===== chat drawer (from dashboard-inbox) ===== */
  .drawer-ov{position:fixed;inset:0;background:rgba(12,64,104,.42);backdrop-filter:blur(2px);
    opacity:0;pointer-events:none;transition:.2s;z-index:70}
  .drawer-ov.show{opacity:1;pointer-events:auto}
  .drawer{position:fixed;top:0;left:0;right:auto;height:100%;width:420px;max-width:92vw;
    background:#ECE5DD;box-shadow:var(--shadow-lg);transform:translateX(-100%);
    transition:transform .26s cubic-bezier(.4,0,.2,1);z-index:71;display:flex;flex-direction:column}
  .drawer.show{transform:translateX(0)}
  .d-head{background:var(--navy);color:#fff;padding:14px 18px;display:flex;align-items:center;gap:12px}
  .d-head .dav{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);
    display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px;flex:0 0 auto}
  .d-head .dn{font-size:15px;font-weight:600;line-height:1.2}
  .d-head .ds{font-size:11px;opacity:.8}
  .d-head .x{margin-inline-start:auto;background:rgba(255,255,255,.15);border:none;color:#fff;
    width:30px;height:30px;border-radius:8px;cursor:pointer;font-size:16px}
  .d-head .x:hover{background:rgba(255,255,255,.28)}
  .d-userbar{display:flex;align-items:center;gap:8px;padding:9px 14px;background:#fff;border-bottom:1px solid var(--line)}
  .d-userbar label{font-size:11.5px;color:var(--muted)}
  .d-userbar select{font-family:inherit;font-size:13px;color:var(--navy);font-weight:500;
    border:1px solid var(--line);border-radius:9px;padding:6px 10px;background:#fff;cursor:pointer;flex:1}
  .d-body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:11px;background:#eef3f7}
  .d-empty{margin:auto;text-align:center;color:var(--muted);font-size:13.5px;display:flex;flex-direction:column;align-items:center;gap:10px}
  .d-empty svg{opacity:.4}
  .d-body .msg{display:flex;gap:7px;align-items:flex-end;max-width:86%;position:relative}
  .d-body .msg.hk{margin-inline-start:auto;flex-direction:row-reverse}
  .d-body .msg.user{margin-inline-end:auto}
  .av{width:30px;height:30px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;
    justify-content:center;font-size:11px;font-weight:600;color:#fff}
  .av.hk{background:var(--blue)} .av.user{background:var(--navy)}
  .b{padding:8px 12px 6px;border-radius:12px;font-size:13.5px;box-shadow:0 1px 1px rgba(0,0,0,.07);position:relative;min-width:0}
  .b.hk{background:#d6ecfb;border-top-right-radius:3px}
  .b.user{background:#fff;border-top-left-radius:3px}
  .b .sender{font-size:11.5px;font-weight:600;color:var(--navy);margin-bottom:3px;display:flex;align-items:center;gap:6px}
  .b .auto{font-size:10px;font-weight:400;color:var(--muted);background:#eef1f4;padding:1px 6px;border-radius:999px}
  .b .txt{line-height:1.45}
  .b .when{font-size:9.5px;color:#90a0ad;margin-top:4px;text-align:left}
  .d-foot{padding:10px 12px;background:#f0f2f5;display:flex;gap:9px;align-items:center}
  .d-foot input{flex:1;border:1px solid var(--line);border-radius:22px;padding:10px 16px;
    font-family:inherit;font-size:14px;outline:none;background:#fff}
  .d-foot input:focus{border-color:var(--wa)}
  .d-foot .send{width:42px;height:42px;border-radius:50%;background:var(--wa);color:#fff;
    border:none;cursor:pointer;font-size:17px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}

  /* ===== top-bar messages inbox ===== */
  .tb-msg{position:relative;width:38px;height:38px;border-radius:50%;background:var(--bg);border:1px solid var(--line);color:var(--navy);cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
  .tb-msg:hover{border-color:var(--blue)}
  .tb-badge{position:absolute;top:-4px;inset-inline-start:-4px;background:var(--wa);color:#fff;font-size:10.5px;font-weight:700;min-width:18px;height:18px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 5px}
  .inbox-ov{position:fixed;inset:0;z-index:78;display:none}
  .inbox-ov.show{display:block}
  .inbox{position:fixed;top:62px;left:20px;width:440px;max-width:94vw;max-height:76vh;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg);z-index:79;display:none;flex-direction:column;overflow:hidden}
  .mev{border-bottom:1px solid var(--line);padding:15px 17px}
  .mev:last-child{border-bottom:none}
  .mev-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
  .mev-co{font-size:14.5px;font-weight:600;color:var(--navy)}
  .mev-meta{font-size:10.5px;color:var(--muted);text-align:left;line-height:1.45;flex:0 0 auto}
  .mev-bubble{background:#f0f2f5;border-radius:12px;padding:11px 13px;display:flex;flex-direction:column;gap:6px;margin-bottom:11px}
  .mev-bubble div{font-size:13px;color:var(--navy);line-height:1.5}
  .mev-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .mev-status{font-size:11.5px;color:var(--blue);font-weight:600;display:inline-flex;align-items:center;gap:6px}
  .mev-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
  .mev-actions{display:flex;gap:8px}
  .mev-btn{border:1px solid var(--line);background:#fff;color:var(--navy);font-family:inherit;font-weight:600;font-size:12px;border-radius:8px;padding:7px 13px;cursor:pointer}
  .mev-btn:hover{border-color:var(--blue)}
  .mev-btn.done{border-color:var(--green);color:var(--green)}
  .mev-btn.done:hover{background:var(--green-bg)}
  .mev-reply{display:none;margin-top:11px;gap:8px}
  .mev-reply.show{display:flex}
  .mev-reply input{flex:1;border:1px solid var(--line);border-radius:9px;padding:8px 11px;font-family:inherit;font-size:13px;outline:none}
  .mev-reply input:focus{border-color:var(--blue)}
  .mev-reply .snd{background:var(--blue);color:#fff;border:none;border-radius:9px;padding:0 15px;cursor:pointer;font-family:inherit;font-weight:600;font-size:13px}
  .inbox.show{display:flex}
  .inbox-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}
  .inbox-head .ih-t{font-size:16px;font-weight:600;color:var(--navy)}
  .inbox-sub{font-size:12px;color:var(--muted)}
  .inbox-list{overflow-y:auto}
  .ibrow{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #f0f4f8;cursor:pointer;transition:.12s}
  .ibrow:hover{background:#fafcff}
  .ib-av{width:40px;height:40px;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px;flex:0 0 auto}
  .ib-body{flex:1;min-width:0}
  .ib-top{display:flex;justify-content:space-between;gap:8px}
  .ib-name{font-size:14px;font-weight:600;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ib-time{font-size:11px;color:var(--muted);flex:0 0 auto}
  .ib-prev{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
  .ib-badge{background:var(--wa);color:#fff;font-size:11px;font-weight:700;min-width:20px;height:20px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 6px;flex:0 0 auto}
  .inbox-empty{padding:36px;text-align:center;color:var(--muted);font-size:13px}

