/* TeamGuide — чаевые (префикс tp-): раздел руководителя. «Деньги» в ЛК — profile.css (lk-). */
.tp{max-width:980px;}
.tp-month{margin:6px 0 14px;}
.tp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px;}
.tp-kpi{padding:12px 14px;border-radius:14px;background:var(--paper);border:1px solid var(--soft-line);display:flex;flex-direction:column;gap:4px;}
.tp-kpi small{font-size:12px;color:var(--muted-2);}
.tp-kpi b{font-size:19px;color:var(--black);font-weight:700;}
.tp-kpi b i{font-style:normal;font-size:12.5px;color:var(--warning);font-weight:600;}
.tp-kpi.warn{border-color:rgba(138,90,22,.35);}
.tp-method{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-radius:14px;background:var(--field);font-size:13.5px;margin-bottom:14px;color:var(--ink);}
.tp-method svg{width:18px;height:18px;color:var(--accent);}
.tp-method .link-btn{margin-left:auto;}
.tp-days{display:flex;flex-direction:column;gap:6px;}
.tp-day{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 14px;border-radius:14px;background:var(--paper);border:1px solid var(--soft-line);text-align:left;width:100%;}
.tp-day:hover{border-color:var(--accent);}
.tp-day.hi{border-color:rgba(163,46,53,.35);}
.tp-dl{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.tp-dl b{font-size:14.5px;color:var(--black);font-weight:600;}
.tp-dl small,.tp-dr small{font-size:12px;color:var(--muted-2);}
.tp-dr{display:flex;flex-direction:column;align-items:flex-end;gap:2px;}
.tp-dr b{font-size:15px;color:var(--black);}
.rq-st.info{background:var(--clay-tint);color:var(--accent-dark);}
/* день */
.tp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 12px;font-size:13.5px;color:var(--muted-2);}
.tp-sp{flex:1;}
.tp-mlabel{font-size:12.5px;color:var(--muted-2);}
.tp-moneys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px;}
.tp-money{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:14px;background:var(--paper);border:1px solid var(--soft-line);font-size:12.5px;color:var(--muted-2);margin:0 !important;text-transform:none !important;letter-spacing:0 !important;font-weight:500 !important;}
.tp-money .input{font-size:20px;font-weight:700;height:44px;color:var(--black);}
.tp-money small{font-size:11.5px;color:var(--muted-2);}
.tp-money.ro b{font-size:20px;color:var(--black);line-height:44px;}
.tp-formula{display:flex;flex-wrap:wrap;gap:6px 20px;padding:12px 14px;border-radius:14px;background:var(--paper);border:1px solid var(--soft-line);font-size:13.5px;color:var(--ink);margin-bottom:10px;}
.tp-formula b{color:var(--black);}
.tp-formula b.ac{color:var(--accent);}
.tp-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;margin-bottom:10px;}
.tp-g{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--field);font-size:13px;}
.tp-g b{color:var(--black);font-size:14px;}
.tp-g small{color:var(--muted-2);font-size:12px;}
.tp-warn{padding:10px 14px;border-radius:12px;background:var(--warning-bg);color:var(--warning);font-size:13px;margin-bottom:10px;display:flex;flex-direction:column;gap:4px;}
.tp-table{border-radius:16px;background:var(--paper);border:1px solid var(--soft-line);overflow:hidden;margin-bottom:12px;}
.tp-row{display:grid;grid-template-columns:minmax(0,1fr) 84px auto 128px 112px 36px;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid var(--soft-line);}
.tp-row:has(.tp-ps){grid-template-columns:minmax(0,1fr) 84px 104px 128px 112px 36px;}
.tp-who{display:flex;flex-direction:column;gap:2px;min-width:0;}
.tp-who b{font-size:14px;color:var(--black);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tp-who small{font-size:12px;color:var(--muted-2);}
.tp-h{display:flex;flex-direction:column;gap:2px;margin:0 !important;font-size:11px;color:var(--muted-2);text-transform:none !important;letter-spacing:0 !important;}
.tp-h .input{height:38px;padding:0 10px;font-size:14px;}
.tp-na{font-size:12px;color:var(--muted-2);text-align:center;}
.tp-calc{display:flex;flex-direction:column;font-size:12.5px;color:var(--ink);}
.tp-calc small{font-size:11.5px;color:var(--muted-2);}
.tp-sum{display:flex;flex-direction:column;align-items:flex-end;}
.tp-sum b{font-size:15px;color:var(--black);}
.tp-sum small{font-size:11px;color:var(--muted-2);}
.tp-x{width:32px;height:32px;border-radius:16px;font-size:18px;color:var(--muted-2);}
.tp-x:hover{background:var(--field);color:var(--danger-text);}
.tp-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;font-size:14px;}
.tp-note{display:flex;flex-direction:column;gap:6px;margin:0 0 12px !important;}
.tp-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:6px 0 24px;}
/* итоги */
.tp-ptools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;font-size:14px;}
.tp-ptable{border-radius:16px;background:var(--paper);border:1px solid var(--soft-line);overflow:hidden;}
.tp-pr{display:grid;grid-template-columns:minmax(0,1fr) 56px 64px 84px 120px;gap:10px;align-items:center;padding:8px 14px;border-bottom:1px solid var(--soft-line);font-size:14px;}
.tp-pr > span:not(.tp-who):not(.tp-sum){text-align:right;}
.tp-ph{background:var(--field);font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-2);min-height:36px;}
.tp-ph > span:last-child{text-align:right;}
/* настройки */
.tp-set .block{margin-bottom:14px;}
.tp-methods{display:flex;flex-direction:column;gap:8px;}
.tp-mopt{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;border:1.5px solid var(--field-line);background:var(--paper);margin:0 !important;text-transform:none !important;letter-spacing:0 !important;cursor:pointer;}
.tp-mopt input{margin-top:3px;accent-color:var(--accent);}
.tp-mopt span{display:flex;flex-direction:column;gap:3px;}
.tp-mopt b{font-size:14.5px;color:var(--black);}
.tp-mopt small{font-size:12.5px;color:var(--muted-2);font-weight:400;line-height:1.4;}
.tp-mopt.on{border-color:var(--accent);background:var(--clay-tint);}
.tp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.tp-grid label{display:flex;flex-direction:column;gap:6px;margin:0 !important;}
.tp-grid small{font-size:11.5px;color:var(--muted-2);text-transform:none;letter-spacing:0;font-weight:400;}
.tp-gp{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;}
.tp-gp label{display:grid;grid-template-columns:1fr 80px 16px;align-items:center;gap:8px;margin:0 !important;text-transform:none !important;letter-spacing:0 !important;font-size:14px !important;color:var(--black) !important;font-weight:500 !important;}
.tp-gp i{font-style:normal;color:var(--muted-2);}
.tp-set .ok{color:var(--ok);} .tp-set .bad{color:var(--danger-text);}
.tp-pos{border-radius:14px;border:1px solid var(--soft-line);overflow:hidden;}
.tp-posr{display:grid;grid-template-columns:minmax(0,1fr) 90px 80px;gap:10px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--soft-line);}
.tp-pos:has([data-pl]) .tp-posr{grid-template-columns:minmax(0,1fr) 90px 80px 70px;}
.tp-posr .input{height:38px;padding:0 10px;}
.tp-ck{display:flex;justify-content:center;margin:0 !important;}
.tp-ck input{width:20px;height:20px;accent-color:var(--accent);}
.tp-posr.tp-ph > span:not(:first-child){text-align:center;}
@media (max-width:720px){
  .tp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  .tp-moneys{gap:6px;}
  .tp-money{padding:10px;font-size:11.5px;}
  .tp-money .input,.tp-money.ro b{font-size:16px;height:40px;line-height:40px;padding:0 8px;}
  .tp-money small{display:none;}
  .tp-grid{grid-template-columns:1fr;}
  .tp-row,.tp-row:has(.tp-ps){display:flex;flex-wrap:wrap;gap:8px 10px;}
  .tp-row > *{order:2;}
  .tp-row .tp-who{order:0;flex:1 1 calc(100% - 50px);}
  .tp-row .tp-x{order:1;}
  .tp-row .tp-h{width:80px;} .tp-row .tp-ps{width:104px;}
  .tp-row .tp-calc{flex:1;min-width:90px;justify-content:center;}
  .tp-row .tp-sum{margin-left:auto;justify-content:center;}
  .tp-pr{grid-template-columns:minmax(0,1fr) 44px 96px;}
  .tp-pr > span:nth-child(3),.tp-pr > span:nth-child(4){display:none;}
}
