/* The plan grid (Sprint 40): the look of docs/mockups/task-grid.html in the app's own tokens. Slate header row, blue current cell, grey summary cells, red bad cell. */
.tg { display: block; }
.tg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tg-grp { display: flex; gap: 2px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--line); }
.tg-bar .spacer { flex: 1; }
.tg-wrap { overflow: auto; max-height: 64vh; }
.tg-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1100px; outline: none; }
.tg-table th { position: sticky; top: 0; z-index: 2; background: var(--slate); color: #fff; font-weight: 600; text-align: left; padding: 6px 8px; border-right: 1px solid #475569; white-space: nowrap; font-size: 12px; }
.tg-table td { padding: 0 8px; height: 30px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; cursor: cell; background: var(--surface); }
.tg-table td.tg-num { width: 46px; text-align: center; color: var(--text-3); background: var(--slate-soft); cursor: pointer; user-select: none; }
.tg-table td.tg-wbs { width: 64px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tg-table tr.tg-sel td { background: var(--royal-soft); }
.tg-table tr.tg-sel td.tg-num { color: var(--royal); font-weight: 700; }
.tg-table tr.tg-sum td { font-weight: 600; background: var(--surface-2); }
.tg-table tr.tg-sum.tg-sel td { background: var(--royal-soft); }
.tg-table td.tg-cur { outline: 2px solid var(--royal); outline-offset: -2px; background: var(--surface); }
.tg-table td.tg-ro { color: var(--text-2); cursor: default; }
.tg-table td.tg-bad { background: var(--danger-soft); color: var(--danger); }
.tg-table td.tg-name { min-width: 290px; }
.tg-caret { display: inline-block; width: 16px; cursor: pointer; color: var(--text-3); user-select: none; background: none; border: 0; padding: 0; font: inherit; }
.tg-gap { display: inline-block; width: 16px; }
.tg-ind-1 { padding-left: 18px; } .tg-ind-2 { padding-left: 36px; } .tg-ind-3 { padding-left: 54px; } .tg-ind-4 { padding-left: 72px; } .tg-ind-5 { padding-left: 90px; } .tg-ind-6 { padding-left: 108px; }
.tg-table td input, .tg-table td select { width: 100%; height: 26px; border: 0; outline: 0; background: transparent; padding: 0; font: inherit; color: inherit; }
.tg-pbar { display: inline-block; width: 50px; height: 6px; background: var(--line); border-radius: 3px; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.tg-pbar i { display: block; height: 100%; background: var(--royal); }
.tg-w-0 { width: 0; } .tg-w-5 { width: 5%; } .tg-w-10 { width: 10%; } .tg-w-15 { width: 15%; } .tg-w-20 { width: 20%; } .tg-w-25 { width: 25%; } .tg-w-30 { width: 30%; } .tg-w-35 { width: 35%; } .tg-w-40 { width: 40%; } .tg-w-45 { width: 45%; }
.tg-w-50 { width: 50%; } .tg-w-55 { width: 55%; } .tg-w-60 { width: 60%; } .tg-w-65 { width: 65%; } .tg-w-70 { width: 70%; } .tg-w-75 { width: 75%; } .tg-w-80 { width: 80%; } .tg-w-85 { width: 85%; } .tg-w-90 { width: 90%; } .tg-w-95 { width: 95%; } .tg-w-100 { width: 100%; }
.tg-note { margin-left: 6px; color: var(--text-3); }
.tg-status { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px 10px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.tg-status kbd { background: var(--slate-soft); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; font-size: 11px; color: var(--text); }
.tg-menu { position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); min-width: 230px; padding: 4px 0; }
.tg-menu button { display: flex; width: 100%; justify-content: space-between; gap: 20px; padding: 6px 14px; background: none; border: 0; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.tg-menu button:hover, .tg-menu button:focus { background: var(--royal-soft); outline: none; }
.tg-menu small { color: var(--text-3); }
.tg-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
