/* Pay (ttc-pay.js) */
.tpy-main{gap:16px!important}
.tpy-head.row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
#ttc-feed-app .tpy-head .ta-h1{margin:4px 0 0!important}
#ttc-feed-app .tpy-head p{margin:4px 0 0!important}
.tdp-col-head .tdp-pay{margin-left:auto;font-size:13px;font-weight:600;color:#6FDCA0!important}
.tpy-week{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tpy-week-label{display:flex;flex-direction:column;min-width:0}
.tpy-week-label strong{font-size:16px}
.tpy-week-label small{font-size:12px;color:#8FA6AD}
.tpy-next svg{transform:rotate(180deg)}
.tpy-week .tf-iconbtn{background:#15242A;color:#E8F1F3!important}
.tpy-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tpy-tile{padding:14px 16px!important;display:flex;flex-direction:column;gap:2px;min-width:0}
.tpy-tile span{font-size:13px;color:#8FA6AD}
.tpy-tile strong{font:700 24px 'Space Grotesk',Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpy-tile small{font-size:12px;color:#8FA6AD}
.tpy-tile.paid strong{color:#6FDCA0}
.tpy-tile.owed strong{color:#F2B26B}
.tpy-tile.wait strong{color:#3FD2E8}
.tpy-list{padding:8px 16px 12px!important;display:flex;flex-direction:column}
#ttc-feed-app .tpy-list h2{margin:10px 0 4px;font:700 16px 'Space Grotesk',Inter,sans-serif}
#ttc-feed-app .tpy-list h3,#ttc-feed-app .tpy-detail h3{margin:12px 0 2px;font:700 14px Inter,sans-serif;color:#C9D8DC}
.tpy-job{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #1E2F36;min-width:0}
.tpy-list h2+.tpy-job,.tpy-detail>.tpy-job:first-child{border-top:0}
.tpy-job-main{flex:1;min-width:0;display:flex;flex-direction:column}
.tpy-job-main a{font-weight:600;font-size:14px;color:#E8F1F3!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpy-job-main a:hover{color:#7FE3F2!important}
.tpy-job-main small{font-size:12px;color:#8FA6AD;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpy-job-pay{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.tpy-job-pay strong{font-size:15px}
.tpy-job-pay strong.none{color:#F2B26B;font-size:13px}
.tpy-chip{font-size:11px;font-weight:700;border-radius:6px;padding:2px 7px;white-space:nowrap}
.tpy-chip.paid{background:#56CC8C24;color:#6FDCA0}
.tpy-chip.owed{background:#F2B26B24;color:#F2B26B}
.tpy-chip.wait{background:#3FD2E824;color:#3FD2E8}
#ttc-feed-app .tpy-toggle{flex-shrink:0;min-width:84px;justify-content:flex-end}
/* Office table */
.tpy-table{display:flex;flex-direction:column}
.tpy-tr{display:grid;grid-template-columns:minmax(200px,2.2fr) repeat(4,minmax(90px,1fr)) 120px;align-items:center;gap:10px;padding:10px 4px;border-top:1px solid #1E2F36;font-size:14px}
.tpy-tr.th{border-top:0;font-size:12px;color:#8FA6AD;font-weight:600;padding-top:12px}
.tpy-tr .paid{color:#6FDCA0}
.tpy-tr .owed{color:#F2B26B;font-weight:700}
.tpy-tr .wait{color:#8FA6AD}
.tpy-tr>span:last-child{display:flex;justify-content:flex-end}
#ttc-feed-app .tpy-who{display:flex;align-items:center;gap:10px;background:none;border:0;padding:4px;margin:0;color:#E8F1F3;text-align:left;cursor:pointer;min-width:0;border-radius:10px}
#ttc-feed-app .tpy-who:hover{background:#15242A}
.tpy-who .tf-av{flex-shrink:0}
.tpy-who>span{display:flex;flex-direction:column;min-width:0}
.tpy-who strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpy-who small{font-size:12px;color:#8FA6AD}
.tpy-tr.open{background:#15242A55}
.tpy-detail{padding:4px 12px 10px 46px;background:#15242A55;border-radius:0 0 12px 12px}
.tpy-foot{font-size:13px!important}
/* My pay: last 8 weeks */
.tpy-history{padding:16px!important}
#ttc-feed-app .tpy-history h2{margin:0 0 12px;font:700 16px 'Space Grotesk',Inter,sans-serif}
.tpy-bars{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;height:160px;align-items:end}
.tpy-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%;color:#8FA6AD!important;min-width:0}
.tpy-bar i{display:block;width:100%;max-width:44px;border-radius:6px 6px 2px 2px;background:#23363D;min-height:3px}
.tpy-bar.on i{background:#3FD2E8}
.tpy-bar:hover i{background:#2E6A75}
.tpy-bar.on:hover i{background:#7FE3F2}
.tpy-amt{font-size:11px;font-weight:600;color:#C9D8DC;white-space:nowrap}
.tpy-bar small{font-size:11px;white-space:nowrap}
#ttc-feed-app dialog.tpy-dlg input{width:100%;box-sizing:border-box;height:44px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;padding:0 12px;margin:0}
@media(max-width:899px){
  .tpy-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpy-tr{grid-template-columns:1fr 1fr;gap:6px 12px}
  .tpy-tr.th{display:none}
  .tpy-tr .tpy-who{grid-column:1/-1}
  .tpy-tr>span[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:#8FA6AD;font-weight:600}
  .tpy-tr>span:last-child{grid-column:1/-1;justify-content:stretch}
  .tpy-tr>span:last-child .ta-btn{flex:1;justify-content:center}
  .tpy-detail{padding:4px 10px 10px}
}
@media(max-width:759px){
  .tpy-main{padding:14px 12px 0!important}
  .tpy-tile strong{font-size:20px}
  .tpy-job{flex-wrap:wrap}
  .tpy-bar small{font-size:9px}
  .tpy-amt{font-size:9px}
}
/* Paydays, the tab and statements (Richard's ask) */
.tpy-tiles.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.tpy-tile.tabs strong{color:#C9A7FF}
.tpy-tr{grid-template-columns:minmax(190px,2.2fr) repeat(4,minmax(84px,1fr)) minmax(84px,1fr) 112px}
#ttc-feed-app .tpy-tablink{padding:0;font-weight:600;color:#8FA6AD!important}
#ttc-feed-app .tpy-tablink.on{color:#C9A7FF!important}
.tpy-chip.late{background:#FF7A7A24;color:#FF9C9C}
.tpy-job-main small.tpy-note{color:#C9A7FF}
.tpy-kick{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#3FD2E8}
.tpy-coming{padding:0!important;overflow:hidden;display:flex;flex-direction:column;border-color:#2A4A52!important;background:linear-gradient(160deg,#123038 0%,#111D22 55%)!important}
.tpy-coming-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:18px 18px 14px;flex-wrap:wrap}
.tpy-when{display:flex;flex-direction:column;gap:2px;min-width:0}
.tpy-when strong{font:700 22px 'Space Grotesk',Inter,sans-serif;color:#E8F1F3}
.tpy-when small{font-size:13px;color:#8FA6AD}
.tpy-big{display:flex;flex-direction:column;align-items:flex-end;text-align:right;min-width:0}
.tpy-big strong{font:700 34px 'Space Grotesk',Inter,sans-serif;color:#6FDCA0;line-height:1.1;white-space:nowrap}
.tpy-big small{font-size:12px;color:#8FA6AD}
.tpy-tab .tpy-big strong{color:#C9A7FF;font-size:28px}
.tpy-big.done strong{color:#6FDCA0!important}
.tpy-days{border-top:1px solid #1E3A42;display:flex;flex-direction:column}
.tpy-days-head{display:flex;justify-content:space-between;padding:10px 18px 4px;font-size:12px;font-weight:600;color:#8FA6AD}
.tpy-days-head strong{color:#C9D8DC}
.tpy-day summary{list-style:none;display:flex;align-items:center;gap:12px;padding:10px 18px;cursor:pointer}
.tpy-day summary::-webkit-details-marker{display:none}
.tpy-day summary:hover{background:#ffffff08}
.tpy-day-date{flex:1;display:flex;flex-direction:column;min-width:0}
.tpy-day-date strong{font-size:15px;color:#E8F1F3}
.tpy-day-date small{font-size:12px;color:#8FA6AD}
.tpy-day.late .tpy-day-date small{color:#FF9C9C}
.tpy-day-amt{font-size:16px;color:#E8F1F3}
.tpy-chev{width:18px;height:18px;color:#8FA6AD;transition:transform .15s;flex-shrink:0}
.tpy-day[open] .tpy-chev{transform:rotate(90deg)}
.tpy-day-jobs{padding:0 18px 10px 30px;display:flex;flex-direction:column}
.tpy-day-job{display:grid;grid-template-columns:1fr auto;gap:0 12px;padding:6px 0;border-top:1px solid #1E2F36;font-size:13px}
.tpy-day-job a{font-weight:600;color:#E8F1F3!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpy-day-job small{grid-column:1;font-size:12px;color:#8FA6AD}
.tpy-day-job>span{grid-column:2;grid-row:1/3;align-self:center;font-weight:600;color:#C9D8DC}
.tpy-waiting{display:flex;align-items:center;gap:8px;padding:10px 18px;border-top:1px solid #1E3A42;font-size:13px;font-weight:600;color:#3FD2E8!important}
.tpy-waiting svg{width:18px;height:18px}
.tpy-rule{display:flex;gap:10px;align-items:flex-start;margin:0!important;padding:12px 18px;border-top:1px solid #1E3A42;font-size:13px;color:#8FA6AD;background:#0B1418}
.tpy-rule svg{width:18px;height:18px;flex-shrink:0;color:#6FDCA0;margin-top:1px}
.tpy-rule strong{color:#C9D8DC}
.tpy-rule.office{border:1px solid #1E2F36;border-radius:12px;padding:10px 14px}
#ttc-feed-app .tpy-rule .tdp-link{padding:0;margin-left:4px}
.tpy-tab{padding:16px!important;display:flex;flex-direction:column;gap:12px}
.tpy-tab-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
#ttc-feed-app .tpy-tab h2{margin:0;font:700 16px 'Space Grotesk',Inter,sans-serif}
.tpy-tab-top small{font-size:12px;color:#8FA6AD}
.tpy-tab-next{display:flex;align-items:center;gap:8px;margin:0!important;padding:10px 12px;border-radius:10px;background:#C9A7FF14;color:#D9C2FF;font-size:13px}
.tpy-tab-next svg{width:18px;height:18px;flex-shrink:0}
.tpy-item{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:1px solid #1E2F36}
.tpy-item-top{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.tpy-item-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpy-item-top span{font-size:13px;color:#C9D8DC;white-space:nowrap}
.tpy-item small{font-size:12px;color:#8FA6AD}
.tpy-meter{display:block;height:8px;border-radius:99px;background:#23363D;overflow:hidden}
.tpy-meter i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#8D6BFF,#C9A7FF)}
.tpy-meter.done i{background:#56CC8C}
.tpy-item-tools{display:flex;gap:14px}
#ttc-feed-app .tpy-item-tools .tdp-link,#ttc-feed-app .tpy-pay .tdp-link,#ttc-feed-app .tpy-rule-row .tdp-link{padding:0;font-size:13px}
#ttc-feed-app .tdp-link.danger{color:#FF9C9C!important}
.tpy-pays{display:flex;flex-direction:column}
#ttc-feed-app .tpy-pays h3,#ttc-feed-app .tpy-rules h3,#ttc-feed-app .tpy-form h3{margin:8px 0 4px;font:700 14px Inter,sans-serif;color:#C9D8DC}
.tpy-pay{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid #1E2F36;font-size:13px}
.tpy-pay>span{flex:1;display:flex;flex-direction:column;min-width:0}
.tpy-pay small{font-size:12px;color:#8FA6AD;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpy-pay .paid{color:#6FDCA0;white-space:nowrap}
.tpy-stmts{gap:0}
#ttc-feed-app .tpy-stmt{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;border-top:1px solid #1E2F36;padding:12px 4px;margin:0;color:#E8F1F3;text-align:left;cursor:pointer;border-radius:0;font:inherit}
.tpy-stmts h2+.tpy-stmt{border-top:0!important}
#ttc-feed-app .tpy-stmt:hover{background:#15242A}
.tpy-stmt-when{flex:1;display:flex;flex-direction:column;min-width:0}
.tpy-stmt-when strong{font-size:14px}
.tpy-stmt-when small{font-size:12px;color:#8FA6AD}
.tpy-stmt-net{font-size:15px;color:#6FDCA0}
#ttc-feed-app dialog.tpy-dlg.wide{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px)}
.tpy-dlg-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#ttc-feed-app .tpy-dlg-head h2{margin:2px 0 0}
.tpy-who-row{display:flex;align-items:center;gap:12px}
#ttc-feed-app .tpy-x{background:#15242A;color:#E8F1F3!important;flex-shrink:0}
.tpy-st{display:flex;flex-direction:column;border:1px solid #1E2F36;border-radius:12px;padding:4px 14px}
.tpy-st-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #1E2F36;font-size:14px}
.tpy-st-row:first-child{border-top:0}
.tpy-st-row>span:first-child{display:flex;flex-direction:column;min-width:0}
.tpy-st-row small{font-size:12px;color:#8FA6AD}
.tpy-st-row>span:last-child{white-space:nowrap;font-weight:600}
.tpy-st-row.sum{font-weight:700}
.tpy-st-row.off{color:#D9C2FF}
.tpy-st-row.net{font-weight:700;font-size:16px;border-top:2px solid #2A4A52}
.tpy-st-row.net>span:last-child{color:#6FDCA0}
.tpy-tabdlg{display:flex;flex-direction:column;gap:10px}
.tpy-tab-tools{display:flex;gap:10px;flex-wrap:wrap}
.tpy-form{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #23363D;border-radius:12px;background:#0E191D}
.tpy-form .ta-field small{font-size:12px;color:#8FA6AD}
.tpy-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#ttc-feed-app dialog.tpy-dlg input[type=date]{color-scheme:dark}
.tpy-net{font-size:13px!important;color:#8FA6AD}
.tpy-net strong{color:#6FDCA0}
.tpy-rules{display:flex;flex-direction:column;gap:6px;border-top:1px solid #1E2F36;padding-top:6px}
.tpy-rule-row{display:flex;align-items:center;gap:12px;padding:6px 0}
.tpy-rule-row>span{flex:1;display:flex;flex-direction:column;min-width:0;font-size:14px}
.tpy-rule-row small{font-size:12px;color:#8FA6AD}
@media(max-width:1199px){.tpy-tiles.five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:899px){.tpy-tiles.five{grid-template-columns:repeat(2,minmax(0,1fr))}.tpy-tr{grid-template-columns:1fr 1fr}}
@media(max-width:759px){
  .tpy-coming-top{padding:16px 14px 12px}
  .tpy-big strong{font-size:30px}
  .tpy-day summary,.tpy-days-head,.tpy-waiting,.tpy-rule{padding-left:14px;padding-right:14px}
  .tpy-day-jobs{padding:0 14px 10px 22px}
  .tpy-two{grid-template-columns:1fr}
}
.tpy-big.tab strong{color:#C9A7FF}
.tpy-tab .tpy-big small{white-space:nowrap}
.tpy-tab-top>div:first-child{min-width:0}
.tpy-whocell{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
#ttc-feed-app .tpy-earlier{font-size:12px;font-weight:600;color:#FF9C9C!important;margin:0 0 0 46px}
.tpy-rule.late svg{color:#FF9C9C}
#ttc-feed-app .tpy-rule.late a{color:#FF9C9C!important;font-weight:600}
@media(max-width:899px){.tpy-tr .tpy-whocell{grid-column:1/-1}}
@media(max-width:899px){.tpy-tr.th+.tpy-tr{border-top:0}}
