/* ETI Tracking — giao diện phong cách Notion */
:root {
  /* Nhận diện ETI: lấy đúng màu từ logo */
  --eti-blue: #03529d;
  --eti-cyan: #08bfd1;
  --eti-navy: #0a3580;
  --eti-tint: #eef4fb;
  --eti-cyan-tint: #e6f8fb;
  --text: #1b2433;
  --text-2: #3f4a5c;
  --muted: #66758a;
  --faint: #9aa5b5;
  --border: #e3e8ef;
  --border-2: #d3dbe6;
  --bg: #ffffff;
  --bg-side: #f3f6fa;
  --hover: rgba(3, 82, 157, 0.05);
  --hover-2: rgba(3, 82, 157, 0.09);
  --accent: #03529d;
  --accent-hover: #023f7a;
  --accent-soft: rgba(3, 82, 157, 0.12);
  --green-text: #448361;
  --red-text: #d44c47;
  --orange-text: #d9730d;
  --code-red: #eb5757;
  --code-bg: rgba(135, 131, 120, 0.15);
  --shadow: 0 0 0 1px rgba(15, 15, 15, 0.05), 0 3px 6px rgba(15, 15, 15, 0.1), 0 9px 24px rgba(15, 15, 15, 0.2);
  --radius: 6px;
  --sidebar-w: 248px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', 'Arial Narrow', sans-serif;
  --mono: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Màu tag giống Notion */
  --tag-default-bg: rgba(206, 205, 202, 0.5); --tag-default-fg: #32302c;
  --tag-gray-bg: #e3e2e0;   --tag-gray-fg: #32302c;
  --tag-brown-bg: #eee0da;  --tag-brown-fg: #442a1e;
  --tag-orange-bg: #fadec9; --tag-orange-fg: #49290e;
  --tag-yellow-bg: #fdecc8; --tag-yellow-fg: #402c1b;
  --tag-green-bg: #dbeddb;  --tag-green-fg: #1c3829;
  --tag-blue-bg: #d3e5ef;   --tag-blue-fg: #183347;
  --tag-purple-bg: #e8deee; --tag-purple-fg: #412454;
  --tag-pink-bg: #f5e0e9;   --tag-pink-fg: #4c2337;
  --tag-red-bg: #ffe2dd;    --tag-red-fg: #5d1715;

  --av-gray: #9b9a97; --av-brown: #a27763; --av-orange: #d9730d; --av-yellow: #cb912f; --av-green: #448361;
  --av-blue: #337ea9; --av-purple: #9065b0; --av-pink: #c14c8a; --av-red: #d44c47;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- nút & ô nhập ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; border-radius: var(--radius);
  border: 1px solid var(--border-2); background: #fff; cursor: pointer;
  white-space: nowrap; font-size: 14px; color: var(--text);
  transition: background .12s;
}
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--red-text); border-color: rgba(212, 76, 71, .35); }
.btn.danger:hover { background: rgba(212, 76, 71, .08); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 13px; }
.btn.icon-only { width: 28px; padding: 0; justify-content: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 0; background: transparent; border-radius: 4px;
  color: var(--muted); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--hover-2); color: var(--text); }
.ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.ic svg, svg.ic { width: 100%; height: 100%; }

