/* TradePlexa 3.3.28 — gestione parziali: aggiunta isolata alla pagina Nuova Operazione. */
#newtrade .tp3328-mode-switch{display:flex;gap:8px;margin:12px 0 18px;flex-wrap:wrap;padding:5px;border:1px solid rgba(94,174,215,.25);border-radius:13px;background:rgba(0,15,35,.32)}
#newtrade .tp3328-mode-switch button{flex:1;min-width:145px;cursor:pointer;border:1px solid transparent;border-radius:10px;padding:11px 12px;background:transparent;color:#b8cfe6;font-weight:750;font-size:13px}
#newtrade .tp3328-mode-switch button.active{color:#fff;background:linear-gradient(120deg,rgba(15,112,159,.48),rgba(20,185,169,.23));border-color:rgba(70,206,230,.54);box-shadow:inset 0 0 20px rgba(28,165,208,.10)}
#newtrade #tp3328Classic[hidden],#newtrade #tp3328Partial[hidden],#newtrade .tp3328-custom-wrap[hidden]{display:none!important}
#newtrade .tp3328-help{font-size:13px;line-height:1.55;color:#b5d0df;margin:0 0 14px}
#newtrade .tp3328-targets{display:flex;flex-direction:column;gap:10px}
#newtrade .tp3328-target{border:1px solid rgba(88,153,195,.29);border-radius:14px;padding:13px;background:linear-gradient(125deg,rgba(5,24,43,.70),rgba(11,49,63,.42))}
#newtrade .tp3328-target.tp3328-is-hit{border-color:rgba(25,220,181,.54)}
#newtrade .tp3328-target-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
#newtrade .tp3328-target-name{color:#f3f8ff;font-size:14px}
#newtrade .tp3328-remove{border:0;background:transparent;color:#91abc1;cursor:pointer;padding:4px 9px;border-radius:8px}
#newtrade .tp3328-remove:hover{color:#fff;background:rgba(225,76,101,.18)}
#newtrade .tp3328-target-grid{display:grid;grid-template-columns:minmax(90px,1fr) minmax(115px,1.4fr) auto;align-items:end;gap:10px}
#newtrade .tp3328-target-grid label,#newtrade .tp3328-exit-row label{display:flex;flex-direction:column;gap:7px;color:#bcd4e5;font-size:12px;font-weight:650}
#newtrade .tp3328-target-grid input[type=number],#newtrade .tp3328-exit-row input,#newtrade .tp3328-exit-row select{width:100%;min-width:0;box-sizing:border-box;border:1px solid rgba(91,161,201,.44);border-radius:9px;background:#061d31;color:#f4faff;padding:10px 11px;min-height:41px;font-size:14px;outline:none}
#newtrade .tp3328-target-grid input:focus,#newtrade .tp3328-exit-row select:focus{border-color:#4adad2}
#newtrade .tp3328-target-grid .tp3328-reached{align-self:end;flex-direction:row;align-items:center;justify-content:center;border:1px solid rgba(86,159,192,.40);border-radius:9px;padding:10px;min-height:41px;box-sizing:border-box;white-space:nowrap;cursor:pointer}
#newtrade .tp3328-reached input{width:16px;height:16px;accent-color:#08d3ad}
#newtrade .tp3328-target-result{font-size:12px;color:#91b6c5;margin-top:9px}
#newtrade .tp3328-add{margin:13px 0 15px;width:100%;background:rgba(9,92,120,.20);color:#76e7d9;border:1px dashed rgba(38,207,194,.55);border-radius:11px;padding:11px;font-weight:750;cursor:pointer}
#newtrade .tp3328-add:hover{background:rgba(9,92,120,.39)}
#newtrade .tp3328-remaining-row{display:flex;justify-content:space-between;gap:10px;color:#b5cbdc;font-size:13px;border-top:1px solid rgba(92,151,191,.22);padding:12px 0}
#newtrade .tp3328-remaining-row strong{color:#f2f9ff;font-size:16px}
#newtrade .tp3328-exit-row{display:grid;gap:9px;margin:5px 0 16px}
#newtrade .tp3328-custom-wrap{display:grid;gap:7px;margin-top:7px}
#newtrade .tp3328-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#newtrade .tp3328-summary>div{background:rgba(2,25,45,.55);border:1px solid rgba(90,161,198,.27);border-radius:11px;padding:12px 10px;min-width:0}
#newtrade .tp3328-summary small{display:block;color:#91b0c7;font-size:11px;margin-bottom:8px}
#newtrade .tp3328-summary strong{color:#f2faff;font-size:17px;overflow-wrap:anywhere}
#newtrade .tp3328-hint{color:#a7c3d1;font-size:12px;line-height:1.5;margin:13px 0 0}
#newtrade .tp3328-hint.invalid{color:#ff9d9d}
#log .trade-outcome-badge.open{color:#ffdba1;background:rgba(240,156,34,.15);border-color:rgba(240,156,34,.40)}
#log tr.open .trade-r-cell{color:#f4dbab}
.trade-detail-note-text{white-space:pre-line}
@media(max-width:720px){#newtrade .tp3328-target-grid{grid-template-columns:1fr 1fr}#newtrade .tp3328-reached{grid-column:1/-1;justify-content:flex-start!important}#newtrade .tp3328-summary{grid-template-columns:1fr 1fr}#newtrade .tp3328-summary>div:last-child{grid-column:1/-1}}
