/* امکانات جدول (برگه‌ی ۵۳): کلید روشن/خاموش شرط فیلتر، شماره‌ی ترتیب مرتب‌سازی، تمام‌صفحه */

.cond-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: none; cursor: pointer; }
.cond-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cond-switch span { position: absolute; inset: 0; border-radius: 20px; background: var(--border-strong); transition: background 0.15s; }
.cond-switch span::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-strong, #fff); transition: transform 0.15s; }
.cond-switch input:checked + span { background: var(--accent-blue); }
.cond-switch input:checked + span::after { transform: translateX(-16px); }
.cond-switch input:focus-visible + span { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.filter-row.cond-off > :not(.cond-switch):not(button) { opacity: 0.4; }

.sort-order { font-size: 10px; margin-right: 2px; vertical-align: super; color: var(--text-strong, inherit); }

body.tfs-on { overflow: hidden; }
.table-wrapper.tfs {
    position: fixed !important; inset: 0; z-index: 1700; width: 100vw !important; max-width: 100vw !important;
    height: 100vh !important; max-height: 100vh !important; margin: 0 !important; border-radius: 0 !important; border: 0 !important;
}
.tfs-exit { position: fixed; bottom: 14px; left: 14px; z-index: 1710; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }

/* ===== یادداشت من ===== */
.note-cell { cursor: pointer; display: inline-block; max-width: 220px; white-space: normal; text-align: right; font-size: 12px; }
.note-cell .note-add { color: var(--text-muted); opacity: .6; }
.note-cell:hover .note-add { opacity: 1; color: var(--accent-blue); }
.note-cell .note-text { color: var(--text-light); }
.note-editor { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.note-box { background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 8px; }
.note-box textarea { width: 100%; box-sizing: border-box; background: var(--bg-main); color: var(--text-light); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 8px; font-family: inherit; resize: vertical; }
.note-actions { display: flex; gap: 8px; }
.note-msg { color: var(--c-red); font-size: 13px; min-height: 0; }
.note-hint { color: var(--text-muted); font-size: 12px; }
