/* Halaman Leads dan daftar Project (Task 15). Komponen bersama (.babak, .diluar, .sb, .dt, .ctl, .chip) dari app.css;
   di sini cuma yang khusus dua halaman ini, semua diawali al-. Disalin dari mockup v3.css dan v3b.css. */

/* strip: kotak 5 Deal di Leads */
.al-strip .al-deal { flex: none; width: 262px; display: flex; flex-direction: column; min-width: 0; }
.al-strip .al-deal .gh { display: flex; align-items: baseline; gap: 8px; padding: 0 2px; white-space: nowrap; }
.al-strip .al-deal .gh .more { margin-left: auto; }
.al-strip .al-deal .gn { font: 400 18px/1 var(--f-head); }
.al-strip .al-deal .gc { font-size: 12px; color: var(--muted); font-weight: 500; }
.al-strip .al-deal .bm { display: block; font-size: 12.5px; color: #3B3631; padding: 2px 2px 7px; white-space: nowrap; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.al-strip .al-deal .bm b { font-weight: 600; color: var(--ink); }
.al-strip .al-deal .jadi { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--pill-yellow); font-size: 12px; line-height: 1.3; }
.al-strip .al-deal .jadi b { font-weight: 600; }
.al-strip .al-deal .jadi i.f { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--ink); flex: none; }
.al-strip .cell.nol .ct { color: #B8AFA6; }

/* tabel */
.al-tbl td { height: 52px; overflow: hidden; white-space: nowrap; }
.al-tbl td .main-c, .al-tbl td .sub { overflow: hidden; text-overflow: ellipsis; display: block; }
.al-tbl td.num, .al-tbl th.num { text-align: right; }
.al-tbl td.num { font-weight: 500; }
.al-tbl td .wc { display: flex; align-items: center; gap: 7px; }
.al-tbl .wc .av.s { width: 20px; height: 20px; font-size: 9.5px; border-width: 1.25px; }
.al-tbl td .sub.wc { min-width: 0; }
.al-tbl .wc .wt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-nys { margin: 0 18px 14px; }
.al-sel-mati { opacity: .45; pointer-events: none; }
.al-tbl .via { color: var(--muted); }
.al-tbl .via b { font-weight: 500; color: #3B3631; }
.al-tbl tr.kosong-tahap td { background: #FCFAF7; }
.al-tbl .tn.dash { color: var(--faint); }
.al-lead td, .al-tutup-t td, .al-jadi-t td, .al-tutup-k td { height: 52px; }
.al-lead .src { font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; }
.al-proj td.since .sub { white-space: normal; line-height: 1.25; }
.al-tbl .tag { height: 20px; font-size: 11px; padding: 0 6px; }
.al-tbl .pill { height: 20px; font-size: 11.5px; }
.al-alasan { white-space: normal !important; font-size: 12.5px; color: #3B3631; line-height: 1.3; }
.al-jadi-t td.go { text-align: right; padding-right: 18px; }
.al-jadi-t .idp { font: 600 12px var(--f-body); background: var(--pill-sky); color: var(--sky-ink); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.al-tutup-k td.al-alasan { white-space: normal; }

/* kotak aturan dan blok kosong di panel bawah */
.al-aturan { display: flex; align-items: flex-start; gap: 10px; margin: 0 18px 14px; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--pill-yellow); font-size: 12.5px; line-height: 1.4; }
.al-aturan b { font-weight: 600; }
.al-aturan .dm { width: 12px; height: 12px; margin-top: 3px; flex: none; transform: rotate(45deg); border: 1.5px solid var(--ink); background: var(--yellow); }
.al-kosong { margin: 0 18px 14px; padding: 12px 14px; border: 1.5px dashed #CFC6BC; border-radius: 8px; font-size: 12.5px; color: #3B3631; background: repeating-linear-gradient(135deg, #FBF8F5 0 7px, #FFFFFF 7px 14px); }
.al-kosong .siapa { display: block; margin-top: 4px; color: var(--muted); }

/* HP: strip tahap digeser (pudar kanan dari .babak di app.css); tabel jadi kartu (tabel .dt lewat aturan HP .dt di app.css) */
@media (max-width: 760px) {
  .al-strip .al-deal { width: 240px; margin: 0 6px; }
  .al-tbl tr.kosong-tahap { background: #FCFAF7; }
  .al-tbl tr.kosong-tahap td { background: transparent; }
  .al-tbl td { height: auto; }
  .al-tbl.dt tr { grid-template-columns: minmax(0, 1fr) auto; }
  .al-jadi-t colgroup, .al-jadi-t thead, .al-tutup-k colgroup, .al-tutup-k thead { display: none; }
  .al-jadi-t, .al-jadi-t tbody, .al-tutup-k, .al-tutup-k tbody { display: block; width: 100%; }
  .al-jadi-t tr, .al-tutup-k tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--rule); }
  .al-jadi-t td, .al-tutup-k td { display: block; height: auto !important; padding: 0 !important; border: 0; white-space: normal; }
  .al-jadi-t td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .al-jadi-t td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; font-size: 12.5px; color: var(--muted); }
  .al-jadi-t td:nth-child(3) { grid-column: 1; grid-row: 2; }
  .al-jadi-t td.go { grid-column: 2; grid-row: 2; padding-right: 0 !important; }
  .al-tutup-k td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .al-tutup-k td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .al-tutup-k td.al-alasan { grid-column: 1 / -1; grid-row: 2; }
  .al-tutup-t td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .al-tutup-t td.al-alasan { grid-column: 1 / -1; grid-row: 2; text-align: left; color: #3B3631; font-size: 12.5px; }
  .al-tutup-t td:nth-child(4) { grid-column: 1; grid-row: 3; font-size: 12.5px; color: var(--muted); }
  .al-tutup-t td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; font-size: 12.5px; color: var(--muted); }
  .al-aturan, .al-kosong, .al-nys { margin: 0 14px 12px; }
  .al-lead td .src.dash, .al-tbl td.since .sj .dash { display: none; }
}
