/* Gündoğdu - Raporlar → Ekip takibi */
.tkpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rpk.tk { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.rpk.tk:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(29,29,27,.08), 0 8px 22px rgba(29,29,27,.08); }
.rpk.tk.on { outline: 2px solid var(--dark); outline-offset: -2px; }
.rpk.tk.ok b { color: #0E6B47; }
.rpk.tk.ok .s { color: #0E6B47; font-weight: 600; }
.rpk.tk.warn { border-color: #F2C9A8; background: #FFF8F1; }
.rpk.tk.warn b { color: #B4461A; }
.rpk.tk.bad { border-color: #F0B4AD; background: #FDF1EF; }
.rpk.tk.bad b { color: #A3291F; }
.rpk b small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: #BDBDB5; }
.rpk .s b.tidle { color: var(--yellow); font-weight: 700; font-size: 12px; letter-spacing: 0; line-height: inherit; }

.rp-actions .btn[hidden] { display: none; }

/* dikkat listeleri */
.ttabs { display: flex; gap: 2px; padding: 12px 18px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ttabs::-webkit-scrollbar { display: none; }
.ttabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 9px 12px 11px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ttabs button:hover { color: var(--ink); }
.ttabs button.on { color: var(--ink); border-bottom-color: var(--yellow); }
.tn { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; background: #E1F5EC; color: #0E6B47; }
.tn.warn { background: #FFE9D6; color: #B4461A; }
.tn.bad { background: #C9372C; color: #fff; }
.tatt .rpc { padding-top: 0; }
.tlist { margin: 0 -18px -18px; }
.trow { display: grid; grid-template-columns: minmax(240px, 2.6fr) 108px 84px 128px minmax(130px, 1.1fr) 128px minmax(150px, 1.3fr); align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.trow > span { min-width: 0; }
.trow.th { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding-top: 12px; padding-bottom: 8px; background: #FBFAF7; }
.trow.click { cursor: pointer; }
.trow.click:hover, .trow.click:focus-visible { background: #FFFBEA; outline: none; }
.trow.hot { box-shadow: inset 3px 0 0 #C9372C; }
.trow:last-child { border-bottom: 0; }
.tc-t { display: flex; flex-direction: column; gap: 2px; }
.tmain { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.tkeys { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; }
.tkeys .jkey { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.tsep { color: #A5A39B; }
.tsub { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.tc-w { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: #4A4A45; }
.trow.hot .tc-w b { color: #A3291F; }
.twho { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; min-width: 0; }
.twho > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdates { white-space: nowrap; font-size: 12.5px; }
.tph { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 700; background: #EEEDE7; color: #55554F; white-space: nowrap; }
.tph.p1 { background: #EDE9FB; color: #5233B8; }
.tph.p2 { background: #DCEBFF; color: #0B55B5; }
.tph.p3 { background: #FFEBD9; color: #A54800; }
.tph.p4 { background: #DCF5EA; color: #116D49; }
.tclear { display: flex; align-items: center; gap: 12px; padding: 22px 0 4px; color: #0E6B47; }
.tclear div { display: flex; flex-direction: column; }
.tclear span { color: var(--muted); }

/* kim ne yapıyor */
.tpeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.tperson { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 10px; background: #fff; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tperson.idle { background: #FBFAF7; border-style: dashed; }
.tperson > header { display: flex; align-items: center; gap: 10px; }
.tpn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tpn b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpn span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl { text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.tpl b { font-size: 22px; font-weight: 800; }
.tpl span { font-size: 11px; color: var(--muted); }
.tpbar { display: flex; height: 6px; border-radius: 3px; background: #F0EFE9; overflow: hidden; }
.tpbar span { height: 100%; }
.tpbar .p { background: #2a78d6; } .tpbar .h { background: #eda100; } .tpbar .t { background: #B9B7AE; }
.tpchips { display: flex; flex-wrap: wrap; gap: 5px; }
.tpchips .c { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #EEEDE7; color: #55554F; }
.tpchips .c.p { background: #DCEBFF; color: #0B55B5; }
.tpchips .c.h { background: #FFF1CC; color: #8A5A00; }
.tpchips .c.bad { background: #C9372C; color: #fff; }
.tpchips .c.warn { background: #FFE9D6; color: #B4461A; }
.tpchips .c.idle { background: var(--dark); color: var(--yellow); }
.tperson h4 { margin: 2px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.tact { list-style: none; margin: 0 -6px; padding: 0; display: flex; flex-direction: column; }
.tact li { padding: 8px 6px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.tact li + li { border-top: 1px solid #F0EFE9; }
.tact li.click { cursor: pointer; }
.tact li.click:hover, .tact li.click:focus-visible { background: #FFFBEA; outline: none; }
.tact li.late { box-shadow: inset 3px 0 0 #C9372C; }
.tl1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tl1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.tl2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.tl2 .jkey { font-size: 12px; }
.tact li.tnone { color: var(--muted); font-style: italic; }
.tact li.tnone span { font-style: normal; font-size: 12.5px; }
.tact li.tnone a { font-weight: 700; color: var(--ink); }

/* tablet */
@media (max-width: 1180px) {
  .tkpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trow { grid-template-columns: minmax(220px, 2.4fr) 100px 120px minmax(120px, 1fr) 120px; }
  .trow .tc-b, .trow.th > span:nth-child(3) { display: none; }
  .trow .tc-w { grid-column: 1 / -1; padding-left: 0; }
  .trow.th > span:nth-child(7) { display: none; }
}
/* telefon: her iş bir kart */
@media (max-width: 760px) {
  .rp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .rp-tabs button { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 12.5px; text-align: center; line-height: 1.2; }
  .tkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tkpis .rpk.hl { grid-column: 1 / -1; }
  .rpk.tk .s { font-size: 11.5px; }
  .ttabs { padding: 10px 12px 0; }
  .tlist { margin: 0 -18px -18px; }
  .trow.th { display: none; }
  .trow { grid-template-columns: auto 1fr auto; grid-template-areas: "t t t" "p a s" "d d w"; gap: 8px 10px; padding: 12px 16px; }
  .tc-t { grid-area: t; }
  .tc-p { grid-area: p; }
  .tc-a { grid-area: a; }
  .tc-s { grid-area: s; justify-self: end; }
  .tc-d { grid-area: d; }
  .trow .tc-w { grid-area: w; grid-column: auto; justify-content: flex-end; text-align: right; }
  .tmain { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tpeople { grid-template-columns: 1fr; }
  .tl1 b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media print {
  .ttabs button:not(.on) { display: none; }
  .tperson { break-inside: avoid; }
}
.tdates .overdue, .tl2 .overdue { color: #B4461A; font-weight: 700; }
