/* Gaya halaman Team (daftar dan persona), diambil dari mockup v3.css dan v3b.css dengan awalan tm-. Komponen bersama
   (.kepala, .nyusul, .chip, .tag, .pill, .panel, .grid) ada di app.css. */

/* tabel tetap lebar kolom, teks panjang dipotong */
.tm-pt { table-layout: fixed; }
.tm-pt td { height: 39px; overflow: hidden; white-space: nowrap; }
.tm-pt td .main-c, .tm-pt td .sub { overflow: hidden; text-overflow: ellipsis; display: block; }
.tm-pt .wc { display: flex; align-items: center; gap: 7px; }
.tm-pt .wc .av.s { width: 20px; height: 20px; font-size: 9.5px; border-width: 1.25px; }
.tm-pt td.go { text-align: right; padding-right: 18px; }
.tm-tebal { font-weight: 500; }

/* daftar orang */
.tm-daftar td { height: 50px; }
.tm-daftar .wc { gap: 10px; }
.tm-daftar .wc .av { width: 30px; height: 30px; font-size: 12px; }
.tm-div { display: inline-flex; align-items: center; gap: 8px; }
.tm-pjn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: 12.5px; color: var(--muted); }
.tm-bb { display: flex; align-items: center; gap: 10px; }
.tm-bb .track { position: relative; flex: 1; max-width: 150px; height: 14px; background: #F3EEE8; border-radius: 3px; }
.tm-bb .fill { position: absolute; left: 0; top: 0; bottom: 0; border: 1.5px solid var(--ink); border-radius: 3px; background: #B9B0A6; }
.tm-bb .fill.d-sales { background: var(--navy); } .tm-bb .fill.d-lic { background: var(--red); } .tm-bb .fill.d-kon { background: var(--sky); }
.tm-bb .fill.d-mer { background: var(--yellow); } .tm-bb .fill.d-evt { background: var(--pink); } .tm-bb .fill.d-pos { background: var(--green); }
.tm-bb .fill.d-fin { background: var(--rose); }
.tm-bb .cap { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.tm-bb .n { font-weight: 600; white-space: nowrap; font-size: 13px; }
.tm-bb .n span { color: var(--muted); font-weight: 400; }
.tm-bb.over .n { color: #A3341A; }
.tm-merah { color: #A3341A; font-weight: 600; }

/* persona: kepala */
.tm-kepala .jdl .tt .av.xl { width: 46px; height: 46px; font-size: 19px; border-width: 2px; }
.tm-kepala .jdl .tt .pill { gap: 6px; }
.tm-kepala .jdl .tt .pill .dv { margin-right: 0; }
.tm-pasif { cursor: default; }
.tm-pasif:hover { background: #fff; }
.tm-discord { color: var(--sky-ink); font-weight: 600; }
.tm-remah { color: var(--sky-ink); font-weight: 500; }
.tm-kepala .kv .nys dd { font-weight: 500; }

/* persona: tabel project */
.tm-pj td { height: 44px; }
.tm-pj tr.grp-r td { height: 30px; background: var(--raised); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tm-pj tr.lalu td { color: #3B3631; }
.tm-pj td .sub { white-space: normal; overflow: visible; }
.tm-pj .tm-kos { color: var(--muted); }
.tm-pj .sub .tag { height: 18px; font-size: 10.5px; padding: 0 5px; margin: 3px 0 4px 0; }

/* persona: kerjaan minggu ini */
.tm-minggu { list-style: none; margin: 0; padding: 0 18px 8px; }
.tm-minggu li { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; min-height: 36px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.tm-minggu li:last-child { border-bottom: 0; }
.tm-minggu li em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tm-minggu li.hr em { color: #A3341A; font-weight: 600; }
.tm-minggu li small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.tm-minggu li .tag { height: 20px; font-size: 11px; padding: 0 6px; }
.tm-kosong { margin: 0; padding: 4px 18px 16px; font-size: 13px; color: var(--muted); }

/* persona: kolom kanan */
.tm-cvf { display: flex; align-items: center; gap: 10px; margin: 0 18px 14px; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--raised); }
.tm-cvf svg { width: 22px; height: 26px; flex: none; }
.tm-cvf .t { flex: 1; min-width: 0; line-height: 1.25; }
.tm-cvf .t b { display: block; font-weight: 600; font-size: 13px; }
.tm-cvf .t small { font-size: 11.5px; color: var(--muted); }
.tm-cvf .btn { height: 28px; }
.tm-blok { padding: 0 18px 14px; }
.tm-skl { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.tm-skl span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 13px; font-size: 12.5px; font-weight: 500; background: #fff; }
.tm-pgl { padding: 0 18px 14px; }
.tm-pgl .hl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.tm-pgl ul { list-style: none; margin: 0 0 12px; padding: 0; }
.tm-pgl li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.tm-pgl li b { font-weight: 600; }
.tm-pgl li:last-child { border-bottom: 0; }
.tm-teks { margin: 0; font-size: 13px; color: #3B3631; }
.tm-tembok { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px dashed #B8AFA6; border-radius: 8px; background: #fff; font-size: 12.5px; color: #3B3631; line-height: 1.4; }
.tm-tembok svg { width: 18px; height: 18px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.8; margin-top: 1px; }
.tm-tembok b { font-weight: 600; color: var(--ink); }
.tm-pgl .tm-tembok { margin-top: 4px; }
.tm-bb .tm-tanpa { font-size: 11.5px; color: var(--faint); white-space: normal; line-height: 1.3; min-width: 0; }

/* ---------- HP: daftar orang dan project persona jadi kartu; kepala persona lewat aturan HP .kepala di app.css ---------- */
@media (max-width: 760px) {
  .tm-daftar colgroup, .tm-daftar thead, .tm-pj colgroup, .tm-pj thead { display: none; }
  .tm-daftar, .tm-daftar tbody, .tm-pj, .tm-pj tbody { display: block; width: 100%; min-width: 0; }
  .tm-daftar tr, .tm-pj tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--rule); }
  .tm-daftar td, .tm-pj td { display: block; height: auto !important; padding: 0 !important; border: 0; overflow: visible; white-space: normal; }
  .tm-daftar td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .tm-daftar td:nth-last-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .tm-daftar td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .tm-daftar td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .tm-daftar td:has(> .tm-bb) { grid-column: 1 / -1; grid-row: 4; }
  .tm-daftar td.go { display: none; }
  .tm-daftar td[colspan], .tm-pj td[colspan] { grid-column: 1 / -1; }
  .tm-bb .track { max-width: none; }
  .tm-pj tr.grp-r { padding: 6px 14px; background: var(--raised); }
  .tm-pj tr.grp-r td { background: transparent; }
  .tm-pj td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .tm-pj td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-size: 12.5px; color: var(--muted); }
  .tm-pj td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .tm-pj td:nth-child(4) { grid-column: 1; grid-row: 3; }
  .tm-pj td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; font-size: 12.5px; color: var(--muted); }
  .tm-minggu { padding: 0 14px 8px; }
  .tm-minggu li { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 6px 0; }
  .tm-minggu li small { display: block; margin: 0; }
  .tm-cvf { margin: 0 14px 12px; }
  .tm-skl, .tm-pgl, .tm-blok { padding-left: 14px; padding-right: 14px; }
}
