/* Bang thong tin gon, nut cong cu sidebar, cot Tro ly AI */

/* ---- Bang thong tin: gon hon ---- */
.info-extras { gap: 8px; padding-bottom: 6px; }
.info-group-actions { flex-wrap: nowrap; gap: 6px; }
.info-group-actions .info-action-btn, .info-extras .info-action-btn {
  padding: 4px 10px; font-size: 12px; border-radius: 999px; white-space: nowrap;
}
.info-notes { padding: 2px 16px 10px; }
.note-head { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; cursor: help; display: flex; align-items: center; gap: 5px; }
.note-count:not(:empty) { background: #f7b503; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 10.5px; }
.note-form { position: relative; display: block; }
.note-form textarea {
  display: block; width: 100%; box-sizing: border-box; resize: none; overflow: hidden;
  min-height: 34px; padding: 7px 36px 7px 10px; font-size: 12.5px; line-height: 1.4; border-radius: 10px;
}
.note-add {
  position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 8px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted);
}
.note-add:hover { background: var(--primary); color: #fff; }
.note-list { margin-top: 6px; gap: 5px; }
.note-list:empty { display: none; }
.note-item { padding: 6px 9px; }
.note-text { font-size: 12.5px; }

/* ---- Nut cong cu sidebar: vua khung ---- */
.sidebar-tools { gap: 6px; }
.tool-btn { gap: 5px; padding: 8px 6px; font-size: 12px; overflow: hidden; }
.tool-btn svg { flex-shrink: 0; width: 15px; height: 15px; }
.tool-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---- Tro ly AI: cot ben phai trong bo cuc (khong che tin nhan) ---- */
@media (min-width: 1001px) {
  .ai-panel {
    position: relative; inset: auto; z-index: auto; height: 100%;
    width: 400px; flex-shrink: 0; box-shadow: none;
  }
}
@media (min-width: 1001px) and (max-width: 1250px) {
  .ai-panel { width: 340px; }
}
/* Khong bao gio cat chu: thieu cho thi nut tu xuong hang */
.sidebar-tools { flex-wrap: wrap; }
.tool-btn { flex: 1 1 auto; min-width: fit-content; padding: 8px 10px; }
.tool-btn span { overflow: visible; }

/* ---- Dai canh bao tai khoan mat ket noi ---- */
.account-alert-bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; flex-shrink: 0;
  background: var(--ux-danger-soft); border-bottom: 1px solid var(--ux-border); color: var(--ux-danger); font-size: 13px;
}
.account-alert-bar .aab-icon { font-size: 16px; }
.account-alert-bar .aab-text { flex: 1; min-width: 0; font-weight: 600; }
.account-alert-bar .aab-hint { font-size: 12px; opacity: .8; }
.account-alert-bar button {
  border: none; border-radius: var(--ux-radius-sm); padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: 12.5px;
  background: var(--ux-danger); color: var(--ux-on-primary); flex-shrink: 0;
}
