.history-root{background:#f5f7fb;flex-direction:column;width:100%;height:100%;display:flex;position:relative;overflow:hidden}.history-root .app-header{background:#fff;border-bottom:1px solid #e8ecf0;flex-direction:column;flex-shrink:0;padding:.75rem .875rem;display:flex}.history-root .header-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.625rem;display:flex}.history-root .logo-area{flex-shrink:0;align-items:center;display:flex}.history-root .logo-text{color:#1a1e2b;white-space:nowrap;font-size:.9rem;font-weight:700}.history-root .header-buttons{scrollbar-width:none;flex-shrink:0;gap:.375rem;max-width:100%;display:flex;overflow-x:auto}.history-root .header-buttons::-webkit-scrollbar{display:none}.history-root .header-btn{cursor:pointer;color:#5b677e;white-space:nowrap;background:#f8f9fc;border:1px solid #e2e6ec;border-radius:2.5rem;flex-shrink:0;padding:.3125rem .625rem;font-size:.65rem;font-weight:600;transition:all .2s}.history-root .header-btn.active{color:#fff;background:#c62e2e;border-color:#c62e2e}.history-root .date-filter-row{background:#fff;border:1px solid #eef2f8;border-radius:1.25rem;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.375rem;padding:.375rem .625rem;display:flex}.history-root .filter-group{background:#f8faff;border:1px solid #e8ecf0;border-radius:1.875rem;flex:1;align-items:center;gap:.25rem;min-width:0;padding:.25rem .5rem;display:flex}.history-root .filter-group i{color:#9aa4bf;flex-shrink:0;font-size:.65rem}.history-root .date-input-wrapper{flex:1;align-items:center;min-width:0;display:flex;position:relative}.history-root .date-input-compact{color:#1a1e2b;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:0 0;border:none;width:100%;min-width:0;padding:2px 0;font-family:Inter,sans-serif;font-size:.65rem;font-weight:500}.history-root .date-placeholder{color:#9aa4bf;pointer-events:none;white-space:nowrap;font-size:.6rem;font-weight:500;display:none;position:absolute;top:50%;left:0;transform:translateY(-50%)}@media (max-width:500px){.history-root .date-placeholder{display:block}.history-root .filter-buttons{flex-shrink:0;margin-top:0}.history-root .filter-btn{flex:1;padding:.5rem;font-size:.75rem}.history-root .date-filter-row{flex-wrap:nowrap;gap:.5rem}}.history-root .date-input-compact:focus{outline:none}.history-root .filter-buttons{flex-shrink:0;gap:.25rem;display:flex}.history-root .filter-btn{cursor:pointer;white-space:nowrap;border:none;border-radius:1.875rem;padding:.25rem .625rem;font-size:.6rem;font-weight:600;transition:all .2s}.history-root .filter-btn.apply{color:#fff;background:#2c8e5a}.history-root .filter-btn.clear{color:#5b677e;background:#f0f2f5}.history-root .filter-btn:active{transform:scale(.96)}.history-root .main-content{background:#f5f7fb;flex:1;min-height:0;padding:.75rem 1rem 12.5rem;overflow-y:auto}.history-root .history-list{flex-direction:column;gap:.625rem;display:flex}.history-root .history-card{background:#fff;border:1.5px solid #e8edf2;border-radius:.875rem;padding:.8125rem .875rem;box-shadow:0 1px .1875rem #00000008}.history-root .history-card-header{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.history-root .script-info{flex-direction:column;flex:1;align-items:flex-start;gap:.25rem;min-width:0;display:flex}.history-root .script-badges{flex-wrap:wrap;align-items:center;gap:.3rem;display:flex}.history-root .script-name{color:#111827;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:.875rem;font-weight:600;overflow:hidden}.history-root .order-type-badge{border-radius:1.5rem;padding:.1875rem .5rem;font-size:.55rem;font-weight:600}.history-root .order-type-badge.buy{color:#2c8e5a;background:#e9f6ef}.history-root .order-type-badge.sell{color:#c62e2e;background:#fef0f0}.history-root .order-type-badge.pending{color:#e67e22;background:#fff3e0}.history-root .order-type-badge.completed{color:#2196f3;background:#e3f2fd}.history-root .pnl{text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;font-size:1rem;font-weight:700}.history-root .pnl.positive{color:#2c8e5a}.history-root .pnl.negative{color:#c62e2e}.history-root .price-value{color:#1f2937;font-size:.8125rem;font-weight:600}.history-root .history-card-details{color:#6b7280;border-top:1px solid #f0f4f9;flex-wrap:wrap;justify-content:space-between;gap:.875rem;margin-top:.25rem;padding-top:.5rem;font-size:.6875rem;font-weight:500;display:flex}.history-root .detail-item{align-items:center;gap:.25rem;display:flex;flex-direction:row!important}.history-root .detail-item i{width:.875rem;font-size:.6875rem}.history-footer{z-index:45;box-sizing:border-box;background:#fff;border-top:1px solid #e8ecf0;width:100%;max-width:500px;padding:.5rem 1rem;position:fixed;bottom:4.0625rem;left:50%;transform:translate(-50%);box-shadow:0 -.25rem .75rem #0000000f}.history-footer .footer-row{justify-content:space-between;align-items:center;padding:.375rem 0;font-size:.8rem;display:flex}.history-footer .footer-row:not(:last-child){border-bottom:1px solid #f0f2f8}.history-footer .footer-label{color:#6b728e;align-items:center;gap:.5rem;font-size:.75rem;font-weight:500;display:flex}.history-footer .footer-label i{width:1.125rem;font-size:.85rem}.history-footer .footer-value{font-size:.85rem;font-weight:700}.history-footer .footer-value.net-profit{color:#2c8e5a}.history-footer .footer-value.net-loss{color:#c62e2e}.history-root .empty-history{text-align:center;color:#9ca3b9;background:#fff;border:1px dashed #dce3ec;border-radius:1.75rem;padding:3.75rem 1.5rem}.history-root .empty-history i{opacity:.5;margin-bottom:.75rem;font-size:2.5rem}.history-root .empty-history p{font-size:.75rem}body.dark .history-root{background:#121212!important}body.dark .history-root .app-header{background:#1e1e1e!important;border-bottom-color:#333!important}body.dark .history-root .logo-text{color:#f5f5f5!important}body.dark .history-root .header-btn{color:#b0b0b0!important;background:#2a2a2a!important;border-color:#3a3a3a!important}body.dark .history-root .header-btn.active{color:#fff!important;background:#c62e2e!important;border-color:#c62e2e!important}body.dark .history-root .date-filter-row{background:#1e1e1e!important;border-color:#333!important}body.dark .history-root .filter-group{background:#2a2a2a!important;border-color:#3a3a3a!important}body.dark .history-root .date-input-compact{color:#f5f5f5!important}body.dark .history-root .filter-btn.clear{color:#b0b0b0!important;background:#2a2a2a!important}body.dark .history-root .main-content{background:#121212!important}body.dark .history-root .history-card{box-shadow:none!important;background:#252525!important;border-color:#3a3a3a!important}body.dark .history-root .script-name{color:#f5f5f5!important}body.dark .history-root .history-card-details{color:#888!important;border-top-color:#3a3a3a!important}body.dark .history-footer{background:#1e1e1e!important;border-top-color:#333!important}body.dark .history-footer .footer-row{border-bottom-color:#3a3a3a!important}body.dark .history-footer .footer-label{color:#b0b0b0!important}body.dark .history-footer .footer-value:not(.net-profit):not(.net-loss){color:#f5f5f5!important}body.dark .history-root .empty-history{color:#666!important;background:#252525!important;border-color:#3a3a3a!important}@media (min-width:501px){.history-root{contain:none;max-width:56.25rem;height:auto;min-height:100dvh;margin:0 auto;overflow:visible}.history-root .main-content{padding-bottom:1.5rem}.history-root .history-list{grid-template-columns:repeat(2,1fr);gap:.75rem;display:grid}.history-footer{max-width:56.25rem;margin:0 auto;position:static;bottom:auto}}@media (min-width:1024px){.history-root{width:100%;max-width:100%;height:auto;min-height:100dvh;margin:0;padding-left:0}.history-root .main-content{padding-bottom:2.5rem}.history-root .history-list{grid-template-columns:repeat(3,1fr)}.history-footer{display:none}}body.black .history-root{background:#000!important}body.black .history-root .app-header{background:#000!important;border-bottom-color:#111!important}body.black .history-root .logo-text{color:#f5f5f5!important}body.black .history-root .header-btn{color:#b0b0b0!important;background:#111!important;border-color:#2a2a2a!important}body.black .history-root .header-btn.active{color:#fff!important;background:#c62e2e!important;border-color:#c62e2e!important}body.black .history-root .date-filter-row{background:#000!important;border-color:#111!important}body.black .history-root .filter-group{background:#111!important;border-color:#2a2a2a!important}body.black .history-root .filter-group i{color:#555!important}body.black .history-root .date-input-compact{color:#f5f5f5!important;--lightningcss-light: !important;--lightningcss-dark:initial!important;color-scheme:dark!important}body.black .history-root .filter-btn.clear{color:#b0b0b0!important;background:#111!important}body.black .history-root .main-content{background:#000!important}body.black .history-root .history-card{box-shadow:none!important;background:#0d0d0d!important;border-color:#222!important}body.black .history-root .script-name{color:#f0f0f0!important}body.black .history-root .order-type-badge.buy{color:#4ade80!important;background:#2c8e5a2e!important}body.black .history-root .order-type-badge.sell{color:#f87171!important;background:#c62e2e2e!important}body.black .history-root .order-type-badge.pending{color:#fbbf24!important;background:#e67e222e!important}body.black .history-root .order-type-badge.completed{color:#60a5fa!important;background:#2196f32e!important}body.black .history-root .price-value{color:#d0d0d0!important}body.black .history-root .history-card-details{color:#666!important;border-top-color:#1a1a1a!important}body.black .history-root .empty-history{color:#444!important;background:#0a0a0a!important;border-color:#222!important}body.black .history-footer{box-shadow:none!important;background:#000!important;border-top-color:#111!important}body.black .history-footer .footer-row{border-bottom-color:#111!important}body.black .history-footer .footer-label{color:#888!important}body.black .history-footer .footer-value:not(.net-profit):not(.net-loss){color:#f0f0f0!important}body.blue .history-root{background:#0b141e!important}body.blue .history-root .app-header{background:#0b141e!important;border-bottom-color:#131c27!important}body.blue .history-root .logo-text{color:#f5f5f5!important}body.blue .history-root .header-btn{color:#b0b0b0!important;background:#131c27!important;border-color:#2a2a2a!important}body.blue .history-root .header-btn.active{color:#fff!important;background:#c62e2e!important;border-color:#c62e2e!important}body.blue .history-root .date-filter-row{background:#0b141e!important;border-color:#131c27!important}body.blue .history-root .filter-group{background:#131c27!important;border-color:#2a2a2a!important}body.blue .history-root .filter-group i{color:#555!important}body.blue .history-root .date-input-compact{color:#f5f5f5!important;--lightningcss-light: !important;--lightningcss-dark:initial!important;color-scheme:dark!important}body.blue .history-root .filter-btn.clear{color:#b0b0b0!important;background:#131c27!important}body.blue .history-root .main-content{background:#0b141e!important}body.blue .history-root .history-card{box-shadow:none!important;background:#131c27!important;border-color:#1c2a3a!important}body.blue .history-root .script-name{color:#f0f0f0!important}body.blue .history-root .order-type-badge.buy{color:#4ade80!important;background:#2c8e5a2e!important}body.blue .history-root .order-type-badge.sell{color:#f87171!important;background:#c62e2e2e!important}body.blue .history-root .order-type-badge.pending{color:#fbbf24!important;background:#e67e222e!important}body.blue .history-root .order-type-badge.completed{color:#60a5fa!important;background:#2196f32e!important}body.blue .history-root .price-value{color:#d0d0d0!important}body.blue .history-root .history-card-details{color:#666!important;border-top-color:#131c27!important}body.blue .history-root .empty-history{color:#444!important;background:#131c27!important;border-color:#1c2a3a!important}body.blue .history-footer{box-shadow:none!important;background:#0b141e!important;border-top-color:#131c27!important}body.blue .history-footer .footer-row{border-bottom-color:#131c27!important}body.blue .history-footer .footer-label{color:#888!important}body.blue .history-footer .footer-value:not(.net-profit):not(.net-loss){color:#f0f0f0!important}
