/* Gaya halaman Timeline (Task 20). Komponen bersama ada di app.css; yang khusus halaman ini diawali .tlx. */
.tlx .ctl { flex-wrap: wrap; }
.tlx .ctl .lbl-t { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.tlx .ctl .grp-t { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.tlx .ctl .grp-t button { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; font: 500 13px var(--f-body); color: #3B3631; background: transparent; border: 0; cursor: pointer; }
.tlx .ctl .grp-t button.on { background: var(--yellow); font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 7px; }
.tlx .ctl .chip { font-family: var(--f-body); }
.tlx .tlx-potong { font-size: 12px; color: var(--muted); }
.tlx .tlx-kosong { margin: 18px 0; font-size: 13px; color: var(--muted); }

/* panel 12 minggu (dari mockup timeline) */
.tlx .gtl { padding: 0 18px 4px; }
.tlx .gtl .tl-in { --lbl: 304px; min-width: 0; --n: 12; }
.tlx .gtl .tl-in.tlx-n4 { --n: 4; } .tlx .gtl .tl-in.tlx-n8 { --n: 8; } .tlx .gtl .tl-in.tlx-n16 { --n: 16; }
.tlx .gtl .tl-weeks .wk { padding: 5px 0 5px 6px; line-height: 1.2; }
.tlx .gtl .tl-weeks .wk.now { background: #FFF6E2; }
.tlx .gtl .tl-weeks .wk.lalu { color: var(--faint); }
.tlx .gtl .gh2 { position: relative; z-index: 3; background: var(--surface); display: flex; align-items: center; gap: 8px; height: 30px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tlx .gtl .gh2 b { font: 400 15px/1 var(--f-head); letter-spacing: 0; text-transform: none; color: var(--ink); }
.tlx .gtl .tl-row { min-height: 31px; }
.tlx .gtl .tl-row .tl-lbl { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.tlx .gtl .tl-row .tl-lbl .av.s { width: 20px; height: 20px; font-size: 9.5px; border-width: 1.25px; }
.tlx .gtl .tl-row .tl-lbl .tlx-nm { flex: 0 0 auto; max-width: 175px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.tlx .gtl .tl-row.np .tl-lbl .tlx-nm { font-weight: 500; }
.tlx .gtl .tl-row .tl-lbl small { flex: 0 1 auto; min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlx .gtl .tl-row .tl-lbl .tag { height: 18px; font-size: 10.5px; padding: 0 5px; flex: none; margin-left: auto; margin-right: 10px; }
.tlx .gtl .lane { height: 31px; }
.tlx .gtl .lane .bar { top: 11px; bottom: 11px; }
.tlx .gtl .lane .bar.awal { border-left-style: dashed; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tlx .gtl .lane .bar.ter { border-right-style: dashed; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tlx .gtl .lane .bar.fin { background: repeating-linear-gradient(135deg, var(--rose) 0 4px, #fff 4px 8px); }
.tlx .gtl .lane .bar.kos { background: transparent; border: 1.5px dashed var(--faint); }
.tlx .gtl .lane .bar.libur { background: repeating-linear-gradient(135deg, #D8D0C6 0 3px, #fff 3px 6px); }
.tlx .gtl .lane .txt { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: #fff; padding: 0 5px; border-radius: 3px; border: 1px solid var(--line); line-height: 16px; font-size: 11px; color: #3B3631; white-space: nowrap; }
.tlx .gtl .lane .txt.kiri { transform: translate(-100%, -50%); margin-left: -10px; }
.tlx .gtl .tl-row.kosong .lane { background-image: none; }
.tlx .gtl .lane .txt.nyus { border: 0; background: var(--surface); padding: 0 6px 0 0; font-size: 12px; color: var(--muted); }
.tlx .gtl .nysr { display: grid; grid-template-columns: var(--lbl) 1fr; align-items: center; padding: 6px 0 8px; position: relative; z-index: 3; }
.tlx .gtl .nysr .nyusul { padding: 7px 12px; align-items: center; }

/* legenda: .tl-key2 dan penanda titik (.ms, .pd) komponen bersama di app.css */
.tlx .tl-key2 { padding: 8px 18px 12px; }
.tlx .tl-key2 i.dv { border-radius: 2px; }
.tlx .tl-key2 i.d-sales { background: var(--navy); } .tlx .tl-key2 i.d-kon { background: var(--sky); } .tlx .tl-key2 i.d-mer { background: var(--yellow); }
.tlx .tl-key2 i.d-evt { background: var(--pink); } .tlx .tl-key2 i.d-pos { background: var(--green); }
.tlx .tl-key2 i.tlx-fin { background: repeating-linear-gradient(135deg, var(--rose) 0 2px, #fff 2px 4px); }

/* HP: lajur digeser ke samping dengan pudar kanan, kolom nama nempel di kiri biar tetap kebaca pas digeser */
@media (max-width: 760px) {
  .tlx .gtl { overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .tlx .gtl::-webkit-scrollbar { display: none; }
  .tlx .gtl .tl-in { min-width: 760px; --lbl: 172px; }
  .tlx .gtl .tl-head .tl-lbl, .tlx .gtl .tl-row .tl-lbl { position: sticky; left: 0; z-index: 4; background: var(--surface); padding-left: 12px; box-shadow: 1px 0 0 var(--line); }
  .tlx .gtl .gh2 { padding-left: 12px; }
  .tlx .gtl .gh2 b { position: sticky; left: 12px; }
  .tlx .gtl .tl-row .tl-lbl { gap: 5px; }
  .tlx .gtl .tl-row .tl-lbl .tlx-nm { flex: 1 1 auto; min-width: 0; max-width: none; }
  .tlx .gtl .tl-row .tl-lbl small { display: none; }
  .tlx .gtl .tl-row .tl-lbl .tag { margin: 0 6px 0 0; padding: 0 4px; font-size: 10px; }
  .tlx .gtl .tl-row.np .tl-lbl .tag, .tlx .gtl .tl-row.grup-kosong .tl-lbl .tag.kos { display: none; }
  .tlx .gtl .nysr { padding-left: 12px; }
  .tlx .tl-key2 { padding: 8px 14px 12px; }
}
