/* Web Gantt page — palette follows the Roadmap 2027 page */
html:has(.gpw), body:has(.gpw) { overflow-x: clip; }
.gpw {
    --navy: #183b43; --gold: #d7ad68; --terra: #a65a45; --ink: #24353a; --mut: #596c70; --line: #e4ded1;
    --progress: #3f7ae0; --changes: #e8833a; --approved: #1f9e89; --waiting: #8a6fc0; --done: #2e9d63; --canceled: #9aa3ab; --late: #d9363e; --ms: #e2a23b;
    --gpw-left: 430px;
    background: #fcfaf5 !important;
    color: var(--ink);
}
.gpw *, .gpw *::before, .gpw *::after { box-sizing: border-box; }
.gpw .gpw-wrap { width: 100%; max-width: 1400px; margin: auto; padding-inline: clamp(16px, 3vw, 40px); }
.gpw .gpw-hero {
    background: radial-gradient(circle at 87% 12%, rgba(215, 173, 104, .17), transparent 37%), linear-gradient(125deg, #16333d, #24525a);
    color: #fff; padding: clamp(36px, 5vw, 64px) 0 clamp(30px, 4vw, 48px); position: relative;
}
.gpw .gpw-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--gold), #e6cba0 60%, var(--terra)); }
.gpw .gpw-kicker { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .74rem; color: #f3d5a0; }
.gpw .gpw-hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.12; margin: 8px 0 10px; color: #fff !important; }
.gpw .gpw-lead { color: #f3f2e9; max-width: 820px; line-height: 1.65; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.gpw .gpw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 16px; }
.gpw .gpw-stat { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 14px 16px; }
.gpw .gpw-stat strong { display: block; color: #f3d5a0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.2; }
.gpw .gpw-stat span { color: #e9eee9; font-size: .84rem; line-height: 1.4; }
.gpw .gpw-stat.is-alert strong { color: #ffb4b4; }
.gpw .gpw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gpw .gpw-btn { display: inline-block; background: #e8bd77; color: #213b41 !important; border: 1px solid #e8bd77; font-weight: 800; padding: 9px 18px; border-radius: 100px; text-decoration: none !important; }
.gpw .gpw-btn:hover { background: #f7d99d; }
.gpw .gpw-btn-line { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .6); }
.gpw .gpw-btn-line:hover { background: #fff; color: var(--navy) !important; }

.gpw .gpw-body { padding-top: 22px; padding-bottom: 40px; }
.gpw .gpw-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gpw .gpw-tgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gpw .gpw-search { width: 260px; }
.gpw .gpw-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; margin: 0; cursor: pointer; }
.gpw .btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.gpw .gpw-gantt { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13px; }
.gpw .gpw-scroll { overflow: auto; max-height: 78vh; position: relative; }
.gpw .gpw-canvas { position: relative; min-width: 100%; }
.gpw .gpw-left { width: var(--gpw-left); flex: 0 0 auto; }
.gpw .gpw-probe { height: 1px; }
.gpw .gpw-head { position: sticky; top: 0; z-index: 30; display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.gpw .gpw-hleft { position: sticky; left: 0; z-index: 31; background: #fff; border-right: 1px solid var(--line); }
.gpw .gpw-cols { display: flex; height: 44px; align-items: center; font-weight: 700; font-size: 12px; color: var(--mut); border-bottom: 1px solid #efe9dc; }
.gpw .gpw-mleft { height: 34px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 700; color: #8a5a00; }
.gpw .gpw-htl { position: relative; flex: 0 0 auto; }
.gpw .gpw-tier { position: relative; height: 22px; border-bottom: 1px solid #efe9dc; }
.gpw .gpw-tier span { position: absolute; top: 0; height: 100%; border-left: 1px solid #efe9dc; padding: 0 5px; font-size: 11px; line-height: 21px; white-space: nowrap; overflow: hidden; font-weight: 700; color: #343a40; }
.gpw .gpw-tier-b span { font-weight: 400; text-align: center; color: #555; }
.gpw .gpw-mlane { position: relative; height: 34px; }
.gpw .gpw-todayflag { position: absolute; bottom: 0; transform: translateX(-50%); background: var(--late); color: #fff; font-size: 9px; line-height: 12px; padding: 0 4px; border-radius: 4px 4px 0 0; }
.gpw .gpw-ms { position: absolute; height: 13px; display: flex; align-items: center; gap: 5px; transform: translateX(-6px); white-space: nowrap; max-width: 190px; }
.gpw .gpw-ms i, .gpw .gpw-diamond { display: inline-block; flex: 0 0 auto; width: 11px; height: 11px; transform: rotate(45deg); background: var(--ms); border: 2px solid #fff; box-shadow: 0 0 0 1px #c88a20; }
.gpw .gpw-ms.is_reached i { background: var(--done); box-shadow: 0 0 0 1px #257d50; }
.gpw .gpw-ms.is_late i { background: var(--late); box-shadow: 0 0 0 1px #a52a30; }
.gpw .gpw-ms b { font-size: 11px; line-height: 13px; color: #5c3d00; background: rgba(255, 255, 255, .9); border-radius: 3px; padding: 0 3px; overflow: hidden; text-overflow: ellipsis; }
.gpw .gpw-ms.is_flip { flex-direction: row-reverse; transform: translateX(calc(-100% + 6px)); }

.gpw .gpw-rows { position: relative; }
.gpw .gpw-bg, .gpw .gpw-links { position: absolute; top: 0; left: var(--gpw-left); pointer-events: none; overflow: visible; }
.gpw .gpw-bg { z-index: 0; }
.gpw .gpw-links { z-index: 3; }
.gpw .gpw-weekend { fill: rgba(108, 117, 125, .06); }
.gpw .gpw-grid { stroke: rgba(108, 117, 125, .13); }
.gpw .gpw-mline { stroke: var(--ms); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .8; }
.gpw .gpw-mline.is_reached { stroke: var(--done); }
.gpw .gpw-mline.is_late { stroke: var(--late); }
.gpw .gpw-today { stroke: var(--late); stroke-width: 2; }
.gpw .gpw-arrow { fill: none; stroke: #7b8794; stroke-width: 1.3; pointer-events: stroke; }
.gpw .gpw-arrow.is_bad { stroke: var(--late); stroke-dasharray: 5 3; }

.gpw .gpw-row { position: relative; display: flex; }
.gpw .gpw-lcell { position: sticky; left: 0; z-index: 10; display: flex; align-items: center; background: #fff; border-right: 1px solid var(--line); box-shadow: inset 0 -1px 0 rgba(108, 117, 125, .12); }
.gpw .gpw-cname { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.gpw .gpw-cdate { width: 84px; flex: 0 0 auto; padding: 0 8px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gpw .gpw-cdate.is_late, .gpw .is_late { color: var(--late); font-weight: 700; }
.gpw .gpw-caret { border: 0; background: none; padding: 0; width: 14px; color: var(--mut); flex: 0 0 auto; line-height: 1; cursor: pointer; }
.gpw .gpw-caret-sp { width: 14px; flex: 0 0 auto; }
.gpw .gpw-wbs { color: #9aa1a8; font-size: 11px; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.gpw .gpw-name { color: var(--ink) !important; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.gpw .gpw-name:hover { color: var(--terra) !important; text-decoration: underline; }
.gpw .gpw-count { font-size: 11px; background: #d6dde6; border-radius: 100px; padding: 0 7px; }
.gpw .gpw-late { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: var(--late); color: #fff; font-size: 10px; font-weight: 800; align-items: center; justify-content: center; flex: 0 0 auto; }
.gpw .gpw-srow, .gpw .gpw-srow .gpw-lcell { background: #eef1f5; }
.gpw .gpw-srow .gpw-cdate { font-weight: 700; }
.gpw .gpw-trow:hover, .gpw .gpw-trow:hover .gpw-lcell { background: #f7f9fc; }
.gpw .gpw-trow.is_selected, .gpw .gpw-trow.is_selected .gpw-lcell { background: #e8effc; }
.gpw .gpw-trow.is_parent .gpw-name { font-weight: 700; }
.gpw .gpw-tcell { position: relative; flex: 0 0 auto; z-index: 2; box-shadow: inset 0 -1px 0 rgba(108, 117, 125, .07); }

.gpw .gpw-bar { position: absolute; top: 7px; height: 18px; border-radius: 4px; background: #d6e3fb; border: 1px solid var(--progress); cursor: pointer; overflow: hidden; }
.gpw .gpw-bar i { display: block; height: 100%; background: var(--progress); pointer-events: none; }
.gpw .gpw-bar.is_changes { background: #fbe0cc; border-color: var(--changes); } .gpw .gpw-bar.is_changes i { background: var(--changes); }
.gpw .gpw-bar.is_approved { background: #cdeee8; border-color: var(--approved); } .gpw .gpw-bar.is_approved i { background: var(--approved); }
.gpw .gpw-bar.is_waiting { background: #e6defa; border-color: var(--waiting); } .gpw .gpw-bar.is_waiting i { background: var(--waiting); }
.gpw .gpw-bar.is_done { background: var(--done); border-color: #257d50; } .gpw .gpw-bar.is_done i { background: var(--done); }
.gpw .gpw-bar.is_canceled { background: repeating-linear-gradient(45deg, #e9ecef 0 4px, #dee2e6 4px 8px); border-color: var(--canceled); } .gpw .gpw-bar.is_canceled i { display: none; }
.gpw .gpw-bar.is_overdue { box-shadow: 0 0 0 2px rgba(217, 54, 62, .55); }
.gpw .gpw-bar.is_unscheduled { border-style: dashed; opacity: .6; }
.gpw .gpw-bar.is_summary { top: 11px; height: 9px; border: 0; border-radius: 0; background: #4b5563; overflow: visible; }
.gpw .gpw-bar.is_summary i { background: #111827; }
.gpw .gpw-bar.is_summary::before, .gpw .gpw-bar.is_summary::after { content: ""; position: absolute; bottom: -6px; border-top: 6px solid #4b5563; }
.gpw .gpw-bar.is_summary::before { left: 0; border-right: 5px solid transparent; }
.gpw .gpw-bar.is_summary::after { right: 0; border-left: 5px solid transparent; }
.gpw .gpw-label { position: absolute; top: 7px; line-height: 18px; font-size: 12px; white-space: nowrap; color: #343a40; pointer-events: none; max-width: 520px; overflow: hidden; text-overflow: ellipsis; }
.gpw .gpw-stagebar { position: absolute; top: 14px; height: 8px; border-radius: 4px; background: #c9d1db; overflow: hidden; }
.gpw .gpw-stagebar i { display: block; height: 100%; background: #6b7c93; }
.gpw .gpw-empty { position: sticky; left: 0; padding: 24px; color: var(--mut); }

.gpw .gpw-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .82rem; color: #495057; margin-top: 10px; }
.gpw .gpw-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.gpw .gpw-hint { color: var(--mut); margin-left: auto; }
.gpw .gpw-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--progress); flex: 0 0 auto; }
.gpw .gpw-dot.is_changes { background: var(--changes); } .gpw .gpw-dot.is_approved { background: var(--approved); }
.gpw .gpw-dot.is_waiting { background: var(--waiting); } .gpw .gpw-dot.is_done { background: var(--done); } .gpw .gpw-dot.is_canceled { background: var(--canceled); }
.gpw .gpw-todayline { display: inline-block; width: 3px; height: 14px; background: var(--late); }

.gpw .gpw-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 1050; background: #fff; border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(0, 0, 0, .15); padding: 18px 20px; overflow: auto; font-size: .92rem; }
.gpw .gpw-drawer[hidden] { display: none; }
.gpw .gpw-dhead { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.gpw .gpw-dhead .gpw-dot { margin-top: 6px; }
.gpw .gpw-dhead strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.35; color: var(--navy); }
.gpw .gpw-close { margin-left: auto; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--mut); cursor: pointer; }
.gpw .gpw-drawer dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; margin: 0 0 10px; }
.gpw .gpw-drawer dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); padding-top: 2px; }
.gpw .gpw-drawer dd { margin: 0; }
.gpw .gpw-drawer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 14px 0 6px; }
.gpw .gpw-drawer ul { padding-left: 18px; margin: 0; }
.gpw .gpw-drawer li { margin-bottom: 4px; }
.gpw .gpw-drawer a { color: #96513c !important; }
.gpw .gpw-muted { color: var(--mut); margin: 0; }

@media (max-width: 991px) {
    .gpw .gpw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .gpw { --gpw-left: 170px; }
    .gpw .gpw-cdate { display: none; }
    .gpw .gpw-search { width: 100%; }
    .gpw .gpw-tgroup { width: 100%; }
    .gpw .gpw-hint { margin-left: 0; }
    .gpw .gpw-drawer dl { grid-template-columns: 1fr; }
}
