.cal-filter-panel { position: fixed; display: grid; grid-template-columns: 240px minmax(260px, 340px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; z-index: 55; padding: 0; margin: 0; height: min(540px, 80vh); max-height: none; overflow: hidden; border: 1px solid #e3e5e7; border-top: 0; border-radius: 0; background: #fbfbfb; box-shadow: 0 12px 20px #26313b12; color: #363b44; font-family: 'PT Sans', Arial, sans-serif; font-size: 14px; line-height: 1.35; }
.cal-filter-panel[hidden] { display: none !important; }
.cal-filter-panel :where(button,input,select):focus  { outline: none; box-shadow: none; }
.cal-filter-panel :where(button,input,select):focus-visible  { outline: none; outline-offset: 0; }
.cf-sidebar { grid-row: 1 / -1; min-width: 0; overflow: auto; padding: 0 20px; background: #fff; border-right: 1px solid #e4e6e8; }
.cf-preset-row { display: flex; align-items: center; gap: 5px; min-height: 48px; border-bottom: 1px solid #e4e6e8; }
.cf-preset-button { min-width: 0; flex: 1; padding: 14px 5px; border: 0; background: #fff; color: #363b44; text-align: left; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-preset-row.is-active .cf-preset-button { color: var(--trade-selected); font-weight: 700; }
.cf-preset-button:is(:hover, :focus-visible) { background: #f3f3f3; }
.cf-edit-button { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 30px; padding: 4px; border: 0; background: transparent; opacity: .3; }
.cf-saved-row:hover .cf-edit-button, .cf-saved-row.is-active .cf-edit-button, .cf-edit-button:focus-visible  { opacity: .65; }
.cf-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.cf-saved-title { margin: 22px 5px 5px; font-size: 12px; font-weight: 700; color: #92989f; }
.cf-sidebar-message { margin: 15px 5px; color: #92989f; font-size: 13px; }
.cf-conditions, .cf-positions { min-width: 0; overflow-y: auto; padding: 16px 20px 22px; scrollbar-width: thin; }
.cf-conditions { display: flex; flex-direction: column; gap: 10px; }
.cf-heading { margin: 0 0 6px; color: #707378; font-size: 13px; line-height: 20px; font-weight: 700; }
.cf-input { display: block; width: 100%; min-width: 0; height: 32px; min-height: 32px; padding: 5px 7px; border: 1px solid #c9c9ca; border-radius: 3px; background: #fff; color: #70757e; font: inherit; font-size: 14px; line-height: 20px; box-shadow: none; }
.cf-input::placeholder { color: #85878d; opacity: 1; }
.cf-input:focus { border-color: #868b91; }
.cf-input:disabled { color: #959aa1; background: #fff; }
select.cf-input { padding-right: 25px; }
.cf-choice { position: relative; min-width: 0; }
.cf-choice-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.cf-choice-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-choice-trigger > .cf-icon { width: 14px; height: 14px; flex-basis: 14px; transform: rotate(90deg); opacity: .65; }
.cf-choice-menu { position: absolute; top: calc(100% + 3px); left: 0; right: 0; z-index: 4; border: 1px solid #e1e4e7; border-radius: 3px; background: #fff; box-shadow: 0 2px 6px #26313b0a; }
.cf-choice-search-wrap { display: flex; gap: 7px; align-items: center; height: 34px; padding: 0 8px; border-bottom: 1px solid #e5e7e9; }
.cf-choice-search-wrap > .cf-icon { opacity: .35; }
.cf-choice-search { border: 0; background: #fff; padding: 0; height: 32px; min-width: 0; width: 100%; color: #363b44; font-size: 14px; }
.cf-choice-search::placeholder { color: #a3a6aa; opacity: 1; }
.cf-choice-options { max-height: 210px; overflow: auto; overscroll-behavior: contain; }
.cf-check-row { display: flex; gap: 8px; align-items: center; min-height: 34px; padding: 6px 8px; font-size: 14px; line-height: 20px; cursor: pointer; }.cf-check-row:hover { background: #f3f3f3; }
.cf-check-row > input { appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; border: 1px solid #dde1e5; border-radius: 3px; background: #fff center / 16px 16px no-repeat; cursor: pointer; }
.cf-check-row > input:checked { border-color: var(--trade-selected); background-image: url('/assets/icons/check.svg'); }
.cf-check-row:has(> input:checked), .cf-check-row > input:checked + .cf-position-tag { color: var(--trade-selected); }
.cf-check-row > input:focus-visible { outline: 1px solid #707378; outline-offset: 2px; }
.cf-check-row > input:indeterminate { background-image: url('/assets/icons/minus.svg'); }
.cf-check-row > input:disabled { opacity: .55; cursor: default; }
.cf-choice-all { color: #92989f; }
.cf-empty { padding: 10px 8px; margin: 0; color: #8c929a; font-size: 14px; }
.cf-position-heading { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.cf-position-heading .cf-heading { margin: 0; }
.cf-manage { border: 0; background: transparent; padding: 0; color: #1583b6; font-size: 14px; line-height: 20px; text-decoration: none; }
.cf-manage:is(:hover, :focus-visible) { color: #105e83; }
.cf-positions > .cf-input { max-width: 260px; }
.cf-position-options { max-width: 260px; margin-top: 10px; }
.cf-position-row { padding-left: 0; padding-right: 0; }
.cf-position-tag { display: inline-block; max-width: calc(100% - 26px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 6px; border: 1px solid; border-left-width: 3px; border-radius: 3px; color: #35414b; font-size: 13px; line-height: 20px; }
.cf-save-area { padding: 0 5px 20px; }
.cf-save-trigger { border: 0; background: transparent; color: #2798d5; font-size: 13px; font-weight: 700; text-transform: uppercase; text-align: left; padding: 14px 0; min-height: 48px; }
.cf-section-title { margin: 0 0 9px; color: #777c83; font-size: 13px; font-weight: 400; }
.cf-save-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.cf-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 10px; border: 1px solid #d0d4d8; border-radius: 3px; background: #fff; color: #363b44; font-size: 14px; line-height: 20px; }
.cf-button:hover { border-color: #b4bbc2; }
.cf-button:disabled, .cf-text-button:disabled, .cf-preset-button:disabled, .cf-manage:disabled { color: #92989f; cursor: default; }
.cf-primary { min-height: 36px; height: 36px; border-color: #45484d; background: #45484d; color: #fff; font-weight: 700; }
.cf-primary:hover:not(:disabled) { background: #363b44; border-color: #363b44; }
.cf-primary:disabled { color: #757b81; background: #e8eaeb; border-color: #d5d8db; }
.cf-text-button { border: 0; border-radius: 0; background: transparent; padding: 5px 0; color: #7b8189; font-size: 14px; line-height: 20px; }
.cal-filter-panel :is(.cf-button, .cf-text-button):focus-visible { outline: 1px solid #707378; outline-offset: 2px; }
.cf-edit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; }
.cf-delete-button { color: #946e68; }
.cf-delete-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; color: #7b8189; font-size: 13px; }
.cf-footer { grid-column: 2 / -1; min-width: 0; border-top: 1px solid #e5e7e9; padding: 10px 20px 12px; background: #fbfbfb; }
.cf-footer-actions { display: flex; gap: 18px; align-items: center; }
.cf-message { margin-bottom: 8px; }
.cf-error { color: #995a46; font-size: 13px; line-height: 18px; }
.cf-status { color: #598066; font-size: 13px; }
.cal-filter-panel.is-compact { grid-template-columns: minmax(150px, 32%) minmax(0, 68%); grid-template-rows: minmax(200px, 1fr) minmax(100px, .65fr) auto; }
.cal-filter-panel.is-compact .cf-sidebar { grid-row: 1 / -1; padding-inline: 12px; }
.cal-filter-panel.is-compact .cf-conditions { grid-column: 2; grid-row: 1; }
.cal-filter-panel.is-compact .cf-positions { grid-column: 2; grid-row: 2; border-top: 1px solid #e5e7e9; }
.cal-filter-panel.is-compact .cf-footer { grid-column: 2; grid-row: 3; }
.cal-filter-panel.is-compact .cf-preset-button { white-space: normal; }
.cal-search-content { display: flex; align-items: center; flex-wrap: wrap; flex: 1; min-width: 0; gap: 5px; }
.cal-search-chips { display: contents; }
.cal-search-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 27px; padding: 1px 4px; gap: 3px; border: 1px solid var(--trade-selected); border-radius: 2px; background: #fff; color: var(--trade-selected); font-size: 15px; line-height: 23px; }
.cal-search-chip.is-preset { background: #cfe3a7; border-color: #a2c45f; }
.cal-search-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; cursor: pointer; }
.cal-button.cal-chip-remove { width: 16px; min-width: 16px; height: 22px; min-height: 22px; border: 0; padding: 0; background: transparent; color: inherit; }
.cal-chip-remove .cal-icon { width: 14px; height: 14px; flex-basis: 14px; opacity: .65; }
.cal-search-count { flex-shrink: 0; padding-left: 8px; color: #92989f; font-size: 14px; white-space: nowrap; }
.cal-button.cal-search-clear { flex: 0 0 24px; width: 24px; min-width: 24px; height: 28px; min-height: 28px; padding: 0; margin-left: 2px; border: 0; background: transparent; }
.cal-search-clear .cal-icon { width: 22px; height: 22px; filter: invert(47%) sepia(95%) saturate(908%) hue-rotate(158deg) brightness(93%) contrast(88%); }
.cal-search-clear:hover .cal-icon, .cal-chip-remove:hover .cal-icon { opacity: .8; }
.cal-search-box:has(.cal-search-content:focus-within)  { box-shadow: none; }
@media (max-width: 1200px) { .cal-search-count { display: none; } .cal-title { padding-inline: 16px; } .cal-toolbar-actions { padding-inline: 12px; } .cal-search-box { padding-inline: 14px; } }
@media (max-width: 1100px) { .cal-toolbar { flex-wrap: wrap; gap: 0; min-height: 114px; } .cal-title { flex: 1; min-height: 54px; } .cal-toolbar-actions { padding-block: 9px; } .cal-search-wrap { order: 3; flex: 1 0 100%; border-inline: 0; border-top: 1px solid #e5e7e9; } .cal-search-box { min-height: 59px; } .cal-search-count { display: block; } }

.cf-single-menu { padding: 4px 0; }
.cf-single-option { display: block; position: relative; width: 100%; padding: 8px 12px 8px 30px; border: 0; background: #fff; color: #363b44; text-align: left; font-size: 14px; line-height: 20px; }
.cf-single-option:hover { background: #f3f3f3; }
.cf-single-option[aria-selected="true"]::before { content: ''; position: absolute; left: 8px; top: 10px; width: 16px; height: 16px; background: url('/assets/icons/check.svg') center / 16px no-repeat; }
