/* Диаграмма Ганта онлайн — только лист плана (таблица + шкала), панель задачи и печать листов.
   Каркас страницы, кнопки, панели и уведомления — общие классы конструкторов из /assets/cjm/cjm.css. */
.cj-btn[hidden]{display:none}
.cj-hero h1{hyphens:manual;-webkit-hyphens:manual}
.gt-sub label{display:inline-flex;align-items:center;gap:6px}
.gt-sub input[type=date]{font:inherit;font-size:13px;color:var(--ink);background:var(--bg-2,#0b0f1a);border:1.5px solid var(--line);border-radius:8px;padding:5px 8px;min-height:36px;color-scheme:dark}
.gt-sub input[type=checkbox]{width:18px;height:18px;accent-color:#6e90ff}
.gt-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px}
.gt-acts .grow{flex:1 1 auto}
.gt-acts .cj-btn{min-height:38px}
.gt-miss{margin:0 0 10px;font-size:13px;color:#ffd56b}
.gt-sheet{position:relative;overflow:auto;max-height:min(74vh,720px);min-height:260px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#1f2533;overscroll-behavior:contain;scrollbar-width:thin}
.gt-grid{display:grid;grid-template-columns:auto auto;width:max-content;min-width:100%}
.gt-corner{position:sticky;top:0;left:0;z-index:4;background:#f4f6fb;border-bottom:1px solid #c9d0de;border-right:1px solid #c9d0de}
.gt-thead{position:sticky;top:0;z-index:3;background:#f4f6fb;height:52px}
.gt-left{position:sticky;left:0;z-index:2;background:#fff;border-right:1px solid #c9d0de}
.gt-chart{min-width:0}
.gt-thead svg,.gt-chart svg{display:block}
.gt-tr,.gt-th{display:grid;grid-template-columns:34px 244px 58px 126px 50px 70px 126px 30px;align-items:center;height:36px;box-sizing:border-box}
.gt-th{height:51px;font-size:11.5px;font-weight:700;color:#5b6478;line-height:1.2}
.gt-th span{padding:0 6px}
.gt-th span:first-child{text-align:center;padding:0}
.gt-tr:nth-child(even){background:#fafbfd}
.gt-tr.is-sel{background:#e8eeff}
.gt-n{text-align:center;font-size:12px;font-weight:600;color:#7a8299;font-variant-numeric:tabular-nums}
.gt-in{font:inherit;font-size:13px;font-weight:500;color:#1f2533;background:transparent;border:1.5px solid transparent;border-radius:6px;height:30px;padding:0 6px;min-width:0;width:100%;box-sizing:border-box;font-variant-numeric:tabular-nums}
.gt-in:hover{border-color:#d5dae6}
.gt-in:focus{outline:none;border-color:#3f6bff;background:#fff;box-shadow:0 0 0 3px rgba(63,107,255,.18)}
.gt-in::placeholder{color:#a5acbd}
.gt-dur{text-align:right;-moz-appearance:textfield}
.gt-st{font-size:12.5px;padding:0 6px;color-scheme:light;text-align:left;cursor:pointer}
button.gt-st{font-variant-numeric:tabular-nums}
.gt-st.is-pin{color:#2e5cf2;font-weight:700}
.gt-fin{font-size:12.5px;color:#5b6478;font-variant-numeric:tabular-nums;padding:0 4px}
.gt-tr.is-ms .gt-name{font-weight:700}
.gt-tr.is-crit .gt-name{color:#c0262c;font-weight:700}
.gt-x{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:none;color:#9aa3b5;cursor:pointer;opacity:0}
.gt-tr:hover .gt-x,.gt-tr.is-sel .gt-x,.gt-x:focus-visible{opacity:1}
.gt-x:hover{color:#e5484d;background:#fdecee}
.gt-x:focus-visible{outline:2px solid #3f6bff}
@media(hover:none){.gt-x{opacity:.6}}
.gt-bar{cursor:grab}
.gt-bar .gt-rs{cursor:ew-resize}
.gt-bar .gt-ln{fill:#fff;stroke:#2e5cf2;stroke-width:2;cursor:crosshair;opacity:0;transition:opacity .12s}
.gt-bar:hover .gt-ln{opacity:1}
.gt-draft{stroke:#2e5cf2;stroke-width:2;stroke-dasharray:6 4;pointer-events:none}
.gt-tgt{fill:rgba(63,107,255,.12);stroke:#2e5cf2;stroke-dasharray:4 3;pointer-events:none}
.gt-tgt.bad{fill:rgba(229,72,77,.1);stroke:#e5484d}
.gt-tip{position:fixed;z-index:1000;padding:6px 10px;border-radius:8px;background:#1f2533;color:#fff;font-size:12.5px;font-weight:700;pointer-events:none;box-shadow:0 8px 20px -8px rgba(20,30,60,.5)}
.gt-sum{margin:10px 0 0;font-size:13.5px;color:var(--ink-soft);line-height:1.5}
.gt-sum b{color:var(--ink)}
.gt-cp{color:#ff8a8a;font-weight:700}
.gt-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:6px 0 0;padding:0;list-style:none;font-size:12.5px;color:var(--ink-soft)}
.gt-legend li{display:inline-flex;align-items:center;gap:6px}
.gt-legend i{display:inline-block;width:18px;height:10px;border-radius:3px;background:#3f6bff}
.gt-legend i.c{background:#e5484d}
.gt-legend i.m{width:10px;height:10px;border-radius:1px;background:#f0a020;transform:rotate(45deg)}
.gt-legend i.o{background:#f1f3f8;border:1px solid #c9d0de}
.gt-legend i.h{background:#fdecee;border:1px solid #f3c0c3}
.gt-legend i.p{background:#3f6bff;outline:1.5px dashed #c9d0de;outline-offset:1px}
.gt-edit{margin:0 0 10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--bg-2,#0b0f1a)}
.gt-edit h3{margin:0 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-soft)}
.gt-eg{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.gt-f{display:flex;flex-direction:column;gap:4px;margin:0;font-size:12.5px;font-weight:700;color:var(--ink-soft)}
.gt-fw{grid-column:1/-1}
.gt-f input{font:inherit;font-size:14px;font-weight:500;color:var(--ink);background:var(--card);border:1.5px solid var(--line);border-radius:8px;padding:8px 10px;min-height:42px;width:100%;box-sizing:border-box;color-scheme:dark}
.gt-f input:focus{outline:none;border-color:#7c93e8;box-shadow:0 0 0 3px rgba(46,92,242,.2)}
.gt-f b{font-size:14px;color:var(--ink);padding:10px 0}
.gt-share:not([hidden]){display:flex;flex-direction:column;gap:8px}
.gt-share .row{display:flex;gap:6px;flex-wrap:wrap}
.gt-share input{flex:1 1 260px;min-width:0;font:inherit;font-size:13px;color:var(--ink);background:var(--card);border:1.5px solid var(--line);border-radius:8px;padding:8px 10px;min-height:40px}
.gt-imp{border-style:dashed}
/* компактный вид: номер и название, остальное — в панели задачи */
.gt-compact .gt-tr,.gt-compact .gt-th{grid-template-columns:34px 210px}
.gt-compact .gt-tr>:nth-child(n+3),.gt-compact .gt-th>:nth-child(n+3){display:none}
/* справка */
.gt-example{margin:0;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#fff}
.gt-example .scroll{overflow-x:auto}
.gt-example img{display:block;width:100%;min-width:760px;height:auto}
.gt-example figcaption{background:var(--card);color:var(--ink-soft);font-size:13px;padding:10px 14px;border-top:1px solid var(--line)}
.gt-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.gt-terms li{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--card);font-size:14px;line-height:1.55;color:var(--ink-soft)}
.gt-terms b{display:block;color:var(--ink);font-size:15px;margin:0 0 2px}
.gt-formula{margin:14px 0;padding:14px 16px;border-left:3px solid #6e90ff;border-radius:0 12px 12px 0;background:var(--card);font-size:14.5px;line-height:1.7;color:var(--ink);max-width:860px}
.gt-formula code{font-family:inherit;font-weight:700}
.gt-tips{margin:0 0 14px;padding:0 0 0 16px;color:var(--ink-soft);line-height:1.5;font-size:15px;max-width:860px}
.gt-tips li{margin:0 0 8px}
.gt-tips b{color:var(--ink)}
@media(min-width:1101px){.cj-steps.gt-s5{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:719px){
  .gt-sheet{max-height:68vh}
  .gt-left{position:static}
  .gt-corner{left:auto}
  .gt-compact .gt-left{position:sticky}
  .gt-compact .gt-corner{left:0}
  .gt-compact .gt-tr,.gt-compact .gt-th{grid-template-columns:30px 132px}
  .gt-acts .grow{display:none}
  .gt-terms{grid-template-columns:minmax(0,1fr)}
}
#cjPrintRoot .gt-psheet{display:block;margin:0 auto;break-after:page;page-break-after:always}
#cjPrintRoot .gt-psheet:last-child{break-after:auto;page-break-after:auto}
