/* TJP Tracker v0.6.13: refinamento incremental do Painel, Calendário e Payouts. */

/* Painel: controles da Curva de Capital */
.dashboard-chart-head-v613{align-items:flex-start!important}
.chart-scope-label-v613{display:block;margin-top:4px;color:#5f6a74;font-size:7px}
.dashboard-chart-controls-v613{display:flex;align-items:flex-end;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.compact-select-v613{display:grid;gap:3px;color:#59646e;font-size:6.5px;text-transform:uppercase;letter-spacing:.045em}
.compact-select-v613 select{height:27px;min-width:112px;border:1px solid #242d35;background:#080c0f;color:#d8dde1;padding:0 24px 0 8px;border-radius:0;font-size:7.5px;outline:0}
.compact-select-v613 select:focus{border-color:#46535e}
.dashboard-chart-controls-v613 .segmented{align-self:flex-end;height:27px;align-items:center;border:1px solid #202830;padding:2px}
.dashboard-chart-controls-v613 .segmented button{height:21px;border-radius:0!important}
.neutral-value-v613{color:#f3f5f6!important}
#totalCosts.negative{color:var(--red)!important}
#todayPnl.positive,#statAverage.positive{color:var(--accent)!important}
#todayPnl.negative,#statAverage.negative{color:var(--red)!important}

/* Calendário: centralização, filtro e lucro semanal */
.calendar-head-v613{gap:12px;align-items:flex-end!important}
.calendar-head-actions-v613{display:flex;align-items:flex-end;gap:12px}
.calendar-head-actions-v613 .compact-select-v613 select{min-width:118px}
.calendar-cell{display:block}
.calendar-pnl{left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;width:92%;transform:translate(-50%,-35%);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-count{left:50%!important;right:auto!important;bottom:9px!important;width:90%;transform:translateX(-50%);text-align:center;white-space:nowrap}
.calendar-week-summary-v613{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:7px}
.calendar-week-item-v613{min-height:48px;border:1px solid #1c242b;background:#080c0f;padding:7px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:3px 8px}
.calendar-week-item-v613>span{display:flex;align-items:center;gap:5px;min-width:0}.calendar-week-item-v613>span small{font-size:6px;color:#6a7580;font-weight:800}.calendar-week-item-v613>span em{font-size:6px;color:#4f5963;font-style:normal}
.calendar-week-item-v613>strong{font-size:8px;text-align:right;white-space:nowrap}.calendar-week-item-v613>small{grid-column:1/-1;font-size:6px;color:#59646e}

/* Operações recentes passam a ocupar o próprio espaço do calendário */
.dashboard-recent-panel-v613{margin-top:11px;border-top:1px solid #1b232a;padding-top:10px;min-height:420px}
.dashboard-recent-summary-v613{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#1b232a;margin-bottom:10px}
.dashboard-recent-summary-v613>div{background:#080c0f;padding:10px 12px;min-height:52px}.dashboard-recent-summary-v613 small{display:block;color:#606b75;font-size:6.5px}.dashboard-recent-summary-v613 strong{display:block;margin-top:6px;font-size:11px}
.dashboard-recent-list-v613{display:grid;gap:10px}
.dashboard-recent-day-v613{border:1px solid #1c242b;background:#070a0d}.dashboard-recent-day-v613>header{min-height:39px;padding:7px 10px;border-bottom:1px solid #1c242b;display:flex;align-items:center;justify-content:space-between}.dashboard-recent-day-v613>header span b,.dashboard-recent-day-v613>header span small{display:block}.dashboard-recent-day-v613>header b{font-size:8px}.dashboard-recent-day-v613>header small{font-size:6px;color:#5d6872;margin-top:2px}.dashboard-recent-day-v613>header strong{font-size:9px}
.dashboard-recent-item-v613{width:100%;min-height:54px;border:0;border-bottom:1px solid #151c22;background:#090d11;color:inherit;padding:7px 10px;display:grid;grid-template-columns:36px minmax(0,1fr) 54px 86px;gap:10px;align-items:center;text-align:left;cursor:pointer}.dashboard-recent-item-v613:last-child{border-bottom:0}.dashboard-recent-item-v613:hover{background:#0d1318}.dashboard-recent-item-v613>span{min-width:0}.dashboard-recent-item-v613 b,.dashboard-recent-item-v613 small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-recent-item-v613 b{font-size:8px}.dashboard-recent-item-v613 small{font-size:6.5px;color:#66717b;margin-top:3px}.dashboard-recent-item-v613 em{font-style:normal;color:#626d77;font-size:7px;text-align:right}.dashboard-recent-item-v613>strong{font-size:8.5px;text-align:right;white-space:nowrap}
.firm-logo.dashboard{width:32px!important;height:32px!important;min-width:32px!important;border:0!important;background:transparent!important;padding:2px!important}.firm-logo.dashboard img{max-width:29px!important;max-height:29px!important}

/* Payouts: remove sobreposição sem redesenhar a tabela */
.payout-table-wrap-v66{overflow-x:auto!important;overflow-y:visible!important}
.payout-table-v613{width:100%!important;min-width:1020px!important;table-layout:fixed!important}
.payout-table-v613 th,.payout-table-v613 td{box-sizing:border-box!important;min-width:0!important;overflow:hidden!important}
.payout-table-v613 th:nth-child(1){width:15%!important}.payout-table-v613 th:nth-child(2){width:20%!important}.payout-table-v613 th:nth-child(3){width:18%!important}.payout-table-v613 th:nth-child(4){width:25%!important}.payout-table-v613 th:nth-child(5){width:9%!important}.payout-table-v613 th:nth-child(6){width:13%!important}
.payout-table-v613 td:first-child,.payout-table-v613 td:nth-child(2),.payout-table-v613 td:nth-child(3){min-width:0!important}
.payout-table-v613 .payout-values-v66{width:100%!important;min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.payout-table-v613 .payout-values-v66 span{min-width:0!important;padding:7px 7px!important}.payout-table-v613 .payout-values-v66 b{font-size:7.3px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payout-reference-v613{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:7.3px;color:#cfd5da}
.payout-table-v613 .table-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px!important;width:100%!important}.payout-table-v613 .table-actions .mini-btn{min-width:0!important;padding:7px 3px!important;font-size:6.3px!important;text-align:center}

@media(max-width:1180px){.calendar-week-summary-v613{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-chart-controls-v613{max-width:380px}.compact-select-v613 select{min-width:100px}}
@media(max-width:760px){.dashboard-chart-head-v613{display:grid!important;gap:10px}.dashboard-chart-controls-v613{justify-content:flex-start;max-width:none}.calendar-head-v613{align-items:flex-start!important;flex-direction:column}.calendar-head-actions-v613{width:100%;justify-content:space-between}.calendar-week-summary-v613{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-recent-summary-v613{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-recent-item-v613{grid-template-columns:32px minmax(0,1fr) 72px}.dashboard-recent-item-v613 em{display:none}}
.compact-select-v613[hidden],#calendarMonthControl[hidden],#dashboardCalendarPanel[hidden],#dashboardRecentPanel[hidden]{display:none!important}
