.project-view-tabs { display:flex; flex-wrap:wrap; gap:4px; padding:5px; width:fit-content; max-width:100%; border:1px solid var(--hairline); border-radius:12px; background:var(--surface-2); margin-bottom:28px; }
.project-view-tabs[hidden], .project-view-panel[hidden], #project-current[hidden], #project-shared-tools[hidden], .project-view-summary[hidden] { display:none; }
.project-view-tabs button { display:inline-flex; align-items:center; gap:8px; padding:11px 16px; border:0; border-radius:8px; background:transparent; color:var(--ink-muted); font:600 14px/20px var(--font-text); cursor:pointer; }
.project-view-tabs button[aria-selected="true"] { background:var(--cyan-soft); color:var(--cyan-ink); box-shadow:inset 0 0 0 1px var(--accent-cyan-edge); }
.project-view-tabs button:hover { color:var(--ink); }
.project-view-tabs svg { width:17px; height:17px; }
.project-toolbar { position:sticky; top:var(--nav-height); z-index:20; display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 16px; padding:12px 0; min-width:0; background:var(--canvas); border-bottom:1px solid var(--hairline); }
#project-shared-tools { position:sticky; top:var(--nav-height); z-index:20; background:var(--canvas); }
#project-shared-tools .project-toolbar { position:static; }
.project-toolbar .project-view-tabs { flex:none; flex-wrap:nowrap; gap:2px; margin:0; padding:3px; border-radius:9px; }
.project-toolbar .project-view-tabs button { gap:6px; padding:8px 10px; font-size:12px; line-height:20px; white-space:nowrap; }
.project-toolbar .project-view-tabs svg { width:15px; height:15px; }
.project-toolbar .works-tools { flex:0 1 auto; display:block; min-width:0; width:auto; margin:0; padding:0; border:0; }
.project-toolbar .fbar { flex-wrap:nowrap; align-items:center; justify-content:flex-end; gap:8px; }
.project-toolbar .fbar-left { flex-wrap:nowrap; gap:8px; }
.project-toolbar .fsel { position:relative; gap:0; min-width:0; width:175px; }
.project-toolbar .fbar-left .fsel:nth-child(2) { width:110px; }
.project-toolbar .fsel-sort { min-width:0; width:135px; margin:0; }
.project-toolbar .fsel-lab { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.project-toolbar .fsel select { width:100%; min-width:0; height:38px; padding:0 28px 0 10px; border-radius:8px; background-position:right 10px center; font-size:12px; line-height:20px; text-overflow:ellipsis; }
@media (min-width:741px) and (max-width:1000px) {
  .project-toolbar { gap:10px; }
  .project-toolbar .project-view-tabs button { padding:8px; gap:5px; }
  .project-toolbar .fbar, .project-toolbar .fbar-left { gap:6px; }
  .project-toolbar .fsel { width:120px; }
  .project-toolbar .fbar-left .fsel:nth-child(2) { width:84px; }
  .project-toolbar .fsel-sort { width:96px; }
}
@media (max-width:740px) {
  .project-toolbar { flex-direction:column; align-items:stretch; gap:8px; }
  .project-toolbar .project-view-tabs { width:100%; }
  .project-toolbar .project-view-tabs button { flex:1; justify-content:center; }
  .project-toolbar .works-tools { width:100%; }
  .project-toolbar .fbar { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:6px; }
  .project-toolbar .fbar-left { display:contents; }
  .project-toolbar .fsel, .project-toolbar .fbar-left .fsel:nth-child(2), .project-toolbar .fsel-sort { width:auto; }
}
.project-view-summary { font-size:13px; line-height:20px; color:var(--ink-subtle); margin:0 0 14px; }
.project-view-panel { min-width:0; }
.project-table-scroll { overflow:clip; max-height:none; border:1px solid var(--hairline); border-radius:12px; background:#fff; }
.project-lark-table { width:100%; min-width:0; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:13px; line-height:1.6; }
.project-lark-table caption { text-align:left; }
.project-lark-table th, .project-lark-table td { padding:12px; text-align:left; vertical-align:top; border-right:1px solid var(--hairline); border-bottom:1px solid var(--hairline); overflow-wrap:anywhere; }
.project-lark-table th:last-child, .project-lark-table td:last-child { border-right:0; }
.project-lark-table thead th { position:sticky; top:var(--project-sticky-top,130px); z-index:2; background:#fff; font-weight:600; color:var(--ink-muted); }
.project-lark-table thead th:nth-child(1) { width:4%; }
.project-lark-table thead th:nth-child(2) { width:8%; }
.project-lark-table thead th:nth-child(3) { width:20%; }
.project-lark-table thead th:nth-child(4) { width:18%; }
.project-lark-table thead th:nth-child(5) { width:9%; }
.project-lark-table .project-description-cell { overflow-wrap:anywhere; }
.project-mobile-meta { display:none; }
.project-lark-table[data-layout="compact"] tr:not(.project-group-row) > :nth-child(1),
.project-lark-table[data-layout="compact"] tr:not(.project-group-row) > :nth-child(4),
.project-lark-table[data-layout="mobile"] tr:not(.project-group-row) > :nth-child(1),
.project-lark-table[data-layout="mobile"] tr:not(.project-group-row) > :nth-child(2),
.project-lark-table[data-layout="mobile"] tr:not(.project-group-row) > :nth-child(4),
.project-lark-table[data-layout="mobile"] tr:not(.project-group-row) > :nth-child(5) { display:none; }
.project-lark-table[data-layout="compact"] thead th:nth-child(2) { width:11%; }
.project-lark-table[data-layout="compact"] thead th:nth-child(3) { width:25%; }
.project-lark-table[data-layout="compact"] thead th:nth-child(5) { width:12%; }
.project-lark-table[data-layout="mobile"] thead th:nth-child(3) { width:40%; }
.project-lark-table[data-layout="mobile"] th, .project-lark-table[data-layout="mobile"] td { padding:10px 8px; font-size:12px; }
.project-lark-table[data-layout="mobile"] .project-mobile-meta { display:block; margin-top:6px; font-size:11px; line-height:1.5; color:var(--ink-subtle); }
.project-lark-table[data-layout="mobile"] .project-record-link { font-size:13px; overflow-wrap:anywhere; }
.project-lark-table .project-group-row th { background:#fff; padding:10px 12px; border-right:0; }
.project-group-toggle { display:flex; align-items:center; flex-wrap:nowrap; gap:10px; width:100%; min-height:28px; border:0; background:transparent; color:var(--ink); padding:0; text-align:left; font:inherit; cursor:pointer; }
.project-group-arrow { display:grid; place-items:center; flex:0 0 20px; width:20px; height:28px; }
.project-group-arrow::before { content:''; display:block; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.project-group-toggle[aria-expanded="false"] .project-group-arrow::before { transform:translateX(-2px) rotate(-45deg); }
.project-group-toggle .project-group-count { margin-left:2px; white-space:nowrap; }
.project-group-toggle .project-domain-chip { min-width:0; }
.project-group-count { color:var(--ink-subtle); font-size:12px; font-weight:400; }
.project-domain-chip { display:inline-block; padding:3px 9px; border-radius:7px; background:#e9edf2; color:#44516a; font-size:12px; font-weight:600; line-height:18px; white-space:normal; }
.project-domain-chip[data-domain="media"] { background:#dce7ff; color:#365998; }
.project-domain-chip[data-domain="event"] { background:#d9f1ed; color:#29655c; }
.project-domain-chip[data-domain="kol"] { background:#ffe8d3; color:#925017; }
.project-domain-chip[data-domain="re"] { background:#eee3fb; color:#73509a; }
.project-record-link { display:inline; padding:0; border:0; background:transparent; color:var(--ink); font:600 14px/1.5 var(--font-text); text-align:left; cursor:pointer; }
.project-record-link:hover { color:var(--cyan-ink); text-decoration:underline; text-underline-offset:3px; }
.project-record-link:disabled { color:var(--ink-subtle); cursor:default; text-decoration:none; }
.project-row-number, .project-code-cell, .project-platform-cell { color:var(--ink-subtle); }
.project-data-row td { background:#fff; }
.project-data-row:hover td { background:#f5faff; }
.project-data-row[hidden] { display:none; }
.project-gantt-tools { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.project-gantt-navigation, .project-gantt-scales { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.project-gantt-control { border:1px solid var(--hairline); border-radius:6px; background:var(--surface-1); color:var(--ink-muted); padding:7px 10px; cursor:pointer; font:500 12px/18px var(--font-text); }
.project-gantt-control[aria-pressed="true"] { color:#365998; border-color:#b8cdff; background:#e4ecff; }
.project-gantt-range { padding:0 8px; font-size:13px; }
.project-gantt-note { color:var(--ink-subtle); font-size:12px; line-height:20px; margin:0 0 14px; }
.project-gantt-scroll { max-width:100%; max-height:none; overflow-x:auto; border:1px solid var(--hairline); border-radius:12px; background:#fff; }
#case-study[data-project-view="lark"] ~ section, #case-study[data-project-view="gantt"] ~ section { display:none; }
.project-gantt-table { border-collapse:separate; border-spacing:0; width:calc(420px + var(--timeline-width)); table-layout:fixed; font-size:13px; line-height:20px; }
.project-gantt-table th, .project-gantt-table td { border-bottom:1px solid var(--hairline); border-right:1px solid var(--hairline); vertical-align:middle; }
.project-gantt-table thead th { position:sticky; top:0; z-index:4; background:#fff; text-align:left; }
.project-gantt-table .gantt-name { position:sticky; left:0; z-index:2; width:330px; padding:12px; background:#fff; }
.project-gantt-table .gantt-progress { position:sticky; left:330px; z-index:2; width:90px; padding:12px; background:#fff; text-align:center; color:var(--ink-subtle); }
.project-gantt-table thead .gantt-name, .project-gantt-table thead .gantt-progress { z-index:6; background:#fff; }
.project-gantt-row > td { background:#fff; }
.project-gantt-table .gantt-timeline { width:var(--timeline-width); padding:0; }
.project-gantt-table .gantt-name > .code { display:inline-block; width:68px; font-size:11px; }
.project-gantt-table .gantt-name .project-record-link { max-width:225px; vertical-align:middle; font-size:13px; }
.project-gantt-group th { position:sticky; top:77px; z-index:3; padding:8px 12px; background:#fff; text-align:left; }
.project-gantt-group-label { position:sticky; left:12px; display:inline-flex; align-items:center; gap:4px; max-width:calc(100vw - 72px); }
.project-gantt-track { position:relative; height:58px; overflow:hidden; background-image:linear-gradient(to right,var(--hairline) 1px,transparent 1px); background-size:calc(var(--day-width) * 7) 100%; }
.project-gantt-ticks { height:76px; }
.project-gantt-month { position:absolute; top:8px; padding-left:8px; font-size:12px; color:var(--ink); white-space:nowrap; }
.project-gantt-tick { position:absolute; bottom:10px; color:var(--ink-subtle); font-size:10px; white-space:nowrap; }
.project-gantt-today { position:absolute; top:0; bottom:0; width:1px; background:#5989ff; opacity:.6; z-index:1; pointer-events:none; }
.project-gantt-unscheduled { position:absolute; top:18px; left:12px; font-size:12px; color:var(--ink-subtle); }
.project-gantt-milestone { position:absolute; top:14px; z-index:2; display:flex; align-items:center; gap:5px; max-width:150px; border:0; border-radius:5px; padding:4px 6px; background:#dce8ff; color:#365998; font:500 11px/20px var(--font-text); cursor:pointer; white-space:nowrap; }
.project-gantt-milestone.align-end { transform:translateX(-100%); }
.project-gantt-diamond { color:#5989ff; flex:none; }
.project-gantt-event-name { overflow:hidden; text-overflow:ellipsis; }
@media (max-width:640px) {
  .project-gantt-table { width:calc(250px + var(--timeline-width)); }
  .project-gantt-table .gantt-name { width:190px; }
  .project-gantt-table .gantt-progress { left:190px; width:60px; padding:8px 4px; font-size:11px; }
  .project-gantt-table .gantt-name > .code { display:block; width:auto; }
  .project-gantt-table .gantt-name .project-record-link { max-width:165px; }
}
@media (max-width:640px) { .project-view-tabs { width:100%; } .project-view-tabs button { flex:1; justify-content:center; gap:6px; padding:10px 8px; font-size:12px; } }

/* 5 nhóm sản phẩm 9tek.vn */
.project-domain-chip[data-domain="ai"] { background:#CFFAFE; color:#155E75; }
.project-domain-chip[data-domain="re"] { background:#E0F2FE; color:#075985; }
.project-domain-chip[data-domain="media"] { background:#E0E7FF; color:#3730A3; }
.project-domain-chip[data-domain="fin"] { background:#DCFCE7; color:#166534; }
.project-domain-chip[data-domain="life"] { background:#FEF3C7; color:#92400E; }
