/* ═══ Trung tâm thông báo (notify-center.js) — kiểu Notification Center macOS ═══ */
.nb-bell { position: relative; }
.nb-bell svg { width: 18px; height: 18px; fill: none; stroke: #3a3a3c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nb-badge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font: 600 10.5px/17px -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }
.nb-badge[hidden] { display: none; }

.nc-panel {
  position: fixed; top: 64px; right: 16px; z-index: 90; display: flex; flex-direction: column;
  width: 400px; max-height: min(640px, calc(100vh - 84px)); overflow: hidden;
  border-radius: 18px; background: rgba(250, 250, 252, .97);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 22px 60px rgba(0, 0, 0, .18), 0 4px 14px rgba(0, 0, 0, .06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif; color: #1d1d1f;
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top right; transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
.nc-panel.in { opacity: 1; transform: none; }
.nc-panel[hidden] { display: none; }
.nc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px 18px; }
.nc-head h4 { flex: 1; margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.nc-link { height: 28px !important; min-height: 0 !important; padding: 0 8px !important; border: 0 !important; background: transparent !important; color: #0071e3 !important; font-size: 13px !important; font-weight: 500 !important; box-shadow: none !important; }
.nc-x { display: grid; place-items: center; width: 26px !important; height: 26px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #ececf0 !important; color: #6e6e73 !important; font-size: 16px !important; line-height: 1 !important; box-shadow: none !important; }
.nc-summary { display: flex; align-items: center; gap: 12px; margin: 0 12px 8px; padding: 10px 12px !important; min-height: 0 !important; border: 0 !important; border-radius: 14px !important; background: #fff4e5 !important; text-align: left; box-shadow: none !important; cursor: pointer; }
.nc-summary > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.nc-summary b { color: #b45309; font-size: 14px; } .nc-summary small { color: #8a6d3b; font-size: 12px; }
.nc-summary i { color: #c7c7cc; font-size: 20px; font-style: normal; }
.nc-seg { display: flex; gap: 2px; margin: 0 12px 6px; padding: 3px; border-radius: 10px; background: #ececf0; }
.nc-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px !important; min-height: 0 !important; padding: 0 8px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: #1d1d1f !important; font-size: 12.5px !important; font-weight: 500 !important; box-shadow: none !important; }
.nc-seg button em { color: #86868b; font-size: 11.5px; font-style: normal; }
.nc-seg button.on { background: #fff !important; font-weight: 600 !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12) !important; }
.nc-list { overflow-y: auto; padding: 2px 12px 14px; overscroll-behavior: contain; }
.nc-list h5 { margin: 10px 6px 6px; color: #86868b; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.nc-item { position: relative; display: flex; gap: 12px; margin-bottom: 8px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.nc-item.unread::after { content: ""; position: absolute; top: 15px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #0071e3; }
.nc-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.nc-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-blue { background: #eaf2fe; color: #0071e3; } .ic-red { background: #ffeceb; color: #d70015; } .ic-orange { background: #ffe8cc; color: #c25e00; }
.nc-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nc-row { display: flex; align-items: baseline; gap: 8px; padding-right: 14px; }
.nc-row b { flex: 1; font-size: 13.5px; font-weight: 600; }
.nc-row time { color: #86868b; font-size: 11.5px; white-space: nowrap; }
.nc-main p { margin: 0; color: #3a3a3c; font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-main p strong { color: #1d1d1f; font-weight: 600; }
.nc-main .nc-sub { color: #6e6e73; font-size: 12.5px; }
.nc-main code { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #1d1d1f; }
.nc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.nc-chip { padding: 2px 9px; border-radius: 980px; font-size: 11.5px; font-weight: 600; }
.nc-chip.todo { background: #fff4e5; color: #b45309; } .nc-chip.ok { background: #eaf7ee; color: #1a7f37; }
.nc-btn { height: 26px !important; min-height: 0 !important; padding: 0 11px !important; border: 1px solid #e3e3e8 !important; border-radius: 980px !important; background: #fff !important; color: #1d1d1f !important; font-size: 12px !important; font-weight: 600 !important; box-shadow: none !important; cursor: pointer; }
.nc-btn.primary { border-color: #0071e3 !important; background: #0071e3 !important; color: #fff !important; }
.nc-btn:hover { filter: brightness(.97); }
.nc-more { margin: 4px 6px; color: #86868b; font-size: 12px; }
.nc-empty { display: grid; justify-items: center; gap: 4px; padding: 36px 16px; color: #86868b; text-align: center; }
.nc-empty svg { width: 30px; height: 30px; fill: none; stroke: #c7c7cc; stroke-width: 1.6; }
.nc-empty b { color: #3a3a3c; font-size: 14px; } .nc-empty small { font-size: 12.5px; }
@media (max-width: 760px) {
  .nc-panel { inset: auto 0 0 0; top: auto; width: auto; max-height: 82vh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(24px); transform-origin: bottom center; }
  .nc-panel.in { transform: none; }
  .nc-head { padding-top: 16px; }
  .nb-bell { display: inline-grid !important; }
}
.nc-head, .nc-summary, .nc-seg { flex: none; } /* không bị co khi bảng thấp (điện thoại) */

/* Thanh trên gọn, không tràn: nút biểu tượng tròn 34px; màn hẹp thì bớt chữ */
@media (min-width: 761px) {
  .topbar .top-actions { flex-wrap: nowrap !important; min-width: 0; }
  .topbar .top-actions > .icon-button:not([hidden]) { display: inline-grid !important; place-items: center; width: 34px !important; min-width: 34px !important; height: 34px !important; padding: 0 !important; border-radius: 50% !important; }
}
@media (min-width: 761px) and (max-width: 1360px) { .topbar #pullTracking .pt-time { display: none !important; } }
@media (min-width: 761px) and (max-width: 1240px) { .topbar #importOrders span { display: none !important; } .topbar #importOrders { padding: 0 10px !important; } }
@media (min-width: 761px) and (max-width: 1120px) { .topbar #pullTracking span { display: none !important; } .topbar #pullTracking { padding: 0 10px !important; } }
@media (min-width: 761px) and (max-width: 1240px) { .topbar #importOrders { min-width: 0 !important; width: auto !important; } }
@media (min-width: 761px) and (max-width: 1120px) { .topbar #pullTracking { min-width: 0 !important; width: auto !important; } }
