/* =====================================================================
 *  FOOTER — "Compact Enterprise Bar"
 *  HTML + CSS thuần, tương thích Bootstrap 5 (không Tailwind).
 *  Nạp SAU cv.css / sidebar-compact.css; mọi luật gắn tiền tố "footer.cv-foot"
 *  để thắng luật cũ trong cv.css mà không cần !important.
 * ===================================================================== */
footer.cv-foot {
  --ft-card: #ffffff; --ft-line: #e2e8f0; --ft-ink: #0f172a; --ft-text: #475569; --ft-faint: #94a3b8;
  --ft-ic-bg: #f8fafc; --ft-ic-line: #eef2f7; --ft-ic: #64748b;
  --ft-btn-bg: #fef2f2; --ft-btn-line: #fecaca; --ft-btn-ink: #dc2626;
}
[data-theme="dark"] footer.cv-foot {
  --ft-card: #111827; --ft-line: rgba(148,163,184,.22); --ft-ink: #f1f5f9; --ft-text: #cbd5e1; --ft-faint: #94a3b8;
  --ft-ic-bg: rgba(255,255,255,.05); --ft-ic-line: rgba(255,255,255,.08); --ft-ic: #94a3b8;
  --ft-btn-bg: rgba(239,68,68,.12); --ft-btn-line: rgba(239,68,68,.35); --ft-btn-ink: #fca5a5;
}

/* 1) Khung trắng + 2 cột 1.35fr / 1fr */
footer.cv-foot .cv-foot-card { container-type: inline-size; background: var(--ft-card); border: 1px solid var(--ft-line); border-radius: 10px; padding: 16px 20px; box-shadow: none; }
footer.cv-foot .cv-foot-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
footer.cv-foot .cv-foot-col { gap: 6px; padding: 0 24px 0 0; border-right: 1px solid var(--ft-line); }
footer.cv-foot .cv-foot-support { padding: 0 0 0 24px; border: 0; }

footer.cv-foot .cv-foot-k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ft-faint); line-height: 1.4; }
footer.cv-foot .cv-foot-name { min-width: 0; margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--ft-ink); white-space: nowrap; }   /* 1 dòng duy nhất */
footer.cv-foot .cv-foot-name.is-person { font-weight: 700; }

footer.cv-foot .cv-foot-list { margin: 2px 0 0; gap: 6px; }
footer.cv-foot .cv-foot-list li { gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ft-text); }
footer.cv-foot .cv-foot-list b { color: var(--ft-ink); font-weight: 600; }
footer.cv-foot .cv-foot-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--ft-ic-bg); border: 1px solid var(--ft-ic-line); color: var(--ft-ic); }
footer.cv-foot .cv-foot-ic .cv-svg, footer.cv-foot .cv-foot-ic svg { width: 14px; height: 14px; }

/* 2) Cột phải: tiêu đề + nút cùng hàng; SĐT & Email cùng hàng */
footer.cv-foot .cv-foot-headrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
footer.cv-foot .cv-foot-contact-btn {
  align-self: auto; margin: 0; flex: none; padding: 4px 10px; gap: 5px; border-radius: 6px;
  background: var(--ft-btn-bg); border: 1px solid var(--ft-btn-line); color: var(--ft-btn-ink); font-size: 11.5px; font-weight: 500; line-height: 1.4;
}
footer.cv-foot .cv-foot-contact-btn:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
footer.cv-foot .cv-foot-contact-ic .cv-svg { width: 13px; height: 13px; }
footer.cv-foot .cv-foot-inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
footer.cv-foot .cv-foot-inline li { gap: 6px; }
footer.cv-foot .cv-foot-inline li { white-space: nowrap; }

/* 3) Dòng bản quyền / phiên bản — chừa chỗ cho nút nổi "Hỗ trợ" */
footer.cv-foot .cv-foot-bottom {
  margin-top: 10px; padding: 6px 135px 6px 4px; border-top: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 4px 24px; flex-wrap: wrap;
  font-size: 11.5px; line-height: 1.4; color: var(--ft-faint);
}
footer.cv-foot .cv-foot-bottom p { margin: 0; }

/* Màn hình hẹp: cho phép xuống dòng, xếp 1 cột (không thể giữ 1 dòng trên điện thoại) */
/* Chỉ cho xuống dòng khi khung quá hẹp để chứa tên trên 1 dòng (đo theo bề rộng khung, không theo màn hình) */
@container (max-width: 1000px) {
  footer.cv-foot .cv-foot-name { white-space: normal; }
}
@media (max-width: 900px) {
  footer.cv-foot .cv-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  footer.cv-foot .cv-foot-col { padding: 0; border-right: 0; }
  footer.cv-foot .cv-foot-support { padding: 14px 0 0; border-top: 1px solid var(--ft-line); }
  footer.cv-foot .cv-foot-bottom { padding-right: 4px; }
  footer.cv-foot .cv-foot-inline li { white-space: normal; overflow-wrap: anywhere; }
}
