#manage-staff-btn { display: none !important; }
@media (min-width: 761px) {
  .sidebar { width: 308px; }
}
.sidebar-header { padding: 18px 14px 8px 16px; }
.shell-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 10px 14px 14px;
}
.shell-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.shell-nav .nav-icon { flex-shrink: 0; }
.shell-nav button:hover {
  background: rgba(255, 255, 255, .26);
  border-color: rgba(255, 255, 255, .48);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 30, 100, .18);
}
.shell-nav button.active {
  background: linear-gradient(180deg, #fff 0%, #f3f6ff 100%);
  color: var(--primary);
  border-color: transparent;
  transform: none;
  box-shadow: 0 8px 18px rgba(0, 30, 100, .22);
}
.shell-nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}
.ai-trigger {
  width: calc(100% - 28px);
  margin: 2px 14px 12px;
  padding: 8px 10px;
  box-shadow: 0 6px 16px rgba(0, 30, 100, .16);
}
.seg-nav { display: flex; gap: 8px; margin-bottom: 14px; }
.seg-nav button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.seg-nav button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.workspace { flex: 1; min-width: 0; overflow: auto; background: var(--chat-bg); padding: 22px 28px 48px; }
#app-screen[data-view="conversations"] .workspace { display: none; }
#app-screen:not([data-view="conversations"]) .sidebar-search,
#app-screen:not([data-view="conversations"]) .sidebar-scroll,
#app-screen:not([data-view="conversations"]) .chat-panel,
#app-screen:not([data-view="conversations"]) #info-panel,
#app-screen:not([data-view="conversations"]) #work-insights { display: none !important; }
/* S04 D28: staff have their own inbox (Hội thoại); their other pages keep the workspace layout. */
body.role-user #app-screen:not([data-view="conversations"]) .workspace { display: block; }
body.role-user .sidebar-tools { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.page-head h2 { margin: 0 0 4px; font-size: 26px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.dash-card, .panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default, var(--dash-border));
  border-radius: 12px;
  padding: 16px;
  box-shadow: none;
}
.dash-card span { color: #667085; font-size: 13px; }
.dash-card strong { display: block; margin-top: 6px; font-size: 26px; }
.panel { margin-top: 16px; }
.panel h3 { margin: 0 0 10px; font-size: 16px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-surface); border-radius: 12px; overflow: hidden; color: var(--text-primary); }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-subtle, #eef0f4); vertical-align: middle; font-size: 14px; color: var(--text-primary); }
.data-table th { color: var(--text-muted); font-size: 12px; font-weight: 700; background: var(--bg-surface-muted); }
.table-wrap { overflow-x: auto; background: var(--bg-surface); border: 1px solid var(--border-default, #e6e8ee); border-radius: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select, .drawer input, .drawer select, .staff-form input, .staff-form select {
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font: inherit;
  background: var(--bg-surface); color: var(--text-primary);
}
.badge { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: var(--bg-surface-muted); color: var(--text-secondary); }
.badge-connected { background: var(--success-soft); color: var(--success); }
.badge-disconnected, .badge-inactive { background: var(--bg-surface-muted); color: var(--text-muted); }
.badge-error { background: var(--danger-soft); color: var(--danger); }
.badge-pending, .badge-connecting { background: var(--warning-soft); color: var(--warning); }
.badge-duplicate_connection { background: var(--warning-soft); color: var(--warning); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions button, .page-head button, .empty-state button, #confirm-ok {
  border: 0; border-radius: 8px; background: #0b57d0; color: #fff; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer;
}
.row-actions button.ghost, .link-btn { background: #eef2f6; color: #243044; }
.empty-state { padding: 48px 20px; text-align: center; }
.empty-state h3 { margin-bottom: 8px; }
.drawer {
  margin-top: 16px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 12px; padding: 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px;
}
.drawer h3, .drawer .full { grid-column: 1 / -1; }
.people-page { width: 100%; max-width: 1400px; }
.people-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.people-toolbar .seg-nav { margin-bottom: 0; }
#personnel-actions button, #user-save, #dept-save, .empty-state button {
  border: 0; border-radius: 8px; background: var(--primary); color: var(--text-inverse, #fff); padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
#personnel-actions button:focus-visible, .menu-btn:focus-visible, .person-row:focus-visible, .dept-row:focus-visible, .people-foot button:focus-visible, .people-panel input:focus-visible, .people-panel select:focus-visible {
  outline: 2px solid var(--accent, var(--primary)); outline-offset: 2px;
}
.people-filters { align-items: center; }
.people-filters input, .people-filters select {
  flex: 0 1 160px; min-width: 128px;
  background: var(--bg-surface-muted); color: var(--text-primary);
}
.people-filters input { flex: 1 1 220px; min-width: 180px; }
.people-filters select.is-on { border-color: var(--primary); background: var(--primary-soft); }
#user-filter-clear { border: 0; border-radius: 8px; background: transparent; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.people-card { background: var(--bg-surface); border: 1px solid var(--border-default, var(--border)); border-radius: var(--radius); box-shadow: none; overflow: hidden; container-type: inline-size; container-name: people; }
.person-head, .person-row, .dept-row { display: grid; align-items: center; column-gap: 16px; }
.person-head, .person-row { grid-template-columns: minmax(180px, 1.7fr) 108px minmax(100px, .9fr) minmax(140px, 1.2fr) 132px 48px; }
.person-head { padding: 10px 16px; color: var(--muted); font-size: 12px; font-weight: 700; background: var(--surface-2); }
.person-row, .dept-row { min-height: 64px; padding: 8px 12px 8px 16px; background: transparent; border: 0; border-top: 1px solid var(--border); width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.person-row:hover, .dept-row:hover { background: var(--surface-hover); }
.person-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-who strong, .dept-copy strong { display: block; font-size: 14px; font-weight: 600; }
.person-secondary, .dept-copy span, .zalo-cell span { display: block; color: var(--muted); font-size: 12px; }
.person-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.person-role, .person-dept, .person-status { font-size: 14px; }
.person-status { color: var(--success); font-weight: 600; }
.person-status.is-off { color: var(--text-muted); font-weight: 500; }
.role-badge {
  display: inline-flex; align-items: center; width: fit-content;
  border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; line-height: 1.3;
  background: var(--bg-surface-muted); color: var(--text-secondary);
}
.role-badge.role-admin { background: var(--info-soft); color: var(--info); }
.role-badge.role-manager { background: var(--accent-soft); color: var(--dash-primary, var(--accent)); }
.role-badge.role-user { background: var(--bg-surface-muted); color: var(--text-secondary); }
.zalo-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.zalo-cell strong, .zalo-assign-chip {
  display: inline-flex; align-items: center; max-width: 100%;
  background: var(--accent-soft); color: var(--dash-primary, var(--accent));
  border: 0; cursor: pointer; font: inherit;
  border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zalo-cell span { display: block; color: var(--text-muted); font-size: 11.5px; }
.person-zalo > .dash-muted { color: var(--text-muted); font-size: 12.5px; }
.check-list .zalo-account-name {
  font-weight: 700; color: var(--dash-primary, var(--accent));
}
.check-list label:has(.grant-zalo:checked) {
  background: var(--accent-soft); border-radius: 8px; padding: 6px 8px; margin: 0 -8px;
}
.menu-btn { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.menu-btn:hover { background: var(--surface-2); }
.dept-row { grid-template-columns: 36px minmax(0, 1fr) 48px; }
.dept-copy { min-width: 0; }
.people-skel { height: 64px; margin: 0; border-top: 1px solid var(--border); background: linear-gradient(90deg, transparent, var(--surface-hover), transparent); background-size: 240px 100%; animation: people-shimmer 1.1s ease-in-out infinite; }
@keyframes people-shimmer { from { background-position: -240px 0; } to { background-position: 480px 0; } }
.people-backdrop { position: fixed; inset: 0; z-index: 40; background: var(--shell-overlay, var(--dash-overlay)); display: flex; justify-content: flex-end; }
.people-panel { width: min(600px, 90vw); height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--dash-drawer-shadow, var(--shadow-md)); }
.people-panel h3 { margin: 0; font-size: 22px; }
.people-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 28px 8px; }
.people-scroll { flex: 1; overflow: auto; padding: 8px 28px 24px; }
.people-foot { flex-shrink: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 28px; border-top: 1px solid var(--border-default, var(--border)); background: var(--bg-surface); }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.people-grid .full, .people-panel .field { margin-top: 8px; }
.people-panel .field label, .section-label { display: block; }
.section-label { margin: 22px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.people-panel input, .people-panel select { width: 100%; border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font: inherit; background: var(--bg-surface-muted); color: var(--text-primary); }
html[data-theme="light"] .people-panel input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] .people-panel select,
html[data-theme="light"] .people-filters input,
html[data-theme="light"] .people-filters select {
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  color-scheme: light;
}
html[data-theme="dark"] .people-panel input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .people-panel select,
html[data-theme="dark"] .people-filters input,
html[data-theme="dark"] .people-filters select {
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  color-scheme: dark;
}
.field-error { min-height: 16px; margin: 4px 0 0; color: var(--danger); font-size: 12px; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.check-list label { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.suggest, .summary-box, .danger-zone { margin-top: 16px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.danger-zone { background: transparent; border-top: 1px solid var(--border); border-radius: 0; padding: 8px 0 0; }
.summary-box ul { margin: 8px 0 0; padding-left: 18px; }
.role-quiet { color: var(--muted); font-size: 13px; font-weight: 600; }
.people-foot .ghost, .quiet-actions .ghost, .member-lines .ghost, .page-head button.ghost {
  border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer;
}
.people-foot button:disabled { opacity: .6; cursor: progress; }
.quiet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ghost.danger, .people-menu button.danger { color: var(--danger); }
.member-lines { display: flex; flex-direction: column; gap: 6px; }
.member-lines div { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; }
.people-menu { position: fixed; z-index: 80; min-width: 196px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.people-menu button { background: transparent; color: var(--text); border: 0; text-align: left; padding: 8px 10px; font: inherit; cursor: pointer; border-radius: 8px; }
.people-menu button:hover, .people-menu button:focus-visible { background: var(--surface-hover); outline: none; }
@container people (max-width: 860px) {
  .person-head { display: none; }
  .person-row { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "who menu" "role dept" "zalo status"; row-gap: 2px; padding-top: 12px; padding-bottom: 12px; }
  .person-who { grid-area: who; }
  .person-menu { grid-area: menu; }
  .person-role { grid-area: role; }
  .person-dept { grid-area: dept; }
  .person-zalo { grid-area: zalo; }
  .person-status { grid-area: status; }
}
@media (max-width: 720px) {
  .people-grid { grid-template-columns: 1fr; }
  .people-toolbar { align-items: stretch; flex-direction: column; }
}
.quiet-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.quiet-row span { background: var(--bg-surface-muted); border: 1px dashed var(--border-default); border-radius: 8px; padding: 8px 10px; color: var(--text-muted); font-size: 13px; }
.onboard { padding: 36px; text-align: center; }
.onboard button { margin-top: 12px; }
@media (max-width: 1100px) {
  .workspace { padding: 16px; }
}
.account-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.account-overview { display: none; flex: 1; min-height: 0; overflow: auto; padding: 28px 32px 48px; }
#app-screen[data-inbox="overview"] .account-overview { display: block; }
#app-screen[data-inbox="overview"] #chat-empty,
#app-screen[data-inbox="overview"] #chat-active { display: none !important; }
#app-screen[data-inbox="recent"] .sidebar-section .conv-toolbar,
#app-screen[data-inbox="overview"] .sidebar-section .conv-toolbar,
#app-screen[data-inbox="recent"] #sync-btn,
#app-screen[data-inbox="overview"] #sync-btn,
#app-screen[data-inbox="recent"] #mark-all-read-btn,
#app-screen[data-inbox="overview"] #mark-all-read-btn { display: none !important; }
#app-screen[data-inbox="account"] .conv-account { display: none; }
#app-screen[data-inbox="overview"] #conversation-list,
#app-screen[data-view="overview"][data-account="all"] .conv-section { display: none; }
.conv-all-hint { margin: 8px 12px 16px; color: var(--muted); font-size: 13px; }
.conv-account-badge { display: inline-flex; margin-top: 2px; padding: 1px 6px; border-radius: 999px; background: var(--primary-soft, #e8f1ff); color: var(--primary); font-size: 11px; font-weight: 650; }
.inbox-overview { max-width: 920px; }
.inbox-overview h2 { margin: 0 0 4px; }
.inbox-overview h3 { margin: 8px 0; font-size: 15px; }
.inbox-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.inbox-account-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.inbox-account-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.inbox-account-card button { margin-top: 12px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.inbox-recent-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--border); background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.inbox-recent-row span span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ops-dash { max-width: 1080px; display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.ops-dash h2 { margin: 0; font-size: 26px; }
.ops-dash h3 { margin: 0; font-size: 15px; }
.ops-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ops-head p { margin: 4px 0 0; }
.ops-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ops-kpi, .ops-card { background: var(--bg-surface); border: 1px solid var(--border-default, var(--border)); border-radius: var(--radius); color: var(--text-primary); }
button.ops-kpi { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ops-kpi span, .ops-kpi em { color: var(--muted); font-size: 12px; font-style: normal; }
.ops-kpi strong { font-size: 24px; letter-spacing: -0.03em; }
.ops-kpi.active { border-color: var(--primary); }
.ops-threads { display: flex; gap: 6px; }
.ops-thread { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.ops-thread.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ops-note { margin: 0; color: var(--muted); font-size: 12px; }
.ops-health { font-style: normal; font-size: 12px; font-weight: 600; }
.ops-health-ok { color: #12a150; }
.ops-health-busy { color: #b54708; }
.ops-health-attention { color: #b42318; }
.ops-secondary { opacity: .96; }
.ops-mid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); gap: 12px; align-items: start; }
.ops-card { padding: 14px 16px; }
.ops-card-head, .ops-card h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ops-metric select { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 12px; }
.ops-dept, .ops-account, .ops-recent-row, .ops-attention-row, .ops-back { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ops-dept { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 4px; border-top: 1px solid var(--border); }
.ops-dept-name { font-weight: 700; }
.ops-dept-meta, .ops-dept-stat, .ops-account-body span, .ops-recent-body span { color: var(--muted); font-size: 12px; }
.ops-dept-stat { grid-column: 1 / -1; }
.ops-bar { grid-column: 1; height: 6px; border-radius: 99px; background: #eef2f6; overflow: hidden; margin-top: 6px; }
.ops-bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.ops-dept-num { grid-row: 1 / span 3; align-self: center; font-weight: 700; }
.ops-accounts, .ops-recent, .ops-attention { display: flex; flex-direction: column; }
.ops-account, .ops-recent-row, .ops-attention-row { display: flex; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--border); }
.ops-account-body, .ops-recent-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ops-account-body strong, .ops-recent-body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-status-connected { color: #12a150; }
.ops-status-warn { color: #b54708; }
.ops-status-off, .ops-status-pending { color: #98a2b3; }
.ops-go { color: var(--muted); font-size: 18px; }
.ops-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e8eef8; color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.ops-recent-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ops-recent-side b { background: var(--primary); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; }
.ops-back { width: auto; color: var(--primary); font-weight: 650; padding: 0 0 6px; }
.ops-attention-row { justify-content: space-between; }
.product-dash { max-width: 920px; display: flex; flex-direction: column; gap: 16px; }
.dash-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: #5b6b88; }
.dash-hero {
  background: linear-gradient(135deg, #eef4ff 0%, #fff 52%, #f6f3ff 100%);
  border: 1px solid #e3eaf8;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}
.dash-block {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 18px 20px 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.dash-hero p { margin: 0; font-size: 18px; line-height: 1.5; color: #172033; }
#dash-hero-action { margin-top: 12px; }
.dash-block h3 { margin: 0 0 12px; font-size: 15px; }
.dash-block h4 { margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: #667085; }
.dash-block h4:first-child { margin-top: 0; }
.dash-block p, .dash-block li { margin: 0; padding: 9px 2px; border-bottom: 1px solid #eef1f6; font-size: 14px; line-height: 1.45; }
.dash-block p:last-child, .dash-block li:last-child { border-bottom: 0; }
.dash-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.dash-metrics div { background: #f6f8fc; border-radius: 12px; padding: 12px 14px; }
.dash-metrics dt { color: #667085; font-size: 12px; }
.dash-metrics dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: #172033; }
#add-account-btn { display: none !important; }
@media (max-width: 720px) {
  .dash-metrics { grid-template-columns: 1fr 1fr; }
}
@container (max-width: 860px) {
  .ops-mid, .ops-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 1439px) {
  .ops-mid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ops-kpis { grid-template-columns: 1fr 1fr; }
}
.connection-timeline { min-width: 0; }
.connection-timeline ol { list-style: none; margin: 12px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.connection-timeline li { display: flex; gap: 10px; padding: 8px 0; align-items: baseline; }
.connection-timeline time { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.connection-timeline details { min-width: 0; overflow-wrap: anywhere; }
.connection-timeline summary { cursor: pointer; }
.connection-timeline details p { font-size: 12px; }

/* PO 10/11: the staff Thông báo page on a phone — the rail as a row of labelled tabs (like Báo cáo / Nhân sự),
   so the page shows its content instead of the full-screen menu. Desktop: design-shell.js collapses the empty pane. */
@media (max-width: 760px) {
  #app-screen[data-view="alerts"] { flex-direction: column; height: 100dvh; }
  #app-screen[data-view="alerts"] > .sidebar { width: 100%; min-width: 0; height: auto; flex: none; border: 0; }
  #app-screen[data-view="alerts"] .sidebar-hero { padding: 0; background: var(--ux-surface); }
  #app-screen[data-view="alerts"] .sidebar-hero > :not(#shell-nav),
  #app-screen[data-view="alerts"] .sidebar-scroll { display: none; }
  #app-screen[data-view="alerts"] #shell-nav { display: flex; flex-flow: row nowrap; align-items: center; gap: 12px; height: 44px; padding: 0 14px; margin: 0; overflow-x: auto; scrollbar-width: none; background: var(--ux-surface); border-bottom: 1px solid var(--ux-border); }
  #app-screen[data-view="alerts"] #shell-nav > :not(button[data-view], #rail-utils) { display: none; }
  #app-screen[data-view="alerts"] #rail-utils { display: contents; }
  #app-screen[data-view="alerts"] #rail-utils > button { width: 34px; height: 34px; padding: 7px; flex: none; display: grid; place-items: center; position: relative; background: transparent; color: var(--ux-text-2); border: 0; box-shadow: none; }
  #app-screen[data-view="alerts"] #shell-nav button[data-view] { width: auto; height: 44px; padding: 0 2px; flex: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--ux-text-2); font-size: 12px; font-weight: 500; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; }
  #app-screen[data-view="alerts"] #shell-nav button[data-view] .nav-icon { display: none; }
  #app-screen[data-view="alerts"] #shell-nav button[data-view] span { position: static; width: auto; height: auto; clip-path: none; overflow: visible; white-space: nowrap; }
  #app-screen[data-view="alerts"] #shell-nav button.active::before { display: none; }
  #app-screen[data-view="alerts"] .workspace { flex: 1; min-height: 0; display: block; padding: 16px; }
}