.input, .select, .textarea {
  width: 100%; height: 32px; padding: 4px 10px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: rgba(242, 241, 238, 0.6); outline: none;
}
.textarea { height: auto; min-height: 72px; resize: vertical; padding: 8px 10px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: #fff; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > label { font-size: 12px; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.err-text { color: var(--red-text); font-size: 13px; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- tag (select / multi-select) ---------- */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: 3px; font-size: 13px; line-height: 20px; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  background: var(--tag-default-bg); color: var(--tag-default-fg);
}
.tags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.c-default { background: var(--tag-default-bg); color: var(--tag-default-fg); }
.c-gray { background: var(--tag-gray-bg); color: var(--tag-gray-fg); }
.c-brown { background: var(--tag-brown-bg); color: var(--tag-brown-fg); }
.c-orange { background: var(--tag-orange-bg); color: var(--tag-orange-fg); }
.c-yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow-fg); }
.c-green { background: var(--tag-green-bg); color: var(--tag-green-fg); }
.c-blue { background: var(--tag-blue-bg); color: var(--tag-blue-fg); }
.c-purple { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.c-pink { background: var(--tag-pink-bg); color: var(--tag-pink-fg); }
.c-red { background: var(--tag-red-bg); color: var(--tag-red-fg); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.c-default { background: #c8c7c4; }

/* ---------- avatar ---------- */
.avatar {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: -.2px; user-select: none;
  background: var(--av-gray);
}
.avatar.lg { width: 28px; height: 28px; font-size: 12.5px; }
.avatar.inactive { opacity: .45; }
.av-gray { background: var(--av-gray); } .av-brown { background: var(--av-brown); } .av-orange { background: var(--av-orange); }
.av-yellow { background: var(--av-yellow); } .av-green { background: var(--av-green); } .av-blue { background: var(--av-blue); }
.av-purple { background: var(--av-purple); } .av-pink { background: var(--av-pink); } .av-red { background: var(--av-red); }
.person { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.person > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.people { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }

/* ---------- checkbox ---------- */
.cbx {
  width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid #a3a29e;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: #fff; flex: none; padding: 0; color: #fff;
}
.cbx.on { background: var(--accent); border-color: var(--accent); }
.cbx:disabled { cursor: default; }
.cbx svg { width: 12px; height: 12px; }

/* ---------- khung ứng dụng ---------- */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--bg-side); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.sb-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.sb-logo {
  width: 24px; height: 24px; border-radius: 5px; background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none;
}
.sb-title { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.sb-section { font-size: 12px; font-weight: 600; color: var(--muted); padding: 14px 8px 4px; display: flex; align-items: center; }
.sb-item {
  display: flex; align-items: center; gap: 8px; padding: 0 8px; height: 30px; border-radius: var(--radius);
  color: var(--text-2); text-decoration: none; cursor: pointer; font-size: 14px; white-space: nowrap; overflow: hidden;
  border: 0; background: transparent; width: 100%; text-align: left;
}
.sb-item:hover { background: var(--hover-2); }
.sb-item.active { background: var(--hover-2); color: var(--text); font-weight: 500; }
.sb-item .ic { color: var(--muted); }
.sb-item .emoji { width: 18px; text-align: center; flex: none; }
.sb-item .label { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sb-item .count { font-size: 12px; color: var(--muted); }
.sb-user { border-top: 1px solid var(--border); padding: 8px; display: flex; align-items: center; gap: 8px; }
.sb-user .who { flex: 1; min-width: 0; line-height: 1.25; }
.sb-user .who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .who span { font-size: 12px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.topbar { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 14px; min-width: 0; color: var(--text-2); }
.crumbs a { text-decoration: none; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a:hover { background: var(--hover); }
.crumbs .sep { color: var(--faint); }
.menu-btn { display: none; }
.page { flex: 1; overflow: auto; }
.page-inner { padding: 24px 56px 80px; max-width: 1400px; }
.page-inner.narrow { max-width: 900px; }
.page-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 8px 0 12px; display: flex; align-items: center; gap: 10px; }
.page-sub { color: var(--muted); margin: -4px 0 20px; }
.section-title { font-size: 20px; font-weight: 600; margin: 32px 0 8px; }
.h-green { color: var(--green-text); font-size: 24px; font-weight: 700; margin: 36px 0 12px; letter-spacing: .2px; }

/* ---------- đăng nhập ---------- */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: var(--bg-side); padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; box-shadow: 0 8px 30px rgba(15, 15, 15, .06); }
.login-card .sb-logo { width: 40px; height: 40px; font-size: 18px; border-radius: 9px; margin-bottom: 16px; }
.login-card h1 { font-size: 22px; margin: 0 0 4px; }
.login-card p { margin: 0 0 20px; color: var(--muted); }
.login-card .btn { width: 100%; justify-content: center; height: 36px; margin-top: 4px; }
.alert { padding: 8px 12px; border-radius: var(--radius); background: #fdebec; color: #9f2f2d; font-size: 13px; margin-bottom: 12px; }
.alert.info { background: #e7f3f8; color: #1f4b63; }
.alert.ok { background: #edf3ec; color: #2b593f; }
.alert.warn { background: #fbf3db; color: #6f4c11; }

/* ---------- bảng kiểu Notion ---------- */
.toolbar { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; flex-wrap: wrap; }
.tabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; margin-bottom: -1px;
  border: 0; background: transparent; cursor: pointer; color: var(--muted); white-space: nowrap; border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 2px solid transparent; font-size: 14px;
}
.tab:hover { color: var(--text); background: var(--hover); }
.tab.active { color: var(--text); font-weight: 500; border-bottom-color: var(--text); }
.tools { display: flex; align-items: center; gap: 4px; padding: 4px 0; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 8px; top: 7px; color: var(--muted); }
.search-box input { height: 28px; padding: 0 8px 0 28px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; width: 160px; outline: none; }
.search-box input:focus, .search-box input:not(:placeholder-shown) { border-color: var(--border-2); background: #fff; }
.filter-chip { height: 26px; padding: 0 8px; border-radius: 13px; border: 1px solid var(--border-2); background: #fff; cursor: pointer; font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.filter-chip.on { background: var(--accent-soft); border-color: rgba(35, 131, 226, .4); color: #0b6bcb; }
.filter-chip:hover { background: var(--hover); }

.group-head { display: flex; align-items: center; gap: 8px; height: 40px; margin-top: 12px; font-weight: 500; }
.group-head .toggle { border: 0; background: transparent; cursor: pointer; padding: 2px; border-radius: 4px; display: inline-flex; color: var(--text); }
.group-head .toggle:hover { background: var(--hover-2); }
.group-head .toggle .ic { transition: transform .15s; }
.group-head .toggle.closed .ic { transform: rotate(-90deg); }
.group-head .cnt { color: var(--muted); font-weight: 400; }

.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.tbl { border-collapse: collapse; table-layout: fixed; min-width: 100%; }
.tbl th, .tbl td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: left; vertical-align: top; padding: 0; }
.tbl th:last-child, .tbl td:last-child { border-right: 0; }
.tbl th { height: 34px; font-weight: 400; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tbl th .th { display: flex; align-items: center; gap: 6px; padding: 0 8px; height: 34px; overflow: hidden; }
.tbl th .ic { color: var(--faint); }
.cell { min-height: 34px; padding: 6px 8px; cursor: pointer; overflow: hidden; word-break: break-word; }
.cell:hover { background: var(--hover); }
.cell.ro { cursor: default; }
.cell.ro:hover { background: transparent; }
.cell.center { display: flex; justify-content: center; padding-top: 9px; }
.tbl tr:hover .open-btn { opacity: 1; }
.title-cell { display: flex; align-items: flex-start; gap: 6px; font-weight: 500; }
.title-cell .page-ic { color: var(--muted); margin-top: 2px; }
.title-cell .t { flex: 1; min-width: 0; }
.title-cell .t a { text-decoration: none; }
.title-cell .t a:hover { text-decoration: underline; text-decoration-color: var(--border-2); }
.title-cell .meta { display: inline-flex; gap: 6px; color: var(--faint); font-weight: 400; font-size: 12px; margin-left: 6px; vertical-align: 1px; }
.title-cell .meta span { display: inline-flex; align-items: center; gap: 2px; }
.title-cell .meta .ic { width: 13px; height: 13px; }
.open-btn { opacity: 0; font-size: 12px; height: 22px; padding: 0 6px; border: 1px solid var(--border-2); border-radius: 4px; background: #fff; color: var(--muted); cursor: pointer; flex: none; }
.sub-toggle { border: 0; background: transparent; padding: 0; width: 16px; height: 18px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; flex: none; }
.sub-toggle .ic { width: 14px; height: 14px; transition: transform .15s; }
.sub-toggle.open .ic { transform: rotate(90deg); }
.tbl tr.done-row .title-cell .t { color: var(--muted); }
.new-row { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; color: var(--muted); cursor: pointer; border-bottom: 1px solid var(--border); }
.new-row:hover { background: var(--hover); }
.new-row input { border: 0; outline: none; flex: 1; height: 30px; background: transparent; color: var(--text); }
.count-row { text-align: center; font-size: 11px; letter-spacing: 1px; color: var(--faint); padding: 8px 0; text-transform: uppercase; }
.count-row b { color: var(--muted); font-size: 13px; letter-spacing: 0; margin-left: 4px; }
.day-left { display: flex; align-items: center; gap: 8px; }
.day-left .n { min-width: 34px; font-variant-numeric: tabular-nums; }
.day-left .n.late { color: var(--red-text); }
.day-left .n.soon { color: var(--orange-text); }
.day-left .bar { flex: none; width: 56px; height: 4px; border-radius: 2px; background: #e9e9e7; overflow: hidden; }
.day-left .bar i { display: block; height: 100%; background: var(--accent); }
.day-left .bar.late i { background: var(--red-text); }
.text-muted-cell { color: var(--text-2); white-space: pre-wrap; }

/* ---------- popover / modal / toast ---------- */
.pop {
  position: fixed; z-index: 1000; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 220px; max-width: min(360px, calc(100vw - 16px)); max-height: min(420px, calc(100vh - 16px)); overflow: auto; padding: 6px;
}
.pop-search { width: 100%; height: 30px; border: 1px solid var(--border-2); border-radius: 4px; padding: 0 8px; margin-bottom: 4px; outline: none; background: rgba(242, 241, 238, .6); }
.pop-item { display: flex; align-items: center; gap: 8px; padding: 4px 8px; min-height: 30px; border-radius: 4px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; }
.pop-item:hover, .pop-item.kb { background: var(--hover-2); }
.pop-item .check { margin-left: auto; color: var(--accent); }
.pop-label { font-size: 12px; color: var(--muted); padding: 6px 8px 2px; }
.pop-sep { height: 1px; background: var(--border); margin: 4px 0; }
.pop .date-grid { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 6px; }

.modal-back { position: fixed; inset: 0; background: rgba(15, 15, 15, .4); z-index: 900; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; overflow: auto; }
.modal { background: #fff; border-radius: 10px; box-shadow: var(--shadow); width: 100%; max-width: 460px; padding: 20px 22px; }
.modal h3 { margin: 0 0 14px; font-size: 17px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #2f2f2f; color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 13.5px; box-shadow: var(--shadow); pointer-events: auto; max-width: min(520px, calc(100vw - 32px)); }
.toast.error { background: #9f2f2d; }
.toast.ok { background: #2b593f; }

/* ---------- side peek (chi tiết task) ---------- */
.peek-back { position: fixed; inset: 0; z-index: 500; background: transparent; }
.peek {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); z-index: 600; background: #fff;
  box-shadow: -1px 0 0 var(--border), -12px 0 36px rgba(15, 15, 15, .1); display: flex; flex-direction: column;
  animation: slidein .16s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); } to { transform: none; } }
.peek-top { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 12px; flex: none; border-bottom: 1px solid transparent; }
.peek-body { flex: 1; overflow-y: auto; padding: 8px 48px 120px; }
.peek-title {
  width: 100%; border: 0; outline: none; resize: none; font-size: 30px; font-weight: 700; line-height: 1.25;
  padding: 4px 0; margin: 12px 0 8px; overflow: hidden; background: transparent;
}
.props { display: flex; flex-direction: column; margin-bottom: 8px; }
.prop { display: flex; align-items: flex-start; min-height: 34px; }
.prop-name { width: 160px; flex: none; display: flex; align-items: center; gap: 8px; color: var(--muted); height: 34px; padding: 0 6px; font-size: 14px; }
.prop-name .ic { color: var(--faint); }
.prop-val { flex: 1; min-width: 0; min-height: 34px; padding: 6px 8px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.prop-val:hover { background: var(--hover); }
.prop-val.ro { cursor: default; }
.prop-val.ro:hover { background: transparent; }
.prop-val .empty { color: var(--faint); }
.prop-val textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; padding: 0; min-height: 22px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.peek-section { margin-top: 28px; }
.peek-section h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--text); }
.peek-section h4 .cnt { color: var(--muted); font-weight: 400; }

/* ---------- trình soạn thảo nội dung ---------- */
.editor-wrap { position: relative; }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius); background: #fbfbfa; position: sticky; top: -8px; z-index: 5; }
.ed-toolbar button { height: 26px; min-width: 26px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.ed-toolbar button:hover { background: var(--hover-2); color: var(--text); }
.ed-toolbar .sep { width: 1px; background: var(--border); margin: 3px 4px; }
.ed-status { font-size: 12px; color: var(--muted); margin-left: auto; align-self: center; padding: 0 6px; }
.ed-status.err { color: var(--red-text); }
.editor { min-height: 140px; outline: none; padding: 12px 2px; line-height: 1.6; font-size: 15px; word-break: break-word; }
.editor:empty::before { content: attr(data-placeholder); color: var(--faint); }
.rich h1 { font-size: 26px; margin: 18px 0 6px; }
.rich h2 { font-size: 21px; margin: 16px 0 4px; }
.rich h3 { font-size: 17px; margin: 14px 0 4px; }
.rich p { margin: 2px 0; }
.rich ul, .rich ol { padding-left: 24px; margin: 2px 0; }
.rich blockquote { border-left: 3px solid var(--text); margin: 6px 0; padding: 2px 14px; }
.rich code { background: var(--code-bg); color: var(--code-red); padding: 1px 4px; border-radius: 3px; font-family: var(--mono); font-size: 85%; }
.rich pre { background: #f7f6f3; padding: 12px 14px; border-radius: 4px; overflow-x: auto; font-family: var(--mono); font-size: 13px; }
.rich pre code { background: none; color: inherit; padding: 0; }
.rich a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(55, 53, 47, .4); }
.rich img { display: block; max-width: 100%; border-radius: 4px; margin: 8px 0; cursor: zoom-in; }
.rich video { display: block; width: 100%; max-height: 480px; border-radius: 4px; margin: 8px 0; background: #000; }
.rich table { border-collapse: collapse; margin: 8px 0; width: 100%; }
.rich td, .rich th { border: 1px solid var(--border-2); padding: 6px 8px; vertical-align: top; }
.rich hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.rich ul[data-type="todo"] { list-style: none; padding-left: 2px; }
.rich ul[data-type="todo"] li { position: relative; padding-left: 26px; }
.rich ul[data-type="todo"] li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border: 1.5px solid #a3a29e; border-radius: 3px; background: #fff; cursor: pointer;
}
.rich ul[data-type="todo"] li[data-checked="true"] { color: var(--muted); text-decoration: line-through; }
.rich ul[data-type="todo"] li[data-checked="true"]::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--accent);
}
.uploading-ph { display: inline-block; padding: 6px 10px; border-radius: 4px; background: var(--hover); color: var(--muted); font-size: 13px; margin: 4px 0; }
.conflict { margin: 8px 0; }

/* ---------- file đính kèm ---------- */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.file-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; position: relative; display: flex; flex-direction: column; }
.file-card .thumb { height: 104px; background: #f7f6f3; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); }
.file-card .thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.file-card .thumb video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.file-card .thumb .ext { font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.file-card .info { padding: 6px 8px; font-size: 12px; line-height: 1.35; }
.file-card .info .n { font-weight: 500; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .acts { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.file-card:hover .acts { opacity: 1; }
.file-card .acts .icon-btn { background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--border); }
.dropzone { border: 1.5px dashed var(--border-2); border-radius: 8px; padding: 14px; text-align: center; color: var(--muted); cursor: pointer; font-size: 13px; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: #0b6bcb; }
.progress { height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.up-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.up-item .progress { flex: 1; max-width: 200px; }

/* ---------- bình luận ---------- */
.comments { display: flex; flex-direction: column; gap: 2px; }
.cmt { display: flex; gap: 10px; padding: 8px 6px; border-radius: 6px; }
.cmt:hover { background: rgba(55, 53, 47, .03); }
.cmt .body { flex: 1; min-width: 0; }
.cmt .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cmt .head b { font-weight: 600; }
.cmt .head time { font-size: 12px; color: var(--muted); }
.cmt .text { white-space: pre-wrap; word-break: break-word; margin-top: 1px; }
.cmt .text a { color: var(--accent); }
.cmt .deleted { color: var(--faint); font-style: italic; }
.cmt .cacts { display: flex; gap: 2px; opacity: 0; margin-left: auto; }
.cmt:hover .cacts { opacity: 1; }
.cmt-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cmt-files img { max-height: 180px; max-width: 260px; border-radius: 6px; border: 1px solid var(--border); cursor: zoom-in; display: block; }
.cmt-files video { max-height: 240px; max-width: 100%; border-radius: 6px; background: #000; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; text-decoration: none; background: #fff; max-width: 260px; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip:hover { background: var(--hover); }
.composer { display: flex; gap: 10px; padding: 10px 6px; border-top: 1px solid var(--border); margin-top: 6px; }
.composer .box { flex: 1; border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 8px; background: #fff; }
.composer .box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; min-height: 40px; max-height: 240px; background: transparent; }
.composer .cbar { display: flex; align-items: center; gap: 6px; }

/* ---------- hoạt động ---------- */
.feed { display: flex; flex-direction: column; }
.act { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(233, 233, 231, .6); font-size: 13.5px; }
.act .what { flex: 1; min-width: 0; line-height: 1.45; }
.act .what b { font-weight: 600; }
.act .what .tref { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-2); cursor: pointer; }
.act time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.act .chg { color: var(--muted); }

/* ---------- board (Eisenhower) ---------- */
.board-lane { margin-top: 10px; }
.lane-head { display: flex; align-items: center; gap: 8px; font-weight: 500; height: 34px; }
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.col { width: 270px; flex: none; border-radius: 8px; padding: 6px; background: rgba(247, 247, 245, .9); min-height: 80px; }
.col.over { background: var(--accent-soft); }
.col-head { display: flex; align-items: center; gap: 6px; padding: 4px 4px 8px; }
.col-head .cnt { color: var(--muted); font-size: 13px; }
.card { background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(15, 15, 15, .08), 0 2px 4px rgba(15, 15, 15, .06); padding: 8px 10px; margin-bottom: 8px; cursor: pointer; }
.card:hover { background: #fbfbfa; }
.card.dragging { opacity: .4; }
.card .ct { font-weight: 500; margin-bottom: 4px; word-break: break-word; }
.card .cn { color: var(--text-2); font-size: 13px; margin-bottom: 6px; white-space: pre-wrap; word-break: break-word; }
.card .cf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.col .add { width: 100%; text-align: left; border: 0; background: transparent; color: var(--muted); height: 30px; border-radius: 4px; cursor: pointer; padding: 0 6px; display: flex; align-items: center; gap: 6px; }
.col .add:hover { background: var(--hover-2); }

/* ---------- lịch ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.cal-head .m { font-size: 16px; font-weight: 600; min-width: 150px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal .dow { font-size: 12px; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: right; }
.cal .day { min-height: 118px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px; position: relative; }
.cal .day.other { background: #fbfbfa; }
.cal .day.other .dn { color: var(--faint); }
.cal .day .dn { text-align: right; font-size: 13px; padding: 2px 4px; color: var(--text-2); }
.cal .day.today .dn span { background: var(--red-text); color: #fff; border-radius: 50%; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; }
.cal .day .add-day { position: absolute; top: 4px; left: 4px; opacity: 0; }
.cal .day:hover .add-day { opacity: 1; }
.cal-chip { display: block; font-size: 12px; padding: 2px 6px; border-radius: 4px; margin-bottom: 3px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 0 0 1px rgba(15, 15, 15, .06); background: #fff; }
.cal-chip:hover { filter: brightness(.97); }
.cal-chip.done { text-decoration: line-through; opacity: .65; }
.cal-more { font-size: 12px; color: var(--muted); padding: 0 6px; cursor: pointer; }

/* ---------- timeline ---------- */
.tl-controls { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.tl { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.tl-left { width: 380px; flex: none; border-right: 1px solid var(--border); background: #fff; }
.tl-right { flex: 1; overflow-x: auto; position: relative; }
.tl-row { height: 36px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.tl-row.grp { background: #fbfbfa; font-weight: 500; }
.tl-left .tl-row { padding: 0 8px; gap: 8px; }
.tl-left .tl-row .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.tl-left .tl-row .tt:hover { text-decoration: underline; text-decoration-color: var(--border-2); }
.tl-left .tl-row .tp { width: 110px; flex: none; overflow: hidden; }
.tl-head { height: 44px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 2; }
.tl-left .tl-head { display: flex; align-items: flex-end; padding: 0 8px 6px; gap: 8px; color: var(--muted); font-size: 13px; }
.tl-days { display: flex; height: 44px; }
.tl-day { flex: none; border-left: 1px solid rgba(233, 233, 231, .7); font-size: 11px; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 4px; }
.tl-day.wk { background: rgba(247, 247, 245, .7); }
.tl-day.month { border-left-color: var(--border-2); }
.tl-day .mo { font-weight: 600; color: var(--text-2); font-size: 11px; }
.tl-grid { position: relative; }
.tl-grid .tl-row { position: relative; }
.tl-bar { position: absolute; top: 6px; height: 24px; border-radius: 5px; padding: 0 8px; font-size: 12.5px; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 1px rgba(15, 15, 15, .08); }
.tl-bar.done { opacity: .6; text-decoration: line-through; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red-text); opacity: .7; z-index: 1; pointer-events: none; }
.tl-nodate { color: var(--faint); font-size: 12px; padding-left: 10px; }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.kpi { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: #fff; }
.kpi .v { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.kpi.alert-kpi .v { color: var(--red-text); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.list-row:hover { background: var(--hover); }
.list-row .lt { flex: 1; min-width: 0; }
.list-row .lt b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .lt span { font-size: 12px; color: var(--muted); }
.simple-tbl { width: 100%; border-collapse: collapse; }
.simple-tbl th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.simple-tbl td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.simple-tbl td.num, .simple-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.simple-tbl tr.click { cursor: pointer; }
.simple-tbl tr.click:hover td { background: var(--hover); }
.pbar { height: 6px; background: #ececea; border-radius: 3px; overflow: hidden; min-width: 60px; }
.pbar i { display: block; height: 100%; background: var(--green-text); }

/* ---------- trang dự án ---------- */
.proj-icon { font-size: 54px; line-height: 1; cursor: pointer; border-radius: 6px; padding: 4px; display: inline-block; }
.proj-icon:hover { background: var(--hover); }
.title-input { font-size: 34px; font-weight: 700; border: 0; outline: none; width: 100%; padding: 2px 0; background: transparent; }
.doc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 22px 0 6px; }
.doc-col h5 { margin: 0 0 6px; }
.doc-col h5 code { color: var(--code-red); background: var(--code-bg); font-family: var(--mono); font-size: 14px; padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.doc-link { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 4px; font-size: 14px; }
.doc-link:hover { background: var(--hover); }
.doc-link a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--border-2); }
.doc-link .icon-btn { opacity: 0; width: 22px; height: 22px; }
.doc-link:hover .icon-btn { opacity: 1; }
.add-link { color: var(--faint); font-size: 13px; border: 0; background: transparent; cursor: pointer; padding: 3px 4px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
.add-link:hover { background: var(--hover); color: var(--muted); }

.empty-state { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty-state .big { font-size: 40px; margin-bottom: 8px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 3000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 24px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }
.card-box { border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.card-box h3 { margin: 0 0 10px; font-size: 16px; }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.kv > div:nth-child(odd) { color: var(--muted); }
.opt-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.opt-row .input { height: 30px; }
.opt-row .select { width: 120px; height: 30px; flex: none; }

/* ---------- di động ---------- */
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 800; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15, 15, 15, .3); z-index: 700; }
  .menu-btn { display: inline-flex; }
  .page-inner { padding: 12px 16px 80px; }
  .page-title { font-size: 26px; }
  .peek-body { padding: 8px 16px 120px; }
  .prop-name { width: 120px; }
  .doc-cols { grid-template-columns: 1fr; gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .tl-left { width: 200px; }
  .tl-left .tl-row .tp { display: none; }
  .kv { grid-template-columns: 1fr; }
  .search-box input { width: 120px; }
  .cal .day { min-height: 84px; }
  .cal-chip { font-size: 11px; padding: 1px 4px; }
}

/* ---------- Trang Tất cả dự án: biểu đồ thống kê ---------- */
:root {
  --st-done: #0ca30c;   /* trạng thái: đã xong */
  --st-open: #03529d;   /* đang làm = xanh ETI */
  --st-late: #d03b3b;   /* quá hạn */
  --viz-track: #efeeeb;
}
.viz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.viz-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; background: #fff; min-width: 0; }
.viz-card.wide { grid-column: 1 / -1; }
.viz-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.viz-head h3 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; min-width: 160px; }
.viz-sub { margin: 4px 0 12px; font-size: 12.5px; color: var(--muted); }
.viz-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.viz-legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 5px 0; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; text-decoration: none; font-size: 13.5px; }
.bar-name:hover { text-decoration: underline; text-decoration-color: var(--border-2); }
.bar-track { min-width: 0; }
.bar-val { font-size: 12.5px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-val .late-n { font-weight: 600; color: var(--text); }
.seg { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.seg i { display: block; height: 100%; min-width: 3px; cursor: default; }
.seg i:hover { filter: brightness(1.08); }
.seg.empty { width: 100%; background: var(--viz-track); }
.bar1 { height: 12px; border-radius: 0 4px 4px 0; background: var(--st-open); }
.bar1:hover { filter: brightness(1.08); }
.viz-tip { position: fixed; z-index: 2500; background: #2f2f2f; color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 6px; pointer-events: none; box-shadow: var(--shadow); max-width: 240px; }
.viz-tip .b { font-weight: 600; }
.eis-grid { display: grid; grid-template-columns: 92px 1fr 1fr; gap: 6px; align-items: stretch; }
.eis-ax { font-size: 12px; color: var(--muted); text-align: center; align-self: end; }
.eis-ax.side { text-align: right; align-self: center; padding-right: 4px; }
.eis-cell { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-height: 76px; background: #fbfbfa; }
.eis-cell b { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eis-cell span { font-size: 12px; color: var(--muted); }
.eis-cell em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text); }
.proj-chip { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sb-block + .sb-block { margin-top: 2px; }
@media (max-width: 860px) {
  .viz-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: minmax(90px, 130px) minmax(0, 1fr); }
  .bar-val { grid-column: 2; }
}


/* =====================================================================
   NHẬN DIỆN ETI — màu logo (#03529D xanh, #08BFD1 cyan), font Inter + Barlow Condensed
   ===================================================================== */
.page-title, .h-green, .section-title, .login-card h1, .modal h3, .viz-head h3, .card-box h3, .group-head, .lane-head {
  font-family: var(--font-display);
  letter-spacing: 0.2px;
}
.page-title { color: var(--eti-navy); font-weight: 700; font-size: 36px; }
.section-title { color: var(--eti-navy); font-weight: 700; font-size: 22px; }
.page-sub { color: var(--muted); }

/* Tiêu đề khối "THEO DÕI PROJECT" kèm hoạ tiết ô vuông của logo */
.h-green { color: var(--eti-blue); font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.h-green::before {
  content: ''; width: 20px; height: 20px; flex: none;
  background:
    linear-gradient(var(--eti-cyan), var(--eti-cyan)) 0 0 / 10px 10px no-repeat,
    linear-gradient(var(--eti-blue), var(--eti-blue)) 10px 10px / 10px 10px no-repeat;
}

/* Sidebar */
.sb-head { padding: 14px 12px 10px; }
.sb-brand { height: 22px; width: auto; display: block; flex: none; }
.sb-title { color: var(--eti-blue); font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
.sb-section { color: var(--eti-blue); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.6px; font-size: 13px; }
.sb-item.active { background: rgba(3, 82, 157, 0.1); color: var(--eti-blue); box-shadow: inset 3px 0 0 var(--eti-cyan); }
.sb-item.active .ic { color: var(--eti-blue); }

/* Tab view */
.tab.active { color: var(--eti-blue); border-bottom-color: var(--eti-cyan); }
.tab.active .ic { color: var(--eti-blue); }
.filter-chip.on { background: var(--eti-cyan-tint); border-color: rgba(8, 191, 209, 0.6); color: var(--eti-blue); }

/* Bảng: đầu bảng nền xanh nhạt, chữ xanh ETI, font Barlow Condensed */
.tbl-wrap { border: 1px solid var(--border); border-radius: 8px; }
.tbl th { background: var(--eti-tint); color: var(--eti-blue); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: 0.4px; text-transform: uppercase; }
.tbl th .ic { color: var(--eti-cyan); }
.tbl th, .tbl td { border-color: var(--border); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.simple-tbl th { background: var(--eti-tint); color: var(--eti-blue); font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.4px; text-transform: uppercase; }
.simple-tbl tr:first-child th:first-child { border-top-left-radius: 6px; }
.simple-tbl tr:first-child th:last-child { border-top-right-radius: 6px; }
.group-head { color: var(--eti-navy); font-size: 17px; font-weight: 700; }
.group-head .cnt { background: var(--eti-cyan-tint); color: var(--eti-blue); border-radius: 10px; padding: 0 8px; font-family: var(--font); font-size: 12px; font-weight: 600; }
.count-row b { color: var(--eti-blue); }
.title-cell .page-ic, .prop-name .ic { color: var(--eti-cyan); }
.new-row:hover { color: var(--eti-blue); }

/* 3 cột tài liệu dự án */
.doc-col h5 code {
  color: var(--eti-blue); background: var(--eti-cyan-tint); font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; font-size: 14.5px; border-left: 3px solid var(--eti-cyan); border-radius: 2px 4px 4px 2px; padding: 3px 10px;
}

/* Ô số liệu */
.kpi { border-top: 3px solid var(--eti-cyan); }
.kpi .v { color: var(--eti-navy); font-family: var(--font-display); font-size: 36px; font-weight: 700; }
.kpi.alert-kpi { border-top-color: var(--st-late); }
.kpi.alert-kpi .v { color: var(--st-late); }
.viz-head h3 { color: var(--eti-navy); font-size: 18px; font-weight: 700; }
.eis-cell b { font-family: var(--font-display); color: var(--eti-navy); font-size: 30px; }
.eis-ax { color: var(--eti-blue); font-weight: 600; }

/* Thanh tiến độ, nút, ô chọn */
.pbar i { background: linear-gradient(90deg, var(--eti-blue), var(--eti-cyan)); }
.day-left .bar i { background: var(--eti-cyan); }
.cbx.on { background: var(--eti-blue); border-color: var(--eti-blue); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--eti-blue); box-shadow: 0 0 0 3px rgba(8, 191, 209, 0.22); }
.composer .box:focus-within { border-color: var(--eti-blue); box-shadow: 0 0 0 3px rgba(8, 191, 209, 0.22); }
.rich a, .cmt .text a { color: var(--eti-blue); text-decoration-color: rgba(3, 82, 157, 0.4); }
.dropzone:hover, .dropzone.over { border-color: var(--eti-cyan); background: var(--eti-cyan-tint); color: var(--eti-blue); }
.progress i { background: var(--eti-cyan); }

/* Lịch, timeline, board */
.cal .dow { background: var(--eti-tint); color: var(--eti-blue); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.tl-left .tl-head, .tl-head.tl-days { background: var(--eti-tint); }
.tl-left .tl-head { color: var(--eti-blue); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.tl-row.grp { background: #f6f9fc; }
.col { background: #f4f7fb; }

/* Đăng nhập / khởi tạo */
.login-wrap { background: linear-gradient(160deg, #eef4fb 0%, #f8fbfd 55%, #e6f8fb 100%); }
.login-card { border-top: 4px solid var(--eti-blue); }
.login-logo { height: 46px; width: auto; display: block; margin-bottom: 20px; }
.login-card h1 { color: var(--eti-navy); font-size: 28px; font-weight: 700; }

/* Thông báo, tooltip */
.toast { background: var(--eti-navy); }
.viz-tip { background: var(--eti-navy); }

.title-input { font-family: var(--font-display); color: var(--eti-navy); font-size: 38px; letter-spacing: 0.2px; }
