/* Floating Action Toolbar */
.ft-toolbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 9500;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    animation: ft-slide-up 0.25s ease-out;
    max-width: 95vw;
    overflow-x: auto;
    min-height: 48px;
}
@keyframes ft-slide-up {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ft-info {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.ft-count {
    background: #fff;
    color: #1a5276;
    font-weight: 700;
    font-size: 14px;
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}
.ft-label {
    font-size: 13px;
    font-weight: 500;
}
.ft-sep {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.3);
}
.ft-btns {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}
.ft-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}
.ft-btn:hover:not(.ft-disabled) {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
.ft-btn.ft-disabled, .ft-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}
.ft-btn.ft-danger { background: rgba(198,40,40,0.3); border-color: rgba(198,40,40,0.5); }
.ft-btn.ft-danger:hover:not(.ft-disabled) { background: rgba(198,40,40,0.5); }
.ft-btn.ft-success { background: rgba(46,125,50,0.3); border-color: rgba(46,125,50,0.5); }
.ft-btn.ft-success:hover:not(.ft-disabled) { background: rgba(46,125,50,0.5); }
.ft-btn.ft-warning { background: rgba(230,81,0,0.3); border-color: rgba(230,81,0,0.5); }
.ft-btn.ft-warning:hover:not(.ft-disabled) { background: rgba(230,81,0,0.5); }
.ft-clear {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.ft-clear:hover { background: rgba(255,0,0,0.4); }

/* Checkbox columns */
input.ft-header-chk, input.ft-row-chk {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2e86c1;
}

/* Hide action column */
.ft-hide-actions th.ft-actions-col,
.ft-hide-actions td.ft-actions-cell {
    display: none;
}

@media (max-width: 768px) {
    .ft-toolbar {
        bottom: 10px;
        padding: 8px 12px;
        gap: 6px;
    }
    .ft-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    .ft-label { display: none; }
}
